cast to RAWARG, so the compiler doesn't complain.
[AROS.git] / configure
blobc851b8e504091920f3f4d461bb6c80bd3d6b1df4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 aros_host_sdl_libs
657 aros_host_sdl_cflags
658 aros_host_x11_ldflags
659 aros_host_x11_cflags
660 DO_VIDMODE_SUPPORT
661 DO_XSHM_SUPPORT
662 aros_nominal_depth
663 aros_nominal_height
664 aros_nominal_width
665 pci_hidd_target
666 host_android_gfx
667 host_sdl_gfx
668 host_x_gfx
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_config_lto
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cxxflags
679 aros_debug_cflags
680 aros_debug_cppflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_kernel_sysroot
686 aros_config_ldflags
687 aros_config_aflags
688 aros_config_cxxflags
689 aros_config_cflags
690 aros_config_cppflags
691 aros_nowarn_flags
692 aros_warn_flags
693 aros_config_sysroot
694 aros_shared_ldflags
695 aros_shared_aflags
696 aros_shared_cflags
697 aros_arch_libs
698 aros_compiler_libs
699 spec_obj_format
700 aros_object_format
701 aros_shared_ld
702 aros_shared_default
703 aros_target_nm
704 aros_target_strip
705 aros_target_objcopy
706 aros_target_objdump
707 aros_target_cc_path
708 aros_target_cc_includes
709 aros_target_ld
710 aros_target_as
711 aros_target_cpp
712 aros_target_cxx
713 aros_target_cc
714 aros_plain_ar
715 aros_plain_nm
716 aros_target_ranlib
717 aros_target_ar
718 aros_target_suffix
719 aros_target_variant
720 aros_target_cpu_mode
721 aros_target_cpu
722 aros_target_family
723 aros_target_arch
724 aros_target_bootloader
725 aros_target_iconset
726 aros_target_guitheme
727 aros_tools_dir
728 aros_host_lib_suffix
729 aros_host_exe_suffix
730 aros_host_mkargs
731 aros_host_mkdep
732 aros_host_debug
733 aros_host_ldflags
734 gnu89_inline
735 aros_host_cxxflags
736 aros_host_cflags
737 aros_host_cppflags
738 aros_host_make
739 aros_host_cxx
740 aros_host_cc
741 aros_host_def_cc
742 aros_host_cpp
743 aros_host_cpu
744 aros_host_arch
745 aros_cc_pre
746 aros_amigaos_compliance
747 AROS_PORTSSRCDIR
748 AROS_CROSSTOOLSDIR
749 SRCDIR
750 AROS_BUILDDIR_UNIX
751 AROS_BUILDDIR
752 aros_build_host
753 aros_toolchain_ld
754 aros_target_toolchain
755 aros_flavour_uc
756 aros_flavour
757 aros_cpu
758 aros_arch
759 SDL_LIBS
760 SDL_CFLAGS
761 SDL_CONFIG
762 XMKMF
763 kernel_cflags_iquote_end
764 kernel_cflags_iquote
765 host_cflags_iquote_end
766 host_cflags_iquote
767 aros_toolchain
768 aros_target_nostdlib_ldflags
769 aros_target_detach_ldflags
770 aros_target_nix_ldflags
771 aros_target_nostartup_ldflags
772 aros_target_nostdinc_cflags
773 aros_kernel_rescomp
774 orig_target_objdump
775 orig_target_objcopy
776 orig_target_strip
777 orig_target_nm
778 orig_target_ranlib
779 orig_target_ar
780 orig_target_as
781 orig_target_ld
782 orig_target_cxx
783 orig_target_cc
784 orig_target_cpp
785 aros_kernel_objdump
786 aros_kernel_objcopy
787 aros_kernel_strip
788 aros_kernel_nm
789 aros_kernel_ranlib
790 aros_kernel_ar
791 aros_kernel_as
792 aros_kernel_ld
793 aros_kernel_cxx
794 aros_kernel_cc
795 aros_kernel_cpp
796 target_gcc_version
798 android_tool
799 CCACHE
800 DISTCC
801 LIBOBJS
802 EGREP
803 GREP
805 TEST
808 libpng_incdir
809 libpng_libextra
810 libpng
811 arosconfig_use_libpngconfig
812 pkgpyexecdir
813 pyexecdir
814 pkgpythondir
815 pythondir
816 PYTHON_PLATFORM
817 PYTHON_EXEC_PREFIX
818 PYTHON_PREFIX
819 PYTHON_VERSION
820 PYTHON
821 PATCH
822 CHMOD
824 PPMTOILBM
825 PNGTOPNM
826 FLEX
827 BISON
830 UNIQ
831 SORT
832 TOUCH
833 MKDIR
834 ECHO
838 aros_host_strip
839 aros_host_ranlib
840 aros_host_ar
841 aros_host_automake
842 aros_host_autoheader
843 aros_host_autoconf
844 aros_host_aclocal
845 aros_host_ld
846 MMAKE
849 ac_ct_CC
850 CFLAGS
852 OBJEXT
853 EXEEXT
854 ac_ct_CXX
855 CPPFLAGS
856 LDFLAGS
857 CXXFLAGS
859 host_os
860 host_vendor
861 host_cpu
862 host
863 build_os
864 build_vendor
865 build_cpu
866 build
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 with_c_compiler
909 with_cxx_compiler
910 enable_libpng_config
911 with_toolchain
912 enable_lto
913 enable_build_type
914 enable_debug
915 enable_distcc
916 enable_ccache
917 with_kernel_gcc_version
918 with_optimization
919 with_paranoia
920 enable_target_variant
921 with_xcode
922 with_sdk_version
923 with_sdk
924 with_ndk
925 with_ndk_version
926 with_apk_version
927 enable_amigaos_compliance
928 with_kernel_toolchain_prefix
929 with_elf_toolchain_prefix
930 with_aros_toolchain
931 enable_crosstools
932 with_aros_toolchain_install
933 with_binutils_version
934 with_gcc_version
935 enable_objc
936 enable_java
937 with_cpu
938 with_fpu
939 with_float
940 with_portssources
941 with_bootloader
942 with_iconset
943 with_theme
944 enable_includes
945 with_resolution
946 with_serial_debug
947 enable_palm_debug_hack
948 enable_usb30_code
949 enable_nesting_supervisor
950 enable_mmu
951 enable_x11_hidd
952 with_x
953 enable_x11_shm
954 enable_x11_vidmode
955 enable_sdl_hidd
956 with_sdl_prefix
957 with_sdl_exec_prefix
958 enable_sdltest
959 enable_dbus
961 ac_precious_vars='build_alias
962 host_alias
963 target_alias
965 CXXFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
971 CFLAGS
973 PYTHON
974 XMKMF'
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1036 case $ac_option in
1037 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *=) ac_optarg= ;;
1039 *) ac_optarg=yes ;;
1040 esac
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1044 case $ac_dashdash$ac_option in
1046 ac_dashdash=yes ;;
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1360 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information"
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1382 esac
1383 done
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error $? "missing argument to $ac_option"
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438 test "$silent" = yes && exec 6>/dev/null
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error $? "working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error $? "pwd does not report name of working directory"
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 $as_echo X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 s//\1/
1463 /^X\(\/\/\)[^/].*/{
1464 s//\1/
1467 /^X\(\/\/\)$/{
1468 s//\1/
1471 /^X\(\/\).*/{
1472 s//\1/
1475 s/.*/./; q'`
1476 srcdir=$ac_confdir
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 srcdir=..
1480 else
1481 ac_srcdir_defaulted=no
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1485 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1509 # Report the --help message.
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures this package to adapt to many kinds of systems.
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1522 Defaults for the options are specified in brackets.
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking ...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1546 For better control, use the options below.
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1570 cat <<\_ACEOF
1572 X features:
1573 --x-includes=DIR X include files are in DIR
1574 --x-libraries=DIR X library files are in DIR
1576 System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 _ACEOF
1582 if test -n "$ac_init_help"; then
1584 cat <<\_ACEOF
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --disable-libpng-config disable libpng-config test and configuration
1591 --enable-lto=yes|no Enable link time optimizations if the target
1592 compiler supports them (default=no)
1593 --enable-build-type=TYPE
1594 Select the build type. Available types are:
1595 personal, nightly, snapshot, milestone, release. Do
1596 NOT use this option unless you know what you are
1597 doing! (default=personal)
1598 --enable-debug=list Enable different types of debug. Commas or
1599 whitespaces can be used to separate the items in the
1600 list. Available types of debug are: all, none,
1601 messages, stack, mungwall, modules, symbols. If no
1602 list is provided then "all" is assumed.
1603 (default=none)
1604 --enable-distcc Use distcc as a front end to the compiler
1605 (default=no).
1606 --enable-ccache Use ccache as a front end to the compiler
1607 (default=no).
1608 --enable-target-variant=NAME
1609 Enable a specific target variant (default=none)
1610 --enable-amigaos-compliance=VERSION
1611 Enforce userspace AmigaOS compliance to a specific
1612 KickStart version (default=none).
1613 --disable-crosstools Do not build cross-compiler toolchain
1614 --enable-objc Enable Objectve-C support (default=no)
1615 --enable-java Enable Java support (default=no)
1616 --enable-includes=dir Alternative system include directory
1617 --enable-palm-debug-hack
1618 Enable palm debug output hack in palm native
1619 (default=no)
1620 --enable-usb30-code Enable usb3.0 code (default=no)
1621 --enable-nesting-supervisor
1622 Enable nesting supervisor support in unix
1623 (default=no)
1624 --disable-mmu Disable MMU support (default=enabled)
1625 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1626 --enable-x11-shm use X11 shared memory (default=auto)
1627 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1628 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1629 --disable-sdltest Do not try to compile and run a test SDL program
1630 --enable-dbus Enable DBUS support via dbus.library (default=no)
1632 Optional Packages:
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-c-compiler=VERSION
1636 Use specified c compiler for building AROS
1637 --with-cxx-compiler=VERSION
1638 Use specified c++ compiler building AROS
1639 --with-toolchain=family Which toolchain family to crosscompile with
1640 (defaults to gnu)
1641 --with-kernel-gcc-version=VERSION
1642 Use gcc-VERSION for building bootstrap
1643 --with-optimization=FLAGS
1644 Use optimization flags FLAGS (default=-O2).
1645 --with-paranoia=(yes|no|FLAGS)
1646 Specific compiler warning FLAGS to enable for
1647 paranoia builds (default=-Wall -Werror)
1648 --with-xcode=PATH Specify XCode path for iOS targets
1649 (default=/Developer).
1650 --with-sdk-version=VERSION
1651 Use iOS SDK version VERSION (default=4.1).
1652 --with-sdk=PATH Specify Android SDK path
1653 (default=$default_android_sdk).
1654 --with-ndk=PATH Specify Android NDK path (default=none).
1655 --with-sdk-version=LEVEL
1656 Use Android SDK for API LEVEL (default=12).
1657 --with-ndk-version=LEVEL
1658 Use Android NDK for API LEVEL (default=9).
1659 --with-apk-version=(release|debug)
1660 Which version of AROSBootstrap.apk to compile.
1661 Release version needs key for signing, debug version
1662 will only run in emulator. (default=release)
1663 --with-kernel-toolchain-prefix=...
1664 Specify crosscompile toolchain prefix for kernel
1665 objects
1666 --with-elf-toolchain-prefix=...
1667 Specify crosscompile toolchain prefix to wrap for
1668 AROS objects
1669 --with-aros-toolchain=PREFIX
1670 Specify prebuilt AROS toolchain. Use yes for default
1671 name
1672 --with-aros-toolchain-install=DIR
1673 Where to install or search for cross tools binaries
1674 --with-binutils-version=VERSION
1675 Use binutils-VERSION for building AROS
1676 --with-gcc-version=VERSION
1677 Compile gcc-VERSION for AROS
1678 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1679 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1680 --with-float=<spec> Specify floating point ABI
1681 (default=$gcc_default_float_abi).
1682 --with-portssources=DIR Where to download sourcecode for external ports
1683 --with-bootloader=NAME Use a specific bootloader
1684 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1685 --with-theme=NAME Use a specific GUI Theme
1686 --with-resolution=XRESxYRESxDEPTH
1687 Default resolution of the initial WorkbenchScreen
1688 --with-serial-debug Enable serial debug output in native (default=no)
1689 --with-x use the X Window System
1690 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1691 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1693 Some influential environment variables:
1694 CXX C++ compiler command
1695 CXXFLAGS C++ compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 CPP C preprocessor
1704 PYTHON the Python interpreter
1705 XMKMF Path to xmkmf, Makefile generator for X Window System
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1721 ac_builddir=.
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1739 case $srcdir in
1740 .) # We are building in place.
1741 ac_srcdir=.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1763 else
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1767 done
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772 cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.69
1776 Copyright (C) 2012 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_cxx_try_compile LINENO
1788 # ----------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_cxx_try_compile
1825 # ac_fn_c_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } > conftest.i && {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1898 } # ac_fn_c_try_cpp
1900 # ac_fn_c_try_link LINENO
1901 # -----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_link ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext conftest$ac_exeext
1907 if { { ac_try="$ac_link"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest$ac_exeext && {
1926 test "$cross_compiling" = yes ||
1927 test -x conftest$ac_exeext
1928 }; then :
1929 ac_retval=0
1930 else
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1934 ac_retval=1
1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938 # interfere with the next link command; also delete a directory that is
1939 # left behind by Apple's compiler. We do this before executing the actions.
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1944 } # ac_fn_c_try_link
1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949 # the include files in INCLUDES and setting the cache variable VAR
1950 # accordingly.
1951 ac_fn_c_check_header_mongrel ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if eval \${$3+:} false; then :
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 else
1964 # Is the header compilable?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966 $as_echo_n "checking $2 usability... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_header_compiler=yes
1974 else
1975 ac_header_compiler=no
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979 $as_echo "$ac_header_compiler" >&6; }
1981 # Is the header present?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983 $as_echo_n "checking $2 presence... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 #include <$2>
1987 _ACEOF
1988 if ac_fn_c_try_cpp "$LINENO"; then :
1989 ac_header_preproc=yes
1990 else
1991 ac_header_preproc=no
1993 rm -f conftest.err conftest.i conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995 $as_echo "$ac_header_preproc" >&6; }
1997 # So? What about this header?
1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 yes:no: )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 no:yes:* )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2009 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2013 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 esac
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 eval "$3=\$ac_header_compiler"
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_mongrel
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2037 ac_fn_c_try_run ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>&5
2048 ac_status=$?
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051 { { case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_try") 2>&5
2058 ac_status=$?
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; }; }; then :
2061 ac_retval=0
2062 else
2063 $as_echo "$as_me: program exited with status $ac_status" >&5
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2067 ac_retval=$ac_status
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_c_try_run
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 eval "$3=yes"
2094 else
2095 eval "$3=no"
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_header_compile
2106 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2107 # ----------------------------------------------------
2108 # Tries to find if the field MEMBER exists in type AGGR, after including
2109 # INCLUDES, setting cache variable VAR accordingly.
2110 ac_fn_c_check_member ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2114 $as_echo_n "checking for $2.$3... " >&6; }
2115 if eval \${$4+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static $2 ac_aggr;
2125 if (ac_aggr.$3)
2126 return 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 eval "$4=yes"
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static $2 ac_aggr;
2141 if (sizeof ac_aggr.$3)
2142 return 0;
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 eval "$4=yes"
2149 else
2150 eval "$4=no"
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 eval ac_res=\$$4
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_member
2163 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2164 # ---------------------------------------------
2165 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2166 # accordingly.
2167 ac_fn_c_check_decl ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 as_decl_name=`echo $2|sed 's/ *(.*//'`
2171 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2173 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2174 if eval \${$3+:} false; then :
2175 $as_echo_n "(cached) " >&6
2176 else
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 #ifndef $as_decl_name
2184 #ifdef __cplusplus
2185 (void) $as_decl_use;
2186 #else
2187 (void) $as_decl_name;
2188 #endif
2189 #endif
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 eval "$3=yes"
2197 else
2198 eval "$3=no"
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_check_decl
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 if (sizeof ($2))
2229 return 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 main ()
2241 if (sizeof (($2)))
2242 return 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2249 else
2250 eval "$3=yes"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_check_func LINENO FUNC VAR
2264 # ----------------------------------
2265 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2266 ac_fn_c_check_func ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2278 #define $2 innocuous_$2
2280 /* System header to define __stub macros and hopefully few prototypes,
2281 which can conflict with char $2 (); below.
2282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2283 <limits.h> exists even on freestanding compilers. */
2285 #ifdef __STDC__
2286 # include <limits.h>
2287 #else
2288 # include <assert.h>
2289 #endif
2291 #undef $2
2293 /* Override any GCC internal prototype to avoid an error.
2294 Use char because int might match the return type of a GCC
2295 builtin and then its argument prototype would still apply. */
2296 #ifdef __cplusplus
2297 extern "C"
2298 #endif
2299 char $2 ();
2300 /* The GNU C library defines this for functions which it implements
2301 to always fail with ENOSYS. Some functions are actually named
2302 something starting with __ and the normal name is an alias. */
2303 #if defined __stub_$2 || defined __stub___$2
2304 choke me
2305 #endif
2308 main ()
2310 return $2 ();
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_link "$LINENO"; then :
2316 eval "$3=yes"
2317 else
2318 eval "$3=no"
2320 rm -f core conftest.err conftest.$ac_objext \
2321 conftest$ac_exeext conftest.$ac_ext
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328 } # ac_fn_c_check_func
2329 cat >config.log <<_ACEOF
2330 This file contains any messages produced by compilers while
2331 running configure, to aid debugging if configure makes a mistake.
2333 It was created by $as_me, which was
2334 generated by GNU Autoconf 2.69. Invocation command line was
2336 $ $0 $@
2338 _ACEOF
2339 exec 5>>config.log
2341 cat <<_ASUNAME
2342 ## --------- ##
2343 ## Platform. ##
2344 ## --------- ##
2346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2353 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2355 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2356 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2358 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2359 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2360 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2361 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363 _ASUNAME
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 $as_echo "PATH: $as_dir"
2371 done
2372 IFS=$as_save_IFS
2374 } >&5
2376 cat >&5 <<_ACEOF
2379 ## ----------- ##
2380 ## Core tests. ##
2381 ## ----------- ##
2383 _ACEOF
2386 # Keep a trace of the command line.
2387 # Strip out --no-create and --no-recursion so they do not pile up.
2388 # Strip out --silent because we don't want to record it for future runs.
2389 # Also quote any args containing shell meta-characters.
2390 # Make two passes to allow for proper duplicate-argument suppression.
2391 ac_configure_args=
2392 ac_configure_args0=
2393 ac_configure_args1=
2394 ac_must_keep_next=false
2395 for ac_pass in 1 2
2397 for ac_arg
2399 case $ac_arg in
2400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2402 | -silent | --silent | --silen | --sile | --sil)
2403 continue ;;
2404 *\'*)
2405 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 esac
2407 case $ac_pass in
2408 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2410 as_fn_append ac_configure_args1 " '$ac_arg'"
2411 if test $ac_must_keep_next = true; then
2412 ac_must_keep_next=false # Got value, back to normal.
2413 else
2414 case $ac_arg in
2415 *=* | --config-cache | -C | -disable-* | --disable-* \
2416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2418 | -with-* | --with-* | -without-* | --without-* | --x)
2419 case "$ac_configure_args0 " in
2420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 esac
2423 -* ) ac_must_keep_next=true ;;
2424 esac
2426 as_fn_append ac_configure_args " '$ac_arg'"
2428 esac
2429 done
2430 done
2431 { ac_configure_args0=; unset ac_configure_args0;}
2432 { ac_configure_args1=; unset ac_configure_args1;}
2434 # When interrupted or exit'd, cleanup temporary files, and complete
2435 # config.log. We remove comments because anyway the quotes in there
2436 # would cause problems or look ugly.
2437 # WARNING: Use '\'' to represent an apostrophe within the trap.
2438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2439 trap 'exit_status=$?
2440 # Save into config.log some information that might help in debugging.
2442 echo
2444 $as_echo "## ---------------- ##
2445 ## Cache variables. ##
2446 ## ---------------- ##"
2447 echo
2448 # The following way of writing the cache mishandles newlines in values,
2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in #(
2453 *${as_nl}*)
2454 case $ac_var in #(
2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457 esac
2458 case $ac_var in #(
2459 _ | IFS | as_nl) ;; #(
2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461 *) { eval $ac_var=; unset $ac_var;} ;;
2462 esac ;;
2463 esac
2464 done
2465 (set) 2>&1 |
2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467 *${as_nl}ac_space=\ *)
2468 sed -n \
2469 "s/'\''/'\''\\\\'\'''\''/g;
2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471 ;; #(
2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2475 esac |
2476 sort
2478 echo
2480 $as_echo "## ----------------- ##
2481 ## Output variables. ##
2482 ## ----------------- ##"
2483 echo
2484 for ac_var in $ac_subst_vars
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 $as_echo "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2494 if test -n "$ac_subst_files"; then
2495 $as_echo "## ------------------- ##
2496 ## File substitutions. ##
2497 ## ------------------- ##"
2498 echo
2499 for ac_var in $ac_subst_files
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2510 if test -s confdefs.h; then
2511 $as_echo "## ----------- ##
2512 ## confdefs.h. ##
2513 ## ----------- ##"
2514 echo
2515 cat confdefs.h
2516 echo
2518 test "$ac_signal" != 0 &&
2519 $as_echo "$as_me: caught signal $ac_signal"
2520 $as_echo "$as_me: exit $exit_status"
2521 } >&5
2522 rm -f core *.core core.conftest.* &&
2523 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 exit $exit_status
2526 for ac_signal in 1 2 13 15; do
2527 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528 done
2529 ac_signal=0
2531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2532 rm -f -r conftest* confdefs.h
2534 $as_echo "/* confdefs.h */" > confdefs.h
2536 # Predefined preprocessor variables.
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_NAME "$PACKAGE_NAME"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544 _ACEOF
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_STRING "$PACKAGE_STRING"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556 _ACEOF
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_URL "$PACKAGE_URL"
2560 _ACEOF
2563 # Let the site file select an alternate cache file if it wants to.
2564 # Prefer an explicitly selected file to automatically selected ones.
2565 ac_site_file1=NONE
2566 ac_site_file2=NONE
2567 if test -n "$CONFIG_SITE"; then
2568 # We do not want a PATH search for config.site.
2569 case $CONFIG_SITE in #((
2570 -*) ac_site_file1=./$CONFIG_SITE;;
2571 */*) ac_site_file1=$CONFIG_SITE;;
2572 *) ac_site_file1=./$CONFIG_SITE;;
2573 esac
2574 elif test "x$prefix" != xNONE; then
2575 ac_site_file1=$prefix/share/config.site
2576 ac_site_file2=$prefix/etc/config.site
2577 else
2578 ac_site_file1=$ac_default_prefix/share/config.site
2579 ac_site_file2=$ac_default_prefix/etc/config.site
2581 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2583 test "x$ac_site_file" = xNONE && continue
2584 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2586 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2587 sed 's/^/| /' "$ac_site_file" >&5
2588 . "$ac_site_file" \
2589 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 as_fn_error $? "failed to load site script $ac_site_file
2592 See \`config.log' for more details" "$LINENO" 5; }
2594 done
2596 if test -r "$cache_file"; then
2597 # Some versions of bash will fail to source /dev/null (special files
2598 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2599 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2601 $as_echo "$as_me: loading cache $cache_file" >&6;}
2602 case $cache_file in
2603 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2604 *) . "./$cache_file";;
2605 esac
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2609 $as_echo "$as_me: creating cache $cache_file" >&6;}
2610 >$cache_file
2613 as_fn_append ac_header_list " stdlib.h"
2614 as_fn_append ac_header_list " unistd.h"
2615 as_fn_append ac_header_list " sys/param.h"
2616 # Check that the precious variables saved in the cache have kept the same
2617 # value.
2618 ac_cache_corrupted=false
2619 for ac_var in $ac_precious_vars; do
2620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621 eval ac_new_set=\$ac_env_${ac_var}_set
2622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623 eval ac_new_val=\$ac_env_${ac_var}_value
2624 case $ac_old_set,$ac_new_set in
2625 set,)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,set)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,);;
2635 if test "x$ac_old_val" != "x$ac_new_val"; then
2636 # differences in whitespace do not lead to failure.
2637 ac_old_val_w=`echo x $ac_old_val`
2638 ac_new_val_w=`echo x $ac_new_val`
2639 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642 ac_cache_corrupted=:
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646 eval $ac_var=\$ac_old_val
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2649 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2651 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2652 fi;;
2653 esac
2654 # Pass precious variables to config.status.
2655 if test "$ac_new_set" = set; then
2656 case $ac_new_val in
2657 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 *) ac_arg=$ac_var=$ac_new_val ;;
2659 esac
2660 case " $ac_configure_args " in
2661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2662 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 esac
2665 done
2666 if $ac_cache_corrupted; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2673 ## -------------------- ##
2674 ## Main body of script. ##
2675 ## -------------------- ##
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 ac_aux_dir=
2686 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2687 if test -f "$ac_dir/install-sh"; then
2688 ac_aux_dir=$ac_dir
2689 ac_install_sh="$ac_aux_dir/install-sh -c"
2690 break
2691 elif test -f "$ac_dir/install.sh"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/install.sh -c"
2694 break
2695 elif test -f "$ac_dir/shtool"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/shtool install -c"
2698 break
2700 done
2701 if test -z "$ac_aux_dir"; then
2702 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Check what host we are running on.
2716 # If a target is not suggested, we use this one.
2717 # Note that what we call a target, Autoconf calls a host.
2718 # Make sure we can run config.sub.
2719 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2720 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723 $as_echo_n "checking build system type... " >&6; }
2724 if ${ac_cv_build+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 ac_build_alias=$build_alias
2728 test "x$ac_build_alias" = x &&
2729 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2730 test "x$ac_build_alias" = x &&
2731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2732 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737 $as_echo "$ac_cv_build" >&6; }
2738 case $ac_cv_build in
2739 *-*-*) ;;
2740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2741 esac
2742 build=$ac_cv_build
2743 ac_save_IFS=$IFS; IFS='-'
2744 set x $ac_cv_build
2745 shift
2746 build_cpu=$1
2747 build_vendor=$2
2748 shift; shift
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2751 build_os=$*
2752 IFS=$ac_save_IFS
2753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757 $as_echo_n "checking host system type... " >&6; }
2758 if ${ac_cv_host+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test "x$host_alias" = x; then
2762 ac_cv_host=$ac_cv_build
2763 else
2764 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770 $as_echo "$ac_cv_host" >&6; }
2771 case $ac_cv_host in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2774 esac
2775 host=$ac_cv_host
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_host
2778 shift
2779 host_cpu=$1
2780 host_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 host_os=$*
2785 IFS=$ac_save_IFS
2786 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2790 # Default versions for the gnu tools we build
2791 default_gcc_version="4.6.4"
2792 default_binutils_version="2.23.2"
2794 # The AROS target is slightly different to the normal GNU style
2795 # format. We don't have the middle part, and we reverse the order
2796 # of the $(CPU) and $(OS) bits.
2798 # Don't strip the version of the target yet, it might be
2799 # useful on some systems.
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2802 $as_echo_n "checking for AROS style target... " >&6; }
2804 if test "$target" = "NONE" ; then
2805 target=$host_os-$host_cpu
2806 else
2807 if test "$target" = "" ; then
2808 target=$host_os-$host_cpu
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2812 $as_echo "$target" >&6; }
2814 if test "$host_os" = "mingw32" ; then
2815 PWDCMD="pwd -W"
2818 # Don't know where else to put this...
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2820 $as_echo_n "checking building AROS in... " >&6; }
2821 AROS_BUILDDIR=`${PWDCMD-pwd}`
2822 AROS_BUILDDIR_UNIX=${PWD}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2824 $as_echo "$AROS_BUILDDIR" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2827 $as_echo_n "checking AROS source in... " >&6; }
2828 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2829 SRCDIR=${srcpwd}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2831 $as_echo "$SRCDIR" >&6; }
2833 # Parse the target field into something useful.
2835 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2836 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2839 # Some debug output, to be removed again.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2841 $as_echo_n "checking for target system (debug output)... " >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2843 $as_echo "$target_os" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2845 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2847 $as_echo "$target_cpu" >&6; }
2849 aros_nominal_width=800
2850 aros_nominal_height=600
2851 aros_nominal_depth=4
2854 default_c_compilers="gcc clang cc"
2856 # Check whether --with-c-compiler was given.
2857 if test "${with_c_compiler+set}" = set; then :
2858 withval=$with_c_compiler; use_c_compiler="$withval"
2859 else
2860 use_c_compiler=""
2863 if test "$use_c_compiler" = ""; then
2864 host_c_compilers="$default_c_compilers"
2865 else
2866 host_c_compilers="$use_c_compiler"
2869 default_cxx_compilers="g++ clang++ c++"
2871 # Check whether --with-cxx-compiler was given.
2872 if test "${with_cxx_compiler+set}" = set; then :
2873 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2874 else
2875 use_cxx_compiler=""
2878 if test "$use_cxx_compiler" = ""; then
2879 host_cxx_compilers="$default_cxx_compilers"
2880 else
2881 host_cxx_compilers="$use_cxx_compiler"
2885 # The first step is to find the host binaries.
2886 # Check for a compiler.
2887 # Due to a bug in autoconf check for c++ compiler first.
2888 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2889 ac_ext=cpp
2890 ac_cpp='$CXXCPP $CPPFLAGS'
2891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2894 if test -z "$CXX"; then
2895 if test -n "$CCC"; then
2896 CXX=$CCC
2897 else
2898 if test -n "$ac_tool_prefix"; then
2899 for ac_prog in ${host_cxx_compilers}
2901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CXX+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CXX"; then
2909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CXX=$ac_cv_prog_CXX
2929 if test -n "$CXX"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2931 $as_echo "$CXX" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2938 test -n "$CXX" && break
2939 done
2941 if test -z "$CXX"; then
2942 ac_ct_CXX=$CXX
2943 for ac_prog in ${host_cxx_compilers}
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$ac_ct_CXX"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_ac_ct_CXX="$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2966 done
2967 done
2968 IFS=$as_save_IFS
2972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2973 if test -n "$ac_ct_CXX"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2975 $as_echo "$ac_ct_CXX" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$ac_ct_CXX" && break
2983 done
2985 if test "x$ac_ct_CXX" = x; then
2986 CXX="g++"
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 CXX=$ac_ct_CXX
3000 # Provide some information about the compiler.
3001 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3002 set X $ac_compile
3003 ac_compiler=$2
3004 for ac_option in --version -v -V -qversion; do
3005 { { ac_try="$ac_compiler $ac_option >&5"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011 $as_echo "$ac_try_echo"; } >&5
3012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3013 ac_status=$?
3014 if test -s conftest.err; then
3015 sed '10a\
3016 ... rest of stderr output deleted ...
3017 10q' conftest.err >conftest.er1
3018 cat conftest.er1 >&5
3020 rm -f conftest.er1 conftest.err
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }
3023 done
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3029 main ()
3033 return 0;
3035 _ACEOF
3036 ac_clean_files_save=$ac_clean_files
3037 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3038 # Try to create an executable without -o first, disregard a.out.
3039 # It will help us diagnose broken compilers, and finding out an intuition
3040 # of exeext.
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3042 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3043 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3045 # The possible output files:
3046 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3048 ac_rmfiles=
3049 for ac_file in $ac_files
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3053 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3054 esac
3055 done
3056 rm -f $ac_rmfiles
3058 if { { ac_try="$ac_link_default"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_link_default") 2>&5
3066 ac_status=$?
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }; then :
3069 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3070 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3071 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3072 # so that the user can short-circuit this test for compilers unknown to
3073 # Autoconf.
3074 for ac_file in $ac_files ''
3076 test -f "$ac_file" || continue
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3080 [ab].out )
3081 # We found the default executable, but exeext='' is most
3082 # certainly right.
3083 break;;
3084 *.* )
3085 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3086 then :; else
3087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 # We set ac_cv_exeext here because the later test for it is not
3090 # safe: cross compilers may not add the suffix if given an `-o'
3091 # argument, so we may need to know it at that point already.
3092 # Even if this section looks crufty: it has the advantage of
3093 # actually working.
3094 break;;
3096 break;;
3097 esac
3098 done
3099 test "$ac_cv_exeext" = no && ac_cv_exeext=
3101 else
3102 ac_file=''
3104 if test -z "$ac_file"; then :
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 $as_echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error 77 "C++ compiler cannot create executables
3113 See \`config.log' for more details" "$LINENO" 5; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 $as_echo "yes" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3119 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3121 $as_echo "$ac_file" >&6; }
3122 ac_exeext=$ac_cv_exeext
3124 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3125 ac_clean_files=$ac_clean_files_save
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3127 $as_echo_n "checking for suffix of executables... " >&6; }
3128 if { { ac_try="$ac_link"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_link") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; then :
3139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3141 # work properly (i.e., refer to `conftest.exe'), while it won't with
3142 # `rm'.
3143 for ac_file in conftest.exe conftest conftest.*; do
3144 test -f "$ac_file" || continue
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 break;;
3149 * ) break;;
3150 esac
3151 done
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3156 See \`config.log' for more details" "$LINENO" 5; }
3158 rm -f conftest conftest$ac_cv_exeext
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3160 $as_echo "$ac_cv_exeext" >&6; }
3162 rm -f conftest.$ac_ext
3163 EXEEXT=$ac_cv_exeext
3164 ac_exeext=$EXEEXT
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167 #include <stdio.h>
3169 main ()
3171 FILE *f = fopen ("conftest.out", "w");
3172 return ferror (f) || fclose (f) != 0;
3175 return 0;
3177 _ACEOF
3178 ac_clean_files="$ac_clean_files conftest.out"
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3182 $as_echo_n "checking whether we are cross compiling... " >&6; }
3183 if test "$cross_compiling" != yes; then
3184 { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 if { ac_try='./conftest$ac_cv_exeext'
3196 { { case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; }; then
3206 cross_compiling=no
3207 else
3208 if test "$cross_compiling" = maybe; then
3209 cross_compiling=yes
3210 else
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error $? "cannot run C++ compiled programs.
3214 If you meant to cross compile, use \`--host'.
3215 See \`config.log' for more details" "$LINENO" 5; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3220 $as_echo "$cross_compiling" >&6; }
3222 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3223 ac_clean_files=$ac_clean_files_save
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3225 $as_echo_n "checking for suffix of object files... " >&6; }
3226 if ${ac_cv_objext+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3233 main ()
3237 return 0;
3239 _ACEOF
3240 rm -f conftest.o conftest.obj
3241 if { { ac_try="$ac_compile"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compile") 2>&5
3249 ac_status=$?
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details" "$LINENO" 5; }
3269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3272 $as_echo "$ac_cv_objext" >&6; }
3273 OBJEXT=$ac_cv_objext
3274 ac_objext=$OBJEXT
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3277 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3286 #ifndef __GNUC__
3287 choke me
3288 #endif
3291 return 0;
3293 _ACEOF
3294 if ac_fn_cxx_try_compile "$LINENO"; then :
3295 ac_compiler_gnu=yes
3296 else
3297 ac_compiler_gnu=no
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3306 GXX=yes
3307 else
3308 GXX=
3310 ac_test_CXXFLAGS=${CXXFLAGS+set}
3311 ac_save_CXXFLAGS=$CXXFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3314 if ${ac_cv_prog_cxx_g+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3318 ac_cxx_werror_flag=yes
3319 ac_cv_prog_cxx_g=no
3320 CXXFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 if ac_fn_cxx_try_compile "$LINENO"; then :
3333 ac_cv_prog_cxx_g=yes
3334 else
3335 CXXFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3349 else
3350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3351 CXXFLAGS="-g"
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3356 main ()
3360 return 0;
3362 _ACEOF
3363 if ac_fn_cxx_try_compile "$LINENO"; then :
3364 ac_cv_prog_cxx_g=yes
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3374 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3375 if test "$ac_test_CXXFLAGS" = set; then
3376 CXXFLAGS=$ac_save_CXXFLAGS
3377 elif test $ac_cv_prog_cxx_g = yes; then
3378 if test "$GXX" = yes; then
3379 CXXFLAGS="-g -O2"
3380 else
3381 CXXFLAGS="-g"
3383 else
3384 if test "$GXX" = yes; then
3385 CXXFLAGS="-O2"
3386 else
3387 CXXFLAGS=
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 if test -n "$ac_tool_prefix"; then
3402 for ac_prog in ${host_c_compilers}
3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3441 test -n "$CC" && break
3442 done
3444 if test -z "$CC"; then
3445 ac_ct_CC=$CC
3446 for ac_prog in ${host_c_compilers}
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC="$ac_prog"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3469 done
3470 done
3471 IFS=$as_save_IFS
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3485 test -n "$ac_ct_CC" && break
3486 done
3488 if test "x$ac_ct_CC" = x; then
3489 CC=""
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492 yes:)
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned=yes ;;
3496 esac
3497 CC=$ac_ct_CC
3502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error $? "no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details" "$LINENO" 5; }
3507 # Provide some information about the compiler.
3508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3509 set X $ac_compile
3510 ac_compiler=$2
3511 for ac_option in --version -v -V -qversion; do
3512 { { ac_try="$ac_compiler $ac_option >&5"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3520 ac_status=$?
3521 if test -s conftest.err; then
3522 sed '10a\
3523 ... rest of stderr output deleted ...
3524 10q' conftest.err >conftest.er1
3525 cat conftest.er1 >&5
3527 rm -f conftest.er1 conftest.err
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3530 done
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if ${ac_cv_c_compiler_gnu+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3543 #ifndef __GNUC__
3544 choke me
3545 #endif
3548 return 0;
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_compiler_gnu=yes
3553 else
3554 ac_compiler_gnu=no
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562 if test $ac_compiler_gnu = yes; then
3563 GCC=yes
3564 else
3565 GCC=
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3571 if ${ac_cv_prog_cc_g+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591 else
3592 CFLAGS=""
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3597 main ()
3601 return 0;
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3606 else
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3613 main ()
3617 return 0;
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_g=yes
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631 $as_echo "$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3640 else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649 if ${ac_cv_prog_cc_c89+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 ac_cv_prog_cc_c89=no
3653 ac_save_CC=$CC
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 struct stat;
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3663 char **p;
3664 int i;
3666 return p[i];
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3689 #define FOO(x) 'x'
3690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692 int test (int i, double x);
3693 struct s1 {int (*f) (int a);};
3694 struct s2 {int (*f) (double a);};
3695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696 int argc;
3697 char **argv;
3699 main ()
3701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 return 0;
3705 _ACEOF
3706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 done
3716 rm -f conftest.$ac_ext
3717 CC=$ac_save_CC
3720 # AC_CACHE_VAL
3721 case "x$ac_cv_prog_cc_c89" in
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 esac
3733 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 aros_host_def_cc="$CC"
3744 case $ac_cv_prog_cc_stdc in #(
3745 no) :
3746 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3747 *) :
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3750 if ${ac_cv_prog_cc_c99+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_cv_prog_cc_c99=no
3754 ac_save_CC=$CC
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdbool.h>
3759 #include <stdlib.h>
3760 #include <wchar.h>
3761 #include <stdio.h>
3763 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3764 #define debug(...) fprintf (stderr, __VA_ARGS__)
3765 #define showlist(...) puts (#__VA_ARGS__)
3766 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3767 static void
3768 test_varargs_macros (void)
3770 int x = 1234;
3771 int y = 5678;
3772 debug ("Flag");
3773 debug ("X = %d\n", x);
3774 showlist (The first, second, and third items.);
3775 report (x>y, "x is %d but y is %d", x, y);
3778 // Check long long types.
3779 #define BIG64 18446744073709551615ull
3780 #define BIG32 4294967295ul
3781 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3782 #if !BIG_OK
3783 your preprocessor is broken;
3784 #endif
3785 #if BIG_OK
3786 #else
3787 your preprocessor is broken;
3788 #endif
3789 static long long int bignum = -9223372036854775807LL;
3790 static unsigned long long int ubignum = BIG64;
3792 struct incomplete_array
3794 int datasize;
3795 double data[];
3798 struct named_init {
3799 int number;
3800 const wchar_t *name;
3801 double average;
3804 typedef const char *ccp;
3806 static inline int
3807 test_restrict (ccp restrict text)
3809 // See if C++-style comments work.
3810 // Iterate through items via the restricted pointer.
3811 // Also check for declarations in for loops.
3812 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3813 continue;
3814 return 0;
3817 // Check varargs and va_copy.
3818 static void
3819 test_varargs (const char *format, ...)
3821 va_list args;
3822 va_start (args, format);
3823 va_list args_copy;
3824 va_copy (args_copy, args);
3826 const char *str;
3827 int number;
3828 float fnumber;
3830 while (*format)
3832 switch (*format++)
3834 case 's': // string
3835 str = va_arg (args_copy, const char *);
3836 break;
3837 case 'd': // int
3838 number = va_arg (args_copy, int);
3839 break;
3840 case 'f': // float
3841 fnumber = va_arg (args_copy, double);
3842 break;
3843 default:
3844 break;
3847 va_end (args_copy);
3848 va_end (args);
3852 main ()
3855 // Check bool.
3856 _Bool success = false;
3858 // Check restrict.
3859 if (test_restrict ("String literal") == 0)
3860 success = true;
3861 char *restrict newvar = "Another string";
3863 // Check varargs.
3864 test_varargs ("s, d' f .", "string", 65, 34.234);
3865 test_varargs_macros ();
3867 // Check flexible array members.
3868 struct incomplete_array *ia =
3869 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3870 ia->datasize = 10;
3871 for (int i = 0; i < ia->datasize; ++i)
3872 ia->data[i] = i * 1.234;
3874 // Check named initializers.
3875 struct named_init ni = {
3876 .number = 34,
3877 .name = L"Test wide string",
3878 .average = 543.34343,
3881 ni.number = 58;
3883 int dynamic_array[ni.number];
3884 dynamic_array[ni.number - 1] = 543;
3886 // work around unused variable warnings
3887 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3888 || dynamic_array[ni.number - 1] != 543);
3891 return 0;
3893 _ACEOF
3894 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c99=$ac_arg
3900 rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c99" != "xno" && break
3902 done
3903 rm -f conftest.$ac_ext
3904 CC=$ac_save_CC
3907 # AC_CACHE_VAL
3908 case "x$ac_cv_prog_cc_c99" in
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3912 xno)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3916 CC="$CC $ac_cv_prog_cc_c99"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3918 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3919 esac
3920 if test "x$ac_cv_prog_cc_c99" != xno; then :
3921 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 ac_cv_prog_cc_c89=no
3929 ac_save_CC=$CC
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdarg.h>
3933 #include <stdio.h>
3934 struct stat;
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3942 return p[i];
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3975 main ()
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3979 return 0;
3981 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4011 else
4012 ac_cv_prog_cc_stdc=no
4017 esac
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4019 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4020 if ${ac_cv_prog_cc_stdc+:} false; then :
4021 $as_echo_n "(cached) " >&6
4024 case $ac_cv_prog_cc_stdc in #(
4025 no) :
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027 $as_echo "unsupported" >&6; } ;; #(
4028 '') :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;; #(
4031 *) :
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4033 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4034 esac
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4043 # On Suns, sometimes $CPP names a directory.
4044 if test -n "$CPP" && test -d "$CPP"; then
4045 CPP=
4047 if test -z "$CPP"; then
4048 if ${ac_cv_prog_CPP+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 # Double quotes because CPP needs to be expanded
4052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #ifdef __STDC__
4066 # include <limits.h>
4067 #else
4068 # include <assert.h>
4069 #endif
4070 Syntax error
4071 _ACEOF
4072 if ac_fn_c_try_cpp "$LINENO"; then :
4074 else
4075 # Broken: fails on valid input.
4076 continue
4078 rm -f conftest.err conftest.i conftest.$ac_ext
4080 # OK, works on sane cases. Now check whether nonexistent headers
4081 # can be detected and how.
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4087 # Broken: success on invalid input.
4088 continue
4089 else
4090 # Passes both tests.
4091 ac_preproc_ok=:
4092 break
4094 rm -f conftest.err conftest.i conftest.$ac_ext
4096 done
4097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098 rm -f conftest.i conftest.err conftest.$ac_ext
4099 if $ac_preproc_ok; then :
4100 break
4103 done
4104 ac_cv_prog_CPP=$CPP
4107 CPP=$ac_cv_prog_CPP
4108 else
4109 ac_cv_prog_CPP=$CPP
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4112 $as_echo "$CPP" >&6; }
4113 ac_preproc_ok=false
4114 for ac_c_preproc_warn_flag in '' yes
4116 # Use a header file that comes with gcc, so configuring glibc
4117 # with a fresh cross-compiler works.
4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 # <limits.h> exists even on freestanding compilers.
4120 # On the NeXT, cc -E runs the code through the compiler's parser,
4121 # not just through cpp. "Syntax error" is here to catch this case.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #ifdef __STDC__
4125 # include <limits.h>
4126 #else
4127 # include <assert.h>
4128 #endif
4129 Syntax error
4130 _ACEOF
4131 if ac_fn_c_try_cpp "$LINENO"; then :
4133 else
4134 # Broken: fails on valid input.
4135 continue
4137 rm -f conftest.err conftest.i conftest.$ac_ext
4139 # OK, works on sane cases. Now check whether nonexistent headers
4140 # can be detected and how.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 # Passes both tests.
4150 ac_preproc_ok=:
4151 break
4153 rm -f conftest.err conftest.i conftest.$ac_ext
4155 done
4156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4157 rm -f conftest.i conftest.err conftest.$ac_ext
4158 if $ac_preproc_ok; then :
4160 else
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4164 See \`config.log' for more details" "$LINENO" 5; }
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 # Check for a compatible awk
4175 for ac_prog in gawk nawk
4177 # Extract the first word of "$ac_prog", so it can be a program name with args.
4178 set dummy $ac_prog; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_AWK+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$AWK"; then
4185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_AWK="$ac_prog"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 AWK=$ac_cv_prog_AWK
4205 if test -n "$AWK"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4207 $as_echo "$AWK" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4214 test -n "$AWK" && break
4215 done
4217 req_avail=yes
4218 if test "$AWK" = ""; then
4219 req_avail=no
4221 if test "$AWK" = "no"; then
4222 req_avail=no
4224 if test "$req_avail" = "no"; then
4225 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4227 # Extract the first word of "mmake", so it can be a program name with args.
4228 set dummy mmake; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_MMAKE+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$MMAKE"; then
4235 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_MMAKE="mmake "
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4250 IFS=$as_save_IFS
4254 MMAKE=$ac_cv_prog_MMAKE
4255 if test -n "$MMAKE"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4257 $as_echo "$MMAKE" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4265 # Perform some default variable assignments. Note all of these will be
4266 # Regenerated from the script, so there is no need to cache them.
4268 aros_build_host=$host
4269 aros_host_cpp="$CPP"
4270 aros_host_cc="$CC"
4271 aros_host_cxx="$CXX"
4272 if test "$GCC" = "yes"; then
4273 aros_gcc_ld=`$CC -print-prog-name=ld`
4274 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4275 set dummy `basename $aros_gcc_ld`; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_path_aros_host_ld+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 case $aros_host_ld in
4282 [\\/]* | ?:[\\/]*)
4283 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in `dirname $aros_gcc_ld`
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4302 esac
4304 aros_host_ld=$ac_cv_path_aros_host_ld
4305 if test -n "$aros_host_ld"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4307 $as_echo "$aros_host_ld" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test "$aros_host_ld" = ""; then
4316 # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_path_aros_host_ld+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 case $aros_host_ld in
4324 [\\/]* | ?:[\\/]*)
4325 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4344 esac
4346 aros_host_ld=$ac_cv_path_aros_host_ld
4347 if test -n "$aros_host_ld"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4349 $as_echo "$aros_host_ld" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4357 req_avail=yes
4358 if test "$aros_host_ld" = ""; then
4359 req_avail=no
4361 if test "$aros_host_ld" = "no"; then
4362 req_avail=no
4364 if test "$req_avail" = "no"; then
4365 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4367 aros_host_make="make"
4368 aros_host_cflags="$CFLAGS"
4369 aros_host_cxxflags="$CXXFLAGS"
4370 aros_host_cppflags="$CPPFLAGS"
4371 aros_host_ldflags="$LDFLAGS"
4372 aros_host_debug="-g -O0"
4373 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4374 aros_host_mkargs="--no-print-directory"
4375 aros_host_exe_suffix="$EXEEXT"
4376 aros_host_lib_suffix=""
4378 # Ignore all compliance, AROS ROMs = 0
4379 # KickStart v1.0 = 30
4380 # KickStart v1.3 = 34
4381 # KickStart v2.0 = 37
4382 # KickStart v3.0 = 39
4383 # KickStart v3.1 = 40
4384 # AmigaOS v3.5 = 44
4385 aros_amigaos_compliance=0
4387 for ac_prog in aclocal aclocal19 aclocal-1.9
4389 # Extract the first word of "$ac_prog", so it can be a program name with args.
4390 set dummy $ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -n "$aros_host_aclocal"; then
4397 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_aros_host_aclocal="$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4412 IFS=$as_save_IFS
4416 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4417 if test -n "$aros_host_aclocal"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4419 $as_echo "$aros_host_aclocal" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$aros_host_aclocal" && break
4427 done
4429 for ac_prog in autoconf autoconf259 autoconf253
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$aros_host_autoconf"; then
4439 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_aros_host_autoconf="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4452 done
4453 done
4454 IFS=$as_save_IFS
4458 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4459 if test -n "$aros_host_autoconf"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4461 $as_echo "$aros_host_autoconf" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$aros_host_autoconf" && break
4469 done
4471 for ac_prog in autoheader autoheader259 autoheader253
4473 # Extract the first word of "$ac_prog", so it can be a program name with args.
4474 set dummy $ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$aros_host_autoheader"; then
4481 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_aros_host_autoheader="$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4494 done
4495 done
4496 IFS=$as_save_IFS
4500 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4501 if test -n "$aros_host_autoheader"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4503 $as_echo "$aros_host_autoheader" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4510 test -n "$aros_host_autoheader" && break
4511 done
4513 for ac_prog in automake automake19 automake-1.9
4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if ${ac_cv_prog_aros_host_automake+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$aros_host_automake"; then
4523 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_aros_host_automake="$ac_prog"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 aros_host_automake=$ac_cv_prog_aros_host_automake
4543 if test -n "$aros_host_automake"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4545 $as_echo "$aros_host_automake" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4552 test -n "$aros_host_automake" && break
4553 done
4556 req_avail=yes
4557 if test "$aros_host_aclocal" = ""; then
4558 req_avail=no
4560 if test "$aros_host_aclocal" = "no"; then
4561 req_avail=no
4563 if test "$req_avail" = "no"; then
4564 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4566 req_avail=yes
4567 if test "$aros_host_automake" = ""; then
4568 req_avail=no
4570 if test "$aros_host_automake" = "no"; then
4571 req_avail=no
4573 if test "$req_avail" = "no"; then
4574 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4577 case "$aros_host_cc" in
4578 *clang*)
4579 aros_host_cc_pipe=""
4581 *gcc*)
4582 aros_host_cc_pipe="-pipe"
4584 icc)
4585 aros_host_cc_pipe=""
4588 aros_host_cc_pipe=""
4590 esac
4592 aros_kernel_cc_includes=""
4593 aros_target_cc_includes=""
4594 host_cc_elf=yes
4596 # ----------------------------------------------------------------------------------------
4597 # Host-specific defaults
4599 # This is the main host configuration section. It is where the host
4600 # can change the values of any variables it needs to change. We do
4601 # not look at anything that compiles to the target yet, we'll get
4602 # to that later.
4604 case "$host_os" in
4605 aros*)
4606 aros_host_arch="aros"
4607 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4608 case "$host_cpu" in
4609 *i?86*)
4610 aros_host_cpu="i386"
4612 *x86_64*)
4613 aros_host_cpu="x86_64"
4615 *powerpc*)
4616 aros_host_cpu="ppc"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4620 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4621 aros_host_cpu="$host_cpu"
4623 esac
4626 linux*)
4627 aros_host_arch="linux"
4628 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4629 android_build_os="linux-x86"
4630 android_tool="android"
4631 default_android_sdk="/opt/android-sdk-linux_x86"
4632 case "$host_cpu" in
4633 *i?86*)
4634 aros_host_cpu="i386"
4636 *x86_64*)
4637 aros_host_cpu="x86_64"
4639 *m68k*)
4640 aros_host_cpu="m68k"
4642 *powerpc*)
4643 aros_host_cpu="ppc"
4645 *arm*)
4646 aros_host_cpu="arm"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4650 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4651 aros_host_cpu="$host_cpu"
4653 esac
4656 freebsd*)
4657 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4658 aros_host_make="gmake"
4659 aros_host_arch="freebsd"
4660 aros_host_cpu="i386"
4662 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4664 case $host_os in
4665 freebsd[234]*)
4666 aros_object_format="elf_i386"
4670 aros_object_format="elf_i386_fbsd"
4672 esac
4676 darwin*)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4678 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4679 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 test "$cross_compiling" = yes &&
4683 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4684 if test -r "/usr/include/stddef.h"; then
4685 ac_cv_file__usr_include_stddef_h=yes
4686 else
4687 ac_cv_file__usr_include_stddef_h=no
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4691 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4692 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4694 else
4695 as_fn_error $? "XCode incorrectly configured!
4696 please run 'xcode-select --install' before
4697 re-running configure" "$LINENO" 5
4701 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4702 aros_host_arch="darwin"
4703 host_cc_elf=no
4704 if [ -z ${SED+x} ]; then SED="gsed"; fi
4705 android_build_os="darwin-x86"
4706 android_tool="android"
4707 default_android_sdk="/android-sdk-mac_x86"
4708 case "$host_cpu" in
4709 *i?86*)
4710 aros_host_cpu="i386"
4712 *x86_64*)
4713 aros_host_cpu="x86_64"
4715 *powerpc*)
4716 aros_host_cpu="ppc"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4720 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4721 aros_host_cpu="$host_cpu"
4723 esac
4725 aros_host_ldflags="$aros_host_ldflags -liconv"
4729 dragonfly*)
4730 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4731 aros_host_make="gmake"
4732 aros_host_arch="dragonfly"
4733 case $host_cpu in
4734 *i?86*)
4735 aros_host_cpu="i386"
4737 *amd64*)
4738 aros_host_cpu="x86_64"
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4742 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4743 aros_host_cpu="$host_cpu"
4745 esac
4748 netbsd*)
4749 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4750 aros_host_make="gmake"
4751 aros_host_arch="netbsd"
4752 case "$host_cpu" in
4753 *i?86*)
4754 aros_host_cpu="i386"
4756 *m68k*)
4757 aros_host_cpu="m68k"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4761 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4762 aros_host_cpu="$host_cpu"
4764 esac
4765 aros_host_lib_suffix=".0.0"
4768 openbsd*)
4769 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4770 aros_host_make="gmake"
4771 aros_host_arch="openbsd"
4772 case "$host_cpu" in
4773 *i?86*)
4774 aros_host_cpu="i386"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4778 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4779 aros_host_cpu="$host_cpu"
4781 esac
4784 solaris*)
4785 aros_host_arch="solaris"
4786 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4787 case "$host_cpu" in
4788 *i?86*)
4789 aros_host_cpu="i386"
4791 *sparc*)
4792 aros_host_cpu="sparc"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4796 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4797 aros_host_cpu="$host_cpu"
4799 esac
4802 morphos*)
4803 aros_host_arch="morphos"
4804 aros_host_cpu="ppc"
4805 host_cc_elf=no
4808 amiga*)
4809 aros_host_arch="amiga"
4810 host_cc_elf=no
4811 SORT="/gg/bin/sort"
4812 TEST="/gg/bin/test"
4813 UNIQ="/gg/bin/uniq"
4814 FOR="for"
4815 TOUCH="/gg/bin/touch"
4816 case "$host_cpu" in
4817 *m68k*)
4818 aros_host_cpu="m68k"
4820 *powerpc*)
4821 aros_host_cpu="ppc"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4825 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4826 aros_host_cpu="$host_cpu"
4828 esac
4831 cygwin*)
4832 aros_host_arch="cygwin"
4833 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4834 host_cc_elf=no
4835 android_build_os="windows"
4836 android_tool="android.bat"
4837 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4839 case "$host_cpu" in
4840 *i?86*)
4841 aros_host_cpu="i386"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4845 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4846 aros_host_cpu="$host_cpu"
4848 esac
4851 mingw32*)
4852 aros_host_arch="mingw32"
4853 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4854 host_cc_elf=no
4855 android_build_os="windows"
4856 android_tool="android.bat"
4857 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4859 libpng_libextra="-lws2_32"
4861 case "$host_cpu" in
4862 *i?86*)
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4865 $as_echo_n "checking for Windows native gcc target... " >&6; }
4866 host_cpu=`gcc -dumpmachine`
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4868 $as_echo "$host_cpu" >&6; }
4871 esac
4873 case "$host_cpu" in
4874 *i?86*)
4875 aros_host_cpu="i386"
4878 mingw32*)
4879 aros_host_cpu="i386"
4882 *x86_64*)
4883 aros_host_cpu="x86_64"
4884 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4889 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4890 aros_host_cpu="$host_cpu"
4892 esac
4895 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4897 esac
4899 # Extract the first word of "ar", so it can be a program name with args.
4900 set dummy ar; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_aros_host_ar+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$aros_host_ar"; then
4907 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_aros_host_ar="ar cr"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 aros_host_ar=$ac_cv_prog_aros_host_ar
4927 if test -n "$aros_host_ar"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4929 $as_echo "$aros_host_ar" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 req_avail=yes
4937 if test "$aros_host_ar" = ""; then
4938 req_avail=no
4940 if test "$aros_host_ar" = "no"; then
4941 req_avail=no
4943 if test "$req_avail" = "no"; then
4944 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4946 # Extract the first word of "ranlib", so it can be a program name with args.
4947 set dummy ranlib; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$aros_host_ranlib"; then
4954 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_aros_host_ranlib="ranlib "
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4974 if test -n "$aros_host_ranlib"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4976 $as_echo "$aros_host_ranlib" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 req_avail=yes
4984 if test "$aros_host_ranlib" = ""; then
4985 req_avail=no
4987 if test "$aros_host_ranlib" = "no"; then
4988 req_avail=no
4990 if test "$req_avail" = "no"; then
4991 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4993 # Extract the first word of "strip", so it can be a program name with args.
4994 set dummy strip; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_aros_host_strip+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$aros_host_strip"; then
5001 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_aros_host_strip="strip "
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5014 done
5015 done
5016 IFS=$as_save_IFS
5020 aros_host_strip=$ac_cv_prog_aros_host_strip
5021 if test -n "$aros_host_strip"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5023 $as_echo "$aros_host_strip" >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 req_avail=yes
5031 if test "$aros_host_strip" = ""; then
5032 req_avail=no
5034 if test "$aros_host_strip" = "no"; then
5035 req_avail=no
5037 if test "$req_avail" = "no"; then
5038 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "rm", so it can be a program name with args.
5042 set dummy rm; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_RM+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$RM"; then
5049 ac_cv_prog_RM="$RM" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_RM="rm -rf"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 RM=$ac_cv_prog_RM
5069 if test -n "$RM"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5071 $as_echo "$RM" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 req_avail=yes
5079 if test "$RM" = ""; then
5080 req_avail=no
5082 if test "$RM" = "no"; then
5083 req_avail=no
5085 if test "$req_avail" = "no"; then
5086 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5088 # Extract the first word of "cp", so it can be a program name with args.
5089 set dummy cp; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_CP+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$CP"; then
5096 ac_cv_prog_CP="$CP" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_CP="cp "
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5115 CP=$ac_cv_prog_CP
5116 if test -n "$CP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5118 $as_echo "$CP" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5125 req_avail=yes
5126 if test "$CP" = ""; then
5127 req_avail=no
5129 if test "$CP" = "no"; then
5130 req_avail=no
5132 if test "$req_avail" = "no"; then
5133 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "mv", so it can be a program name with args.
5136 set dummy mv; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_MV+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$MV"; then
5143 ac_cv_prog_MV="$MV" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_MV="mv "
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 MV=$ac_cv_prog_MV
5163 if test -n "$MV"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5165 $as_echo "$MV" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 req_avail=yes
5173 if test "$MV" = ""; then
5174 req_avail=no
5176 if test "$MV" = "no"; then
5177 req_avail=no
5179 if test "$req_avail" = "no"; then
5180 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5182 # Extract the first word of "echo", so it can be a program name with args.
5183 set dummy echo; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_ECHO+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$ECHO"; then
5190 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ECHO="echo "
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5205 IFS=$as_save_IFS
5209 ECHO=$ac_cv_prog_ECHO
5210 if test -n "$ECHO"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5212 $as_echo "$ECHO" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5219 req_avail=yes
5220 if test "$ECHO" = ""; then
5221 req_avail=no
5223 if test "$ECHO" = "no"; then
5224 req_avail=no
5226 if test "$req_avail" = "no"; then
5227 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5229 # Extract the first word of "mkdir", so it can be a program name with args.
5230 set dummy mkdir; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_MKDIR+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$MKDIR"; then
5237 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_MKDIR="mkdir -p"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 MKDIR=$ac_cv_prog_MKDIR
5257 if test -n "$MKDIR"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5259 $as_echo "$MKDIR" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5266 req_avail=yes
5267 if test "$MKDIR" = ""; then
5268 req_avail=no
5270 if test "$MKDIR" = "no"; then
5271 req_avail=no
5273 if test "$req_avail" = "no"; then
5274 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5276 # Extract the first word of "touch", so it can be a program name with args.
5277 set dummy touch; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_TOUCH+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$TOUCH"; then
5284 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_TOUCH="touch "
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 TOUCH=$ac_cv_prog_TOUCH
5304 if test -n "$TOUCH"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5306 $as_echo "$TOUCH" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5313 req_avail=yes
5314 if test "$TOUCH" = ""; then
5315 req_avail=no
5317 if test "$TOUCH" = "no"; then
5318 req_avail=no
5320 if test "$req_avail" = "no"; then
5321 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5323 # Extract the first word of "sort", so it can be a program name with args.
5324 set dummy sort; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_SORT+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$SORT"; then
5331 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_SORT="sort "
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 SORT=$ac_cv_prog_SORT
5351 if test -n "$SORT"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5353 $as_echo "$SORT" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5360 req_avail=yes
5361 if test "$SORT" = ""; then
5362 req_avail=no
5364 if test "$SORT" = "no"; then
5365 req_avail=no
5367 if test "$req_avail" = "no"; then
5368 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5370 # Extract the first word of "uniq", so it can be a program name with args.
5371 set dummy uniq; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_UNIQ+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if test -n "$UNIQ"; then
5378 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_UNIQ="uniq "
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5391 done
5392 done
5393 IFS=$as_save_IFS
5397 UNIQ=$ac_cv_prog_UNIQ
5398 if test -n "$UNIQ"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5400 $as_echo "$UNIQ" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 req_avail=yes
5408 if test "$UNIQ" = ""; then
5409 req_avail=no
5411 if test "$UNIQ" = "no"; then
5412 req_avail=no
5414 if test "$req_avail" = "no"; then
5415 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5417 # Extract the first word of "true", so it can be a program name with args.
5418 set dummy true; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_NOP+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$NOP"; then
5425 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_NOP="true "
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5438 done
5439 done
5440 IFS=$as_save_IFS
5444 NOP=$ac_cv_prog_NOP
5445 if test -n "$NOP"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5447 $as_echo "$NOP" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5454 req_avail=yes
5455 if test "$NOP" = ""; then
5456 req_avail=no
5458 if test "$NOP" = "no"; then
5459 req_avail=no
5461 if test "$req_avail" = "no"; then
5462 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5464 # Extract the first word of "cat", so it can be a program name with args.
5465 set dummy cat; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_CAT+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$CAT"; then
5472 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_CAT="cat "
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5485 done
5486 done
5487 IFS=$as_save_IFS
5491 CAT=$ac_cv_prog_CAT
5492 if test -n "$CAT"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5494 $as_echo "$CAT" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5501 req_avail=yes
5502 if test "$CAT" = ""; then
5503 req_avail=no
5505 if test "$CAT" = "no"; then
5506 req_avail=no
5508 if test "$req_avail" = "no"; then
5509 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5511 # Extract the first word of "bison", so it can be a program name with args.
5512 set dummy bison; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_BISON+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$BISON"; then
5519 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_BISON="bison "
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5532 done
5533 done
5534 IFS=$as_save_IFS
5538 BISON=$ac_cv_prog_BISON
5539 if test -n "$BISON"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5541 $as_echo "$BISON" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5548 req_avail=yes
5549 if test "$BISON" = ""; then
5550 req_avail=no
5552 if test "$BISON" = "no"; then
5553 req_avail=no
5555 if test "$req_avail" = "no"; then
5556 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5558 # Extract the first word of "flex", so it can be a program name with args.
5559 set dummy flex; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_FLEX+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$FLEX"; then
5566 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_FLEX="flex "
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 FLEX=$ac_cv_prog_FLEX
5586 if test -n "$FLEX"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5588 $as_echo "$FLEX" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 req_avail=yes
5596 if test "$FLEX" = ""; then
5597 req_avail=no
5599 if test "$FLEX" = "no"; then
5600 req_avail=no
5602 if test "$req_avail" = "no"; then
5603 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5605 # Extract the first word of "pngtopnm", so it can be a program name with args.
5606 set dummy pngtopnm; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$PNGTOPNM"; then
5613 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_PNGTOPNM="pngtopnm "
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5628 IFS=$as_save_IFS
5632 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5633 if test -n "$PNGTOPNM"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5635 $as_echo "$PNGTOPNM" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 req_avail=yes
5643 if test "$PNGTOPNM" = ""; then
5644 req_avail=no
5646 if test "$PNGTOPNM" = "no"; then
5647 req_avail=no
5649 if test "$req_avail" = "no"; then
5650 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5652 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5653 set dummy ppmtoilbm; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$PPMTOILBM"; then
5660 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5675 IFS=$as_save_IFS
5679 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5680 if test -n "$PPMTOILBM"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5682 $as_echo "$PPMTOILBM" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5689 req_avail=yes
5690 if test "$PPMTOILBM" = ""; then
5691 req_avail=no
5693 if test "$PPMTOILBM" = "no"; then
5694 req_avail=no
5696 if test "$req_avail" = "no"; then
5697 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5699 # Extract the first word of "sed", so it can be a program name with args.
5700 set dummy sed; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_SED+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$SED"; then
5707 ac_cv_prog_SED="$SED" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_SED="sed "
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5720 done
5721 done
5722 IFS=$as_save_IFS
5726 SED=$ac_cv_prog_SED
5727 if test -n "$SED"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5729 $as_echo "$SED" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5736 req_avail=yes
5737 if test "$SED" = ""; then
5738 req_avail=no
5740 if test "$SED" = "no"; then
5741 req_avail=no
5743 if test "$req_avail" = "no"; then
5744 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5746 # Extract the first word of "chmod", so it can be a program name with args.
5747 set dummy chmod; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_CHMOD+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$CHMOD"; then
5754 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_CHMOD="chmod "
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5769 IFS=$as_save_IFS
5773 CHMOD=$ac_cv_prog_CHMOD
5774 if test -n "$CHMOD"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5776 $as_echo "$CHMOD" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5783 req_avail=yes
5784 if test "$CHMOD" = ""; then
5785 req_avail=no
5787 if test "$CHMOD" = "no"; then
5788 req_avail=no
5790 if test "$req_avail" = "no"; then
5791 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5793 # Extract the first word of "patch", so it can be a program name with args.
5794 set dummy patch; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_PATCH+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$PATCH"; then
5801 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_PATCH="patch "
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5820 PATCH=$ac_cv_prog_PATCH
5821 if test -n "$PATCH"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5823 $as_echo "$PATCH" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5830 req_avail=yes
5831 if test "$PATCH" = ""; then
5832 req_avail=no
5834 if test "$PATCH" = "no"; then
5835 req_avail=no
5837 if test "$req_avail" = "no"; then
5838 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5847 if test -n "$PYTHON"; then
5848 # If the user set $PYTHON, use it and don't search something else.
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5850 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5851 prog="import sys
5852 # split strings by '.' and convert to numeric. Append some zeros
5853 # because we need at least 4 digits for the hex conversion.
5854 # map returns an iterator in Python 3.0 and a list in 2.x
5855 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5856 minverhex = 0
5857 # xrange is not present in Python 3.0 and range returns an iterator
5858 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5859 sys.exit(sys.hexversion < minverhex)"
5860 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5861 ($PYTHON -c "$prog") >&5 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then :
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5872 am_display_PYTHON=$PYTHON
5873 else
5874 # Otherwise, try each interpreter until we find one that satisfies
5875 # VERSION.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5877 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5878 if ${am_cv_pathless_PYTHON+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5882 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
5883 test "$am_cv_pathless_PYTHON" = none && break
5884 prog="import sys
5885 # split strings by '.' and convert to numeric. Append some zeros
5886 # because we need at least 4 digits for the hex conversion.
5887 # map returns an iterator in Python 3.0 and a list in 2.x
5888 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5889 minverhex = 0
5890 # xrange is not present in Python 3.0 and range returns an iterator
5891 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5892 sys.exit(sys.hexversion < minverhex)"
5893 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5894 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; then :
5898 break
5900 done
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5903 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5904 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5905 if test "$am_cv_pathless_PYTHON" = none; then
5906 PYTHON=:
5907 else
5908 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5909 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_path_PYTHON+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 case $PYTHON in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5931 done
5932 done
5933 IFS=$as_save_IFS
5936 esac
5938 PYTHON=$ac_cv_path_PYTHON
5939 if test -n "$PYTHON"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5941 $as_echo "$PYTHON" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5949 am_display_PYTHON=$am_cv_pathless_PYTHON
5953 if test "$PYTHON" = :; then
5954 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5955 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5959 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5960 if ${am_cv_python_version+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5966 $as_echo "$am_cv_python_version" >&6; }
5967 PYTHON_VERSION=$am_cv_python_version
5971 PYTHON_PREFIX='${prefix}'
5973 PYTHON_EXEC_PREFIX='${exec_prefix}'
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5978 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5979 if ${am_cv_python_platform+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5985 $as_echo "$am_cv_python_platform" >&6; }
5986 PYTHON_PLATFORM=$am_cv_python_platform
5989 # Just factor out some code duplication.
5990 am_python_setup_sysconfig="\
5991 import sys
5992 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5993 # with python 3.x. See automake bug#10227.
5994 try:
5995 import sysconfig
5996 except ImportError:
5997 can_use_sysconfig = 0
5998 else:
5999 can_use_sysconfig = 1
6000 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6001 # <https://github.com/pypa/virtualenv/issues/118>
6002 try:
6003 from platform import python_implementation
6004 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6005 can_use_sysconfig = 0
6006 except ImportError:
6007 pass"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6011 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6012 if ${am_cv_python_pythondir+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test "x$prefix" = xNONE
6016 then
6017 am_py_prefix=$ac_default_prefix
6018 else
6019 am_py_prefix=$prefix
6021 am_cv_python_pythondir=`$PYTHON -c "
6022 $am_python_setup_sysconfig
6023 if can_use_sysconfig:
6024 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6025 else:
6026 from distutils import sysconfig
6027 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6028 sys.stdout.write(sitedir)"`
6029 case $am_cv_python_pythondir in
6030 $am_py_prefix*)
6031 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6032 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6035 case $am_py_prefix in
6036 /usr|/System*) ;;
6038 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6040 esac
6042 esac
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6046 $as_echo "$am_cv_python_pythondir" >&6; }
6047 pythondir=$am_cv_python_pythondir
6051 pkgpythondir=\${pythondir}/$PACKAGE
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6055 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6056 if ${am_cv_python_pyexecdir+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test "x$exec_prefix" = xNONE
6060 then
6061 am_py_exec_prefix=$am_py_prefix
6062 else
6063 am_py_exec_prefix=$exec_prefix
6065 am_cv_python_pyexecdir=`$PYTHON -c "
6066 $am_python_setup_sysconfig
6067 if can_use_sysconfig:
6068 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6069 else:
6070 from distutils import sysconfig
6071 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6072 sys.stdout.write(sitedir)"`
6073 case $am_cv_python_pyexecdir in
6074 $am_py_exec_prefix*)
6075 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6076 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6079 case $am_py_exec_prefix in
6080 /usr|/System*) ;;
6082 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6084 esac
6086 esac
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6090 $as_echo "$am_cv_python_pyexecdir" >&6; }
6091 pyexecdir=$am_cv_python_pyexecdir
6095 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6103 # Check whether --enable-libpng-config was given.
6104 if test "${enable_libpng_config+set}" = set; then :
6105 enableval=$enable_libpng_config;
6108 if test "$enable_libpng_config" != "no"; then
6109 # Extract the first word of "libpng-config", so it can be a program name with args.
6110 set dummy libpng-config; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$arosconfig_use_libpngconfig"; then
6117 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6132 IFS=$as_save_IFS
6134 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6137 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6138 if test -n "$arosconfig_use_libpngconfig"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6140 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6148 if test "$arosconfig_use_libpngconfig" = "yes"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6150 $as_echo_n "checking libpng-config library... " >&6; }
6151 libpng_incdir="`libpng-config --cflags`"
6152 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6153 libpng="`libpng-config --libs`"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6155 $as_echo "$libpng" >&6; }
6156 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6159 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6160 if ${ac_cv_lib_png_png_read_png+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lpng $LIBS"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 char png_read_png ();
6176 main ()
6178 return png_read_png ();
6180 return 0;
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"; then :
6184 ac_cv_lib_png_png_read_png=yes
6185 else
6186 ac_cv_lib_png_png_read_png=no
6188 rm -f core conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6190 LIBS=$ac_check_lib_save_LIBS
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6193 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6194 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6195 libpng="-lpng"
6196 else
6197 libpng="no"
6200 if test "$libpng_libextra" != ""; then
6201 if test "$libpng" != "no"; then
6202 libpng_libextra="$libpng_libextra $libpng"
6206 req_avail=yes
6207 if test "$libpng" = ""; then
6208 req_avail=no
6210 if test "$libpng" = "no"; then
6211 req_avail=no
6213 if test "$req_avail" = "no"; then
6214 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6220 FOR=for
6222 IF=if
6224 TEST=test
6226 CMP=cmp
6230 # Check for some includes for the X11 HIDD and the kernel
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6234 if ${ac_cv_path_GREP+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 if test -z "$GREP"; then
6238 ac_path_GREP_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in grep ggrep; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6248 as_fn_executable_p "$ac_path_GREP" || continue
6249 # Check for GNU ac_path_GREP and select it if it is found.
6250 # Check for GNU $ac_path_GREP
6251 case `"$ac_path_GREP" --version 2>&1` in
6252 *GNU*)
6253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6255 ac_count=0
6256 $as_echo_n 0123456789 >"conftest.in"
6257 while :
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo 'GREP' >> "conftest.nl"
6263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_GREP="$ac_path_GREP"
6269 ac_path_GREP_max=$ac_count
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6273 done
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 esac
6277 $ac_path_GREP_found && break 3
6278 done
6279 done
6280 done
6281 IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_GREP"; then
6283 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6285 else
6286 ac_cv_path_GREP=$GREP
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6291 $as_echo "$ac_cv_path_GREP" >&6; }
6292 GREP="$ac_cv_path_GREP"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6296 $as_echo_n "checking for egrep... " >&6; }
6297 if ${ac_cv_path_EGREP+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6301 then ac_cv_path_EGREP="$GREP -E"
6302 else
6303 if test -z "$EGREP"; then
6304 ac_path_EGREP_found=false
6305 # Loop through the user's path and test for each of PROGNAME-LIST
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_prog in egrep; do
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6314 as_fn_executable_p "$ac_path_EGREP" || continue
6315 # Check for GNU ac_path_EGREP and select it if it is found.
6316 # Check for GNU $ac_path_EGREP
6317 case `"$ac_path_EGREP" --version 2>&1` in
6318 *GNU*)
6319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6321 ac_count=0
6322 $as_echo_n 0123456789 >"conftest.in"
6323 while :
6325 cat "conftest.in" "conftest.in" >"conftest.tmp"
6326 mv "conftest.tmp" "conftest.in"
6327 cp "conftest.in" "conftest.nl"
6328 $as_echo 'EGREP' >> "conftest.nl"
6329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6331 as_fn_arith $ac_count + 1 && ac_count=$as_val
6332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6333 # Best one so far, save it but keep looking for a better one
6334 ac_cv_path_EGREP="$ac_path_EGREP"
6335 ac_path_EGREP_max=$ac_count
6337 # 10*(2^10) chars as input seems more than enough
6338 test $ac_count -gt 10 && break
6339 done
6340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6341 esac
6343 $ac_path_EGREP_found && break 3
6344 done
6345 done
6346 done
6347 IFS=$as_save_IFS
6348 if test -z "$ac_cv_path_EGREP"; then
6349 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6351 else
6352 ac_cv_path_EGREP=$EGREP
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6358 $as_echo "$ac_cv_path_EGREP" >&6; }
6359 EGREP="$ac_cv_path_EGREP"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6363 $as_echo_n "checking for ANSI C header files... " >&6; }
6364 if ${ac_cv_header_stdc+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 #include <stdlib.h>
6370 #include <stdarg.h>
6371 #include <string.h>
6372 #include <float.h>
6375 main ()
6379 return 0;
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383 ac_cv_header_stdc=yes
6384 else
6385 ac_cv_header_stdc=no
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 if test $ac_cv_header_stdc = yes; then
6390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #include <string.h>
6395 _ACEOF
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 $EGREP "memchr" >/dev/null 2>&1; then :
6399 else
6400 ac_cv_header_stdc=no
6402 rm -f conftest*
6406 if test $ac_cv_header_stdc = yes; then
6407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #include <stdlib.h>
6412 _ACEOF
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414 $EGREP "free" >/dev/null 2>&1; then :
6416 else
6417 ac_cv_header_stdc=no
6419 rm -f conftest*
6423 if test $ac_cv_header_stdc = yes; then
6424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6425 if test "$cross_compiling" = yes; then :
6427 else
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 #include <ctype.h>
6431 #include <stdlib.h>
6432 #if ((' ' & 0x0FF) == 0x020)
6433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6435 #else
6436 # define ISLOWER(c) \
6437 (('a' <= (c) && (c) <= 'i') \
6438 || ('j' <= (c) && (c) <= 'r') \
6439 || ('s' <= (c) && (c) <= 'z'))
6440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6441 #endif
6443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6445 main ()
6447 int i;
6448 for (i = 0; i < 256; i++)
6449 if (XOR (islower (i), ISLOWER (i))
6450 || toupper (i) != TOUPPER (i))
6451 return 2;
6452 return 0;
6454 _ACEOF
6455 if ac_fn_c_try_run "$LINENO"; then :
6457 else
6458 ac_cv_header_stdc=no
6460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6461 conftest.$ac_objext conftest.beam conftest.$ac_ext
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6467 $as_echo "$ac_cv_header_stdc" >&6; }
6468 if test $ac_cv_header_stdc = yes; then
6470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6474 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6476 inttypes.h stdint.h unistd.h
6477 do :
6478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6482 cat >>confdefs.h <<_ACEOF
6483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484 _ACEOF
6488 done
6491 for ac_header in sys/ipc.h sys/shm.h \
6492 sys/mmap.h sys/mman.h sysexits.h \
6493 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6495 do :
6496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6499 cat >>confdefs.h <<_ACEOF
6500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6505 done
6508 for ac_header in sys/mount.h
6509 do :
6510 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6512 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_SYS_MOUNT_H 1
6515 _ACEOF
6519 done
6522 ac_header_dirent=no
6523 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6524 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6526 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6527 if eval \${$as_ac_Header+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 #include <sys/types.h>
6533 #include <$ac_hdr>
6536 main ()
6538 if ((DIR *) 0)
6539 return 0;
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 eval "$as_ac_Header=yes"
6546 else
6547 eval "$as_ac_Header=no"
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 eval ac_res=\$$as_ac_Header
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6553 $as_echo "$ac_res" >&6; }
6554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6555 cat >>confdefs.h <<_ACEOF
6556 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6557 _ACEOF
6559 ac_header_dirent=$ac_hdr; break
6562 done
6563 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6564 if test $ac_header_dirent = dirent.h; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6566 $as_echo_n "checking for library containing opendir... " >&6; }
6567 if ${ac_cv_search_opendir+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 ac_func_search_save_LIBS=$LIBS
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6574 /* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 char opendir ();
6582 main ()
6584 return opendir ();
6586 return 0;
6588 _ACEOF
6589 for ac_lib in '' dir; do
6590 if test -z "$ac_lib"; then
6591 ac_res="none required"
6592 else
6593 ac_res=-l$ac_lib
6594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 ac_cv_search_opendir=$ac_res
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext
6601 if ${ac_cv_search_opendir+:} false; then :
6602 break
6604 done
6605 if ${ac_cv_search_opendir+:} false; then :
6607 else
6608 ac_cv_search_opendir=no
6610 rm conftest.$ac_ext
6611 LIBS=$ac_func_search_save_LIBS
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6614 $as_echo "$ac_cv_search_opendir" >&6; }
6615 ac_res=$ac_cv_search_opendir
6616 if test "$ac_res" != no; then :
6617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6623 $as_echo_n "checking for library containing opendir... " >&6; }
6624 if ${ac_cv_search_opendir+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 ac_func_search_save_LIBS=$LIBS
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 /* Override any GCC internal prototype to avoid an error.
6632 Use char because int might match the return type of a GCC
6633 builtin and then its argument prototype would still apply. */
6634 #ifdef __cplusplus
6635 extern "C"
6636 #endif
6637 char opendir ();
6639 main ()
6641 return opendir ();
6643 return 0;
6645 _ACEOF
6646 for ac_lib in '' x; do
6647 if test -z "$ac_lib"; then
6648 ac_res="none required"
6649 else
6650 ac_res=-l$ac_lib
6651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6653 if ac_fn_c_try_link "$LINENO"; then :
6654 ac_cv_search_opendir=$ac_res
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext
6658 if ${ac_cv_search_opendir+:} false; then :
6659 break
6661 done
6662 if ${ac_cv_search_opendir+:} false; then :
6664 else
6665 ac_cv_search_opendir=no
6667 rm conftest.$ac_ext
6668 LIBS=$ac_func_search_save_LIBS
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6671 $as_echo "$ac_cv_search_opendir" >&6; }
6672 ac_res=$ac_cv_search_opendir
6673 if test "$ac_res" != no; then :
6674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6681 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6682 if ${ac_cv_header_stat_broken+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 #include <sys/types.h>
6688 #include <sys/stat.h>
6690 #if defined S_ISBLK && defined S_IFDIR
6691 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6692 #endif
6694 #if defined S_ISBLK && defined S_IFCHR
6695 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6696 #endif
6698 #if defined S_ISLNK && defined S_IFREG
6699 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6700 #endif
6702 #if defined S_ISSOCK && defined S_IFREG
6703 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6704 #endif
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_header_stat_broken=no
6709 else
6710 ac_cv_header_stat_broken=yes
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6715 $as_echo "$ac_cv_header_stat_broken" >&6; }
6716 if test $ac_cv_header_stat_broken = yes; then
6718 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6723 $as_echo_n "checking for ANSI C header files... " >&6; }
6724 if ${ac_cv_header_stdc+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #include <stdlib.h>
6730 #include <stdarg.h>
6731 #include <string.h>
6732 #include <float.h>
6735 main ()
6739 return 0;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 ac_cv_header_stdc=yes
6744 else
6745 ac_cv_header_stdc=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 if test $ac_cv_header_stdc = yes; then
6750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <string.h>
6755 _ACEOF
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "memchr" >/dev/null 2>&1; then :
6759 else
6760 ac_cv_header_stdc=no
6762 rm -f conftest*
6766 if test $ac_cv_header_stdc = yes; then
6767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <stdlib.h>
6772 _ACEOF
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "free" >/dev/null 2>&1; then :
6776 else
6777 ac_cv_header_stdc=no
6779 rm -f conftest*
6783 if test $ac_cv_header_stdc = yes; then
6784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6785 if test "$cross_compiling" = yes; then :
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <ctype.h>
6791 #include <stdlib.h>
6792 #if ((' ' & 0x0FF) == 0x020)
6793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6795 #else
6796 # define ISLOWER(c) \
6797 (('a' <= (c) && (c) <= 'i') \
6798 || ('j' <= (c) && (c) <= 'r') \
6799 || ('s' <= (c) && (c) <= 'z'))
6800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6801 #endif
6803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6805 main ()
6807 int i;
6808 for (i = 0; i < 256; i++)
6809 if (XOR (islower (i), ISLOWER (i))
6810 || toupper (i) != TOUPPER (i))
6811 return 2;
6812 return 0;
6814 _ACEOF
6815 if ac_fn_c_try_run "$LINENO"; then :
6817 else
6818 ac_cv_header_stdc=no
6820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6821 conftest.$ac_objext conftest.beam conftest.$ac_ext
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6827 $as_echo "$ac_cv_header_stdc" >&6; }
6828 if test $ac_cv_header_stdc = yes; then
6830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6835 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6836 if ${ac_cv_header_sys_wait_h+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 #include <sys/types.h>
6842 #include <sys/wait.h>
6843 #ifndef WEXITSTATUS
6844 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6845 #endif
6846 #ifndef WIFEXITED
6847 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6848 #endif
6851 main ()
6853 int s;
6854 wait (&s);
6855 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6857 return 0;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 ac_cv_header_sys_wait_h=yes
6862 else
6863 ac_cv_header_sys_wait_h=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6868 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6869 if test $ac_cv_header_sys_wait_h = yes; then
6871 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6876 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6877 if ${ac_cv_header_time+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 #include <sys/types.h>
6883 #include <sys/time.h>
6884 #include <time.h>
6887 main ()
6889 if ((struct tm *) 0)
6890 return 0;
6892 return 0;
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 ac_cv_header_time=yes
6897 else
6898 ac_cv_header_time=no
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6903 $as_echo "$ac_cv_header_time" >&6; }
6904 if test $ac_cv_header_time = yes; then
6906 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6910 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6911 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6913 cat >>confdefs.h <<_ACEOF
6914 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6915 _ACEOF
6918 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6923 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6924 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6926 cat >>confdefs.h <<_ACEOF
6927 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6928 _ACEOF
6931 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6933 else
6934 case " $LIBOBJS " in
6935 *" fileblocks.$ac_objext "* ) ;;
6936 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6938 esac
6943 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6944 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6946 cat >>confdefs.h <<_ACEOF
6947 #define HAVE_STRUCT_STAT_ST_RDEV 1
6948 _ACEOF
6951 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6957 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6958 if ${ac_cv_struct_tm+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 #include <sys/types.h>
6964 #include <time.h>
6967 main ()
6969 struct tm tm;
6970 int *p = &tm.tm_sec;
6971 return !p;
6973 return 0;
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977 ac_cv_struct_tm=time.h
6978 else
6979 ac_cv_struct_tm=sys/time.h
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6984 $as_echo "$ac_cv_struct_tm" >&6; }
6985 if test $ac_cv_struct_tm = sys/time.h; then
6987 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6991 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6992 #include <$ac_cv_struct_tm>
6995 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6997 cat >>confdefs.h <<_ACEOF
6998 #define HAVE_STRUCT_TM_TM_ZONE 1
6999 _ACEOF
7004 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7006 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7008 else
7009 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7011 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7012 ac_have_decl=1
7013 else
7014 ac_have_decl=0
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_TZNAME $ac_have_decl
7019 _ACEOF
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7022 $as_echo_n "checking for tzname... " >&6; }
7023 if ${ac_cv_var_tzname+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <time.h>
7029 #if !HAVE_DECL_TZNAME
7030 extern char *tzname[];
7031 #endif
7034 main ()
7036 return tzname[0][0];
7038 return 0;
7040 _ACEOF
7041 if ac_fn_c_try_link "$LINENO"; then :
7042 ac_cv_var_tzname=yes
7043 else
7044 ac_cv_var_tzname=no
7046 rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7050 $as_echo "$ac_cv_var_tzname" >&6; }
7051 if test $ac_cv_var_tzname = yes; then
7053 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7058 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7059 if test "x$ac_cv_type_off_t" = xyes; then :
7061 else
7063 cat >>confdefs.h <<_ACEOF
7064 #define off_t long int
7065 _ACEOF
7069 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7070 if test "x$ac_cv_type_pid_t" = xyes; then :
7072 else
7074 cat >>confdefs.h <<_ACEOF
7075 #define pid_t int
7076 _ACEOF
7080 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7081 if test "x$ac_cv_type_size_t" = xyes; then :
7083 else
7085 cat >>confdefs.h <<_ACEOF
7086 #define size_t unsigned int
7087 _ACEOF
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7092 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7093 if ${ac_cv_type_uid_t+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 #include <sys/types.h>
7100 _ACEOF
7101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 $EGREP "uid_t" >/dev/null 2>&1; then :
7103 ac_cv_type_uid_t=yes
7104 else
7105 ac_cv_type_uid_t=no
7107 rm -f conftest*
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7111 $as_echo "$ac_cv_type_uid_t" >&6; }
7112 if test $ac_cv_type_uid_t = no; then
7114 $as_echo "#define uid_t int" >>confdefs.h
7117 $as_echo "#define gid_t int" >>confdefs.h
7122 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7123 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7125 cat >>confdefs.h <<_ACEOF
7126 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7127 _ACEOF
7133 # Look for some functions
7134 for ac_func in getpagesize kqueue statfs statvfs \
7135 clone kse_create rfork_thread thr_create sa_register \
7136 getcontext makecontext setcontext sigaltstack swapcontext
7137 do :
7138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7141 cat >>confdefs.h <<_ACEOF
7142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7143 _ACEOF
7146 done
7152 for ac_header in $ac_header_list
7153 do :
7154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7158 cat >>confdefs.h <<_ACEOF
7159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7160 _ACEOF
7164 done
7173 for ac_func in getpagesize
7174 do :
7175 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7176 if test "x$ac_cv_func_getpagesize" = xyes; then :
7177 cat >>confdefs.h <<_ACEOF
7178 #define HAVE_GETPAGESIZE 1
7179 _ACEOF
7182 done
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7185 $as_echo_n "checking for working mmap... " >&6; }
7186 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 if test "$cross_compiling" = yes; then :
7190 ac_cv_func_mmap_fixed_mapped=no
7191 else
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 $ac_includes_default
7195 /* malloc might have been renamed as rpl_malloc. */
7196 #undef malloc
7198 /* Thanks to Mike Haertel and Jim Avera for this test.
7199 Here is a matrix of mmap possibilities:
7200 mmap private not fixed
7201 mmap private fixed at somewhere currently unmapped
7202 mmap private fixed at somewhere already mapped
7203 mmap shared not fixed
7204 mmap shared fixed at somewhere currently unmapped
7205 mmap shared fixed at somewhere already mapped
7206 For private mappings, we should verify that changes cannot be read()
7207 back from the file, nor mmap's back from the file at a different
7208 address. (There have been systems where private was not correctly
7209 implemented like the infamous i386 svr4.0, and systems where the
7210 VM page cache was not coherent with the file system buffer cache
7211 like early versions of FreeBSD and possibly contemporary NetBSD.)
7212 For shared mappings, we should conversely verify that changes get
7213 propagated back to all the places they're supposed to be.
7215 Grep wants private fixed already mapped.
7216 The main things grep needs to know about mmap are:
7217 * does it exist and is it safe to write into the mmap'd area
7218 * how to use it (BSD variants) */
7220 #include <fcntl.h>
7221 #include <sys/mman.h>
7223 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7224 char *malloc ();
7225 #endif
7227 /* This mess was copied from the GNU getpagesize.h. */
7228 #ifndef HAVE_GETPAGESIZE
7229 # ifdef _SC_PAGESIZE
7230 # define getpagesize() sysconf(_SC_PAGESIZE)
7231 # else /* no _SC_PAGESIZE */
7232 # ifdef HAVE_SYS_PARAM_H
7233 # include <sys/param.h>
7234 # ifdef EXEC_PAGESIZE
7235 # define getpagesize() EXEC_PAGESIZE
7236 # else /* no EXEC_PAGESIZE */
7237 # ifdef NBPG
7238 # define getpagesize() NBPG * CLSIZE
7239 # ifndef CLSIZE
7240 # define CLSIZE 1
7241 # endif /* no CLSIZE */
7242 # else /* no NBPG */
7243 # ifdef NBPC
7244 # define getpagesize() NBPC
7245 # else /* no NBPC */
7246 # ifdef PAGESIZE
7247 # define getpagesize() PAGESIZE
7248 # endif /* PAGESIZE */
7249 # endif /* no NBPC */
7250 # endif /* no NBPG */
7251 # endif /* no EXEC_PAGESIZE */
7252 # else /* no HAVE_SYS_PARAM_H */
7253 # define getpagesize() 8192 /* punt totally */
7254 # endif /* no HAVE_SYS_PARAM_H */
7255 # endif /* no _SC_PAGESIZE */
7257 #endif /* no HAVE_GETPAGESIZE */
7260 main ()
7262 char *data, *data2, *data3;
7263 const char *cdata2;
7264 int i, pagesize;
7265 int fd, fd2;
7267 pagesize = getpagesize ();
7269 /* First, make a file with some known garbage in it. */
7270 data = (char *) malloc (pagesize);
7271 if (!data)
7272 return 1;
7273 for (i = 0; i < pagesize; ++i)
7274 *(data + i) = rand ();
7275 umask (0);
7276 fd = creat ("conftest.mmap", 0600);
7277 if (fd < 0)
7278 return 2;
7279 if (write (fd, data, pagesize) != pagesize)
7280 return 3;
7281 close (fd);
7283 /* Next, check that the tail of a page is zero-filled. File must have
7284 non-zero length, otherwise we risk SIGBUS for entire page. */
7285 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7286 if (fd2 < 0)
7287 return 4;
7288 cdata2 = "";
7289 if (write (fd2, cdata2, 1) != 1)
7290 return 5;
7291 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7292 if (data2 == MAP_FAILED)
7293 return 6;
7294 for (i = 0; i < pagesize; ++i)
7295 if (*(data2 + i))
7296 return 7;
7297 close (fd2);
7298 if (munmap (data2, pagesize))
7299 return 8;
7301 /* Next, try to mmap the file at a fixed address which already has
7302 something else allocated at it. If we can, also make sure that
7303 we see the same garbage. */
7304 fd = open ("conftest.mmap", O_RDWR);
7305 if (fd < 0)
7306 return 9;
7307 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7308 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7309 return 10;
7310 for (i = 0; i < pagesize; ++i)
7311 if (*(data + i) != *(data2 + i))
7312 return 11;
7314 /* Finally, make sure that changes to the mapped area do not
7315 percolate back to the file as seen by read(). (This is a bug on
7316 some variants of i386 svr4.0.) */
7317 for (i = 0; i < pagesize; ++i)
7318 *(data2 + i) = *(data2 + i) + 1;
7319 data3 = (char *) malloc (pagesize);
7320 if (!data3)
7321 return 12;
7322 if (read (fd, data3, pagesize) != pagesize)
7323 return 13;
7324 for (i = 0; i < pagesize; ++i)
7325 if (*(data + i) != *(data3 + i))
7326 return 14;
7327 close (fd);
7328 return 0;
7330 _ACEOF
7331 if ac_fn_c_try_run "$LINENO"; then :
7332 ac_cv_func_mmap_fixed_mapped=yes
7333 else
7334 ac_cv_func_mmap_fixed_mapped=no
7336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7337 conftest.$ac_objext conftest.beam conftest.$ac_ext
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7342 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7343 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7345 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7348 rm -f conftest.mmap conftest.txt
7351 #-----------------------------------------------------------------------------
7354 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7355 # it switched on by default, and we use the host compiler, so it compiles AROS
7356 # code with this enabled resulting in link failures as we don't have support
7357 # for it.
7359 # We use two methods to disable it. For the host compiler (used to compile
7360 # some hosted modules), we test to see if the compiler supports stack
7361 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7362 # work on all platforms.
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7366 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7367 save_cflags="$CFLAGS"
7368 CFLAGS="$CFLAGS -fno-stack-protector"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7373 main ()
7377 return 0;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381 use_no_stack_protector="yes"
7382 else
7383 use_no_stack_protector="no"
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7387 $as_echo "$use_no_stack_protector" >&6; }
7388 if test "x-$use_no_stack_protector" = "x-yes" ; then
7389 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7391 CFLAGS="$save_cflags"
7393 #-----------------------------------------------------------------------------
7395 # Disable pointer-signedness warnings if the compiler recognises the option
7396 # (this only works for the host compiler at the moment)
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7399 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7400 save_cflags="$CFLAGS"
7401 CFLAGS="$CFLAGS -Wno-pointer-sign"
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7406 main ()
7410 return 0;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 use_no_sign_warning="yes"
7415 else
7416 use_no_sign_warning="no"
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7420 $as_echo "$use_no_sign_warning" >&6; }
7421 if test "x-$use_no_sign_warning" = "x-yes" ; then
7422 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7424 CFLAGS="$save_cflags"
7426 #-----------------------------------------------------------------------------
7428 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7431 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7432 save_cflags="$CFLAGS"
7433 CFLAGS="$CFLAGS -fgnu89-inline"
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 main ()
7442 return 0;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 use_gnu89_inline="yes"
7447 else
7448 use_gnu89_inline="no"
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7452 $as_echo "$use_gnu89_inline" >&6; }
7453 if test "x-$use_gnu89_inline" = "x-yes" ; then
7454 gnu89_inline="-fgnu89-inline"
7456 CFLAGS="$save_cflags"
7459 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7460 # On GCC >= 4.0 -iquote should be used
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7463 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7464 CFLAGS="$CFLAGS -iquote."
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7469 main ()
7473 return 0;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 has_iquote="yes"
7478 else
7479 has_iquote="no"
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7483 $as_echo "$has_iquote" >&6; }
7484 if test "x-$has_iquote" = "x-yes" ; then
7485 host_cflags_iquote=-iquote
7486 host_cflags_iquote_end=
7487 else
7488 host_cflags_iquote=-I
7489 host_cflags_iquote_end=-I-
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7493 $as_echo "$as_me: Performing target configuration..." >&6;}
7496 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7498 toolchain_needs_sysroot=no
7500 aros_warn_flags=
7501 aros_isa_flags=
7502 aros_config_cppflags=
7503 aros_config_cflags=
7504 aros_config_cxxflags=
7505 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7506 aros_config_ldflags=""
7508 aros_shared_default=yes
7510 aros_shared_cflags="-fPIC"
7511 aros_shared_aflags=""
7512 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7513 aros_kernel_ldflags="-Wl,-rpath,./lib"
7515 aros_kernel_ar_flags="cr"
7516 aros_target_ar_flags="cr"
7517 aros_target_nm_flags="-C -ul"
7518 aros_target_strip_flags="--strip-unneeded -R.comment"
7520 aros_compiler_libs=
7521 aros_arch_libs=
7523 aros_target_genmap="-Wl,-Map -Xlinker"
7525 # Native flavour stuff
7526 aros_serial_debug="0"
7528 # Palm native flavour stuff
7529 aros_palm_debug_hack="0"
7531 # Unix flavour stuff
7532 aros_nesting_supervisor="0"
7534 # Collect-aros stuff: "-ius" to ignore undefined symbols
7535 ignore_undefined_symbols=""
7537 # Check for X11 by default
7538 need_x11="auto"
7540 host_x_gfx=no
7541 host_sdl_gfx=no
7542 host_android_gfx=no
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7546 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7548 # Check whether --with-toolchain was given.
7549 if test "${with_toolchain+set}" = set; then :
7550 withval=$with_toolchain; aros_toolchain="$withval"
7551 else
7552 aros_toolchain="gnu"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7556 $as_echo "$aros_toolchain" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7560 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7561 # Check whether --enable-lto was given.
7562 if test "${enable_lto+set}" = set; then :
7563 enableval=$enable_lto; aros_config_lto="$enableval"
7564 else
7565 aros_config_lto="no"
7568 if test "$aros_config_lto" != "no"; then
7569 aros_config_lto="yes"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7572 $as_echo "$aros_config_lto" >&6; }
7574 use_ld_wrapper=yes
7576 case "$aros_toolchain" in
7577 *llvm*)
7578 # toolchain_needs_sysroot=yes
7579 toolchain_c_compiler="clang"
7580 toolchain_cxx_compiler="clang++"
7581 toolchain_cpp_preprocessor="clang -E"
7582 toolchain_ld="ld.lld"
7583 aros_ld="ld"
7584 toolchain_as="llvm-as"
7585 toolchain_ar="llvm-ar"
7586 toolchain_ranlib="llvm-ranlib"
7587 toolchain_nm="llvm-nm"
7588 toolchain_strip="true"
7589 toolchain_objcopy="llvm-objcopy"
7590 toolchain_objdump="llvm-objdump"
7592 *gnu*)
7593 toolchain_c_compiler="gcc"
7594 toolchain_cxx_compiler="g++"
7595 toolchain_cpp_preprocessor="gcc -E"
7596 toolchain_as="as"
7597 aros_ld="ld"
7598 if test "$aros_config_lto" != "yes"; then
7599 toolchain_ld="ld"
7600 toolchain_ar="ar"
7601 toolchain_ranlib="ranlib"
7602 toolchain_nm="nm"
7603 else
7604 toolchain_ld="ld.bfd"
7605 toolchain_ar="gcc-ar"
7606 toolchain_ranlib="gcc-ranlib"
7607 toolchain_nm="gcc-nm"
7609 toolchain_strip="strip"
7610 toolchain_objcopy="objcopy"
7611 toolchain_objdump="objdump"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7615 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7616 toolchain_c_compiler="cc"
7617 toolchain_cxx_compiler="c++"
7618 toolchain_cpp_preprocessor="cpp"
7619 toolchain_ld="ld"
7620 aros_ld="ld"
7621 toolchain_as="as"
7622 toolchain_ar="ar"
7623 toolchain_ranlib="ranlib"
7624 toolchain_nm="nm"
7625 toolchain_strip="strip"
7626 toolchain_objcopy="objcopy"
7627 toolchain_objdump="objdump"
7629 esac
7631 #-----------------------------------------------------------------------------
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7634 $as_echo_n "checking which type of build to do... " >&6; }
7635 # Check whether --enable-build_type was given.
7636 if test "${enable_build_type+set}" = set; then :
7637 enableval=$enable_build_type; build_type=$enableval
7638 else
7639 build_type="personal"
7643 if test "$build_type" = "nightly"; then
7644 build_type_string="NIGHTLY"
7645 elif test "$build_type" = "snapshot"; then
7646 build_type_string="SNAPSHOT"
7647 elif test "$build_type" = "milestone"; then
7648 build_type_string="MILESTONE"
7649 elif test "$build_type" = "release"; then
7650 build_type_string="RELEASE"
7651 else
7652 build_type_string="PERSONAL"
7653 build_type="personal"
7656 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7659 $as_echo "$build_type" >&6; }
7661 #-----------------------------------------------------------------------------
7662 all_debug_types="messages stack modules mungwall symbols"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7665 $as_echo_n "checking which debug types to enable... " >&6; }
7666 # Check whether --enable-debug was given.
7667 if test "${enable_debug+set}" = set; then :
7668 enableval=$enable_debug; debug="$enableval"
7669 else
7670 debug=""
7674 if test "$debug" = "" -o "$debug" = "no"; then
7675 debug="none"
7676 elif test "$debug" = "yes"; then
7677 debug="all"
7680 if test "$debug" = "all" ; then
7681 debug="messages stack modules symbols"
7682 for d in $all_debug_types; do
7683 export aros_${d}_debug="1"
7684 done
7685 else
7686 for d in $all_debug_types; do
7687 export aros_${d}_debug="0"
7688 done
7691 if test "$debug" != "none"; then
7692 debug=`echo $debug | sed s/,/\ /g`
7693 for d in $debug; do
7694 found="0"
7695 for d2 in $all_debug_types; do
7696 if test "$d2" = "$d"; then
7697 found="1"
7698 break
7700 done
7701 if test "$found" = "0"; then
7702 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7704 export aros_${d}_debug="1"
7705 done
7706 aros_debug="yes"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7709 $as_echo "$debug" >&6; }
7711 if test "$aros_messages_debug" = "1"; then
7712 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7713 else
7714 aros_messages_debug=""
7716 if test "$aros_symbols_debug" = "1"; then
7717 aros_symbols_debug="-g"
7718 else
7719 aros_symbols_debug=""
7722 # These are the flags to pass when compiling debugged programs
7723 aros_debug_cppflags="$aros_messages_debug"
7724 aros_debug_cflags="$aros_symbols_debug"
7725 aros_debug_cxxflags=
7726 aros_debug_aflags=""
7727 aros_debug_ldflags="$aros_symbols_debug"
7729 #-----------------------------------------------------------------------------
7730 # Checking for distcc and ccache.
7732 # Always apply the transforms in this particular order. Basically you should
7733 # always run 'ccache distcc compiler' in that order for the best performance.
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7736 $as_echo_n "checking whether to enable distcc... " >&6; }
7737 # Check whether --enable-distcc was given.
7738 if test "${enable_distcc+set}" = set; then :
7739 enableval=$enable_distcc; distcc="$enableval"
7740 else
7741 distcc="no"
7744 if test "$distcc" != "" -a "$distcc" != "no"; then
7745 # AC_CHECK_PROG will print out the result in this case
7746 # Extract the first word of "distcc", so it can be a program name with args.
7747 set dummy distcc; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_path_DISTCC+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 case $DISTCC in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7773 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7775 esac
7777 DISTCC=$ac_cv_path_DISTCC
7778 if test -n "$DISTCC"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7780 $as_echo "$DISTCC" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7793 $as_echo_n "checking whether to enable ccache... " >&6; }
7794 # Check whether --enable-ccache was given.
7795 if test "${enable_ccache+set}" = set; then :
7796 enableval=$enable_ccache; ccache="$enableval"
7797 else
7798 ccache="no"
7801 if test "$ccache" != "" -a "$ccache" != "no"; then
7802 # AC_CHECK_PROG will print out the result in this case
7803 # Extract the first word of "ccache", so it can be a program name with args.
7804 set dummy ccache; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_CCACHE+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$CCACHE"; then
7811 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_CCACHE="ccache"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7824 done
7825 done
7826 IFS=$as_save_IFS
7830 CCACHE=$ac_cv_prog_CCACHE
7831 if test -n "$CCACHE"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7833 $as_echo "$CCACHE" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7845 #-----------------------------------------------------------------------------
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7847 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7849 # Check whether --with-kernel-gcc-version was given.
7850 if test "${with_kernel_gcc_version+set}" = set; then :
7851 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7852 else
7853 kernel_tool_version=""
7856 if test "$kernel_tool_version" != "" ; then
7857 msg_result=$kernel_tool_version
7858 else
7859 msg_result="default"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7862 $as_echo "$msg_result" >&6; }
7864 #-----------------------------------------------------------------------------
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7866 $as_echo_n "checking what optimization flags to use... " >&6; }
7868 # Check whether --with-optimization was given.
7869 if test "${with_optimization+set}" = set; then :
7870 withval=$with_optimization; optimization="$withval"
7871 else
7872 optimization="unknown"
7875 if test "$optimization" = "unknown"; then
7876 if test "$debug" != "none"; then
7877 optimization="-O0"
7878 else
7879 optimization="-O2"
7882 aros_optimization_cflags="$optimization"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7884 $as_echo "$optimization" >&6; }
7886 paranoia_default=yes
7887 #-----------------------------------------------------------------------------
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7889 $as_echo_n "checking which paranoia flags to use... " >&6; }
7891 # Check whether --with-paranoia was given.
7892 if test "${with_paranoia+set}" = set; then :
7893 withval=$with_paranoia; paranoia_flags="$withval"
7894 else
7895 paranoia_flags="$paranoia_default"
7898 if test "$paranoia_flags" = "no"; then
7899 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7900 msg_result="none"
7901 else
7902 if test "$paranoia_flags" = "yes"; then
7903 paranoia_flags="-Wall -Werror"
7905 msg_result="$paranoia_flags"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7908 $as_echo "$msg_result" >&6; }
7909 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7911 #-----------------------------------------------------------------------------
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7913 $as_echo_n "checking what target variant to enable... " >&6; }
7914 # Check whether --enable-target_variant was given.
7915 if test "${enable_target_variant+set}" = set; then :
7916 enableval=$enable_target_variant; target_variant=$enableval
7917 else
7918 target_variant=""
7921 if test "$target_variant" = ""; then
7922 aros_target_variant=""
7923 aros_target_suffix=""
7924 enableval="none"
7925 else
7926 aros_target_variant="$target_variant"
7927 aros_target_suffix="-$target_variant"
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7930 $as_echo "$enableval" >&6; }
7932 #-----------------------------------------------------------------------------
7933 # Target-specific defaults. You can override then on a per-target basis.
7935 # Bootloader name. Currently used by PC target.
7936 target_bootloader="none"
7937 PLATFORM_EXECSMP=
7938 ENABLE_EXECSMP=
7940 #-----------------------------------------------------------------------------
7941 # Additional options for some specific targets
7943 case "$aros_target_variant" in
7944 ios)
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7946 $as_echo_n "checking XCode path... " >&6; }
7948 # Check whether --with-xcode was given.
7949 if test "${with_xcode+set}" = set; then :
7950 withval=$with_xcode; aros_xcode_path="$withval"
7951 else
7952 aros_xcode_path="/Developer"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7956 $as_echo "$aros_xcode_path" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7959 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7961 # Check whether --with-sdk-version was given.
7962 if test "${with_sdk_version+set}" = set; then :
7963 withval=$with_sdk_version; aros_sdk_version="$withval"
7964 else
7965 aros_sdk_version="4.1"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7969 $as_echo "$aros_sdk_version" >&6; }
7973 "android")
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7975 $as_echo_n "checking Android SDK path... " >&6; }
7977 # Check whether --with-sdk was given.
7978 if test "${with_sdk+set}" = set; then :
7979 withval=$with_sdk; aros_android_sdk="$withval"
7980 else
7981 aros_android_sdk=$default_android_sdk
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7985 $as_echo "$aros_android_sdk" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7988 $as_echo_n "checking Android NDK path... " >&6; }
7990 # Check whether --with-ndk was given.
7991 if test "${with_ndk+set}" = set; then :
7992 withval=$with_ndk; aros_android_ndk="$withval"
7993 else
7994 aros_android_ndk="none"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7998 $as_echo "$aros_android_ndk" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8001 $as_echo_n "checking what Android SDK version to use... " >&6; }
8003 # Check whether --with-sdk-version was given.
8004 if test "${with_sdk_version+set}" = set; then :
8005 withval=$with_sdk_version; aros_sdk_version="$withval"
8006 else
8007 aros_sdk_version="12"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8011 $as_echo "$aros_sdk_version" >&6; }
8013 aros_android_level=android-$aros_sdk_version
8014 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8015 echo "Platform $aros_android_level is not installed in your SDK"
8016 echo "Use --with-sdk-version=<API level number> to select another platform version"
8017 echo "You can check what plaform versions are installed in your SDK"
8018 echo "by examining contents of $aros_android_sdk/platforms directory"
8019 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8022 export PATH="$aros_android_sdk/tools:$PATH"
8023 # Extract the first word of "$android_tool", so it can be a program name with args.
8024 set dummy $android_tool; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_path_android_tool+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 case $android_tool in
8031 [\\/]* | ?:[\\/]*)
8032 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8051 esac
8053 android_tool=$ac_cv_path_android_tool
8054 if test -n "$android_tool"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8056 $as_echo "$android_tool" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8063 req_avail=yes
8064 if test "$android_tool" = ""; then
8065 req_avail=no
8067 if test "$android_tool" = "no"; then
8068 req_avail=no
8070 if test "$req_avail" = "no"; then
8071 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8074 if test "$aros_android_ndk" != "none"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8076 $as_echo_n "checking what Android NDK version to use... " >&6; }
8078 # Check whether --with-ndk-version was given.
8079 if test "${with_ndk_version+set}" = set; then :
8080 withval=$with_ndk_version; aros_ndk_version="$withval"
8081 else
8082 aros_ndk_version="9"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8086 $as_echo "$aros_ndk_version" >&6; }
8089 # Extract the first word of "ant", so it can be a program name with args.
8090 set dummy ant; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_path_ant+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 case $ant in
8097 [\\/]* | ?:[\\/]*)
8098 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8112 done
8113 done
8114 IFS=$as_save_IFS
8117 esac
8119 ant=$ac_cv_path_ant
8120 if test -n "$ant"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8122 $as_echo "$ant" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8129 if test "$ant" = ""; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8131 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8135 $as_echo_n "checking Build debug or release apk... " >&6; }
8137 # Check whether --with-apk-version was given.
8138 if test "${with_apk_version+set}" = set; then :
8139 withval=$with_apk_version; aros_android_antapk=$withval
8140 else
8141 aros_android_antapk=release
8144 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8145 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8148 $as_echo "$aros_android_antapk" >&6; }
8150 if test "$host_os" = "mingw32"; then
8151 android_tool="cmd //c $android_tool"
8154 need_dlopen="no"
8157 esac
8159 #-----------------------------------------------------------------------------
8160 # External toolchains
8161 kernel_tool_prefix="none"
8162 aros_tool_prefix="none"
8163 elf_tool_prefix="${target_cpu}-elf-"
8165 # This is the target configuration switch.
8166 case "$target_os" in
8167 linux*)
8168 aros_target_arch="linux"
8169 aros_target_family="unix"
8170 case "$target_cpu" in
8171 *m68k*)
8172 aros_target_cpu="m68k"
8173 aros_object_format="m68kelf"
8174 aros_flavour="emulcompat"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8176 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8177 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8178 gcc_target_cpu="mc68000"
8180 *i?86*)
8181 aros_target_cpu="i386"
8182 aros_object_format="elf_i386"
8183 aros_flavour="emulation"
8184 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8185 aros_kernel_ldflags="-Wl,-melf_i386"
8186 aros_nominal_depth=8
8187 gcc_target_cpu="i386"
8188 pci_hidd_target="hidd-pci-linux"
8189 android_tool_dir_prefix="x86"
8190 android_tool_prefix="i686-android-linux"
8191 android_ndk_arch="x86"
8193 *x86_64*)
8194 aros_target_cpu="x86_64"
8195 aros_object_format="elf_x86_64"
8196 aros_flavour="emulation"
8197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8198 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8199 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8200 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8201 aros_nominal_depth=8
8202 pci_hidd_target="hidd-pci-linux"
8204 *powerpc*)
8205 aros_target_cpu="ppc"
8206 aros_object_format="elf32ppc"
8207 aros_flavour="emulation"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8209 aros_nominal_depth=8
8210 gcc_target_cpu="ppc"
8212 # TODO
8213 # Same as powerpc, but I need this for the nightly build to work again.
8214 # Actually, the nightly should be made working with powerpc target.
8215 # That just was too much work for the moment, another week or two.
8216 *ppc*)
8217 aros_target_cpu="ppc"
8218 aros_object_format="elf32ppc"
8219 aros_flavour="emulation"
8220 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8221 aros_nominal_depth=8
8222 gcc_target_cpu="ppc"
8224 *aarch64*)
8225 aros_target_cpu="aarch64"
8226 target_cpu="aarch64"
8227 aros_object_format="aarch64elf_aros"
8228 aros_flavour="emulation"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8230 gcc_target_cpu="aarch64"
8231 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8232 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8233 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8234 aros_arch_libs="-laeabi"
8235 gcc_default_float_abi="hard"
8236 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8238 *armhf*)
8239 aros_target_cpu="arm"
8240 target_cpu="arm"
8241 aros_object_format="armelf_aros"
8242 aros_flavour="emulation"
8243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8244 gcc_target_cpu="arm"
8245 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8246 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8247 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8248 aros_arch_libs="-laeabi"
8249 gcc_default_float_abi="hard"
8250 android_tool_dir_prefix="arm-linux-androideabi"
8251 android_tool_prefix="arm-linux-androideabi"
8252 android_ndk_arch="arm"
8253 kernel_tool_prefix="arm-linux-gnueabihf-"
8255 *arm*)
8256 aros_target_cpu="arm"
8257 aros_object_format="armelf_aros"
8258 aros_flavour="emulation"
8259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8260 gcc_target_cpu="arm"
8261 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8262 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8263 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8264 aros_arch_libs="-laeabi"
8265 android_tool_dir_prefix="arm-linux-androideabi"
8266 android_tool_prefix="arm-linux-androideabi"
8267 android_ndk_arch="arm"
8268 kernel_tool_prefix="arm-linux-gnueabi-"
8271 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8273 esac
8274 case "$aros_target_variant" in
8275 android)
8277 if test "$android_ndk_arch" = ""; then
8278 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8281 aros_nominal_width=320
8282 aros_nominal_height=480
8283 if test "$aros_android_ndk" = "none"; then
8284 aros_kernel_cflags="-mandroid"
8285 aros_kernel_ldflags="-mandroid"
8286 CFLAGS="-mandroid"
8287 else
8288 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8289 kernel_tool_version=""
8290 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8291 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8292 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8293 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8294 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8296 need_x11=no
8297 host_android_gfx=yes
8298 # Disable implicit PIC mode
8299 aros_config_cflags="$aros_config_cflags -fno-pic"
8300 kernel_tool_prefix="$android_tool_prefix-"
8302 esac
8306 aros_target_arch="pc"
8307 aros_shared_default="no"
8308 target_bootloader="grub2"
8309 case "$target_cpu" in
8310 *i?86*)
8311 aros_target_cpu="i386"
8314 if test "$aros_object_format" = "" ; then
8315 aros_object_format="elf_i386"
8317 aros_flavour="standalone"
8318 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8319 aros_kernel_ldflags="-Wl,-melf_i386"
8320 aros_nominal_width=640
8321 aros_nominal_height=480
8322 gcc_target_cpu="i386"
8324 *x86_64*)
8325 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8326 aros_target_cpu="x86_64"
8327 aros_serial_debug=1
8328 if test "$aros_object_format" = "" ; then
8329 aros_object_format="elf_x86_64"
8331 aros_flavour="standalone"
8332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8333 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8334 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8335 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8336 aros_kernel_ldflags=""
8337 aros_nominal_width=640
8338 aros_nominal_height=480
8339 case "$aros_target_variant" in
8340 smp)
8341 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8343 esac
8346 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8348 esac
8351 prep)
8352 aros_target_arch="prep"
8353 aros_shared_default="no"
8354 aros_target_cpu="ppc"
8355 aros_object_format="elf32ppc"
8356 aros_flavour="ppcnative"
8357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8358 aros_kernel_ldflags=""
8359 aros_nominal_width=640
8360 aros_nominal_height=480
8361 gcc_target_cpu="ppc"
8364 freebsd*)
8365 aros_target_arch="freebsd"
8366 aros_target_family="unix"
8367 aros_target_cpu="i386"
8368 aros_flavour="emulation"
8369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8370 gcc_target_cpu="i386"
8372 aros_target_strip_flags="-x"
8375 darwin*)
8376 aros_target_arch="darwin"
8377 aros_target_family="unix"
8378 aros_flavour="emulation"
8379 case "$target_cpu" in
8380 *i?86*)
8381 aros_ios_platform="iPhoneSimulator"
8382 aros_target_cpu="i386"
8383 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8384 aros_kernel_ldflags=""
8385 aros_macosx_version="10.4"
8386 aros_nominal_depth=8
8387 gcc_target_cpu="i386"
8388 aros_object_format="elf_i386"
8389 aros_kernel_ar_flags="-cr"
8390 aros_target_strip_flags="-x"
8391 kernel_tool_flags="-m32"
8393 *x86_64*)
8394 aros_target_cpu="x86_64"
8395 aros_object_format="elf_x86_64"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8397 aros_macosx_version="10.6"
8398 aros_isa_flags="$aros_isa_flags -mcmodel=large"
8399 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8400 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8401 aros_kernel_cflags="-m64"
8402 aros_kernel_ldflags="-m64"
8403 aros_nominal_depth=8
8404 aros_kernel_ar="ar"
8405 aros_kernel_ar_flags="-cr"
8406 aros_kernel_ld="ld"
8407 aros_kernel_as="as"
8408 aros_kernel_ranlib="ranlib"
8409 aros_kernel_nm="nm"
8410 aros_kernel_strip="strip"
8411 kernel_tool_prefix="i686-apple-darwin10-"
8413 *ppc*)
8414 aros_target_cpu="ppc"
8415 aros_object_format="elf32ppc"
8416 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8417 aros_kernel_ldflags=""
8418 aros_macosx_version="10.0"
8419 aros_nominal_depth=8
8420 gcc_target_cpu="ppc"
8421 aros_kernel_ar="ar"
8422 aros_kernel_ar_flags="-cr"
8423 aros_kernel_ld="ld -arch ppc"
8424 aros_kernel_as="as -arch ppc"
8425 aros_kernel_ranlib="ranlib -arch ppc"
8426 aros_kernel_nm="nm -arch ppc"
8427 aros_kernel_strip="strip -arch ppc"
8428 kernel_tool_prefix="powerpc-apple-darwin10-"
8430 *arm*)
8431 aros_ios_platform="iPhoneOS"
8432 aros_target_cpu="arm"
8433 aros_object_format="armelf_aros"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8435 aros_arch_libs="-laeabi"
8436 aros_nominal_depth=8
8437 gcc_target_cpu="arm"
8438 aros_kernel_ar="ar"
8439 aros_kernel_ar_flags="-cr"
8440 aros_kernel_ld="ld -arch arm"
8441 aros_kernel_ranlib="ranlib -arch arm"
8442 kernel_tool_prefix="arm-apple-darwin10-"
8443 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8446 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8448 esac
8449 case "$aros_target_variant" in
8450 ios)
8451 aros_ios_version="3.0"
8452 aros_nominal_width=320
8453 aros_nominal_height=480
8454 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8455 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8456 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8457 need_x11=no
8458 # This is here because it may depend on iOS or SDK version
8459 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8460 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8461 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8464 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8465 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8467 esac
8470 dragonfly*)
8471 aros_target_arch="dragonfly"
8472 aros_target_family="unix"
8473 aros_flavour="emulation"
8474 case "$target_cpu" in
8475 *i?86*)
8476 aros_target_cpu="i386"
8477 aros_object_format="elf_i386"
8478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8480 *x86_64*)
8481 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8482 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8483 aros_target_cpu="x86_64"
8484 aros_object_format="elf_x86_64"
8485 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8488 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8490 esac
8493 netbsd*)
8494 aros_target_arch="netbsd"
8495 aros_target_family="unix"
8496 case "$target_cpu" in
8497 *m68k*)
8498 aros_target_cpu="m68k"
8499 aros_object_format="m68kelf"
8500 aros_flavour="emulcompat"
8501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8502 gcc_target_cpu="mc68000"
8504 *i?86*)
8505 aros_target_cpu="i386"
8506 aros_object_format="elf_i386"
8507 aros_flavour="emulation"
8508 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8509 aros_nominal_depth=8
8510 gcc_target_cpu="i386"
8513 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8515 esac
8516 aros_target_genmap="-Wl,-M -Xlinker >"
8517 aros_flavour="emulation"
8518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8521 openbsd*)
8522 aros_target_arch="openbsd"
8523 aros_target_family="unix"
8524 case "$target_cpu" in
8525 *i?86*)
8526 aros_target_cpu="i386"
8527 aros_object_format="elf_i386"
8528 aros_flavour="emulation"
8529 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8530 gcc_target_cpu="i386"
8533 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8535 esac
8536 aros_target_genmap="-Wl,-M -Xlinker >"
8537 aros_target_nm_flags="-u"
8538 aros_flavour="emulation"
8541 solaris*)
8542 aros_target_arch="solaris"
8543 aros_target_family="unix"
8544 case "$target_cpu" in
8545 *i?86*)
8546 aros_target_cpu="i386"
8547 aros_object_format="elf_i386"
8548 aros_flavour="emulation"
8549 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8550 aros_nominal_depth=8
8551 gcc_target_cpu="i386"
8553 *sparc*)
8554 aros_target_cpu="sparc"
8555 aros_object_format="elf_sparc"
8556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8557 gcc_target_cpu="sparc"
8560 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8562 esac
8563 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8564 aros_flavour="emulation"
8567 morphos*)
8568 aros_target_arch="morphos"
8569 aros_shared_default="no"
8570 aros_target_cpu="ppc"
8571 aros_object_format="elf_ppc"
8572 aros_flavour="nativecompat"
8573 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8574 gcc_target_cpu="ppc"
8577 sam440)
8578 aros_target_arch="sam440"
8579 aros_shared_default="no"
8580 aros_target_cpu="ppc"
8581 aros_object_format="elf32ppc"
8582 aros_flavour="ppcnative"
8583 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8584 aros_kernel_ldflags=""
8585 aros_nominal_width=1024
8586 aros_nominal_height=768
8587 aros_nominal_depth=24
8588 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8589 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8590 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8591 gcc_target_cpu="powerpc"
8594 efika)
8595 aros_target_arch="efika"
8596 aros_shared_default="no"
8597 aros_target_cpu="arm"
8598 aros_object_format="armelf_aros"
8599 aros_flavour="standalone"
8600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8601 aros_kernel_ldflags=""
8602 aros_nominal_width=1024
8603 aros_nominal_height=600
8604 aros_arch_libs="-laeabi"
8605 gcc_default_cpu="armv7-a"
8606 gcc_default_fpu="vfpv3"
8607 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8608 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8609 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8610 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8611 aros_optimization_cflags="$aros_optimization_cflags -Os"
8612 case "$target_cpu" in
8613 *armhf*)
8614 gcc_default_float_abi="hard"
8615 target_cpu=arm
8616 aros_target_cpu=arm
8618 *arm*)
8619 gcc_default_float_abi="softfp"
8622 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8624 esac
8627 chrp)
8628 aros_target_arch="chrp"
8629 aros_shared_default="no"
8630 aros_target_cpu="ppc"
8631 aros_object_format="elf32ppc"
8632 aros_flavour="ppcnative"
8633 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8634 aros_kernel_ldflags=""
8635 aros_nominal_width=640
8636 aros_nominal_height=480
8637 aros_isa_flags="$aros_isa_flags -mno-toc"
8638 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8639 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8640 gcc_target_cpu="powerpc"
8641 case "$aros_target_variant" in
8642 efika)
8643 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8644 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8646 esac
8649 r*pi)
8650 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8651 aros_flavour="standalone"
8652 aros_target_arch="raspi"
8654 aros_shared_default="no"
8656 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8658 case "$target_cpu" in
8659 *aarch64*)
8660 aros_target_cpu="aarch64"
8661 gcc_default_cpu="aarch64"
8662 aros_object_format="aarch64elf_aros"
8664 *armhf*)
8665 aros_target_cpu="arm"
8666 gcc_default_cpu="armv6zk"
8667 gcc_default_cpu_tune="arm1176jzf-s"
8668 aros_object_format="armelf_aros"
8669 aros_isa_flags="$aros_isa_flags -marm"
8670 aros_config_cflags="$aros_config_cflags"
8671 aros_config_cxxflags="$aros_config_cxxflags"
8672 aros_config_aflags="$aros_config_aflags -marm"
8673 aros_kernel_cflags="$aros_kernel_cflags -marm"
8674 aros_target_mkdep="$aros_target_mkdep -Darm"
8675 aros_arch_libs="-laeabi"
8677 *arm*)
8678 aros_target_cpu="arm"
8679 gcc_default_cpu="armv6zk"
8680 gcc_default_cpu_tune="arm1176jzf-s"
8681 aros_object_format="armelf_aros"
8682 aros_isa_flags="$aros_isa_flags -marm"
8683 aros_config_cflags="$aros_config_cflags"
8684 aros_config_cxxflags="$aros_config_cxxflags"
8685 aros_config_aflags="$aros_config_aflags -marm"
8686 aros_kernel_cflags="$aros_kernel_cflags -marm"
8687 aros_target_mkdep="$aros_target_mkdep -Darm"
8688 aros_arch_libs="-laeabi"
8691 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8693 esac
8695 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8696 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8697 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8698 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8700 case "$aros_target_variant" in
8701 smp)
8702 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8704 esac
8707 stm32f7_discovery)
8708 aros_flavour="standalone"
8709 aros_target_arch="stm32f7_discovery"
8710 aros_target_cpu="arm"
8711 aros_target_cpu_mode="thumb2"
8712 aros_object_format="armelf_aros"
8713 aros_shared_default="no"
8715 gcc_default_cpu="armv7e-m"
8716 gcc_default_cpu_tune="cortex-m7"
8717 gcc_default_fpu="fpv5-sp-d16"
8718 gcc_default_float_abi="hard"
8720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8723 amiga*)
8724 aros_target_arch="amiga"
8725 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8726 aros_shared_default="no"
8728 case "$target_cpu" in
8729 *m68k*)
8730 # Check whether --enable-amigaos_compliance was given.
8731 if test "${enable_amigaos_compliance+set}" = set; then :
8732 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8735 aros_enable_mmu=no
8736 aros_target_cpu="m68k"
8737 aros_object_format="m68kelf"
8738 aros_flavour="standcompat"
8739 gcc_target_cpu="m68000"
8740 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8741 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8742 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8743 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8744 aros_optimization_cflags="$aros_optimization_cflags -Os"
8745 aros_config_aflags="$aros_config_aflags"
8746 aros_target_strip_flags="-R.comment --strip-debug"
8747 aros_nominal_width=640
8748 aros_nominal_height=256
8749 aros_nominal_depth=2
8751 *ppc*)
8752 aros_cpu="ppc"
8753 aros_flavour="native"
8754 gcc_target_cpu="ppc"
8757 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8759 esac
8762 mingw*)
8763 aros_target_arch="mingw32"
8764 aros_shared_default="no"
8765 aros_flavour="emulation"
8766 aros_shared_cflags=""
8767 need_crosstools="yes"
8768 need_dlopen="no"
8769 rescomp="windres"
8770 case "$target_cpu" in
8771 *i?86*)
8772 aros_target_cpu="i386"
8773 aros_object_format="elf_i386"
8774 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8775 aros_nominal_depth=8
8776 gcc_target_cpu="i386"
8778 kernel_tool_prefix="i386-mingw32-"
8780 *x86_64*)
8781 aros_target_cpu="x86_64"
8782 aros_object_format="elf_x86_64"
8783 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8784 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8785 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8786 aros_nominal_depth=8
8787 kernel_tool_prefix="x86_64-w64-mingw32-"
8789 *arm*)
8790 aros_target_cpu="arm"
8791 aros_object_format="armelf_aros"
8792 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8793 aros_arch_libs="-laeabi"
8794 aros_nominal_depth=8
8795 gcc_target_cpu="arm"
8796 gcc_default_float_abi="soft"
8797 kernel_tool_prefix="arm-mingw32ce-"
8798 aros_nominal_width=160
8799 aros_nominal_height=160
8802 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8804 esac
8805 if test $host_os = "cygwin"; then
8806 aros_kernel_cflags="-mno-cygwin"
8809 pp*)
8810 aros_target_arch="pp"
8811 aros_shared_default="no"
8812 case "$target_cpu" in
8813 *m68k*)
8814 aros_target_cpu="m68k"
8815 aros_object_format="m68kelf"
8816 aros_flavour="palmnative"
8817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8818 aros_nominal_width=160
8819 aros_nominal_height=160
8820 aros_nominal_depth=1
8821 aros_target_ar_flags="cru"
8822 aros_compiler_libs="-lgcc1"
8823 aros_shared_default=no
8824 aros_shared_cflags="-fpic"
8825 aros_shared_aflags=""
8826 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8827 aros_kernel_ldflags="-Wl,-rpath,./lib"
8828 aros_debug_cppflags="$aros_messages_debug"
8829 aros_debug_cflags="$aros_symbols_debug"
8830 aros_debug_aflags=""
8831 aros_debug_ldflags="$aros_symbols_debug"
8832 aros_mungwall_debug="0"
8833 aros_modules_debug="0"
8834 gcc_target_cpu="mc68000"
8835 ignore_undefined_symbols="-ius"
8838 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8840 esac
8843 mac*)
8844 aros_target_arch="mac"
8845 aros_shared_default="no"
8846 case "$target_cpu" in
8847 *m68k*)
8848 aros_target_cpu="m68k"
8849 aros_object_format="m68kelf"
8850 aros_flavour="mac68knative"
8851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8852 aros_nominal_width=512
8853 aros_nominal_height=384
8854 aros_nominal_depth=8
8855 aros_target_ar_flags="cru"
8856 aros_compiler_libs="-lgcc1"
8857 aros_shared_default=no
8858 aros_shared_cflags="-fpic"
8859 aros_shared_aflags=""
8860 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8861 aros_kernel_ldflags="-Wl,-rpath,./lib"
8862 aros_debug_cppflags="$aros_messages_debug"
8863 aros_debug_cflags="$aros_symbols_debug"
8864 aros_debug_aflags=""
8865 aros_debug_ldflags="$aros_symbols_debug"
8866 aros_mungwall_debug="0"
8867 aros_modules_debug="0"
8868 gcc_target_cpu="mc68000"
8869 ignore_undefined_symbols="-ius"
8872 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8874 esac
8878 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8880 esac
8882 #-----------------------------------------------------------------------------
8883 crosstools_guess="yes"
8884 aros_target_toolchain="no"
8885 aros_config_sysroot=""
8886 aros_kernel_sysroot=""
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8889 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8891 # Check whether --with-kernel-toolchain-prefix was given.
8892 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8893 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8897 $as_echo "$kernel_tool_prefix" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8900 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8902 # Check whether --with-elf-toolchain-prefix was given.
8903 if test "${with_elf_toolchain_prefix+set}" = set; then :
8904 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8905 crosstools_guess="no"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8909 $as_echo "$elf_tool_prefix" >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8912 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8914 # Check whether --with-aros-toolchain was given.
8915 if test "${with_aros_toolchain+set}" = set; then :
8916 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8917 crosstools_guess="no"
8920 if test "$aros_tool_prefix" = "yes" ; then
8921 aros_tool_prefix=$aros_target_cpu-aros-
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8924 $as_echo "$aros_tool_prefix" >&6; }
8926 #-----------------------------------------------------------------------------
8927 # Checking if we should build crosstools..
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8929 $as_echo_n "checking whether to build crosstools... " >&6; }
8930 # Check whether --enable-crosstools was given.
8931 if test "${enable_crosstools+set}" = set; then :
8932 enableval=$enable_crosstools; crosstools="$enableval"
8933 else
8934 crosstools="$crosstools_guess"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8938 $as_echo "$crosstools" >&6; }
8940 if test "${crosstools}" = "yes"; then
8941 if test "${crosstools_guess}" = "no"; then
8942 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8946 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8947 aros_target_toolchain="yes"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8951 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8953 # Check whether --with-aros-toolchain-install was given.
8954 if test "${with_aros_toolchain_install+set}" = set; then :
8955 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8958 if test "x$aros_toolchain_install" = "x"; then
8959 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8960 else
8961 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8962 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8963 if test "$crosstools_guess" = "no" ; then
8964 toolchain_needs_sysroot=yes
8966 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8967 aros_kernel_sysroot = $aros_config_sysroot
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8972 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8975 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8976 if test "$toolchain_needs_sysroot" = "yes" ; then
8977 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8980 $as_echo "$toolchain_needs_sysroot" >&6; }
8982 #-----------------------------------------------------------------------------
8983 if test "$aros_toolchain" = "gnu" ; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8985 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8988 # Check whether --with-binutils-version was given.
8989 if test "${with_binutils_version+set}" = set; then :
8990 withval=$with_binutils_version; use_binutils_version="$withval"
8991 else
8992 use_binutils_version=""
8995 if test "$use_binutils_version" = ""; then
8996 target_binutils_version="$default_binutils_version"
8997 else
8998 target_binutils_version="$use_binutils_version"
9000 if test "$aros_toolchain" = "gnu" ; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9002 $as_echo "$target_binutils_version" >&6; }
9006 # Helper to identify gcc version
9009 #-----------------------------------------------------------------------------
9010 if test "$aros_toolchain" = "gnu" ; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9012 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9015 # Check whether --with-gcc-version was given.
9016 if test "${with_gcc_version+set}" = set; then :
9017 withval=$with_gcc_version; use_gcc_version="$withval"
9018 else
9019 use_gcc_version=""
9022 if test "$use_gcc_version" = ""; then
9023 if test "${crosstools}" = "no"; then
9024 if test "x$aros_toolchain_install" != "x"; then
9026 target_gcc_version=""
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9028 $as_echo_n "checking gcc version... " >&6; }
9029 if ${ax_cv_gcc_version+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9033 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9034 if test "x$ax_cv_gcc_version" = "x"; then :
9036 ax_cv_gcc_version=""
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9042 $as_echo "$ax_cv_gcc_version" >&6; }
9043 target_gcc_version=$ax_cv_gcc_version
9048 if test "$use_gcc_version" = ""; then
9049 target_gcc_version="$default_gcc_version"
9051 else
9052 target_gcc_version="$use_gcc_version"
9054 if test "$aros_toolchain" = "gnu" ; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9056 $as_echo "$target_gcc_version" >&6; }
9058 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9059 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9060 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9062 gcc_fix_bitfields="false"
9063 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9064 gcc_fix_bitfields="true"
9065 else
9066 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9067 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9068 gcc_fix_bitfields="true"
9073 if test "$gcc_fix_bitfields" = "true" ; then
9074 case "$aros_target_cpu" in
9075 *x86_64*)
9076 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9077 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9079 i386)
9080 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9081 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9083 esac
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9088 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9089 # Check whether --enable-objc was given.
9090 if test "${enable_objc+set}" = set; then :
9091 enableval=$enable_objc; objc="$enableval"
9092 else
9093 objc="no"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9097 $as_echo "$objc" >&6; }
9098 if test "x$objc" = "xyes"; then
9099 objc_target="$objc"
9100 else
9101 objc_target="no-objc"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9105 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9106 # Check whether --enable-java was given.
9107 if test "${enable_java+set}" = set; then :
9108 enableval=$enable_java; java="$enableval"
9109 else
9110 java="no"
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9114 $as_echo "$java" >&6; }
9115 if test "x$java" != "xno"; then
9116 java_target="$java"
9117 else
9118 java_target="no-java"
9121 spec_obj_format="-m $aros_object_format"
9122 # Now process extra architecture-specific options.
9123 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9124 # as well as floating-point ABI.
9125 case "$aros_target_cpu" in
9126 *x86_64*)
9127 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9129 arm*)
9130 if test "$gcc_default_cpu" = ""; then
9131 gcc_default_cpu="armv6"
9133 if test "$gcc_default_fpu" = ""; then
9134 gcc_default_fpu="vfp"
9136 if test "$gcc_default_float_abi" = ""; then
9137 if test "$target_cpu" = "armhf"; then
9138 gcc_default_float_abi="hard"
9139 else
9140 gcc_default_float_abi="softfp"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9145 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9147 # Check whether --with-cpu was given.
9148 if test "${with_cpu+set}" = set; then :
9149 withval=$with_cpu; aros_gcc_cpu="$withval"
9150 else
9151 aros_gcc_cpu=$gcc_default_cpu
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9155 $as_echo "$aros_gcc_cpu" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9158 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9160 # Check whether --with-fpu was given.
9161 if test "${with_fpu+set}" = set; then :
9162 withval=$with_fpu; aros_gcc_fpu="$withval"
9163 else
9164 aros_gcc_fpu=$gcc_default_fpu
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9168 $as_echo "$aros_gcc_fpu" >&6; }
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9171 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9173 # Check whether --with-float was given.
9174 if test "${with_float+set}" = set; then :
9175 withval=$with_float; aros_gcc_float_abi="$withval"
9176 else
9177 aros_gcc_float_abi=$gcc_default_float_abi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9181 $as_echo "$aros_gcc_float_abi" >&6; }
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9184 $as_echo_n "checking Which ARM mode to use... " >&6; }
9185 if test "$aros_target_cpu_mode" = ""; then
9186 aros_target_cpu_mode="arm32"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9188 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9191 $as_echo "$aros_target_cpu_mode" >&6; }
9194 case "$aros_target_cpu_mode" in
9195 arm32)
9196 gcc_default_mode="arm"
9197 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9199 arm64)
9200 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9202 thumb)
9203 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9205 thumb1)
9206 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9208 thumb2)
9209 gcc_default_mode="thumb"
9210 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9211 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9214 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9216 esac
9218 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9219 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9220 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9222 i386)
9223 aros_isa_flags="$aros_isa_flags -m32 -march=i486"
9224 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9225 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9227 esac
9229 # Some architectures may need custom ELF specs.
9230 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9231 elf_specs_in=config/${aros_object_format}-specs.in
9232 else
9233 elf_specs_in=config/elf-specs.in
9236 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9237 # Since we override specs, we may need to put these defines there
9238 if test "$gcc_target_cpu" != ""; then
9239 gcc_target_cpu="-D__${gcc_target_cpu}__"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9243 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9245 # Check whether --with-portssources was given.
9246 if test "${with_portssources+set}" = set; then :
9247 withval=$with_portssources; with_portssrcdir=$withval
9248 else
9249 with_portssrcdir="default"
9252 if test "$with_portssrcdir" = "default"; then
9253 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9254 else
9255 AROS_PORTSSRCDIR="$with_portssrcdir"
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9258 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9261 $as_echo_n "checking which bootloader to use... " >&6; }
9263 # Check whether --with-bootloader was given.
9264 if test "${with_bootloader+set}" = set; then :
9265 withval=$with_bootloader; target_bootloader=$withval
9266 else
9267 target_bootloader=$target_bootloader
9270 if test "$target_bootloader" = "none"; then
9271 aros_target_bootloader=""
9272 else
9273 aros_target_bootloader="$target_bootloader"
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9276 $as_echo "$target_bootloader" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9279 $as_echo_n "checking which icon-set to use... " >&6; }
9281 # Check whether --with-iconset was given.
9282 if test "${with_iconset+set}" = set; then :
9283 withval=$with_iconset; target_iconset=$withval
9284 else
9285 target_iconset="default"
9288 if test "$target_iconset" = "default"; then
9289 aros_target_iconset="Gorilla"
9290 target_iconset="default (Gorilla)"
9291 else
9292 aros_target_iconset="$target_iconset"
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9295 $as_echo "$target_iconset" >&6; }
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9298 $as_echo_n "checking which GUI Theme to use... " >&6; }
9300 # Check whether --with-theme was given.
9301 if test "${with_theme+set}" = set; then :
9302 withval=$with_theme; target_guitheme=$withval
9303 else
9304 target_guitheme="default"
9307 if test "$target_guitheme" = "default"; then
9308 aros_target_guitheme="Ice"
9309 else
9310 aros_target_guitheme="$target_guitheme"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9313 $as_echo "$aros_target_guitheme" >&6; }
9315 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9316 # for target code)
9317 cross_compiling=no
9319 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9320 cross_compiling=yes
9323 if test "$aros_host_cpu" == "x86_64" ; then
9324 if test "$aros_target_cpu" == "i386" ; then
9325 cross_compiling=no
9329 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9330 if test "$aros_host_arch" != "$aros_target_arch" ; then
9331 cross_compiling=yes
9333 else
9334 if test "$host_cc_elf" = "no" ; then
9335 cross_compiling=yes
9339 if test "$cross_compiling" = "no" ; then
9340 kernel_tool_prefix=""
9341 if test "$host_cc_elf" = "yes" ; then
9342 elf_tool_prefix=""
9346 if test "$kernel_tool_version" != ""; then
9347 kernel_tool_version="-$kernel_tool_version"
9350 #######################################################################
9351 ## Compute what toolchains to use, and their paths ##
9352 #######################################################################
9354 # This takes, as input:
9355 # crosstools {yes,no}
9356 # kernel_tool_version {"",[version]}
9357 # target_tool_version {"",[version]}
9358 # kernel_tool_prefix {none,[some-arch-os-]}
9359 # gnu-toolchain -:
9360 # target_tool_prefix ${aros_target_cpu}-aros-
9361 # aros_tool_prefix ${aros_target_cpu}-aros-
9363 # The output is
9364 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9365 # Where the 'kernel' binaries are located
9366 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9367 # Where the 'target' binaries are located
9368 # (not the symlink farm - that is aros_target_*!)
9370 # The rules are:
9371 # if crosstools then
9372 # if kernel_tools_prefix = "no-kernel-prefix-"
9373 # aros_kernel_* = crosstools cc paths
9374 # aros_kernel_cc = elf cc wrapper around crosstools cc
9375 # else
9376 # VALIDATE(${kernel_tools_prefix}*)
9377 # aros_kernel_* = ${kernel_tools_prefix}*
9378 # if ${kernel_tools_prefix}cc is an AROS gcc
9379 # aros_kernel_cc = ${kernel_tools_prefix}cc
9380 # else
9381 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9382 # fi
9383 # fi
9385 # orig_target_* = aros built crosstools
9386 # orig_target_cc = elf cc wrapper around crosstools cc
9387 # else
9388 # VALIDATE(${kernel_tools_prefix}*)
9390 # orig_target_* = aros_kernel_*
9391 # if aros_kernel_cc is an AROS gcc
9392 # orig_target_cc = aros_kernel_cc
9393 # else
9394 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9395 # fi
9396 # fi
9398 if test "$aros_toolchain" = "gnu" ; then
9399 target_tool_prefix="${aros_target_cpu}-aros-"
9400 elif test "$aros_toolchain" = "llvm" ; then
9401 target_tool_prefix="bin/"
9404 if test "$kernel_tool_prefix" != "" ; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9406 $as_echo_n "checking which kernel tools... " >&6; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9408 $as_echo "$kernel_tool_prefix" >&6; };
9411 if test "$kernel_tool_prefix" = "none" ; then
9412 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9413 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9415 else
9416 # Kernel tools required - find them
9417 # Note that 'normally', aros_kernel_* overrides will be
9418 # empty, unless specified in the per-arch sections above.
9419 if test "x$aros_kernel_cpp" = "x"; then
9420 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9422 if test "${kernel_tool_version}" != ""; then
9423 if test "$aros_kernel_cpp" != ""; then
9424 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9425 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9426 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9430 if test "$aros_kernel_cpp" = ""; then
9431 if test "$cross_compiling" = "yes" ; then
9432 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9433 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 case $aros_kernel_cpp in
9440 [\\/]* | ?:[\\/]*)
9441 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445 for as_dir in $PATH
9447 IFS=$as_save_IFS
9448 test -z "$as_dir" && as_dir=.
9449 for ac_exec_ext in '' $ac_executable_extensions; do
9450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9451 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 break 2
9455 done
9456 done
9457 IFS=$as_save_IFS
9460 esac
9462 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9463 if test -n "$aros_kernel_cpp"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9465 $as_echo "$aros_kernel_cpp" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9472 else
9473 if test "$GCC" = "yes"; then
9474 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9475 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9476 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 case $aros_kernel_cpp in
9483 [\\/]* | ?:[\\/]*)
9484 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in `dirname $aros_gcc_cpp`
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9498 done
9499 done
9500 IFS=$as_save_IFS
9503 esac
9505 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9506 if test -n "$aros_kernel_cpp"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9508 $as_echo "$aros_kernel_cpp" >&6; }
9509 else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9516 if test "$aros_kernel_cpp" = ""; then
9517 # Extract the first word of "cpp", so it can be a program name with args.
9518 set dummy cpp; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 case $aros_kernel_cpp in
9525 [\\/]* | ?:[\\/]*)
9526 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9540 done
9541 done
9542 IFS=$as_save_IFS
9545 esac
9547 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9548 if test -n "$aros_kernel_cpp"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9550 $as_echo "$aros_kernel_cpp" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9559 else
9560 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9561 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9562 set dummy $aros_kernel_cpp; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 case $aros_kernel_cpp in
9569 [\\/]* | ?:[\\/]*)
9570 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 break 2
9584 done
9585 done
9586 IFS=$as_save_IFS
9589 esac
9591 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9592 if test -n "$aros_kernel_cpp"; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9594 $as_echo "$aros_kernel_cpp" >&6; }
9595 else
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9601 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9604 req_avail=yes
9605 if test "$aros_kernel_cpp" = ""; then
9606 req_avail=no
9608 if test "$aros_kernel_cpp" = "no"; then
9609 req_avail=no
9611 if test "$req_avail" = "no"; then
9612 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9615 if test "x$aros_kernel_cc" = "x"; then
9616 aros_kernel_cc=${kernel_tool_prefix}${CC}
9618 if test "${kernel_tool_version}" != ""; then
9619 if test "$aros_kernel_cc" != ""; then
9620 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9621 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9622 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9626 if test "$aros_kernel_cc" = ""; then
9627 if test "$cross_compiling" = "yes" ; then
9628 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9629 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 case $aros_kernel_cc in
9636 [\\/]* | ?:[\\/]*)
9637 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9656 esac
9658 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9659 if test -n "$aros_kernel_cc"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9661 $as_echo "$aros_kernel_cc" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 else
9669 if test "$GCC" = "yes"; then
9670 aros_gcc_cc=`$CC -print-prog-name=cc`
9671 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9672 set dummy `basename $aros_gcc_cc`; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 case $aros_kernel_cc in
9679 [\\/]* | ?:[\\/]*)
9680 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in `dirname $aros_gcc_cc`
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9690 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9694 done
9695 done
9696 IFS=$as_save_IFS
9699 esac
9701 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9702 if test -n "$aros_kernel_cc"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9704 $as_echo "$aros_kernel_cc" >&6; }
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9712 if test "$aros_kernel_cc" = ""; then
9713 # Extract the first word of "cc", so it can be a program name with args.
9714 set dummy cc; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 case $aros_kernel_cc in
9721 [\\/]* | ?:[\\/]*)
9722 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 break 2
9736 done
9737 done
9738 IFS=$as_save_IFS
9741 esac
9743 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9744 if test -n "$aros_kernel_cc"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9746 $as_echo "$aros_kernel_cc" >&6; }
9747 else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9755 else
9756 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9757 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9758 set dummy $aros_kernel_cc; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 case $aros_kernel_cc in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9780 done
9781 done
9782 IFS=$as_save_IFS
9785 esac
9787 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9788 if test -n "$aros_kernel_cc"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9790 $as_echo "$aros_kernel_cc" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9797 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9800 req_avail=yes
9801 if test "$aros_kernel_cc" = ""; then
9802 req_avail=no
9804 if test "$aros_kernel_cc" = "no"; then
9805 req_avail=no
9807 if test "$req_avail" = "no"; then
9808 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9811 if test "x$aros_kernel_cxx" = "x"; then
9812 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9814 if test "${kernel_tool_version}" != ""; then
9815 if test "$aros_kernel_cxx" != ""; then
9816 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9817 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9818 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9822 if test "$aros_kernel_cxx" = ""; then
9823 if test "$cross_compiling" = "yes" ; then
9824 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9825 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 case $aros_kernel_cxx in
9832 [\\/]* | ?:[\\/]*)
9833 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9843 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9847 done
9848 done
9849 IFS=$as_save_IFS
9852 esac
9854 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9855 if test -n "$aros_kernel_cxx"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9857 $as_echo "$aros_kernel_cxx" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9864 else
9865 if test "$GCC" = "yes"; then
9866 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9867 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9868 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 $as_echo_n "checking for $ac_word... " >&6; }
9871 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 case $aros_kernel_cxx in
9875 [\\/]* | ?:[\\/]*)
9876 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 for as_dir in `dirname $aros_gcc_cxx`
9882 IFS=$as_save_IFS
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9886 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 break 2
9890 done
9891 done
9892 IFS=$as_save_IFS
9895 esac
9897 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9898 if test -n "$aros_kernel_cxx"; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9900 $as_echo "$aros_kernel_cxx" >&6; }
9901 else
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9908 if test "$aros_kernel_cxx" = ""; then
9909 # Extract the first word of "cxx", so it can be a program name with args.
9910 set dummy cxx; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 case $aros_kernel_cxx in
9917 [\\/]* | ?:[\\/]*)
9918 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9932 done
9933 done
9934 IFS=$as_save_IFS
9937 esac
9939 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9940 if test -n "$aros_kernel_cxx"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9942 $as_echo "$aros_kernel_cxx" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9951 else
9952 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9953 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9954 set dummy $aros_kernel_cxx; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 case $aros_kernel_cxx in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9981 esac
9983 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9984 if test -n "$aros_kernel_cxx"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9986 $as_echo "$aros_kernel_cxx" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9993 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9996 # If it's set, make sure it's really there
9997 if test "x$aros_kernel_cxx" != "x" ; then
9998 req_avail=yes
9999 if test "$aros_kernel_cxx" = ""; then
10000 req_avail=no
10002 if test "$aros_kernel_cxx" = "no"; then
10003 req_avail=no
10005 if test "$req_avail" = "no"; then
10006 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10010 if test "$aros_kernel_ld" = ""; then
10011 if test "$cross_compiling" = "yes" ; then
10012 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10013 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10015 $as_echo_n "checking for $ac_word... " >&6; }
10016 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 case $aros_kernel_ld in
10020 [\\/]* | ?:[\\/]*)
10021 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10037 IFS=$as_save_IFS
10040 esac
10042 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10043 if test -n "$aros_kernel_ld"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10045 $as_echo "$aros_kernel_ld" >&6; }
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10052 else
10053 if test "$GCC" = "yes"; then
10054 aros_gcc_ld=`$CC -print-prog-name=ld`
10055 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10056 set dummy `basename $aros_gcc_ld`; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 case $aros_kernel_ld in
10063 [\\/]* | ?:[\\/]*)
10064 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in `dirname $aros_gcc_ld`
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10074 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 break 2
10078 done
10079 done
10080 IFS=$as_save_IFS
10083 esac
10085 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10086 if test -n "$aros_kernel_ld"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10088 $as_echo "$aros_kernel_ld" >&6; }
10089 else
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10096 if test "$aros_kernel_ld" = ""; then
10097 # Extract the first word of "ld", so it can be a program name with args.
10098 set dummy ld; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 case $aros_kernel_ld in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10120 done
10121 done
10122 IFS=$as_save_IFS
10125 esac
10127 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10128 if test -n "$aros_kernel_ld"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10130 $as_echo "$aros_kernel_ld" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10139 else
10140 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10141 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10142 set dummy $aros_kernel_ld; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 case $aros_kernel_ld in
10149 [\\/]* | ?:[\\/]*)
10150 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10164 done
10165 done
10166 IFS=$as_save_IFS
10169 esac
10171 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10172 if test -n "$aros_kernel_ld"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10174 $as_echo "$aros_kernel_ld" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10181 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10184 req_avail=yes
10185 if test "$aros_kernel_ld" = ""; then
10186 req_avail=no
10188 if test "$aros_kernel_ld" = "no"; then
10189 req_avail=no
10191 if test "$req_avail" = "no"; then
10192 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10195 if test "$aros_kernel_as" = ""; then
10196 if test "$cross_compiling" = "yes" ; then
10197 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10198 set dummy ${kernel_tool_prefix}as; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_path_aros_kernel_as+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 case $aros_kernel_as in
10205 [\\/]* | ?:[\\/]*)
10206 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10216 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10225 esac
10227 aros_kernel_as=$ac_cv_path_aros_kernel_as
10228 if test -n "$aros_kernel_as"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10230 $as_echo "$aros_kernel_as" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10237 else
10238 if test "$GCC" = "yes"; then
10239 aros_gcc_as=`$CC -print-prog-name=as`
10240 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10241 set dummy `basename $aros_gcc_as`; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_path_aros_kernel_as+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 case $aros_kernel_as in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in `dirname $aros_gcc_as`
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10259 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10263 done
10264 done
10265 IFS=$as_save_IFS
10268 esac
10270 aros_kernel_as=$ac_cv_path_aros_kernel_as
10271 if test -n "$aros_kernel_as"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10273 $as_echo "$aros_kernel_as" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10281 if test "$aros_kernel_as" = ""; then
10282 # Extract the first word of "as", so it can be a program name with args.
10283 set dummy as; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if ${ac_cv_path_aros_kernel_as+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 case $aros_kernel_as in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10301 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10305 done
10306 done
10307 IFS=$as_save_IFS
10310 esac
10312 aros_kernel_as=$ac_cv_path_aros_kernel_as
10313 if test -n "$aros_kernel_as"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10315 $as_echo "$aros_kernel_as" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10324 else
10325 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10326 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10327 set dummy $aros_kernel_as; ac_word=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if ${ac_cv_path_aros_kernel_as+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 case $aros_kernel_as in
10334 [\\/]* | ?:[\\/]*)
10335 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10345 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 break 2
10349 done
10350 done
10351 IFS=$as_save_IFS
10354 esac
10356 aros_kernel_as=$ac_cv_path_aros_kernel_as
10357 if test -n "$aros_kernel_as"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10359 $as_echo "$aros_kernel_as" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10366 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10369 req_avail=yes
10370 if test "$aros_kernel_as" = ""; then
10371 req_avail=no
10373 if test "$aros_kernel_as" = "no"; then
10374 req_avail=no
10376 if test "$req_avail" = "no"; then
10377 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10380 if test "$aros_kernel_ar" = ""; then
10381 if test "$cross_compiling" = "yes" ; then
10382 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10383 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 $as_echo_n "checking for $ac_word... " >&6; }
10386 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 case $aros_kernel_ar in
10390 [\\/]* | ?:[\\/]*)
10391 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395 for as_dir in $PATH
10397 IFS=$as_save_IFS
10398 test -z "$as_dir" && as_dir=.
10399 for ac_exec_ext in '' $ac_executable_extensions; do
10400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10401 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 break 2
10405 done
10406 done
10407 IFS=$as_save_IFS
10410 esac
10412 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10413 if test -n "$aros_kernel_ar"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10415 $as_echo "$aros_kernel_ar" >&6; }
10416 else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 $as_echo "no" >&6; }
10422 else
10423 if test "$GCC" = "yes"; then
10424 aros_gcc_ar=`$CC -print-prog-name=ar`
10425 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10426 set dummy `basename $aros_gcc_ar`; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 case $aros_kernel_ar in
10433 [\\/]* | ?:[\\/]*)
10434 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in `dirname $aros_gcc_ar`
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10453 esac
10455 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10456 if test -n "$aros_kernel_ar"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10458 $as_echo "$aros_kernel_ar" >&6; }
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10466 if test "$aros_kernel_ar" = ""; then
10467 # Extract the first word of "ar", so it can be a program name with args.
10468 set dummy ar; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 case $aros_kernel_ar in
10475 [\\/]* | ?:[\\/]*)
10476 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10490 done
10491 done
10492 IFS=$as_save_IFS
10495 esac
10497 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10498 if test -n "$aros_kernel_ar"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10500 $as_echo "$aros_kernel_ar" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10509 else
10510 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10511 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10512 set dummy $aros_kernel_ar; ac_word=$2
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514 $as_echo_n "checking for $ac_word... " >&6; }
10515 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 case $aros_kernel_ar in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10534 done
10535 done
10536 IFS=$as_save_IFS
10539 esac
10541 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10542 if test -n "$aros_kernel_ar"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10544 $as_echo "$aros_kernel_ar" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10551 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10554 req_avail=yes
10555 if test "$aros_kernel_ar" = ""; then
10556 req_avail=no
10558 if test "$aros_kernel_ar" = "no"; then
10559 req_avail=no
10561 if test "$req_avail" = "no"; then
10562 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10565 if test "$aros_kernel_ranlib" = ""; then
10566 if test "$cross_compiling" = "yes" ; then
10567 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10568 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 case $aros_kernel_ranlib in
10575 [\\/]* | ?:[\\/]*)
10576 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10590 done
10591 done
10592 IFS=$as_save_IFS
10595 esac
10597 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10598 if test -n "$aros_kernel_ranlib"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10600 $as_echo "$aros_kernel_ranlib" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10607 else
10608 if test "$GCC" = "yes"; then
10609 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10610 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10611 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 case $aros_kernel_ranlib in
10618 [\\/]* | ?:[\\/]*)
10619 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in `dirname $aros_gcc_ranlib`
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10633 done
10634 done
10635 IFS=$as_save_IFS
10638 esac
10640 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10641 if test -n "$aros_kernel_ranlib"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10643 $as_echo "$aros_kernel_ranlib" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10651 if test "$aros_kernel_ranlib" = ""; then
10652 # Extract the first word of "ranlib", so it can be a program name with args.
10653 set dummy ranlib; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 case $aros_kernel_ranlib in
10660 [\\/]* | ?:[\\/]*)
10661 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10675 done
10676 done
10677 IFS=$as_save_IFS
10680 esac
10682 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10683 if test -n "$aros_kernel_ranlib"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10685 $as_echo "$aros_kernel_ranlib" >&6; }
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10694 else
10695 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10696 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10697 set dummy $aros_kernel_ranlib; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 case $aros_kernel_ranlib in
10704 [\\/]* | ?:[\\/]*)
10705 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10719 done
10720 done
10721 IFS=$as_save_IFS
10724 esac
10726 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10727 if test -n "$aros_kernel_ranlib"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10729 $as_echo "$aros_kernel_ranlib" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10736 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10739 req_avail=yes
10740 if test "$aros_kernel_ranlib" = ""; then
10741 req_avail=no
10743 if test "$aros_kernel_ranlib" = "no"; then
10744 req_avail=no
10746 if test "$req_avail" = "no"; then
10747 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10750 if test "$aros_kernel_nm" = ""; then
10751 if test "$cross_compiling" = "yes" ; then
10752 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10753 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 case $aros_kernel_nm in
10760 [\\/]* | ?:[\\/]*)
10761 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10775 done
10776 done
10777 IFS=$as_save_IFS
10780 esac
10782 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10783 if test -n "$aros_kernel_nm"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10785 $as_echo "$aros_kernel_nm" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10792 else
10793 if test "$GCC" = "yes"; then
10794 aros_gcc_nm=`$CC -print-prog-name=nm`
10795 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10796 set dummy `basename $aros_gcc_nm`; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 case $aros_kernel_nm in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in `dirname $aros_gcc_nm`
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10818 done
10819 done
10820 IFS=$as_save_IFS
10823 esac
10825 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10826 if test -n "$aros_kernel_nm"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10828 $as_echo "$aros_kernel_nm" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10836 if test "$aros_kernel_nm" = ""; then
10837 # Extract the first word of "nm", so it can be a program name with args.
10838 set dummy nm; ac_word=$2
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840 $as_echo_n "checking for $ac_word... " >&6; }
10841 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 case $aros_kernel_nm in
10845 [\\/]* | ?:[\\/]*)
10846 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10860 done
10861 done
10862 IFS=$as_save_IFS
10865 esac
10867 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10868 if test -n "$aros_kernel_nm"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10870 $as_echo "$aros_kernel_nm" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10879 else
10880 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10881 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10882 set dummy $aros_kernel_nm; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 case $aros_kernel_nm in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10906 IFS=$as_save_IFS
10909 esac
10911 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10912 if test -n "$aros_kernel_nm"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10914 $as_echo "$aros_kernel_nm" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10921 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10924 req_avail=yes
10925 if test "$aros_kernel_nm" = ""; then
10926 req_avail=no
10928 if test "$aros_kernel_nm" = "no"; then
10929 req_avail=no
10931 if test "$req_avail" = "no"; then
10932 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10935 if test "$aros_kernel_strip" = ""; then
10936 if test "$cross_compiling" = "yes" ; then
10937 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10938 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 case $aros_kernel_strip in
10945 [\\/]* | ?:[\\/]*)
10946 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10956 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10960 done
10961 done
10962 IFS=$as_save_IFS
10965 esac
10967 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10968 if test -n "$aros_kernel_strip"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10970 $as_echo "$aros_kernel_strip" >&6; }
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10977 else
10978 if test "$GCC" = "yes"; then
10979 aros_gcc_strip=`$CC -print-prog-name=strip`
10980 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10981 set dummy `basename $aros_gcc_strip`; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 case $aros_kernel_strip in
10988 [\\/]* | ?:[\\/]*)
10989 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in `dirname $aros_gcc_strip`
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11003 done
11004 done
11005 IFS=$as_save_IFS
11008 esac
11010 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11011 if test -n "$aros_kernel_strip"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11013 $as_echo "$aros_kernel_strip" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11021 if test "$aros_kernel_strip" = ""; then
11022 # Extract the first word of "strip", so it can be a program name with args.
11023 set dummy strip; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 $as_echo_n "checking for $ac_word... " >&6; }
11026 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 case $aros_kernel_strip in
11030 [\\/]* | ?:[\\/]*)
11031 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11045 done
11046 done
11047 IFS=$as_save_IFS
11050 esac
11052 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11053 if test -n "$aros_kernel_strip"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11055 $as_echo "$aros_kernel_strip" >&6; }
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11064 else
11065 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11066 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11067 set dummy $aros_kernel_strip; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 case $aros_kernel_strip in
11074 [\\/]* | ?:[\\/]*)
11075 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11089 done
11090 done
11091 IFS=$as_save_IFS
11094 esac
11096 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11097 if test -n "$aros_kernel_strip"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11099 $as_echo "$aros_kernel_strip" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11106 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11109 req_avail=yes
11110 if test "$aros_kernel_strip" = ""; then
11111 req_avail=no
11113 if test "$aros_kernel_strip" = "no"; then
11114 req_avail=no
11116 if test "$req_avail" = "no"; then
11117 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11120 # Objcopy and objdump are not required for the kernel
11121 # toolchain on many architectures.
11122 # So we'll look for them, but not make them strictly required.
11124 if test "$aros_kernel_objcopy" = ""; then
11125 if test "$cross_compiling" = "yes" ; then
11126 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11127 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $aros_kernel_objcopy in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11157 if test -n "$aros_kernel_objcopy"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11159 $as_echo "$aros_kernel_objcopy" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 else
11167 if test "$GCC" = "yes"; then
11168 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11169 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11170 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $aros_kernel_objcopy in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in `dirname $aros_gcc_objcopy`
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11188 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11192 done
11193 done
11194 IFS=$as_save_IFS
11197 esac
11199 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11200 if test -n "$aros_kernel_objcopy"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11202 $as_echo "$aros_kernel_objcopy" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11210 if test "$aros_kernel_objcopy" = ""; then
11211 # Extract the first word of "objcopy", so it can be a program name with args.
11212 set dummy objcopy; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 case $aros_kernel_objcopy in
11219 [\\/]* | ?:[\\/]*)
11220 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11234 done
11235 done
11236 IFS=$as_save_IFS
11239 esac
11241 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11242 if test -n "$aros_kernel_objcopy"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11244 $as_echo "$aros_kernel_objcopy" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11253 else
11254 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11255 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11256 set dummy $aros_kernel_objcopy; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 case $aros_kernel_objcopy in
11263 [\\/]* | ?:[\\/]*)
11264 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11278 done
11279 done
11280 IFS=$as_save_IFS
11283 esac
11285 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11286 if test -n "$aros_kernel_objcopy"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11288 $as_echo "$aros_kernel_objcopy" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11295 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11299 if test "$aros_kernel_objdump" = ""; then
11300 if test "$cross_compiling" = "yes" ; then
11301 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11302 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 case $aros_kernel_objdump in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11329 esac
11331 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11332 if test -n "$aros_kernel_objdump"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11334 $as_echo "$aros_kernel_objdump" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11341 else
11342 if test "$GCC" = "yes"; then
11343 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11344 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11345 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 case $aros_kernel_objdump in
11352 [\\/]* | ?:[\\/]*)
11353 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in `dirname $aros_gcc_objdump`
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11372 esac
11374 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11375 if test -n "$aros_kernel_objdump"; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11377 $as_echo "$aros_kernel_objdump" >&6; }
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11385 if test "$aros_kernel_objdump" = ""; then
11386 # Extract the first word of "objdump", so it can be a program name with args.
11387 set dummy objdump; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 case $aros_kernel_objdump in
11394 [\\/]* | ?:[\\/]*)
11395 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11409 done
11410 done
11411 IFS=$as_save_IFS
11414 esac
11416 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11417 if test -n "$aros_kernel_objdump"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11419 $as_echo "$aros_kernel_objdump" >&6; }
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11428 else
11429 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11430 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11431 set dummy $aros_kernel_objdump; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 case $aros_kernel_objdump in
11438 [\\/]* | ?:[\\/]*)
11439 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11453 done
11454 done
11455 IFS=$as_save_IFS
11458 esac
11460 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11461 if test -n "$aros_kernel_objdump"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11463 $as_echo "$aros_kernel_objdump" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11470 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11473 if test "x${crosstools}" != "xyes" ; then
11474 req_avail=yes
11475 if test "$aros_kernel_objcopy" = ""; then
11476 req_avail=no
11478 if test "$aros_kernel_objcopy" = "no"; then
11479 req_avail=no
11481 if test "$req_avail" = "no"; then
11482 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11484 req_avail=yes
11485 if test "$aros_kernel_objdump" = ""; then
11486 req_avail=no
11488 if test "$aros_kernel_objdump" = "no"; then
11489 req_avail=no
11491 if test "$req_avail" = "no"; then
11492 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11498 $as_echo_n "checking which target tools to use... " >&6; }
11499 if test "$aros_target_toolchain" = "yes"; then
11500 if test "$aros_toolchain" = "llvm" ; then
11501 msg_result="llvm"
11502 else
11503 msg_result=$target_tool_prefix
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11506 $as_echo "$msg_result" >&6; }
11507 # We are building AROS crosstools
11508 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11509 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11510 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11511 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11512 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11513 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11514 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11515 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11516 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11517 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11518 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11519 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11520 else
11521 # Determine whether AROS or ELF tools should be used
11522 if test "$aros_tool_prefix" = "none"; then
11523 aros_tool_prefix="${elf_tool_prefix}"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11527 $as_echo "$aros_tool_prefix" >&6; }
11528 # We are *not* building AROS crosstools - use the AROS or ELF tools
11530 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11531 if test "$cross_compiling" = "yes" ; then
11532 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11533 set dummy ${target_tool_prefix}cpp; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_path_orig_target_cpp+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 case $orig_target_cpp in
11540 [\\/]* | ?:[\\/]*)
11541 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11555 done
11556 done
11557 IFS=$as_save_IFS
11560 esac
11562 orig_target_cpp=$ac_cv_path_orig_target_cpp
11563 if test -n "$orig_target_cpp"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11565 $as_echo "$orig_target_cpp" >&6; }
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11572 else
11573 if test "$GCC" = "yes"; then
11574 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11575 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11576 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_path_orig_target_cpp+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 case $orig_target_cpp in
11583 [\\/]* | ?:[\\/]*)
11584 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in `dirname $aros_gcc_cpp`
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11594 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11603 esac
11605 orig_target_cpp=$ac_cv_path_orig_target_cpp
11606 if test -n "$orig_target_cpp"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11608 $as_echo "$orig_target_cpp" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11616 if test "$orig_target_cpp" = ""; then
11617 # Extract the first word of "cpp", so it can be a program name with args.
11618 set dummy cpp; ac_word=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if ${ac_cv_path_orig_target_cpp+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 case $orig_target_cpp in
11625 [\\/]* | ?:[\\/]*)
11626 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 break 2
11640 done
11641 done
11642 IFS=$as_save_IFS
11645 esac
11647 orig_target_cpp=$ac_cv_path_orig_target_cpp
11648 if test -n "$orig_target_cpp"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11650 $as_echo "$orig_target_cpp" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11659 else
11660 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11661 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11662 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_orig_target_cpp+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 case $orig_target_cpp in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11684 done
11685 done
11686 IFS=$as_save_IFS
11689 esac
11691 orig_target_cpp=$ac_cv_path_orig_target_cpp
11692 if test -n "$orig_target_cpp"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11694 $as_echo "$orig_target_cpp" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11701 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11704 req_avail=yes
11705 if test "$orig_target_cpp" = ""; then
11706 req_avail=no
11708 if test "$orig_target_cpp" = "no"; then
11709 req_avail=no
11711 if test "$req_avail" = "no"; then
11712 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11715 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11716 if test "$cross_compiling" = "yes" ; then
11717 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11718 set dummy ${target_tool_prefix}gcc; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_orig_target_cc+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 case $orig_target_cc in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11745 esac
11747 orig_target_cc=$ac_cv_path_orig_target_cc
11748 if test -n "$orig_target_cc"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11750 $as_echo "$orig_target_cc" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 else
11758 if test "$GCC" = "yes"; then
11759 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11760 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11761 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_path_orig_target_cc+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 case $orig_target_cc in
11768 [\\/]* | ?:[\\/]*)
11769 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in `dirname $aros_gcc_gcc`
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 break 2
11783 done
11784 done
11785 IFS=$as_save_IFS
11788 esac
11790 orig_target_cc=$ac_cv_path_orig_target_cc
11791 if test -n "$orig_target_cc"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11793 $as_echo "$orig_target_cc" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11801 if test "$orig_target_cc" = ""; then
11802 # Extract the first word of "gcc", so it can be a program name with args.
11803 set dummy gcc; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_orig_target_cc+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $orig_target_cc in
11810 [\\/]* | ?:[\\/]*)
11811 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11825 done
11826 done
11827 IFS=$as_save_IFS
11830 esac
11832 orig_target_cc=$ac_cv_path_orig_target_cc
11833 if test -n "$orig_target_cc"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11835 $as_echo "$orig_target_cc" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11844 else
11845 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11846 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11847 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if ${ac_cv_path_orig_target_cc+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case $orig_target_cc in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11869 done
11870 done
11871 IFS=$as_save_IFS
11874 esac
11876 orig_target_cc=$ac_cv_path_orig_target_cc
11877 if test -n "$orig_target_cc"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11879 $as_echo "$orig_target_cc" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11886 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11889 req_avail=yes
11890 if test "$orig_target_cc" = ""; then
11891 req_avail=no
11893 if test "$orig_target_cc" = "no"; then
11894 req_avail=no
11896 if test "$req_avail" = "no"; then
11897 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11900 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11901 if test "$cross_compiling" = "yes" ; then
11902 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11903 set dummy ${target_tool_prefix}g++; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if ${ac_cv_path_orig_target_cxx+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 case $orig_target_cxx in
11910 [\\/]* | ?:[\\/]*)
11911 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11921 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11925 done
11926 done
11927 IFS=$as_save_IFS
11930 esac
11932 orig_target_cxx=$ac_cv_path_orig_target_cxx
11933 if test -n "$orig_target_cxx"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11935 $as_echo "$orig_target_cxx" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11942 else
11943 if test "$GCC" = "yes"; then
11944 aros_gcc_g++=`$CC -print-prog-name=g++`
11945 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11946 set dummy `basename $aros_gcc_g++`; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if ${ac_cv_path_orig_target_cxx+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 case $orig_target_cxx in
11953 [\\/]* | ?:[\\/]*)
11954 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in `dirname $aros_gcc_g++`
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11968 done
11969 done
11970 IFS=$as_save_IFS
11973 esac
11975 orig_target_cxx=$ac_cv_path_orig_target_cxx
11976 if test -n "$orig_target_cxx"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11978 $as_echo "$orig_target_cxx" >&6; }
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11986 if test "$orig_target_cxx" = ""; then
11987 # Extract the first word of "g++", so it can be a program name with args.
11988 set dummy g++; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_orig_target_cxx+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 case $orig_target_cxx in
11995 [\\/]* | ?:[\\/]*)
11996 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12010 done
12011 done
12012 IFS=$as_save_IFS
12015 esac
12017 orig_target_cxx=$ac_cv_path_orig_target_cxx
12018 if test -n "$orig_target_cxx"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12020 $as_echo "$orig_target_cxx" >&6; }
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12029 else
12030 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12031 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12032 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_orig_target_cxx+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 case $orig_target_cxx in
12039 [\\/]* | ?:[\\/]*)
12040 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12054 done
12055 done
12056 IFS=$as_save_IFS
12059 esac
12061 orig_target_cxx=$ac_cv_path_orig_target_cxx
12062 if test -n "$orig_target_cxx"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12064 $as_echo "$orig_target_cxx" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12071 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12074 req_avail=yes
12075 if test "$orig_target_cxx" = ""; then
12076 req_avail=no
12078 if test "$orig_target_cxx" = "no"; then
12079 req_avail=no
12081 if test "$req_avail" = "no"; then
12082 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12085 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12086 if test "$cross_compiling" = "yes" ; then
12087 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12088 set dummy ${target_tool_prefix}gcc; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_path_orig_target_ld+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 case $orig_target_ld in
12095 [\\/]* | ?:[\\/]*)
12096 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12110 done
12111 done
12112 IFS=$as_save_IFS
12115 esac
12117 orig_target_ld=$ac_cv_path_orig_target_ld
12118 if test -n "$orig_target_ld"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12120 $as_echo "$orig_target_ld" >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12127 else
12128 if test "$GCC" = "yes"; then
12129 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12130 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12131 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_path_orig_target_ld+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 case $orig_target_ld in
12138 [\\/]* | ?:[\\/]*)
12139 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in `dirname $aros_gcc_gcc`
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12149 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 break 2
12153 done
12154 done
12155 IFS=$as_save_IFS
12158 esac
12160 orig_target_ld=$ac_cv_path_orig_target_ld
12161 if test -n "$orig_target_ld"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12163 $as_echo "$orig_target_ld" >&6; }
12164 else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12171 if test "$orig_target_ld" = ""; then
12172 # Extract the first word of "gcc", so it can be a program name with args.
12173 set dummy gcc; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if ${ac_cv_path_orig_target_ld+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 case $orig_target_ld in
12180 [\\/]* | ?:[\\/]*)
12181 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12195 done
12196 done
12197 IFS=$as_save_IFS
12200 esac
12202 orig_target_ld=$ac_cv_path_orig_target_ld
12203 if test -n "$orig_target_ld"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12205 $as_echo "$orig_target_ld" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12214 else
12215 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12216 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12217 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if ${ac_cv_path_orig_target_ld+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 case $orig_target_ld in
12224 [\\/]* | ?:[\\/]*)
12225 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12239 done
12240 done
12241 IFS=$as_save_IFS
12244 esac
12246 orig_target_ld=$ac_cv_path_orig_target_ld
12247 if test -n "$orig_target_ld"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12249 $as_echo "$orig_target_ld" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12256 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12259 req_avail=yes
12260 if test "$orig_target_ld" = ""; then
12261 req_avail=no
12263 if test "$orig_target_ld" = "no"; then
12264 req_avail=no
12266 if test "$req_avail" = "no"; then
12267 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12270 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12271 if test "$cross_compiling" = "yes" ; then
12272 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12273 set dummy ${target_tool_prefix}as; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_path_orig_target_as+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 case $orig_target_as in
12280 [\\/]* | ?:[\\/]*)
12281 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12300 esac
12302 orig_target_as=$ac_cv_path_orig_target_as
12303 if test -n "$orig_target_as"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12305 $as_echo "$orig_target_as" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12312 else
12313 if test "$GCC" = "yes"; then
12314 aros_gcc_as=`$CC -print-prog-name=as`
12315 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12316 set dummy `basename $aros_gcc_as`; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_path_orig_target_as+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 case $orig_target_as in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in `dirname $aros_gcc_as`
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12343 esac
12345 orig_target_as=$ac_cv_path_orig_target_as
12346 if test -n "$orig_target_as"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12348 $as_echo "$orig_target_as" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test "$orig_target_as" = ""; then
12357 # Extract the first word of "as", so it can be a program name with args.
12358 set dummy as; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if ${ac_cv_path_orig_target_as+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 case $orig_target_as in
12365 [\\/]* | ?:[\\/]*)
12366 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12380 done
12381 done
12382 IFS=$as_save_IFS
12385 esac
12387 orig_target_as=$ac_cv_path_orig_target_as
12388 if test -n "$orig_target_as"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12390 $as_echo "$orig_target_as" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12399 else
12400 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12401 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12402 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_orig_target_as+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case $orig_target_as in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12424 done
12425 done
12426 IFS=$as_save_IFS
12429 esac
12431 orig_target_as=$ac_cv_path_orig_target_as
12432 if test -n "$orig_target_as"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12434 $as_echo "$orig_target_as" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12441 orig_target_as="$orig_target_as $ac_tool_optarg"
12444 req_avail=yes
12445 if test "$orig_target_as" = ""; then
12446 req_avail=no
12448 if test "$orig_target_as" = "no"; then
12449 req_avail=no
12451 if test "$req_avail" = "no"; then
12452 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12455 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12456 if test "$cross_compiling" = "yes" ; then
12457 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12458 set dummy ${target_tool_prefix}ar; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_path_orig_target_ar+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 case $orig_target_ar in
12465 [\\/]* | ?:[\\/]*)
12466 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12476 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 break 2
12480 done
12481 done
12482 IFS=$as_save_IFS
12485 esac
12487 orig_target_ar=$ac_cv_path_orig_target_ar
12488 if test -n "$orig_target_ar"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12490 $as_echo "$orig_target_ar" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12497 else
12498 if test "$GCC" = "yes"; then
12499 aros_gcc_ar=`$CC -print-prog-name=ar`
12500 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12501 set dummy `basename $aros_gcc_ar`; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_path_orig_target_ar+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 case $orig_target_ar in
12508 [\\/]* | ?:[\\/]*)
12509 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in `dirname $aros_gcc_ar`
12515 IFS=$as_save_IFS
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 break 2
12523 done
12524 done
12525 IFS=$as_save_IFS
12528 esac
12530 orig_target_ar=$ac_cv_path_orig_target_ar
12531 if test -n "$orig_target_ar"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12533 $as_echo "$orig_target_ar" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12541 if test "$orig_target_ar" = ""; then
12542 # Extract the first word of "ar", so it can be a program name with args.
12543 set dummy ar; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if ${ac_cv_path_orig_target_ar+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 case $orig_target_ar in
12550 [\\/]* | ?:[\\/]*)
12551 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12565 done
12566 done
12567 IFS=$as_save_IFS
12570 esac
12572 orig_target_ar=$ac_cv_path_orig_target_ar
12573 if test -n "$orig_target_ar"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12575 $as_echo "$orig_target_ar" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12584 else
12585 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12586 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12587 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_path_orig_target_ar+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 case $orig_target_ar in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12614 esac
12616 orig_target_ar=$ac_cv_path_orig_target_ar
12617 if test -n "$orig_target_ar"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12619 $as_echo "$orig_target_ar" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12626 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12629 req_avail=yes
12630 if test "$orig_target_ar" = ""; then
12631 req_avail=no
12633 if test "$orig_target_ar" = "no"; then
12634 req_avail=no
12636 if test "$req_avail" = "no"; then
12637 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12640 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12641 if test "$cross_compiling" = "yes" ; then
12642 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12643 set dummy ${target_tool_prefix}ar; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 case $orig_target_ranlib in
12650 [\\/]* | ?:[\\/]*)
12651 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
12660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12665 done
12666 done
12667 IFS=$as_save_IFS
12670 esac
12672 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12673 if test -n "$orig_target_ranlib"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12675 $as_echo "$orig_target_ranlib" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12682 else
12683 if test "$GCC" = "yes"; then
12684 aros_gcc_ar=`$CC -print-prog-name=ar`
12685 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12686 set dummy `basename $aros_gcc_ar`; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 case $orig_target_ranlib in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in `dirname $aros_gcc_ar`
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12713 esac
12715 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12716 if test -n "$orig_target_ranlib"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12718 $as_echo "$orig_target_ranlib" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12726 if test "$orig_target_ranlib" = ""; then
12727 # Extract the first word of "ar", so it can be a program name with args.
12728 set dummy ar; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 case $orig_target_ranlib in
12735 [\\/]* | ?:[\\/]*)
12736 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12750 done
12751 done
12752 IFS=$as_save_IFS
12755 esac
12757 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12758 if test -n "$orig_target_ranlib"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12760 $as_echo "$orig_target_ranlib" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12769 else
12770 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12771 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12772 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 case $orig_target_ranlib in
12779 [\\/]* | ?:[\\/]*)
12780 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12794 done
12795 done
12796 IFS=$as_save_IFS
12799 esac
12801 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12802 if test -n "$orig_target_ranlib"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12804 $as_echo "$orig_target_ranlib" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12811 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12814 req_avail=yes
12815 if test "$orig_target_ranlib" = ""; then
12816 req_avail=no
12818 if test "$orig_target_ranlib" = "no"; then
12819 req_avail=no
12821 if test "$req_avail" = "no"; then
12822 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12825 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12826 if test "$cross_compiling" = "yes" ; then
12827 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12828 set dummy ${target_tool_prefix}nm; ac_word=$2
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830 $as_echo_n "checking for $ac_word... " >&6; }
12831 if ${ac_cv_path_orig_target_nm+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 case $orig_target_nm in
12835 [\\/]* | ?:[\\/]*)
12836 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12852 IFS=$as_save_IFS
12855 esac
12857 orig_target_nm=$ac_cv_path_orig_target_nm
12858 if test -n "$orig_target_nm"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12860 $as_echo "$orig_target_nm" >&6; }
12861 else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12867 else
12868 if test "$GCC" = "yes"; then
12869 aros_gcc_nm=`$CC -print-prog-name=nm`
12870 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12871 set dummy `basename $aros_gcc_nm`; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_path_orig_target_nm+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 case $orig_target_nm in
12878 [\\/]* | ?:[\\/]*)
12879 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in `dirname $aros_gcc_nm`
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12889 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12893 done
12894 done
12895 IFS=$as_save_IFS
12898 esac
12900 orig_target_nm=$ac_cv_path_orig_target_nm
12901 if test -n "$orig_target_nm"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12903 $as_echo "$orig_target_nm" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 if test "$orig_target_nm" = ""; then
12912 # Extract the first word of "nm", so it can be a program name with args.
12913 set dummy nm; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if ${ac_cv_path_orig_target_nm+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 case $orig_target_nm in
12920 [\\/]* | ?:[\\/]*)
12921 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12931 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12935 done
12936 done
12937 IFS=$as_save_IFS
12940 esac
12942 orig_target_nm=$ac_cv_path_orig_target_nm
12943 if test -n "$orig_target_nm"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12945 $as_echo "$orig_target_nm" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12954 else
12955 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12956 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12957 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_path_orig_target_nm+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 case $orig_target_nm in
12964 [\\/]* | ?:[\\/]*)
12965 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12975 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12979 done
12980 done
12981 IFS=$as_save_IFS
12984 esac
12986 orig_target_nm=$ac_cv_path_orig_target_nm
12987 if test -n "$orig_target_nm"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12989 $as_echo "$orig_target_nm" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12996 orig_target_nm="$orig_target_nm $ac_tool_optarg"
12999 req_avail=yes
13000 if test "$orig_target_nm" = ""; then
13001 req_avail=no
13003 if test "$orig_target_nm" = "no"; then
13004 req_avail=no
13006 if test "$req_avail" = "no"; then
13007 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13010 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13011 if test "$cross_compiling" = "yes" ; then
13012 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13013 set dummy ${target_tool_prefix}strip; ac_word=$2
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015 $as_echo_n "checking for $ac_word... " >&6; }
13016 if ${ac_cv_path_orig_target_strip+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 case $orig_target_strip in
13020 [\\/]* | ?:[\\/]*)
13021 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13035 done
13036 done
13037 IFS=$as_save_IFS
13040 esac
13042 orig_target_strip=$ac_cv_path_orig_target_strip
13043 if test -n "$orig_target_strip"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13045 $as_echo "$orig_target_strip" >&6; }
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13052 else
13053 if test "$GCC" = "yes"; then
13054 aros_gcc_strip=`$CC -print-prog-name=strip`
13055 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13056 set dummy `basename $aros_gcc_strip`; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_path_orig_target_strip+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 case $orig_target_strip in
13063 [\\/]* | ?:[\\/]*)
13064 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in `dirname $aros_gcc_strip`
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13078 done
13079 done
13080 IFS=$as_save_IFS
13083 esac
13085 orig_target_strip=$ac_cv_path_orig_target_strip
13086 if test -n "$orig_target_strip"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13088 $as_echo "$orig_target_strip" >&6; }
13089 else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13096 if test "$orig_target_strip" = ""; then
13097 # Extract the first word of "strip", so it can be a program name with args.
13098 set dummy strip; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_path_orig_target_strip+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 case $orig_target_strip in
13105 [\\/]* | ?:[\\/]*)
13106 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13116 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13120 done
13121 done
13122 IFS=$as_save_IFS
13125 esac
13127 orig_target_strip=$ac_cv_path_orig_target_strip
13128 if test -n "$orig_target_strip"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13130 $as_echo "$orig_target_strip" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13139 else
13140 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13141 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13142 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_path_orig_target_strip+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 case $orig_target_strip in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13160 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13164 done
13165 done
13166 IFS=$as_save_IFS
13169 esac
13171 orig_target_strip=$ac_cv_path_orig_target_strip
13172 if test -n "$orig_target_strip"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13174 $as_echo "$orig_target_strip" >&6; }
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13181 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13184 req_avail=yes
13185 if test "$orig_target_strip" = ""; then
13186 req_avail=no
13188 if test "$orig_target_strip" = "no"; then
13189 req_avail=no
13191 if test "$req_avail" = "no"; then
13192 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13195 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13196 if test "$cross_compiling" = "yes" ; then
13197 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13198 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 $as_echo_n "checking for $ac_word... " >&6; }
13201 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 case $orig_target_objcopy in
13205 [\\/]* | ?:[\\/]*)
13206 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13216 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13220 done
13221 done
13222 IFS=$as_save_IFS
13225 esac
13227 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13228 if test -n "$orig_target_objcopy"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13230 $as_echo "$orig_target_objcopy" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13237 else
13238 if test "$GCC" = "yes"; then
13239 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13240 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13241 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 case $orig_target_objcopy in
13248 [\\/]* | ?:[\\/]*)
13249 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in `dirname $aros_gcc_objcopy`
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13259 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 break 2
13263 done
13264 done
13265 IFS=$as_save_IFS
13268 esac
13270 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13271 if test -n "$orig_target_objcopy"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13273 $as_echo "$orig_target_objcopy" >&6; }
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13281 if test "$orig_target_objcopy" = ""; then
13282 # Extract the first word of "objcopy", so it can be a program name with args.
13283 set dummy objcopy; ac_word=$2
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285 $as_echo_n "checking for $ac_word... " >&6; }
13286 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 case $orig_target_objcopy in
13290 [\\/]* | ?:[\\/]*)
13291 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13301 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 break 2
13305 done
13306 done
13307 IFS=$as_save_IFS
13310 esac
13312 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13313 if test -n "$orig_target_objcopy"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13315 $as_echo "$orig_target_objcopy" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13324 else
13325 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13326 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13327 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 case $orig_target_objcopy in
13334 [\\/]* | ?:[\\/]*)
13335 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13349 done
13350 done
13351 IFS=$as_save_IFS
13354 esac
13356 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13357 if test -n "$orig_target_objcopy"; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13359 $as_echo "$orig_target_objcopy" >&6; }
13360 else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13366 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13369 req_avail=yes
13370 if test "$orig_target_objcopy" = ""; then
13371 req_avail=no
13373 if test "$orig_target_objcopy" = "no"; then
13374 req_avail=no
13376 if test "$req_avail" = "no"; then
13377 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13380 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13381 if test "$cross_compiling" = "yes" ; then
13382 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13383 set dummy ${target_tool_prefix}objdump; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_path_orig_target_objdump+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 case $orig_target_objdump in
13390 [\\/]* | ?:[\\/]*)
13391 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13405 done
13406 done
13407 IFS=$as_save_IFS
13410 esac
13412 orig_target_objdump=$ac_cv_path_orig_target_objdump
13413 if test -n "$orig_target_objdump"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13415 $as_echo "$orig_target_objdump" >&6; }
13416 else
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13422 else
13423 if test "$GCC" = "yes"; then
13424 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13425 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13426 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if ${ac_cv_path_orig_target_objdump+:} false; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 case $orig_target_objdump in
13433 [\\/]* | ?:[\\/]*)
13434 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in `dirname $aros_gcc_objdump`
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13453 esac
13455 orig_target_objdump=$ac_cv_path_orig_target_objdump
13456 if test -n "$orig_target_objdump"; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13458 $as_echo "$orig_target_objdump" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13466 if test "$orig_target_objdump" = ""; then
13467 # Extract the first word of "objdump", so it can be a program name with args.
13468 set dummy objdump; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if ${ac_cv_path_orig_target_objdump+:} false; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 case $orig_target_objdump in
13475 [\\/]* | ?:[\\/]*)
13476 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 break 2
13490 done
13491 done
13492 IFS=$as_save_IFS
13495 esac
13497 orig_target_objdump=$ac_cv_path_orig_target_objdump
13498 if test -n "$orig_target_objdump"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13500 $as_echo "$orig_target_objdump" >&6; }
13501 else
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503 $as_echo "no" >&6; }
13509 else
13510 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13511 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13512 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if ${ac_cv_path_orig_target_objdump+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 case $orig_target_objdump in
13519 [\\/]* | ?:[\\/]*)
13520 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13526 IFS=$as_save_IFS
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
13529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13530 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 break 2
13534 done
13535 done
13536 IFS=$as_save_IFS
13539 esac
13541 orig_target_objdump=$ac_cv_path_orig_target_objdump
13542 if test -n "$orig_target_objdump"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13544 $as_echo "$orig_target_objdump" >&6; }
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13551 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13554 req_avail=yes
13555 if test "$orig_target_objdump" = ""; then
13556 req_avail=no
13558 if test "$orig_target_objdump" = "no"; then
13559 req_avail=no
13561 if test "$req_avail" = "no"; then
13562 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13566 if test "$kernel_tool_prefix" = "none" ; then
13567 # No kernel tools specified
13568 # Assume target tools == kernel tools with ELF wrapper
13569 aros_kernel_cc=$orig_target_cc
13570 aros_kernel_cxx=$orig_target_cxx
13571 aros_kernel_cpp=$orig_target_cpp
13572 aros_kernel_ld=$orig_target_ld
13573 aros_kernel_as=$orig_target_as
13574 aros_kernel_ar=$orig_target_ar
13575 aros_kernel_ranlib=$orig_target_ranlib
13576 aros_kernel_nm=$orig_target_nm
13577 aros_kernel_strip=$orig_target_strip
13578 aros_kernel_objcopy=$orig_target_objcopy
13579 aros_kernel_objdump=$orig_target_objdump
13580 use_kernel_cc_wrapper=yes
13583 # At this point, all aros_kernel_* and aros_target_*
13584 # tools should be set up correctly
13586 CC="$aros_kernel_cc $kernel_tool_flags"
13587 CPP="$aros_kernel_cpp"
13589 #-----------------------------------------------------------------------------
13591 # Find all the tools we need to compile. This could be cross-compiling
13592 # though! If that is the case we use the GNU form of the target and
13593 # simply add this to the front of the binary name. This is rather simple,
13594 # but it should work under most circumstances.
13596 # The default tools are to use the same as the host, but only if the
13597 # host and target CPU are the same. With GCC this is normally enough.
13600 aros_cc_pre=""
13601 aros_shared_ld="$aros_host_ld"
13603 aros_target_mkdep="$aros_host_mkdep"
13605 # The default tools executables to be linked to.
13606 if test "$rescomp" != ""; then
13607 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13608 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 case $aros_kernel_rescomp in
13615 [\\/]* | ?:[\\/]*)
13616 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13622 IFS=$as_save_IFS
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 break 2
13630 done
13631 done
13632 IFS=$as_save_IFS
13635 esac
13637 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13638 if test -n "$aros_kernel_rescomp"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13640 $as_echo "$aros_kernel_rescomp" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13647 req_avail=yes
13648 if test "$aros_kernel_rescomp" = ""; then
13649 req_avail=no
13651 if test "$aros_kernel_rescomp" = "no"; then
13652 req_avail=no
13654 if test "$req_avail" = "no"; then
13655 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13659 # Set up the sources for the symlink farm
13660 if test "$crosstools" = "yes"; then
13661 crosstools_target=tools-crosstools
13664 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13665 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13667 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13668 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13669 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13670 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13671 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13672 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13673 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13675 # aros_cc_pre is a variable that is added to the front of the compiler name
13676 # in the generated aros-gcc shell script. We need this to enable the cache
13677 # to work across cleaned builds. Also, support DISTCC using the correct
13678 # environment variable.
13681 if test "x${DISTCC}" != "x" ; then
13682 if test "x${CCACHE}" != "x" ; then
13683 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13684 else
13685 aros_cc_pre="${DISTCC} "
13687 else
13688 if test "x${CCACHE}" != "x" ; then
13689 aros_cc_pre="${CCACHE} "
13693 aros_target_nostdinc_cflags=-nostdinc
13695 aros_target_nostartup_ldflags=-nostartfiles
13697 aros_target_nix_ldflags=-nix
13699 aros_target_detach_ldflags=-detach
13701 aros_target_nostdlib_ldflags=-nostdlib
13704 # Target tools
13706 if test "$aros_target_toolchain" != "yes"; then
13707 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13708 if test "$GCC" = "yes"; then
13709 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13711 else
13712 # We do not know which c compiler version we are going to build and what we need to know
13713 # here is different for different versions so this will be set later during the
13714 # build of crosstools.
13715 if test "$aros_toolchain" = "gnu" ; then
13716 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13717 elif test "$aros_toolchain" = "llvm" ; then
13718 prefix="$AROS_CROSSTOOLSDIR/bin/"
13720 aros_target_cc_path=@aros_target_cc_path@
13722 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13723 aros_target_cc="${prefix}${toolchain_c_compiler}"
13724 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13725 aros_target_as="${prefix}${toolchain_as}"
13726 if test "${use_ld_wrapper}" = "yes"; then
13727 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13728 else
13729 aros_target_ld="${prefix}${toolchain_ld}"
13731 aros_toolchain_ld="${prefix}${toolchain_ld}"
13733 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13734 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13735 aros_target_objdump="${prefix}${toolchain_objdump}"
13736 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13737 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13738 aros_target_strip="${prefix}${toolchain_strip}"
13739 aros_plain_nm="${prefix}${toolchain_nm}"
13740 aros_plain_ar="${prefix}${toolchain_ar}"
13742 # Check whether --enable-includes was given.
13743 if test "${enable_includes+set}" = set; then :
13744 enableval=$enable_includes; aros_target_incl=$enable_includes
13745 else
13746 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13750 if test "$aros_kernel_includes" = ""; then
13751 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13752 aros_kernel_includes="-isystem $aros_target_incl"
13756 if test "$aros_kernel_includes" != "" ; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13758 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13759 if test "$aros_kernel_cc_includes" = "" ; then
13760 # Try to guess where the directory is.
13761 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13762 if test -d $aros_kernel_cc_includes; then
13763 # Check if there is also an include-fixed directory and add it
13764 # to kernel compiler's include path as it may contain some of
13765 # the headers we need.
13766 if test -d "$aros_kernel_cc_includes"-fixed; then
13767 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13769 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13770 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13771 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13773 else
13774 # The directory doesn't exist, we need to do some more work.
13775 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13777 # These are the headers we're looking for.
13778 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13779 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13780 zutil.h stdint.h"
13782 dirs=
13783 for h in $headers; do
13784 # Which other headers are needed by each of the above?
13785 deps=$(echo "#include <$h>" | \
13786 $aros_kernel_cc -E -M - 2>/dev/null | \
13787 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13789 # Copy all the needed headers to a directory beneath gendir.
13790 for d in $deps; do
13791 h=$(basename $d)
13792 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13793 sed -n "s,^.*/include\(/.*\),\1,p")
13794 ! test -d $dir && mkdir -p $dir
13795 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13796 done
13797 done
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13801 $as_echo "$aros_kernel_cc_includes" >&6; }
13802 # Adding -nostdinc to kernel includes as they are always used together.
13803 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13806 if test "$crosstools" != "yes"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13808 $as_echo_n "checking for the target compiler's include path... " >&6; }
13809 if test "$aros_target_cc_includes" = "" ; then
13810 #try to guess where the directory is
13811 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13812 if ! test -d $aros_target_cc_includes; then
13813 #the directory doesn't exist, we need to do some more work
13814 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13816 #these are the headers we're looking for
13817 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13818 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13819 zutil.h"
13821 dirs=
13822 for h in $headers; do
13823 #which other headers each of the above headers needs?
13824 deps=$(echo "#include <$h>" | \
13825 $orig_target_cc -E -M - 2>/dev/null | \
13826 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13828 #copy all the needed headers to a directory beneath gendir
13829 for d in $deps; do
13830 h=$(basename $d)
13831 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13832 sed -n "s,^.*/include\(/.*\),\1,p")
13833 ! test -d $dir && mkdir -p $dir
13834 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13835 done
13836 done
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13840 $as_echo "$aros_target_cc_includes" >&6; }
13841 else
13842 # We do not know which c compiler version we are going to build and what we need to know
13843 # here is different for different versions so this will be set later during the
13844 # build of crosstools.
13845 aros_target_cc_includes=@aros_target_cc_includes@
13849 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13850 # On GCC >= 4.0 -iquote should be used
13853 save_cc="$CC"
13854 save_cflags="$CFLAGS"
13855 CFLAGS="-iquote."
13856 kernel_cflags_iquote=$host_cflags_iquote
13857 kernel_cflags_iquote_end=$host_cflags_iquote_end
13858 if test "x-$cross_compiling" = "x-yes"; then
13859 CC="$aros_kernel_cc"
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13861 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13862 if test "x-$crosstools" != "x-yes"; then
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13867 main ()
13871 return 0;
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 use_no_stack_protector="yes"
13876 else
13877 use_no_stack_protector="no"
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 else
13881 # we do know it is supported for the smallest version of gcc we are going to build
13882 # we assume it's also supported by later versions
13883 use_no_stack_protector=yes
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13886 $as_echo "$use_no_stack_protector" >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13888 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13889 if test "x-$crosstools" != "x-yes"; then
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13894 main ()
13898 return 0;
13900 _ACEOF
13901 if ac_fn_c_try_compile "$LINENO"; then :
13902 has_iquote="yes"
13903 else
13904 has_iquote="no"
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 else
13908 # we do know it is supported for the smallest version of gcc we are going to build
13909 # we assume it's also supported by later versions
13910 has_iquote=yes
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13913 $as_echo "$has_iquote" >&6; }
13914 if test "x-$has_iquote" = "x-yes" ; then
13915 kernel_cflags_iquote=-iquote
13916 kernel_cflags_iquote_end=
13917 else
13918 kernel_cflags_iquote=-I
13919 kernel_cflags_iquote_end=-I-
13922 if test "x-$use_no_stack_protector" = "x-yes" ; then
13923 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13926 #-----------------------------------------------------------------------------
13928 # Check if we can explicitly choose older version of symbol hashing
13930 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13931 CC="$aros_kernel_cc"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13933 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13938 main ()
13942 return 0;
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 use_hash_style="yes"
13947 else
13948 use_hash_style="no"
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13953 $as_echo "$use_hash_style" >&6; }
13954 if test "x-$use_hash_style" = "x-yes" ; then
13955 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13957 CC="$save_cc"
13958 CFLAGS="$save_cflags"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13967 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13969 # Check whether --with-resolution was given.
13970 if test "${with_resolution+set}" = set; then :
13971 withval=$with_resolution; resolution=$withval
13972 else
13973 resolution=none
13976 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13977 if test "$resolution" = "yes" ; then
13978 resolution="none"
13980 if test "$resolution" = "no" ; then
13981 resolution="none"
13983 if test "$resolution" != "none" ; then
13984 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13985 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13986 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13989 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13990 aros_cv_nominal_width=$aros_nominal_width
13991 aros_cv_nominal_height=$aros_nominal_height
13992 aros_cv_nominal_depth=$aros_nominal_depth
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13995 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13997 # Check whether --with-serial-debug was given.
13998 if test "${with_serial_debug+set}" = set; then :
13999 withval=$with_serial_debug; serial_debug=$withval
14000 else
14001 serial_debug=none
14004 if test "$aros_serial_debug" = 0 ; then
14005 serial_debug_forced=""
14006 if test "$serial_debug" = "yes" ; then
14007 serial_debug="1"
14009 if test "$serial_debug" = "no" ; then
14010 serial_debug="none"
14012 else
14013 serial_debug_forced="(forced)"
14014 serial_debug=$aros_serial_debug
14016 if test "$serial_debug" != "none" ; then
14017 aros_serial_debug=$serial_debug
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14019 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14026 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14027 # Check whether --enable-palm_debug_hack was given.
14028 if test "${enable_palm_debug_hack+set}" = set; then :
14029 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14030 else
14031 palm_debug_hack="no"
14034 if test "$palm_debug_hack" = "yes" ; then
14035 aros_palm_debug_hack="1"
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14038 $as_echo "$palm_debug_hack" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14041 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14042 # Check whether --enable-usb30_code was given.
14043 if test "${enable_usb30_code+set}" = set; then :
14044 enableval=$enable_usb30_code; usb30_code="yes"
14045 else
14046 usb30_code="no"
14049 if test "$usb30_code" = "yes" ; then
14050 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14051 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14054 $as_echo "$usb30_code" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14057 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14058 # Check whether --enable-nesting_supervisor was given.
14059 if test "${enable_nesting_supervisor+set}" = set; then :
14060 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14061 else
14062 nesting_supervisor="no"
14065 if test "$nesting_supervisor" = "yes" ; then
14066 aros_nesting_supervisor="1"
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14069 $as_echo "$nesting_supervisor" >&6; }
14071 if test "$aros_enable_mmu" = "" ; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14073 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14074 # Check whether --enable-mmu was given.
14075 if test "${enable_mmu+set}" = set; then :
14076 enableval=$enable_mmu; aros_enable_mmu=$enableval
14077 else
14078 aros_enable_mmu="yes"
14081 if test "$aros_enable_mmu" = "" ; then
14082 aros_enable_mmu="yes"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14085 $as_echo "$aros_enable_mmu" >&6; }
14087 if test "$aros_enable_mmu" = "no" ; then
14088 aros_enable_mmu="0"
14089 else
14090 aros_enable_mmu="1"
14094 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14096 if test "x-$need_dlopen" != "x-no" ; then
14097 save_libs="$LIBS"
14098 LIBS=""
14099 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14100 if test "x$ac_cv_func_dlopen" = xyes; then :
14101 have_dl="yes"
14102 else
14103 have_dl="no"
14106 if test "x-$have_dl" = "x-no" ; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14108 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14109 if ${ac_cv_lib_dl_dlopen+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-ldl $LIBS"
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 char dlopen ();
14125 main ()
14127 return dlopen ();
14129 return 0;
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_dl_dlopen=yes
14134 else
14135 ac_cv_lib_dl_dlopen=no
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14142 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14143 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14144 have_dl="yes"
14145 aros_host_ldflags="$aros_host_ldflags -ldl"
14146 else
14147 have_dl="no"
14151 if test "x-$have_dl" = "x-no" ; then
14152 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14154 LIBS="$save_libs"
14158 # Check whether --enable-x11_hidd was given.
14159 if test "${enable_x11_hidd+set}" = set; then :
14160 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14161 else
14162 x11_hidd="$need_x11"
14165 case "x-$x11_hidd" in
14166 x-yes|x-no|x-auto) ;;
14167 *) x11_hidd="$need_x11" ;;
14168 esac
14170 ENABLE_X11=0
14172 if test "x-$x11_hidd" != "x-no" ; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14175 $as_echo_n "checking for X... " >&6; }
14178 # Check whether --with-x was given.
14179 if test "${with_x+set}" = set; then :
14180 withval=$with_x;
14183 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14184 if test "x$with_x" = xno; then
14185 # The user explicitly disabled X.
14186 have_x=disabled
14187 else
14188 case $x_includes,$x_libraries in #(
14189 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14190 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 # One or both of the vars are not set, and there is no cached value.
14194 ac_x_includes=no ac_x_libraries=no
14195 rm -f -r conftest.dir
14196 if mkdir conftest.dir; then
14197 cd conftest.dir
14198 cat >Imakefile <<'_ACEOF'
14199 incroot:
14200 @echo incroot='${INCROOT}'
14201 usrlibdir:
14202 @echo usrlibdir='${USRLIBDIR}'
14203 libdir:
14204 @echo libdir='${LIBDIR}'
14205 _ACEOF
14206 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14207 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14208 for ac_var in incroot usrlibdir libdir; do
14209 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14210 done
14211 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14212 for ac_extension in a so sl dylib la dll; do
14213 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14214 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14215 ac_im_usrlibdir=$ac_im_libdir; break
14217 done
14218 # Screen out bogus values from the imake configuration. They are
14219 # bogus both because they are the default anyway, and because
14220 # using them would break gcc on systems where it needs fixed includes.
14221 case $ac_im_incroot in
14222 /usr/include) ac_x_includes= ;;
14223 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14224 esac
14225 case $ac_im_usrlibdir in
14226 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14227 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14228 esac
14230 cd ..
14231 rm -f -r conftest.dir
14234 # Standard set of common directories for X headers.
14235 # Check X11 before X11Rn because it is often a symlink to the current release.
14236 ac_x_header_dirs='
14237 /usr/X11/include
14238 /usr/X11R7/include
14239 /usr/X11R6/include
14240 /usr/X11R5/include
14241 /usr/X11R4/include
14243 /usr/include/X11
14244 /usr/include/X11R7
14245 /usr/include/X11R6
14246 /usr/include/X11R5
14247 /usr/include/X11R4
14249 /usr/local/X11/include
14250 /usr/local/X11R7/include
14251 /usr/local/X11R6/include
14252 /usr/local/X11R5/include
14253 /usr/local/X11R4/include
14255 /usr/local/include/X11
14256 /usr/local/include/X11R7
14257 /usr/local/include/X11R6
14258 /usr/local/include/X11R5
14259 /usr/local/include/X11R4
14261 /usr/X386/include
14262 /usr/x386/include
14263 /usr/XFree86/include/X11
14265 /usr/include
14266 /usr/local/include
14267 /usr/unsupported/include
14268 /usr/athena/include
14269 /usr/local/x11r5/include
14270 /usr/lpp/Xamples/include
14272 /usr/openwin/include
14273 /usr/openwin/share/include'
14275 if test "$ac_x_includes" = no; then
14276 # Guess where to find include files, by looking for Xlib.h.
14277 # First, try using that file with no special directory specified.
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 #include <X11/Xlib.h>
14281 _ACEOF
14282 if ac_fn_c_try_cpp "$LINENO"; then :
14283 # We can compile using X headers with no special include directory.
14284 ac_x_includes=
14285 else
14286 for ac_dir in $ac_x_header_dirs; do
14287 if test -r "$ac_dir/X11/Xlib.h"; then
14288 ac_x_includes=$ac_dir
14289 break
14291 done
14293 rm -f conftest.err conftest.i conftest.$ac_ext
14294 fi # $ac_x_includes = no
14296 if test "$ac_x_libraries" = no; then
14297 # Check for the libraries.
14298 # See if we find them without any special options.
14299 # Don't add to $LIBS permanently.
14300 ac_save_LIBS=$LIBS
14301 LIBS="-lX11 $LIBS"
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <X11/Xlib.h>
14306 main ()
14308 XrmInitialize ()
14310 return 0;
14312 _ACEOF
14313 if ac_fn_c_try_link "$LINENO"; then :
14314 LIBS=$ac_save_LIBS
14315 # We can link X programs with no special library path.
14316 ac_x_libraries=
14317 else
14318 LIBS=$ac_save_LIBS
14319 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14321 # Don't even attempt the hair of trying to link an X program!
14322 for ac_extension in a so sl dylib la dll; do
14323 if test -r "$ac_dir/libX11.$ac_extension"; then
14324 ac_x_libraries=$ac_dir
14325 break 2
14327 done
14328 done
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 fi # $ac_x_libraries = no
14334 case $ac_x_includes,$ac_x_libraries in #(
14335 no,* | *,no | *\'*)
14336 # Didn't find X, or a directory has "'" in its name.
14337 ac_cv_have_x="have_x=no";; #(
14339 # Record where we found X for the cache.
14340 ac_cv_have_x="have_x=yes\
14341 ac_x_includes='$ac_x_includes'\
14342 ac_x_libraries='$ac_x_libraries'"
14343 esac
14345 ;; #(
14346 *) have_x=yes;;
14347 esac
14348 eval "$ac_cv_have_x"
14349 fi # $with_x != no
14351 if test "$have_x" != yes; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14353 $as_echo "$have_x" >&6; }
14354 no_x=yes
14355 else
14356 # If each of the values was on the command line, it overrides each guess.
14357 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14358 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14359 # Update the cache value to reflect the command line values.
14360 ac_cv_have_x="have_x=yes\
14361 ac_x_includes='$x_includes'\
14362 ac_x_libraries='$x_libraries'"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14364 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14368 if test -n "$x_includes"; then
14369 X_CFLAGS="$X_CFLAGS -I$x_includes"
14372 if test -n "$x_libraries"; then
14373 X_LIBS="$X_LIBS -L$x_libraries"
14376 if test "x-$no_x" = "x-yes" ; then
14378 if test "x-$x11_hidd" != "x-auto" ; then
14379 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14382 else
14383 host_x_gfx=yes
14384 ENABLE_X11=1
14386 aros_host_x11_cflags="$X_CFLAGS"
14387 aros_host_x11_ldflags="$X_LIBS -lX11"
14389 # Check whether --enable-x11_shm was given.
14390 if test "${enable_x11_shm+set}" = set; then :
14391 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14392 else
14393 x11_hidd_shm="auto"
14396 case "x-$x11_hidd_shm" in
14397 x-yes|x-no|x-auto) ;;
14398 *) x11_hidd_shm="auto" ;;
14399 esac
14401 have_xshm=no
14403 if test "x-$x11_hidd_shm" != "x-no" ; then
14405 for ac_header in sys/ipc.h
14406 do :
14407 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14408 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_SYS_IPC_H 1
14411 _ACEOF
14415 done
14417 for ac_header in sys/shm.h
14418 do :
14419 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14421 cat >>confdefs.h <<_ACEOF
14422 #define HAVE_SYS_SHM_H 1
14423 _ACEOF
14427 done
14430 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14432 save_cflags="$CFLAGS"
14433 save_ldflags="$LDFLAGS"
14434 CFLAGS="$CFLAGS $X_CFLAGS"
14435 LDFLAGS="$LDFLAGS $X_LIBS"
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14437 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14438 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 ac_check_lib_save_LIBS=$LIBS
14442 LIBS="-lXext $LIBS"
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14446 /* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 char XShmQueryExtension ();
14454 main ()
14456 return XShmQueryExtension ();
14458 return 0;
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"; then :
14462 ac_cv_lib_Xext_XShmQueryExtension=yes
14463 else
14464 ac_cv_lib_Xext_XShmQueryExtension=no
14466 rm -f core conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14471 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14472 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14473 have_xshm=yes
14476 CFLAGS="$save_cflags"
14477 LDFLAGS="$save_ldflags"
14481 if test "x-$have_xshm" = "x-yes" ; then
14482 DO_XSHM_SUPPORT="1"
14483 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14484 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14485 else
14486 DO_XSHM_SUPPORT="0"
14490 # Check whether --enable-x11_vidmode was given.
14491 if test "${enable_x11_vidmode+set}" = set; then :
14492 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14493 else
14494 x11_hidd_vidmode="auto"
14497 case "x-$x11_hidd_vidmode" in
14498 x-yes|x-no|x-auto) ;;
14499 *) x11_hidd_vidmode="auto" ;;
14500 esac
14502 have_vidmode=no
14504 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14506 save_cflags="$CFLAGS"
14507 save_ldflags="$LDFLAGS"
14508 CFLAGS="$CFLAGS $X_CFLAGS"
14509 LDFLAGS="$LDFLAGS $X_LIBS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14511 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14512 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-lXxf86vm $LIBS"
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14520 /* Override any GCC internal prototype to avoid an error.
14521 Use char because int might match the return type of a GCC
14522 builtin and then its argument prototype would still apply. */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 char XF86VidModeQueryExtension ();
14528 main ()
14530 return XF86VidModeQueryExtension ();
14532 return 0;
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"; then :
14536 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14537 else
14538 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14545 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14546 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14547 have_vidmode=yes
14550 CFLAGS="$save_cflags"
14551 LDFLAGS="$save_ldflags"
14554 if test "x-$have_vidmode" = "x-yes" ; then
14555 DO_VIDMODE_SUPPORT="1"
14556 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14557 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14558 else
14559 DO_VIDMODE_SUPPORT="0"
14564 # Check whether --enable-sdl_hidd was given.
14565 if test "${enable_sdl_hidd+set}" = set; then :
14566 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14567 else
14568 sdl_hidd="auto"
14571 case "x-$sdl_hidd" in
14572 x-yes|x-no|x-auto) ;;
14573 *) sdl_hidd="auto" ;;
14574 esac
14576 if test "x-$sdl_hidd" != "x-no" ; then
14578 SDL_VERSION=1.2.5
14580 # Check whether --with-sdl-prefix was given.
14581 if test "${with_sdl_prefix+set}" = set; then :
14582 withval=$with_sdl_prefix; sdl_prefix="$withval"
14583 else
14584 sdl_prefix=""
14588 # Check whether --with-sdl-exec-prefix was given.
14589 if test "${with_sdl_exec_prefix+set}" = set; then :
14590 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14591 else
14592 sdl_exec_prefix=""
14595 # Check whether --enable-sdltest was given.
14596 if test "${enable_sdltest+set}" = set; then :
14597 enableval=$enable_sdltest;
14598 else
14599 enable_sdltest=yes
14603 if test x$sdl_exec_prefix != x ; then
14604 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14605 if test x${SDL_CONFIG+set} != xset ; then
14606 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14609 if test x$sdl_prefix != x ; then
14610 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14611 if test x${SDL_CONFIG+set} != xset ; then
14612 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14616 as_save_PATH="$PATH"
14617 if test "x$prefix" != xNONE; then
14618 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14620 # Extract the first word of "sdl-config", so it can be a program name with args.
14621 set dummy sdl-config; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 case $SDL_CONFIG in
14628 [\\/]* | ?:[\\/]*)
14629 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14633 for as_dir in $PATH
14635 IFS=$as_save_IFS
14636 test -z "$as_dir" && as_dir=.
14637 for ac_exec_ext in '' $ac_executable_extensions; do
14638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14639 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14641 break 2
14643 done
14644 done
14645 IFS=$as_save_IFS
14647 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14649 esac
14651 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14652 if test -n "$SDL_CONFIG"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14654 $as_echo "$SDL_CONFIG" >&6; }
14655 else
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14661 PATH="$as_save_PATH"
14662 min_sdl_version=$SDL_VERSION
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14664 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14665 no_sdl=""
14666 if test "$SDL_CONFIG" = "no" ; then
14667 no_sdl=yes
14668 else
14669 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14670 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14672 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14674 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14676 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14678 if test "x$enable_sdltest" = "xyes" ; then
14679 ac_save_CFLAGS="$CFLAGS"
14680 ac_save_CXXFLAGS="$CXXFLAGS"
14681 ac_save_LIBS="$LIBS"
14682 CFLAGS="$CFLAGS $SDL_CFLAGS"
14683 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14684 LIBS="$LIBS $SDL_LIBS"
14685 rm -f conf.sdltest
14686 if test "$cross_compiling" = yes; then :
14687 echo $ac_n "cross compiling; assumed OK... $ac_c"
14688 else
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14692 #include <stdio.h>
14693 #include <stdlib.h>
14694 #include <string.h>
14695 #include "SDL.h"
14697 char*
14698 my_strdup (char *str)
14700 char *new_str;
14702 if (str)
14704 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14705 strcpy (new_str, str);
14707 else
14708 new_str = NULL;
14710 return new_str;
14713 int main (int argc, char *argv[])
14715 int major, minor, micro;
14716 char *tmp_version;
14718 /* This hangs on some systems (?)
14719 system ("touch conf.sdltest");
14721 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14723 /* HP/UX 9 (%@#!) writes to sscanf strings */
14724 tmp_version = my_strdup("$min_sdl_version");
14725 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14726 printf("%s, bad version string\n", "$min_sdl_version");
14727 exit(1);
14730 if (($sdl_major_version > major) ||
14731 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14732 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14734 return 0;
14736 else
14738 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14739 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14740 printf("*** best to upgrade to the required version.\n");
14741 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14742 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14743 printf("*** config.cache before re-running configure\n");
14744 return 1;
14749 _ACEOF
14750 if ac_fn_c_try_run "$LINENO"; then :
14752 else
14753 no_sdl=yes
14755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14756 conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 CFLAGS="$ac_save_CFLAGS"
14760 CXXFLAGS="$ac_save_CXXFLAGS"
14761 LIBS="$ac_save_LIBS"
14764 if test "x$no_sdl" = x ; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766 $as_echo "yes" >&6; }
14767 have_sdl="yes"
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770 $as_echo "no" >&6; }
14771 if test "$SDL_CONFIG" = "no" ; then
14772 echo "*** The sdl-config script installed by SDL could not be found"
14773 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14774 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14775 echo "*** full path to sdl-config."
14776 else
14777 if test -f conf.sdltest ; then
14779 else
14780 echo "*** Could not run SDL test program, checking why..."
14781 CFLAGS="$CFLAGS $SDL_CFLAGS"
14782 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14783 LIBS="$LIBS $SDL_LIBS"
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14787 #include <stdio.h>
14788 #include "SDL.h"
14790 int main(int argc, char *argv[])
14791 { return 0; }
14792 #undef main
14793 #define main K_and_R_C_main
14796 main ()
14798 return 0;
14800 return 0;
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"; then :
14804 echo "*** The test program compiled, but did not run. This usually means"
14805 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14806 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14807 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14808 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14809 echo "*** is required on your system"
14810 echo "***"
14811 echo "*** If you have an old version installed, it is best to remove it, although"
14812 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14813 else
14814 echo "*** The test program failed to compile or link. See the file config.log for the"
14815 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14816 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14817 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 CFLAGS="$ac_save_CFLAGS"
14822 CXXFLAGS="$ac_save_CXXFLAGS"
14823 LIBS="$ac_save_LIBS"
14826 SDL_CFLAGS=""
14827 SDL_LIBS=""
14828 have_sdl="no"
14832 rm -f conf.sdltest
14835 if test "x-$have_sdl" != "x-yes" ; then
14837 if test "x-$sdl_hidd" != "x-auto" ; then
14838 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14841 else
14842 host_sdl_gfx=yes
14843 aros_host_sdl_cflags=$SDL_CFLAGS
14844 aros_host_sdl_libs=$SDL_LIBS
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14852 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14853 # Check whether --enable-dbus was given.
14854 if test "${enable_dbus+set}" = set; then :
14855 enableval=$enable_dbus; dbus="yes"
14856 else
14857 dbus="no"
14860 if test "$dbus" = "yes" ; then
14861 ENABLE_DBUS=1
14862 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14863 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14864 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14865 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14866 else
14867 ENABLE_DBUS=0
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14870 $as_echo "$dbus" >&6; }
14872 if test "$use_kernel_cc_wrapper" = "yes" ; then
14873 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14877 # Generic
14891 # Compatability with other Amiga-like operation systems
14894 # Host related
14924 # Target Related
15001 # Hosted Graphics Related
15019 # Native version related
15024 # Palm native version related
15027 # Unix/Hosted version related
15030 # MMU related
15033 # Apple iOS related
15038 # ARM default GCC target related
15045 # Android related
15050 # DBUS related
15057 #X11 related
15060 # Debug related
15066 # Collect-aros stuff: "-ius" to ignore undefined symbols
15069 # C compiler related
15074 #ObjC compiler related
15077 #Java related
15080 # USB3.0 code
15083 case "$aros_flavour" in
15084 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15085 aros_flavour="emulation" ;;
15086 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15087 aros_flavour="emulation" ;;
15088 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15089 aros_flavour="standalone";;
15090 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15091 aros_flavour="standalone";;
15092 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15093 aros_flavour="native" ;;
15094 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15095 aros_flavour="native" ;;
15096 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15097 aros_flavour="linklib" ;;
15098 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15099 aros_flavour="palmnative" ;;
15100 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15101 aros_flavour="mac68knative" ;;
15102 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15103 aros_flavour="ppcnative" ;;
15104 esac
15106 if test ! -d ${aros_inc_dir} ; then
15107 ${MKDIR} ${aros_inc_dir}
15109 if test ! -d ${aros_geninc_dir} ; then
15110 ${MKDIR} ${aros_geninc_dir}
15112 if test ! -d ${aros_hostcfg_dir} ; then
15113 ${MKDIR} ${aros_hostcfg_dir}
15115 if test ! -d ${aros_targetcfg_dir} ; then
15116 ${MKDIR} ${aros_targetcfg_dir}
15118 if test ! -d ${aros_tools_dir} ; then
15119 ${MKDIR} ${aros_tools_dir}
15121 if test ! -d ${aros_scripts_dir} ; then
15122 ${MKDIR} ${aros_scripts_dir}
15125 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15128 # Generic build tools (metamake, etc)
15129 ac_config_commands="$ac_config_commands genmf-executable-support"
15131 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"
15134 # Binutils
15135 ac_config_commands="$ac_config_commands binutils-support"
15137 if test "${use_ld_wrapper}" = "yes"; then
15138 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"
15141 # Bare Elf support script and spec
15142 if test "${use_kernel_cc_wrapper}" = "yes"; then
15143 ac_config_commands="$ac_config_commands elf-compiler-support"
15145 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"
15149 # Host compiler support scripts and spec
15150 if test "${aros_target_toolchain}" = "no"; then
15151 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15153 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"
15157 # Android support
15158 if test "$aros_target_variant" == "android"; then
15159 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15163 # cmake helper
15164 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15167 cat >confcache <<\_ACEOF
15168 # This file is a shell script that caches the results of configure
15169 # tests run on this system so they can be shared between configure
15170 # scripts and configure runs, see configure's option --config-cache.
15171 # It is not useful on other systems. If it contains results you don't
15172 # want to keep, you may remove or edit it.
15174 # config.status only pays attention to the cache file if you give it
15175 # the --recheck option to rerun configure.
15177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15179 # following values.
15181 _ACEOF
15183 # The following way of writing the cache mishandles newlines in values,
15184 # but we know of no workaround that is simple, portable, and efficient.
15185 # So, we kill variables containing newlines.
15186 # Ultrix sh set writes to stderr and can't be redirected directly,
15187 # and sets the high bit in the cache file unless we assign to the vars.
15189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15190 eval ac_val=\$$ac_var
15191 case $ac_val in #(
15192 *${as_nl}*)
15193 case $ac_var in #(
15194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15196 esac
15197 case $ac_var in #(
15198 _ | IFS | as_nl) ;; #(
15199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15200 *) { eval $ac_var=; unset $ac_var;} ;;
15201 esac ;;
15202 esac
15203 done
15205 (set) 2>&1 |
15206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15207 *${as_nl}ac_space=\ *)
15208 # `set' does not quote correctly, so add quotes: double-quote
15209 # substitution turns \\\\ into \\, and sed turns \\ into \.
15210 sed -n \
15211 "s/'/'\\\\''/g;
15212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15213 ;; #(
15215 # `set' quotes correctly as required by POSIX, so do not add quotes.
15216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15218 esac |
15219 sort
15221 sed '
15222 /^ac_cv_env_/b end
15223 t clear
15224 :clear
15225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15226 t end
15227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15228 :end' >>confcache
15229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15230 if test -w "$cache_file"; then
15231 if test "x$cache_file" != "x/dev/null"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15233 $as_echo "$as_me: updating cache $cache_file" >&6;}
15234 if test ! -f "$cache_file" || test -h "$cache_file"; then
15235 cat confcache >"$cache_file"
15236 else
15237 case $cache_file in #(
15238 */* | ?:*)
15239 mv -f confcache "$cache_file"$$ &&
15240 mv -f "$cache_file"$$ "$cache_file" ;; #(
15242 mv -f confcache "$cache_file" ;;
15243 esac
15246 else
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15251 rm -f confcache
15253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15254 # Let make expand exec_prefix.
15255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15257 DEFS=-DHAVE_CONFIG_H
15259 ac_libobjs=
15260 ac_ltlibobjs=
15262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15263 # 1. Remove the extension, and $U if already installed.
15264 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15265 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15267 # will be set to the directory where LIBOBJS objects are built.
15268 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15269 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15270 done
15271 LIBOBJS=$ac_libobjs
15273 LTLIBOBJS=$ac_ltlibobjs
15277 : "${CONFIG_STATUS=./config.status}"
15278 ac_write_fail=0
15279 ac_clean_files_save=$ac_clean_files
15280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15282 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15283 as_write_fail=0
15284 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15285 #! $SHELL
15286 # Generated by $as_me.
15287 # Run this file to recreate the current configuration.
15288 # Compiler output produced by configure, useful for debugging
15289 # configure, is in config.log if it exists.
15291 debug=false
15292 ac_cs_recheck=false
15293 ac_cs_silent=false
15295 SHELL=\${CONFIG_SHELL-$SHELL}
15296 export SHELL
15297 _ASEOF
15298 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15299 ## -------------------- ##
15300 ## M4sh Initialization. ##
15301 ## -------------------- ##
15303 # Be more Bourne compatible
15304 DUALCASE=1; export DUALCASE # for MKS sh
15305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15306 emulate sh
15307 NULLCMD=:
15308 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15309 # is contrary to our usage. Disable this feature.
15310 alias -g '${1+"$@"}'='"$@"'
15311 setopt NO_GLOB_SUBST
15312 else
15313 case `(set -o) 2>/dev/null` in #(
15314 *posix*) :
15315 set -o posix ;; #(
15316 *) :
15318 esac
15322 as_nl='
15324 export as_nl
15325 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15326 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15329 # Prefer a ksh shell builtin over an external printf program on Solaris,
15330 # but without wasting forks for bash or zsh.
15331 if test -z "$BASH_VERSION$ZSH_VERSION" \
15332 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15333 as_echo='print -r --'
15334 as_echo_n='print -rn --'
15335 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15336 as_echo='printf %s\n'
15337 as_echo_n='printf %s'
15338 else
15339 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15340 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15341 as_echo_n='/usr/ucb/echo -n'
15342 else
15343 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15344 as_echo_n_body='eval
15345 arg=$1;
15346 case $arg in #(
15347 *"$as_nl"*)
15348 expr "X$arg" : "X\\(.*\\)$as_nl";
15349 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15350 esac;
15351 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15353 export as_echo_n_body
15354 as_echo_n='sh -c $as_echo_n_body as_echo'
15356 export as_echo_body
15357 as_echo='sh -c $as_echo_body as_echo'
15360 # The user is always right.
15361 if test "${PATH_SEPARATOR+set}" != set; then
15362 PATH_SEPARATOR=:
15363 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15364 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15365 PATH_SEPARATOR=';'
15370 # IFS
15371 # We need space, tab and new line, in precisely that order. Quoting is
15372 # there to prevent editors from complaining about space-tab.
15373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15374 # splitting by setting IFS to empty value.)
15375 IFS=" "" $as_nl"
15377 # Find who we are. Look in the path if we contain no directory separator.
15378 as_myself=
15379 case $0 in #((
15380 *[\\/]* ) as_myself=$0 ;;
15381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15382 for as_dir in $PATH
15384 IFS=$as_save_IFS
15385 test -z "$as_dir" && as_dir=.
15386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15387 done
15388 IFS=$as_save_IFS
15391 esac
15392 # We did not find ourselves, most probably we were run as `sh COMMAND'
15393 # in which case we are not to be found in the path.
15394 if test "x$as_myself" = x; then
15395 as_myself=$0
15397 if test ! -f "$as_myself"; then
15398 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15399 exit 1
15402 # Unset variables that we do not need and which cause bugs (e.g. in
15403 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15404 # suppresses any "Segmentation fault" message there. '((' could
15405 # trigger a bug in pdksh 5.2.14.
15406 for as_var in BASH_ENV ENV MAIL MAILPATH
15407 do eval test x\${$as_var+set} = xset \
15408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15409 done
15410 PS1='$ '
15411 PS2='> '
15412 PS4='+ '
15414 # NLS nuisances.
15415 LC_ALL=C
15416 export LC_ALL
15417 LANGUAGE=C
15418 export LANGUAGE
15420 # CDPATH.
15421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15425 # ----------------------------------------
15426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15428 # script with STATUS, using 1 if that was 0.
15429 as_fn_error ()
15431 as_status=$1; test $as_status -eq 0 && as_status=1
15432 if test "$4"; then
15433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15434 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15436 $as_echo "$as_me: error: $2" >&2
15437 as_fn_exit $as_status
15438 } # as_fn_error
15441 # as_fn_set_status STATUS
15442 # -----------------------
15443 # Set $? to STATUS, without forking.
15444 as_fn_set_status ()
15446 return $1
15447 } # as_fn_set_status
15449 # as_fn_exit STATUS
15450 # -----------------
15451 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15452 as_fn_exit ()
15454 set +e
15455 as_fn_set_status $1
15456 exit $1
15457 } # as_fn_exit
15459 # as_fn_unset VAR
15460 # ---------------
15461 # Portably unset VAR.
15462 as_fn_unset ()
15464 { eval $1=; unset $1;}
15466 as_unset=as_fn_unset
15467 # as_fn_append VAR VALUE
15468 # ----------------------
15469 # Append the text in VALUE to the end of the definition contained in VAR. Take
15470 # advantage of any shell optimizations that allow amortized linear growth over
15471 # repeated appends, instead of the typical quadratic growth present in naive
15472 # implementations.
15473 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15474 eval 'as_fn_append ()
15476 eval $1+=\$2
15478 else
15479 as_fn_append ()
15481 eval $1=\$$1\$2
15483 fi # as_fn_append
15485 # as_fn_arith ARG...
15486 # ------------------
15487 # Perform arithmetic evaluation on the ARGs, and store the result in the
15488 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15489 # must be portable across $(()) and expr.
15490 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15491 eval 'as_fn_arith ()
15493 as_val=$(( $* ))
15495 else
15496 as_fn_arith ()
15498 as_val=`expr "$@" || test $? -eq 1`
15500 fi # as_fn_arith
15503 if expr a : '\(a\)' >/dev/null 2>&1 &&
15504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15505 as_expr=expr
15506 else
15507 as_expr=false
15510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15511 as_basename=basename
15512 else
15513 as_basename=false
15516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15517 as_dirname=dirname
15518 else
15519 as_dirname=false
15522 as_me=`$as_basename -- "$0" ||
15523 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15524 X"$0" : 'X\(//\)$' \| \
15525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15526 $as_echo X/"$0" |
15527 sed '/^.*\/\([^/][^/]*\)\/*$/{
15528 s//\1/
15531 /^X\/\(\/\/\)$/{
15532 s//\1/
15535 /^X\/\(\/\).*/{
15536 s//\1/
15539 s/.*/./; q'`
15541 # Avoid depending upon Character Ranges.
15542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15545 as_cr_digits='0123456789'
15546 as_cr_alnum=$as_cr_Letters$as_cr_digits
15548 ECHO_C= ECHO_N= ECHO_T=
15549 case `echo -n x` in #(((((
15550 -n*)
15551 case `echo 'xy\c'` in
15552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15553 xy) ECHO_C='\c';;
15554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15555 ECHO_T=' ';;
15556 esac;;
15558 ECHO_N='-n';;
15559 esac
15561 rm -f conf$$ conf$$.exe conf$$.file
15562 if test -d conf$$.dir; then
15563 rm -f conf$$.dir/conf$$.file
15564 else
15565 rm -f conf$$.dir
15566 mkdir conf$$.dir 2>/dev/null
15568 if (echo >conf$$.file) 2>/dev/null; then
15569 if ln -s conf$$.file conf$$ 2>/dev/null; then
15570 as_ln_s='ln -s'
15571 # ... but there are two gotchas:
15572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15574 # In both cases, we have to default to `cp -pR'.
15575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15576 as_ln_s='cp -pR'
15577 elif ln conf$$.file conf$$ 2>/dev/null; then
15578 as_ln_s=ln
15579 else
15580 as_ln_s='cp -pR'
15582 else
15583 as_ln_s='cp -pR'
15585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15586 rmdir conf$$.dir 2>/dev/null
15589 # as_fn_mkdir_p
15590 # -------------
15591 # Create "$as_dir" as a directory, including parents if necessary.
15592 as_fn_mkdir_p ()
15595 case $as_dir in #(
15596 -*) as_dir=./$as_dir;;
15597 esac
15598 test -d "$as_dir" || eval $as_mkdir_p || {
15599 as_dirs=
15600 while :; do
15601 case $as_dir in #(
15602 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15603 *) as_qdir=$as_dir;;
15604 esac
15605 as_dirs="'$as_qdir' $as_dirs"
15606 as_dir=`$as_dirname -- "$as_dir" ||
15607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15608 X"$as_dir" : 'X\(//\)[^/]' \| \
15609 X"$as_dir" : 'X\(//\)$' \| \
15610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15611 $as_echo X"$as_dir" |
15612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15613 s//\1/
15616 /^X\(\/\/\)[^/].*/{
15617 s//\1/
15620 /^X\(\/\/\)$/{
15621 s//\1/
15624 /^X\(\/\).*/{
15625 s//\1/
15628 s/.*/./; q'`
15629 test -d "$as_dir" && break
15630 done
15631 test -z "$as_dirs" || eval "mkdir $as_dirs"
15632 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15635 } # as_fn_mkdir_p
15636 if mkdir -p . 2>/dev/null; then
15637 as_mkdir_p='mkdir -p "$as_dir"'
15638 else
15639 test -d ./-p && rmdir ./-p
15640 as_mkdir_p=false
15644 # as_fn_executable_p FILE
15645 # -----------------------
15646 # Test if FILE is an executable regular file.
15647 as_fn_executable_p ()
15649 test -f "$1" && test -x "$1"
15650 } # as_fn_executable_p
15651 as_test_x='test -x'
15652 as_executable_p=as_fn_executable_p
15654 # Sed expression to map a string onto a valid CPP name.
15655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15657 # Sed expression to map a string onto a valid variable name.
15658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15661 exec 6>&1
15662 ## ----------------------------------- ##
15663 ## Main body of $CONFIG_STATUS script. ##
15664 ## ----------------------------------- ##
15665 _ASEOF
15666 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669 # Save the log message, to keep $0 and so on meaningful, and to
15670 # report actual input values of CONFIG_FILES etc. instead of their
15671 # values after options handling.
15672 ac_log="
15673 This file was extended by $as_me, which was
15674 generated by GNU Autoconf 2.69. Invocation command line was
15676 CONFIG_FILES = $CONFIG_FILES
15677 CONFIG_HEADERS = $CONFIG_HEADERS
15678 CONFIG_LINKS = $CONFIG_LINKS
15679 CONFIG_COMMANDS = $CONFIG_COMMANDS
15680 $ $0 $@
15682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15685 _ACEOF
15687 case $ac_config_files in *"
15688 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15689 esac
15691 case $ac_config_headers in *"
15692 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15693 esac
15696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15697 # Files that config.status was made for.
15698 config_files="$ac_config_files"
15699 config_headers="$ac_config_headers"
15700 config_commands="$ac_config_commands"
15702 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 ac_cs_usage="\
15706 \`$as_me' instantiates files and other configuration actions
15707 from templates according to the current configuration. Unless the files
15708 and actions are specified as TAGs, all are instantiated by default.
15710 Usage: $0 [OPTION]... [TAG]...
15712 -h, --help print this help, then exit
15713 -V, --version print version number and configuration settings, then exit
15714 --config print configuration, then exit
15715 -q, --quiet, --silent
15716 do not print progress messages
15717 -d, --debug don't remove temporary files
15718 --recheck update $as_me by reconfiguring in the same conditions
15719 --file=FILE[:TEMPLATE]
15720 instantiate the configuration file FILE
15721 --header=FILE[:TEMPLATE]
15722 instantiate the configuration header FILE
15724 Configuration files:
15725 $config_files
15727 Configuration headers:
15728 $config_headers
15730 Configuration commands:
15731 $config_commands
15733 Report bugs to the package provider."
15735 _ACEOF
15736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15737 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15738 ac_cs_version="\\
15739 config.status
15740 configured by $0, generated by GNU Autoconf 2.69,
15741 with options \\"\$ac_cs_config\\"
15743 Copyright (C) 2012 Free Software Foundation, Inc.
15744 This config.status script is free software; the Free Software Foundation
15745 gives unlimited permission to copy, distribute and modify it."
15747 ac_pwd='$ac_pwd'
15748 srcdir='$srcdir'
15749 test -n "\$AWK" || AWK=awk
15750 _ACEOF
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753 # The default lists apply if the user does not specify any file.
15754 ac_need_defaults=:
15755 while test $# != 0
15757 case $1 in
15758 --*=?*)
15759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15761 ac_shift=:
15763 --*=)
15764 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15765 ac_optarg=
15766 ac_shift=:
15769 ac_option=$1
15770 ac_optarg=$2
15771 ac_shift=shift
15773 esac
15775 case $ac_option in
15776 # Handling of the options.
15777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15778 ac_cs_recheck=: ;;
15779 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15780 $as_echo "$ac_cs_version"; exit ;;
15781 --config | --confi | --conf | --con | --co | --c )
15782 $as_echo "$ac_cs_config"; exit ;;
15783 --debug | --debu | --deb | --de | --d | -d )
15784 debug=: ;;
15785 --file | --fil | --fi | --f )
15786 $ac_shift
15787 case $ac_optarg in
15788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15789 '') as_fn_error $? "missing file argument" ;;
15790 esac
15791 as_fn_append CONFIG_FILES " '$ac_optarg'"
15792 ac_need_defaults=false;;
15793 --header | --heade | --head | --hea )
15794 $ac_shift
15795 case $ac_optarg in
15796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15797 esac
15798 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15799 ac_need_defaults=false;;
15800 --he | --h)
15801 # Conflict between --help and --header
15802 as_fn_error $? "ambiguous option: \`$1'
15803 Try \`$0 --help' for more information.";;
15804 --help | --hel | -h )
15805 $as_echo "$ac_cs_usage"; exit ;;
15806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15808 ac_cs_silent=: ;;
15810 # This is an error.
15811 -*) as_fn_error $? "unrecognized option: \`$1'
15812 Try \`$0 --help' for more information." ;;
15814 *) as_fn_append ac_config_targets " $1"
15815 ac_need_defaults=false ;;
15817 esac
15818 shift
15819 done
15821 ac_configure_extra_args=
15823 if $ac_cs_silent; then
15824 exec 6>/dev/null
15825 ac_configure_extra_args="$ac_configure_extra_args --silent"
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15830 if \$ac_cs_recheck; then
15831 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15832 shift
15833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15834 CONFIG_SHELL='$SHELL'
15835 export CONFIG_SHELL
15836 exec "\$@"
15839 _ACEOF
15840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15841 exec 5>>config.log
15843 echo
15844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15845 ## Running $as_me. ##
15846 _ASBOX
15847 $as_echo "$ac_log"
15848 } >&5
15850 _ACEOF
15851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 # INIT-COMMANDS
15856 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15857 aros_tools_dir=${aros_tools_dir}
15861 aros_host_exe_suffix=${aros_host_exe_suffix}
15862 aros_tools_dir=${aros_tools_dir}
15863 aros_target_cpu=${aros_target_cpu}
15864 aros_target_arch=${aros_target_arch}
15865 aros_target_suffix=${aros_target_suffix}
15866 orig_target_nm=${orig_target_nm}
15867 orig_target_as=${orig_target_as}
15868 orig_target_ar=${orig_target_ar}
15869 orig_target_ranlib=${orig_target_ranlib}
15870 orig_target_objdump=${orig_target_objdump}
15871 orig_target_objcopy=${orig_target_objcopy}
15872 orig_target_strip=${orig_target_strip}
15873 aros_kernel_ld=${aros_kernel_ld}
15877 aros_host_exe_suffix=${aros_host_exe_suffix}
15878 aros_tools_dir=${aros_tools_dir}
15879 aros_target_cpu=${aros_target_cpu}
15880 aros_target_arch=${aros_target_arch}
15881 aros_target_suffix=${aros_target_suffix}
15882 aros_kernel_ld=${aros_kernel_ld}
15886 aros_host_exe_suffix=${aros_host_exe_suffix}
15887 aros_tools_dir=${aros_tools_dir}
15888 aros_target_cpu=${aros_target_cpu}
15889 aros_target_arch=${aros_target_arch}
15890 aros_target_suffix=${aros_target_suffix}
15894 _ACEOF
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 # Handling of arguments.
15899 for ac_config_target in $ac_config_targets
15901 case $ac_config_target in
15902 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15903 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15905 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15906 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15907 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15908 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15909 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15910 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15911 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15912 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15913 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15914 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15915 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15916 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15917 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15918 "${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" ;;
15919 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15920 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15921 "${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" ;;
15922 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15923 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15924 "${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" ;;
15925 "${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" ;;
15926 "${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" ;;
15927 "${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" ;;
15928 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15930 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15931 esac
15932 done
15935 # If the user did not use the arguments to specify the items to instantiate,
15936 # then the envvar interface is used. Set only those that are not.
15937 # We use the long form for the default assignment because of an extremely
15938 # bizarre bug on SunOS 4.1.3.
15939 if $ac_need_defaults; then
15940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15945 # Have a temporary directory for convenience. Make it in the build tree
15946 # simply because there is no reason against having it here, and in addition,
15947 # creating and moving files from /tmp can sometimes cause problems.
15948 # Hook for its removal unless debugging.
15949 # Note that there is a small window in which the directory will not be cleaned:
15950 # after its creation but before its name has been assigned to `$tmp'.
15951 $debug ||
15953 tmp= ac_tmp=
15954 trap 'exit_status=$?
15955 : "${ac_tmp:=$tmp}"
15956 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15958 trap 'as_fn_exit 1' 1 2 13 15
15960 # Create a (secure) tmp directory for tmp files.
15963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15964 test -d "$tmp"
15965 } ||
15967 tmp=./conf$$-$RANDOM
15968 (umask 077 && mkdir "$tmp")
15969 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15970 ac_tmp=$tmp
15972 # Set up the scripts for CONFIG_FILES section.
15973 # No need to generate them if there are no CONFIG_FILES.
15974 # This happens for instance with `./config.status config.h'.
15975 if test -n "$CONFIG_FILES"; then
15978 ac_cr=`echo X | tr X '\015'`
15979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15980 # But we know of no other shell where ac_cr would be empty at this
15981 # point, so we can use a bashism as a fallback.
15982 if test "x$ac_cr" = x; then
15983 eval ac_cr=\$\'\\r\'
15985 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15987 ac_cs_awk_cr='\\r'
15988 else
15989 ac_cs_awk_cr=$ac_cr
15992 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15993 _ACEOF
15997 echo "cat >conf$$subs.awk <<_ACEOF" &&
15998 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15999 echo "_ACEOF"
16000 } >conf$$subs.sh ||
16001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16003 ac_delim='%!_!# '
16004 for ac_last_try in false false false false false :; do
16005 . ./conf$$subs.sh ||
16006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16009 if test $ac_delim_n = $ac_delim_num; then
16010 break
16011 elif $ac_last_try; then
16012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16013 else
16014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16016 done
16017 rm -f conf$$subs.sh
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16021 _ACEOF
16022 sed -n '
16024 s/^/S["/; s/!.*/"]=/
16027 s/^[^!]*!//
16028 :repl
16029 t repl
16030 s/'"$ac_delim"'$//
16031 t delim
16034 s/\(.\{148\}\)..*/\1/
16035 t more1
16036 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16039 b repl
16040 :more1
16041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16044 s/.\{148\}//
16045 t nl
16046 :delim
16048 s/\(.\{148\}\)..*/\1/
16049 t more2
16050 s/["\\]/\\&/g; s/^/"/; s/$/"/
16053 :more2
16054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16057 s/.\{148\}//
16058 t delim
16059 ' <conf$$subs.awk | sed '
16060 /^[^""]/{
16062 s/\n//
16064 ' >>$CONFIG_STATUS || ac_write_fail=1
16065 rm -f conf$$subs.awk
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 _ACAWK
16068 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16069 for (key in S) S_is_set[key] = 1
16070 FS = "\a"
16074 line = $ 0
16075 nfields = split(line, field, "@")
16076 substed = 0
16077 len = length(field[1])
16078 for (i = 2; i < nfields; i++) {
16079 key = field[i]
16080 keylen = length(key)
16081 if (S_is_set[key]) {
16082 value = S[key]
16083 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16084 len += length(value) + length(field[++i])
16085 substed = 1
16086 } else
16087 len += 1 + keylen
16090 print line
16093 _ACAWK
16094 _ACEOF
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16098 else
16100 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16101 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16102 _ACEOF
16104 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16105 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16106 # trailing colons and then remove the whole line if VPATH becomes empty
16107 # (actually we leave an empty line to preserve line numbers).
16108 if test "x$srcdir" = x.; then
16109 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16111 s///
16112 s/^/:/
16113 s/[ ]*$/:/
16114 s/:\$(srcdir):/:/g
16115 s/:\${srcdir}:/:/g
16116 s/:@srcdir@:/:/g
16117 s/^:*//
16118 s/:*$//
16120 s/\(=[ ]*\).*/\1/
16122 s/\n//
16123 s/^[^=]*=[ ]*$//
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 fi # test -n "$CONFIG_FILES"
16130 # Set up the scripts for CONFIG_HEADERS section.
16131 # No need to generate them if there are no CONFIG_HEADERS.
16132 # This happens for instance with `./config.status Makefile'.
16133 if test -n "$CONFIG_HEADERS"; then
16134 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16135 BEGIN {
16136 _ACEOF
16138 # Transform confdefs.h into an awk script `defines.awk', embedded as
16139 # here-document in config.status, that substitutes the proper values into
16140 # config.h.in to produce config.h.
16142 # Create a delimiter string that does not exist in confdefs.h, to ease
16143 # handling of long lines.
16144 ac_delim='%!_!# '
16145 for ac_last_try in false false :; do
16146 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16147 if test -z "$ac_tt"; then
16148 break
16149 elif $ac_last_try; then
16150 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16151 else
16152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16154 done
16156 # For the awk script, D is an array of macro values keyed by name,
16157 # likewise P contains macro parameters if any. Preserve backslash
16158 # newline sequences.
16160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16161 sed -n '
16162 s/.\{148\}/&'"$ac_delim"'/g
16163 t rset
16164 :rset
16165 s/^[ ]*#[ ]*define[ ][ ]*/ /
16166 t def
16168 :def
16169 s/\\$//
16170 t bsnl
16171 s/["\\]/\\&/g
16172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16173 D["\1"]=" \3"/p
16174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16176 :bsnl
16177 s/["\\]/\\&/g
16178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16179 D["\1"]=" \3\\\\\\n"\\/p
16180 t cont
16181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16182 t cont
16184 :cont
16186 s/.\{148\}/&'"$ac_delim"'/g
16187 t clear
16188 :clear
16189 s/\\$//
16190 t bsnlc
16191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16193 :bsnlc
16194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16195 b cont
16196 ' <confdefs.h | sed '
16197 s/'"$ac_delim"'/"\\\
16198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201 for (key in D) D_is_set[key] = 1
16202 FS = "\a"
16204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16205 line = \$ 0
16206 split(line, arg, " ")
16207 if (arg[1] == "#") {
16208 defundef = arg[2]
16209 mac1 = arg[3]
16210 } else {
16211 defundef = substr(arg[1], 2)
16212 mac1 = arg[2]
16214 split(mac1, mac2, "(") #)
16215 macro = mac2[1]
16216 prefix = substr(line, 1, index(line, defundef) - 1)
16217 if (D_is_set[macro]) {
16218 # Preserve the white space surrounding the "#".
16219 print prefix "define", macro P[macro] D[macro]
16220 next
16221 } else {
16222 # Replace #undef with comments. This is necessary, for example,
16223 # in the case of _POSIX_SOURCE, which is predefined and required
16224 # on some systems where configure will not decide to define it.
16225 if (defundef == "undef") {
16226 print "/*", prefix defundef, macro, "*/"
16227 next
16231 { print }
16232 _ACAWK
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16236 fi # test -n "$CONFIG_HEADERS"
16239 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16240 shift
16241 for ac_tag
16243 case $ac_tag in
16244 :[FHLC]) ac_mode=$ac_tag; continue;;
16245 esac
16246 case $ac_mode$ac_tag in
16247 :[FHL]*:*);;
16248 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16249 :[FH]-) ac_tag=-:-;;
16250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16251 esac
16252 ac_save_IFS=$IFS
16253 IFS=:
16254 set x $ac_tag
16255 IFS=$ac_save_IFS
16256 shift
16257 ac_file=$1
16258 shift
16260 case $ac_mode in
16261 :L) ac_source=$1;;
16262 :[FH])
16263 ac_file_inputs=
16264 for ac_f
16266 case $ac_f in
16267 -) ac_f="$ac_tmp/stdin";;
16268 *) # Look for the file first in the build tree, then in the source tree
16269 # (if the path is not absolute). The absolute path cannot be DOS-style,
16270 # because $ac_f cannot contain `:'.
16271 test -f "$ac_f" ||
16272 case $ac_f in
16273 [\\/$]*) false;;
16274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16275 esac ||
16276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16277 esac
16278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16279 as_fn_append ac_file_inputs " '$ac_f'"
16280 done
16282 # Let's still pretend it is `configure' which instantiates (i.e., don't
16283 # use $as_me), people would be surprised to read:
16284 # /* config.h. Generated by config.status. */
16285 configure_input='Generated from '`
16286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16287 `' by configure.'
16288 if test x"$ac_file" != x-; then
16289 configure_input="$ac_file. $configure_input"
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16291 $as_echo "$as_me: creating $ac_file" >&6;}
16293 # Neutralize special characters interpreted by sed in replacement strings.
16294 case $configure_input in #(
16295 *\&* | *\|* | *\\* )
16296 ac_sed_conf_input=`$as_echo "$configure_input" |
16297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16298 *) ac_sed_conf_input=$configure_input;;
16299 esac
16301 case $ac_tag in
16302 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16304 esac
16306 esac
16308 ac_dir=`$as_dirname -- "$ac_file" ||
16309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310 X"$ac_file" : 'X\(//\)[^/]' \| \
16311 X"$ac_file" : 'X\(//\)$' \| \
16312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16313 $as_echo X"$ac_file" |
16314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16315 s//\1/
16318 /^X\(\/\/\)[^/].*/{
16319 s//\1/
16322 /^X\(\/\/\)$/{
16323 s//\1/
16326 /^X\(\/\).*/{
16327 s//\1/
16330 s/.*/./; q'`
16331 as_dir="$ac_dir"; as_fn_mkdir_p
16332 ac_builddir=.
16334 case "$ac_dir" in
16335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16338 # A ".." for each directory in $ac_dir_suffix.
16339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16340 case $ac_top_builddir_sub in
16341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16343 esac ;;
16344 esac
16345 ac_abs_top_builddir=$ac_pwd
16346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16347 # for backward compatibility:
16348 ac_top_builddir=$ac_top_build_prefix
16350 case $srcdir in
16351 .) # We are building in place.
16352 ac_srcdir=.
16353 ac_top_srcdir=$ac_top_builddir_sub
16354 ac_abs_top_srcdir=$ac_pwd ;;
16355 [\\/]* | ?:[\\/]* ) # Absolute name.
16356 ac_srcdir=$srcdir$ac_dir_suffix;
16357 ac_top_srcdir=$srcdir
16358 ac_abs_top_srcdir=$srcdir ;;
16359 *) # Relative name.
16360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16361 ac_top_srcdir=$ac_top_build_prefix$srcdir
16362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16363 esac
16364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16367 case $ac_mode in
16370 # CONFIG_FILE
16373 _ACEOF
16375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16376 # If the template does not know about datarootdir, expand it.
16377 # FIXME: This hack should be removed a few years after 2.60.
16378 ac_datarootdir_hack=; ac_datarootdir_seen=
16379 ac_sed_dataroot='
16380 /datarootdir/ {
16384 /@datadir@/p
16385 /@docdir@/p
16386 /@infodir@/p
16387 /@localedir@/p
16388 /@mandir@/p'
16389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16390 *datarootdir*) ac_datarootdir_seen=yes;;
16391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16394 _ACEOF
16395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16396 ac_datarootdir_hack='
16397 s&@datadir@&$datadir&g
16398 s&@docdir@&$docdir&g
16399 s&@infodir@&$infodir&g
16400 s&@localedir@&$localedir&g
16401 s&@mandir@&$mandir&g
16402 s&\\\${datarootdir}&$datarootdir&g' ;;
16403 esac
16404 _ACEOF
16406 # Neutralize VPATH when `$srcdir' = `.'.
16407 # Shell code in configure.ac might set extrasub.
16408 # FIXME: do we really want to maintain this feature?
16409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16410 ac_sed_extra="$ac_vpsub
16411 $extrasub
16412 _ACEOF
16413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16416 s|@configure_input@|$ac_sed_conf_input|;t t
16417 s&@top_builddir@&$ac_top_builddir_sub&;t t
16418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16419 s&@srcdir@&$ac_srcdir&;t t
16420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16421 s&@top_srcdir@&$ac_top_srcdir&;t t
16422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16423 s&@builddir@&$ac_builddir&;t t
16424 s&@abs_builddir@&$ac_abs_builddir&;t t
16425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16426 $ac_datarootdir_hack
16428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16429 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16432 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16434 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16436 which seems to be undefined. Please make sure it is defined" >&5
16437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16438 which seems to be undefined. Please make sure it is defined" >&2;}
16440 rm -f "$ac_tmp/stdin"
16441 case $ac_file in
16442 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16443 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16444 esac \
16445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16449 # CONFIG_HEADER
16451 if test x"$ac_file" != x-; then
16453 $as_echo "/* $configure_input */" \
16454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16455 } >"$ac_tmp/config.h" \
16456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16457 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16460 else
16461 rm -f "$ac_file"
16462 mv "$ac_tmp/config.h" "$ac_file" \
16463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16465 else
16466 $as_echo "/* $configure_input */" \
16467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16468 || as_fn_error $? "could not create -" "$LINENO" 5
16472 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16473 $as_echo "$as_me: executing $ac_file commands" >&6;}
16475 esac
16478 case $ac_file$ac_mode in
16479 "genmf-executable-support":C)
16480 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16481 chmod a+x ${aros_tools_dir}/genmf.py
16483 "binutils-support":C)
16484 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16485 mkdir -p $prefix
16486 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16488 chmod a+x ${prefix2}-ld
16490 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16491 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16492 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16493 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16494 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16495 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16496 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16498 "elf-compiler-support":C)
16499 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16500 mkdir -p $prefix
16501 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16503 chmod a+x ${prefix2}-gcc
16505 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16507 "host-compiler-wrapper-support":C)
16508 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16509 mkdir -p $prefix
16510 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16512 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16515 esac
16516 done # for ac_tag
16519 as_fn_exit 0
16520 _ACEOF
16521 ac_clean_files=$ac_clean_files_save
16523 test $ac_write_fail = 0 ||
16524 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16527 # configure is writing to config.log, and then calls config.status.
16528 # config.status does its own redirection, appending to config.log.
16529 # Unfortunately, on DOS this fails, as config.log is still kept open
16530 # by configure, so config.status won't be able to write to it; its
16531 # output is simply discarded. So we exec the FD to /dev/null,
16532 # effectively closing config.log, so it can be properly (re)opened and
16533 # appended to by config.status. When coming back to configure, we
16534 # need to make the FD available again.
16535 if test "$no_create" != yes; then
16536 ac_cs_success=:
16537 ac_config_status_args=
16538 test "$silent" = yes &&
16539 ac_config_status_args="$ac_config_status_args --quiet"
16540 exec 5>/dev/null
16541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16542 exec 5>>config.log
16543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16544 # would make configure fail if this is the last instruction.
16545 $ac_cs_success || as_fn_exit 1
16547 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16549 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16554 #XXX compatability...
16555 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16557 if test -n "$aros_shared_cflags" ; then
16558 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16559 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg