silence debug and make it consistent. fix a silly c&p error.
[AROS.git] / configure
blobb5ac84be351ca3f57c7b03a81f94cdac00ed09f5
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 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_cxx_libs
699 aros_c_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_target_options
729 target_extra_cfg
730 make_extra_targetcfg
731 make_extra_commands
732 aros_elf_translate
733 aros_tools_dir
734 aros_host_lib_suffix
735 aros_host_exe_suffix
736 aros_host_mkargs
737 aros_host_mkdep
738 aros_host_debug
739 aros_host_ldflags
740 gnu89_inline
741 aros_host_cxxflags
742 aros_host_cflags
743 aros_host_cppflags
744 aros_host_make
745 aros_host_cxx
746 aros_host_cc
747 aros_host_def_cc
748 aros_host_cpp
749 aros_host_cpu
750 aros_host_arch
751 aros_cc_pre
752 host_extra_cfg
753 ax_cv_flex_version
754 host_stat_h__unused_used
755 aros_amigaos_compliance
756 AROS_PORTSSRCDIR
757 AROS_CROSSTOOLSDIR
758 SRCDIR
759 AROS_BUILDDIR_UNIX
760 AROS_BUILDDIR
761 aros_build_host
762 aros_toolchain_ld
763 aros_target_toolchain
764 aros_flavour_uc
765 aros_flavour
766 aros_cpu
767 aros_arch
768 SDL_LIBS
769 SDL_CFLAGS
770 SDL_CONFIG
771 XMKMF
772 kernel_cflags_iquote_end
773 kernel_cflags_iquote
774 host_cflags_iquote_end
775 host_cflags_iquote
776 aros_toolchain
777 aros_target_nostdlib_ldflags
778 aros_target_detach_ldflags
779 aros_target_nix_ldflags
780 aros_target_nostartup_ldflags
781 aros_target_nostdinc_cflags
782 aros_kernel_rescomp
783 orig_target_objdump
784 orig_target_objcopy
785 orig_target_strip
786 orig_target_nm
787 orig_target_ranlib
788 orig_target_ar
789 orig_target_as
790 orig_target_ld
791 orig_target_cxx
792 orig_target_cc
793 orig_target_cpp
794 aros_kernel_objdump
795 aros_kernel_objcopy
796 aros_kernel_strip
797 aros_kernel_nm
798 aros_kernel_ranlib
799 aros_kernel_ar
800 aros_kernel_as
801 aros_kernel_ld
802 aros_kernel_cxx
803 aros_kernel_cc
804 aros_kernel_cpp
805 target_gcc_version
807 android_tool
808 CCACHE
809 DISTCC
810 LIBOBJS
811 EGREP
812 GREP
814 TEST
817 libpng_incdir
818 libpng_libextra
819 libpng
820 arosconfig_use_libpngconfig
821 pkgpyexecdir
822 pyexecdir
823 pkgpythondir
824 pythondir
825 PYTHON_PLATFORM
826 PYTHON_EXEC_PREFIX
827 PYTHON_PREFIX
828 PYTHON_VERSION
829 PYTHON
830 PATCH
831 CHMOD
833 PPMTOILBM
834 PNGTOPNM
835 FLEX
836 BISON
839 UNIQ
840 SORT
841 TOUCH
842 MKDIR
843 ECHO
847 aros_host_strip
848 aros_host_ranlib
849 aros_host_ar
850 aros_host_automake
851 aros_host_autoheader
852 aros_host_autoconf
853 aros_host_aclocal
854 aros_host_ld
855 MMAKE
858 ac_ct_CC
859 CFLAGS
861 OBJEXT
862 EXEEXT
863 ac_ct_CXX
864 CPPFLAGS
865 LDFLAGS
866 CXXFLAGS
868 host_os
869 host_vendor
870 host_cpu
871 host
872 build_os
873 build_vendor
874 build_cpu
875 build
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 runstatedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 with_c_compiler
919 with_cxx_compiler
920 enable_libpng_config
921 with_toolchain
922 enable_lto
923 enable_coverage
924 enable_build_type
925 enable_debug
926 enable_distcc
927 enable_ccache
928 with_kernel_gcc_version
929 with_optimization
930 with_paranoia
931 enable_target_variant
932 with_xcode
933 with_sdk_version
934 with_sdk
935 with_ndk
936 with_ndk_version
937 with_apk_version
938 enable_amigaos_compliance
939 with_kernel_toolchain_prefix
940 with_elf_toolchain_prefix
941 with_aros_toolchain
942 enable_crosstools
943 with_aros_toolchain_install
944 with_binutils_version
945 with_gcc_version
946 enable_objc
947 enable_java
948 with_cpu
949 with_fpu
950 with_float
951 with_portssources
952 with_bootloader
953 with_iconset
954 with_theme
955 enable_includes
956 with_resolution
957 with_serial_debug
958 enable_palm_debug_hack
959 enable_usb30_code
960 enable_nesting_supervisor
961 enable_mmu
962 enable_x11_hidd
963 with_x
964 enable_x11_shm
965 enable_x11_vidmode
966 enable_sdl_hidd
967 with_sdl_prefix
968 with_sdl_exec_prefix
969 enable_sdltest
970 enable_dbus
972 ac_precious_vars='build_alias
973 host_alias
974 target_alias
976 CXXFLAGS
977 LDFLAGS
978 LIBS
979 CPPFLAGS
982 CFLAGS
984 PYTHON
985 XMKMF'
988 # Initialize some variables set by options.
989 ac_init_help=
990 ac_init_version=false
991 ac_unrecognized_opts=
992 ac_unrecognized_sep=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
995 cache_file=/dev/null
996 exec_prefix=NONE
997 no_create=
998 no_recursion=
999 prefix=NONE
1000 program_prefix=NONE
1001 program_suffix=NONE
1002 program_transform_name=s,x,x,
1003 silent=
1004 site=
1005 srcdir=
1006 verbose=
1007 x_includes=NONE
1008 x_libraries=NONE
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 runstatedir='${localstatedir}/run'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE}'
1028 infodir='${datarootdir}/info'
1029 htmldir='${docdir}'
1030 dvidir='${docdir}'
1031 pdfdir='${docdir}'
1032 psdir='${docdir}'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1037 ac_prev=
1038 ac_dashdash=
1039 for ac_option
1041 # If the previous option needs an argument, assign it.
1042 if test -n "$ac_prev"; then
1043 eval $ac_prev=\$ac_option
1044 ac_prev=
1045 continue
1048 case $ac_option in
1049 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050 *=) ac_optarg= ;;
1051 *) ac_optarg=yes ;;
1052 esac
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1058 ac_dashdash=yes ;;
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1080 -datadir | --datadir | --datadi | --datad)
1081 ac_prev=datadir ;;
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1092 -disable-* | --disable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=no ;;
1108 -docdir | --docdir | --docdi | --doc | --do)
1109 ac_prev=docdir ;;
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 ac_prev=dvidir ;;
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
1118 -enable-* | --enable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1277 -runstatedir | --runstatedir | --runstatedi | --runstated \
1278 | --runstate | --runstat | --runsta | --runst | --runs \
1279 | --run | --ru | --r)
1280 ac_prev=runstatedir ;;
1281 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1282 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1283 | --run=* | --ru=* | --r=*)
1284 runstatedir=$ac_optarg ;;
1286 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1287 ac_prev=sbindir ;;
1288 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1289 | --sbi=* | --sb=*)
1290 sbindir=$ac_optarg ;;
1292 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1293 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1294 | --sharedst | --shareds | --shared | --share | --shar \
1295 | --sha | --sh)
1296 ac_prev=sharedstatedir ;;
1297 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1298 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1299 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1300 | --sha=* | --sh=*)
1301 sharedstatedir=$ac_optarg ;;
1303 -site | --site | --sit)
1304 ac_prev=site ;;
1305 -site=* | --site=* | --sit=*)
1306 site=$ac_optarg ;;
1308 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309 ac_prev=srcdir ;;
1310 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1311 srcdir=$ac_optarg ;;
1313 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1314 | --syscon | --sysco | --sysc | --sys | --sy)
1315 ac_prev=sysconfdir ;;
1316 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1317 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1318 sysconfdir=$ac_optarg ;;
1320 -target | --target | --targe | --targ | --tar | --ta | --t)
1321 ac_prev=target_alias ;;
1322 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1323 target_alias=$ac_optarg ;;
1325 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1326 verbose=yes ;;
1328 -version | --version | --versio | --versi | --vers | -V)
1329 ac_init_version=: ;;
1331 -with-* | --with-*)
1332 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 as_fn_error $? "invalid package name: $ac_useropt"
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1340 "with_$ac_useropt"
1341 "*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=\$ac_optarg ;;
1347 -without-* | --without-*)
1348 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351 as_fn_error $? "invalid package name: $ac_useropt"
1352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1356 "with_$ac_useropt"
1357 "*) ;;
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1360 esac
1361 eval with_$ac_useropt=no ;;
1363 --x)
1364 # Obsolete; use --with-x.
1365 with_x=yes ;;
1367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1368 | --x-incl | --x-inc | --x-in | --x-i)
1369 ac_prev=x_includes ;;
1370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1372 x_includes=$ac_optarg ;;
1374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1376 ac_prev=x_libraries ;;
1377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1379 x_libraries=$ac_optarg ;;
1381 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1382 Try \`$0 --help' for more information"
1385 *=*)
1386 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1387 # Reject names that are not valid shell variable names.
1388 case $ac_envvar in #(
1389 '' | [0-9]* | *[!_$as_cr_alnum]* )
1390 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1391 esac
1392 eval $ac_envvar=\$ac_optarg
1393 export $ac_envvar ;;
1396 # FIXME: should be removed in autoconf 3.0.
1397 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1403 esac
1404 done
1406 if test -n "$ac_prev"; then
1407 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1408 as_fn_error $? "missing argument to $ac_option"
1411 if test -n "$ac_unrecognized_opts"; then
1412 case $enable_option_checking in
1413 no) ;;
1414 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416 esac
1419 # Check all directory arguments for consistency.
1420 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421 datadir sysconfdir sharedstatedir localstatedir includedir \
1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423 libdir localedir mandir runstatedir
1425 eval ac_val=\$$ac_var
1426 # Remove trailing slashes.
1427 case $ac_val in
1428 */ )
1429 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430 eval $ac_var=\$ac_val;;
1431 esac
1432 # Be sure to have absolute directory names.
1433 case $ac_val in
1434 [\\/$]* | ?:[\\/]* ) continue;;
1435 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436 esac
1437 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1438 done
1440 # There might be people who depend on the old broken behavior: `$host'
1441 # used to hold the argument of --host etc.
1442 # FIXME: To remove some day.
1443 build=$build_alias
1444 host=$host_alias
1445 target=$target_alias
1447 # FIXME: To remove some day.
1448 if test "x$host_alias" != x; then
1449 if test "x$build_alias" = x; then
1450 cross_compiling=maybe
1451 elif test "x$build_alias" != "x$host_alias"; then
1452 cross_compiling=yes
1456 ac_tool_prefix=
1457 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1459 test "$silent" = yes && exec 6>/dev/null
1462 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di=`ls -di .` &&
1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465 as_fn_error $? "working directory cannot be determined"
1466 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467 as_fn_error $? "pwd does not report name of working directory"
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1488 /^X\(\/\/\)$/{
1489 s//\1/
1492 /^X\(\/\).*/{
1493 s//\1/
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1501 else
1502 ac_srcdir_defaulted=no
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1508 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509 ac_abs_confdir=`(
1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1511 pwd)`
1512 # When building in place, set srcdir=.
1513 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 srcdir=.
1516 # Remove unnecessary trailing slashes from srcdir.
1517 # Double slashes in file names in object file debugging info
1518 # mess up M-x gdb in Emacs.
1519 case $srcdir in
1520 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521 esac
1522 for ac_var in $ac_precious_vars; do
1523 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_env_${ac_var}_value=\$${ac_var}
1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527 done
1530 # Report the --help message.
1532 if test "$ac_init_help" = "long"; then
1533 # Omit some internal or obsolete options to make the list less imposing.
1534 # This message is too long to be a string in the A/UX 3.1 sh.
1535 cat <<_ACEOF
1536 \`configure' configures this package to adapt to many kinds of systems.
1538 Usage: $0 [OPTION]... [VAR=VALUE]...
1540 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541 VAR=VALUE. See below for descriptions of some of the useful variables.
1543 Defaults for the options are specified in brackets.
1545 Configuration:
1546 -h, --help display this help and exit
1547 --help=short display options specific to this package
1548 --help=recursive display the short help of all the included packages
1549 -V, --version display version information and exit
1550 -q, --quiet, --silent do not print \`checking ...' messages
1551 --cache-file=FILE cache test results in FILE [disabled]
1552 -C, --config-cache alias for \`--cache-file=config.cache'
1553 -n, --no-create do not create output files
1554 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1556 Installation directories:
1557 --prefix=PREFIX install architecture-independent files in PREFIX
1558 [$ac_default_prefix]
1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 [PREFIX]
1562 By default, \`make install' will install all the files in
1563 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565 for instance \`--prefix=\$HOME'.
1567 For better control, use the options below.
1569 Fine tuning of the installation directories:
1570 --bindir=DIR user executables [EPREFIX/bin]
1571 --sbindir=DIR system admin executables [EPREFIX/sbin]
1572 --libexecdir=DIR program executables [EPREFIX/libexec]
1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1577 --libdir=DIR object code libraries [EPREFIX/lib]
1578 --includedir=DIR C header files [PREFIX/include]
1579 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1580 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1581 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1582 --infodir=DIR info documentation [DATAROOTDIR/info]
1583 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1584 --mandir=DIR man documentation [DATAROOTDIR/man]
1585 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1586 --htmldir=DIR html documentation [DOCDIR]
1587 --dvidir=DIR dvi documentation [DOCDIR]
1588 --pdfdir=DIR pdf documentation [DOCDIR]
1589 --psdir=DIR ps documentation [DOCDIR]
1590 _ACEOF
1592 cat <<\_ACEOF
1594 X features:
1595 --x-includes=DIR X include files are in DIR
1596 --x-libraries=DIR X library files are in DIR
1598 System types:
1599 --build=BUILD configure for building on BUILD [guessed]
1600 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1601 _ACEOF
1604 if test -n "$ac_init_help"; then
1606 cat <<\_ACEOF
1608 Optional Features:
1609 --disable-option-checking ignore unrecognized --enable/--with options
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --disable-libpng-config disable libpng-config test and configuration
1613 --enable-lto=yes|no Enable link time optimizations if the target
1614 compiler supports them (default=no)
1615 --enable-coverage=yes|no
1616 Enable coverage instrumentation if the target
1617 compiler supports it (default=no)
1618 --enable-build-type=TYPE
1619 Select the build type. Available types are:
1620 personal, nightly, snapshot, milestone, release. Do
1621 NOT use this option unless you know what you are
1622 doing! (default=personal)
1623 --enable-debug=list Enable different types of debug. Commas or
1624 whitespaces can be used to separate the items in the
1625 list. Available types of debug are: all, none,
1626 messages, stack, mungwall, modules, symbols. If no
1627 list is provided then "all" is assumed.
1628 (default=none)
1629 --enable-distcc Use distcc as a front end to the compiler
1630 (default=no).
1631 --enable-ccache Use ccache as a front end to the compiler
1632 (default=no).
1633 --enable-target-variant=NAME
1634 Enable a specific target variant (default=none)
1635 --enable-amigaos-compliance=VERSION
1636 Enforce userspace AmigaOS compliance to a specific
1637 KickStart version (default=none).
1638 --disable-crosstools Do not build cross-compiler toolchain
1639 --enable-objc Enable Objectve-C support (default=no)
1640 --enable-java Enable Java support (default=no)
1641 --enable-includes=dir Alternative system include directory
1642 --enable-palm-debug-hack
1643 Enable palm debug output hack in palm native
1644 (default=no)
1645 --enable-usb30-code Enable usb3.0 code (default=no)
1646 --enable-nesting-supervisor
1647 Enable nesting supervisor support in unix
1648 (default=no)
1649 --disable-mmu Disable MMU support (default=enabled)
1650 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1651 --enable-x11-shm use X11 shared memory (default=auto)
1652 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1653 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1654 --disable-sdltest Do not try to compile and run a test SDL program
1655 --enable-dbus Enable DBUS support via dbus.library (default=no)
1657 Optional Packages:
1658 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1659 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1660 --with-c-compiler=VERSION
1661 Use specified c compiler for building AROS
1662 --with-cxx-compiler=VERSION
1663 Use specified c++ compiler building AROS
1664 --with-toolchain=family Which toolchain family to crosscompile with
1665 (defaults to gnu)
1666 --with-kernel-gcc-version=VERSION
1667 Use gcc-VERSION for building bootstrap
1668 --with-optimization=FLAGS
1669 Use optimization flags FLAGS (e.g
1670 --with-optimization=-O2).
1671 --with-paranoia=(yes|no|FLAGS)
1672 Specific compiler warning FLAGS to enable for
1673 paranoia builds (default=-Wall -Werror)
1674 --with-xcode=PATH Specify XCode path for iOS targets
1675 (default=/Developer).
1676 --with-sdk-version=VERSION
1677 Use iOS SDK version VERSION (default=4.1).
1678 --with-sdk=PATH Specify Android SDK path
1679 (default=$default_android_sdk).
1680 --with-ndk=PATH Specify Android NDK path (default=none).
1681 --with-sdk-version=LEVEL
1682 Use Android SDK for API LEVEL (default=12).
1683 --with-ndk-version=LEVEL
1684 Use Android NDK for API LEVEL (default=9).
1685 --with-apk-version=(release|debug)
1686 Which version of AROSBootstrap.apk to compile.
1687 Release version needs key for signing, debug version
1688 will only run in emulator. (default=release)
1689 --with-kernel-toolchain-prefix=...
1690 Specify crosscompile toolchain prefix for kernel
1691 objects
1692 --with-elf-toolchain-prefix=...
1693 Specify crosscompile toolchain prefix to wrap for
1694 AROS objects
1695 --with-aros-toolchain=PREFIX
1696 Specify prebuilt AROS toolchain. Use yes for default
1697 name
1698 --with-aros-toolchain-install=DIR
1699 Where to install or search for cross tools binaries
1700 --with-binutils-version=VERSION
1701 Use binutils-VERSION for building AROS
1702 --with-gcc-version=VERSION
1703 Compile gcc-VERSION for AROS
1704 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1705 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1706 --with-float=<spec> Specify floating point ABI
1707 (default=$gcc_default_float_abi).
1708 --with-portssources=DIR Where to download sourcecode for external ports
1709 --with-bootloader=NAME Use a specific bootloader
1710 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1711 --with-theme=NAME Use a specific GUI Theme
1712 --with-resolution=XRESxYRESxDEPTH
1713 Default resolution of the initial WorkbenchScreen
1714 --with-serial-debug Enable serial debug output in native (default=no)
1715 --with-x use the X Window System
1716 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1717 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1719 Some influential environment variables:
1720 CXX C++ compiler command
1721 CXXFLAGS C++ compiler flags
1722 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1723 nonstandard directory <lib dir>
1724 LIBS libraries to pass to the linker, e.g. -l<library>
1725 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1726 you have headers in a nonstandard directory <include dir>
1727 CC C compiler command
1728 CFLAGS C compiler flags
1729 CPP C preprocessor
1730 PYTHON the Python interpreter
1731 XMKMF Path to xmkmf, Makefile generator for X Window System
1733 Use these variables to override the choices made by `configure' or to help
1734 it to find libraries and programs with nonstandard names/locations.
1736 Report bugs to the package provider.
1737 _ACEOF
1738 ac_status=$?
1741 if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
1747 ac_builddir=.
1749 case "$ac_dir" in
1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759 esac
1760 ac_abs_top_builddir=$ac_pwd
1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir=$ac_top_build_prefix
1765 case $srcdir in
1766 .) # We are building in place.
1767 ac_srcdir=.
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1771 ac_srcdir=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1778 esac
1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1789 else
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1793 done
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1798 cat <<\_ACEOF
1799 configure
1800 generated by GNU Autoconf 2.69
1802 Copyright (C) 2012 Free Software Foundation, Inc.
1803 This configure script is free software; the Free Software Foundation
1804 gives unlimited permission to copy, distribute and modify it.
1805 _ACEOF
1806 exit
1809 ## ------------------------ ##
1810 ## Autoconf initialization. ##
1811 ## ------------------------ ##
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_cxx_try_compile
1851 # ac_fn_c_try_compile LINENO
1852 # --------------------------
1853 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_c_try_compile
1889 # ac_fn_c_try_cpp LINENO
1890 # ----------------------
1891 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_cpp ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_cpp conftest.$ac_ext"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } > conftest.i && {
1911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1912 test ! -s conftest.err
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=1
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_c_try_cpp
1926 # ac_fn_c_try_link LINENO
1927 # -----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_link ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext conftest$ac_exeext
1933 if { { ac_try="$ac_link"
1934 case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>conftest.err
1941 ac_status=$?
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_c_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest$ac_exeext && {
1952 test "$cross_compiling" = yes ||
1953 test -x conftest$ac_exeext
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_retval=1
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1970 } # ac_fn_c_try_link
1972 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1976 # accordingly.
1977 ac_fn_c_check_header_mongrel ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if eval \${$3+:} false; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 else
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2000 else
2001 ac_header_compiler=no
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2016 else
2017 ac_header_preproc=no
2019 rm -f conftest.err conftest.i conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025 yes:no: )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 no:yes:* )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 esac
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 eval "$3=\$ac_header_compiler"
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_header_mongrel
2059 # ac_fn_c_try_run LINENO
2060 # ----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_c_try_run ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2074 ac_status=$?
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 ac_retval=$ac_status
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_c_try_run
2101 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2102 # -------------------------------------------------------
2103 # Tests whether HEADER exists and can be compiled using the include files in
2104 # INCLUDES, setting the cache variable VAR accordingly.
2105 ac_fn_c_check_header_compile ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 eval "$3=yes"
2120 else
2121 eval "$3=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_header_compile
2132 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2133 # ----------------------------------------------------
2134 # Tries to find if the field MEMBER exists in type AGGR, after including
2135 # INCLUDES, setting cache variable VAR accordingly.
2136 ac_fn_c_check_member ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2140 $as_echo_n "checking for $2.$3... " >&6; }
2141 if eval \${$4+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 static $2 ac_aggr;
2151 if (ac_aggr.$3)
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 eval "$4=yes"
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static $2 ac_aggr;
2167 if (sizeof ac_aggr.$3)
2168 return 0;
2170 return 0;
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 eval "$4=yes"
2175 else
2176 eval "$4=no"
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 eval ac_res=\$$4
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_member
2189 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2190 # ---------------------------------------------
2191 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2192 # accordingly.
2193 ac_fn_c_check_decl ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 as_decl_name=`echo $2|sed 's/ *(.*//'`
2197 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2199 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2207 main ()
2209 #ifndef $as_decl_name
2210 #ifdef __cplusplus
2211 (void) $as_decl_use;
2212 #else
2213 (void) $as_decl_name;
2214 #endif
2215 #endif
2218 return 0;
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$3=yes"
2223 else
2224 eval "$3=no"
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_decl
2235 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2236 # -------------------------------------------
2237 # Tests whether TYPE exists after having included INCLUDES, setting cache
2238 # variable VAR accordingly.
2239 ac_fn_c_check_type ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 eval "$3=no"
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 if (sizeof ($2))
2255 return 0;
2257 return 0;
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2265 main ()
2267 if (sizeof (($2)))
2268 return 0;
2270 return 0;
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2275 else
2276 eval "$3=yes"
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 } # ac_fn_c_check_type
2289 # ac_fn_c_check_func LINENO FUNC VAR
2290 # ----------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_c_check_func ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2304 #define $2 innocuous_$2
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $2 (); below.
2308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309 <limits.h> exists even on freestanding compilers. */
2311 #ifdef __STDC__
2312 # include <limits.h>
2313 #else
2314 # include <assert.h>
2315 #endif
2317 #undef $2
2319 /* Override any GCC internal prototype to avoid an error.
2320 Use char because int might match the return type of a GCC
2321 builtin and then its argument prototype would still apply. */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 char $2 ();
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined __stub_$2 || defined __stub___$2
2330 choke me
2331 #endif
2334 main ()
2336 return $2 ();
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_link "$LINENO"; then :
2342 eval "$3=yes"
2343 else
2344 eval "$3=no"
2346 rm -f core conftest.err conftest.$ac_objext \
2347 conftest$ac_exeext conftest.$ac_ext
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 } # ac_fn_c_check_func
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2359 It was created by $as_me, which was
2360 generated by GNU Autoconf 2.69. Invocation command line was
2362 $ $0 $@
2364 _ACEOF
2365 exec 5>>config.log
2367 cat <<_ASUNAME
2368 ## --------- ##
2369 ## Platform. ##
2370 ## --------- ##
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 _ASUNAME
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2397 done
2398 IFS=$as_save_IFS
2400 } >&5
2402 cat >&5 <<_ACEOF
2405 ## ----------- ##
2406 ## Core tests. ##
2407 ## ----------- ##
2409 _ACEOF
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2417 ac_configure_args=
2418 ac_configure_args0=
2419 ac_configure_args1=
2420 ac_must_keep_next=false
2421 for ac_pass in 1 2
2423 for ac_arg
2425 case $ac_arg in
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2429 continue ;;
2430 *\'*)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 esac
2433 case $ac_pass in
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2439 else
2440 case $ac_arg in
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 esac
2449 -* ) ac_must_keep_next=true ;;
2450 esac
2452 as_fn_append ac_configure_args " '$ac_arg'"
2454 esac
2455 done
2456 done
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2468 echo
2470 $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2473 echo
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in #(
2479 *${as_nl}*)
2480 case $ac_var in #(
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 esac
2484 case $ac_var in #(
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2488 esac ;;
2489 esac
2490 done
2491 (set) 2>&1 |
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2494 sed -n \
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 ;; #(
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501 esac |
2502 sort
2504 echo
2506 $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2509 echo
2510 for ac_var in $ac_subst_vars
2512 eval ac_val=\$$ac_var
2513 case $ac_val in
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 esac
2516 $as_echo "$ac_var='\''$ac_val'\''"
2517 done | sort
2518 echo
2520 if test -n "$ac_subst_files"; then
2521 $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2524 echo
2525 for ac_var in $ac_subst_files
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
2532 done | sort
2533 echo
2536 if test -s confdefs.h; then
2537 $as_echo "## ----------- ##
2538 ## confdefs.h. ##
2539 ## ----------- ##"
2540 echo
2541 cat confdefs.h
2542 echo
2544 test "$ac_signal" != 0 &&
2545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
2547 } >&5
2548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550 exit $exit_status
2552 for ac_signal in 1 2 13 15; do
2553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2554 done
2555 ac_signal=0
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2560 $as_echo "/* confdefs.h */" > confdefs.h
2562 # Predefined preprocessor variables.
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 _ACEOF
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 _ACEOF
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2586 _ACEOF
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2591 ac_site_file1=NONE
2592 ac_site_file2=NONE
2593 if test -n "$CONFIG_SITE"; then
2594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2599 esac
2600 elif test "x$prefix" != xNONE; then
2601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
2603 else
2604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 test "x$ac_site_file" = xNONE && continue
2610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613 sed 's/^/| /' "$ac_site_file" >&5
2614 . "$ac_site_file" \
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2620 done
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 case $cache_file in
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2631 esac
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2636 >$cache_file
2639 as_fn_append ac_header_list " stdlib.h"
2640 as_fn_append ac_header_list " unistd.h"
2641 as_fn_append ac_header_list " sys/param.h"
2642 # Check that the precious variables saved in the cache have kept the same
2643 # value.
2644 ac_cache_corrupted=false
2645 for ac_var in $ac_precious_vars; do
2646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2647 eval ac_new_set=\$ac_env_${ac_var}_set
2648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2649 eval ac_new_val=\$ac_env_${ac_var}_value
2650 case $ac_old_set,$ac_new_set in
2651 set,)
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2653 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2654 ac_cache_corrupted=: ;;
2655 ,set)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2657 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,);;
2661 if test "x$ac_old_val" != "x$ac_new_val"; then
2662 # differences in whitespace do not lead to failure.
2663 ac_old_val_w=`echo x $ac_old_val`
2664 ac_new_val_w=`echo x $ac_new_val`
2665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2667 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2668 ac_cache_corrupted=:
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2671 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2672 eval $ac_var=\$ac_old_val
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2675 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2677 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2678 fi;;
2679 esac
2680 # Pass precious variables to config.status.
2681 if test "$ac_new_set" = set; then
2682 case $ac_new_val in
2683 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2684 *) ac_arg=$ac_var=$ac_new_val ;;
2685 esac
2686 case " $ac_configure_args " in
2687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2689 esac
2691 done
2692 if $ac_cache_corrupted; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2696 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2697 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699 ## -------------------- ##
2700 ## Main body of script. ##
2701 ## -------------------- ##
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 ac_aux_dir=
2712 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2713 if test -f "$ac_dir/install-sh"; then
2714 ac_aux_dir=$ac_dir
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 break
2717 elif test -f "$ac_dir/install.sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 break
2721 elif test -f "$ac_dir/shtool"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2724 break
2726 done
2727 if test -z "$ac_aux_dir"; then
2728 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741 # Check what host we are running on.
2742 # If a target is not suggested, we use this one.
2743 # Note that what we call a target, Autoconf calls a host.
2744 # Make sure we can run config.sub.
2745 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2746 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2749 $as_echo_n "checking build system type... " >&6; }
2750 if ${ac_cv_build+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 ac_build_alias=$build_alias
2754 test "x$ac_build_alias" = x &&
2755 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2756 test "x$ac_build_alias" = x &&
2757 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2758 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2763 $as_echo "$ac_cv_build" >&6; }
2764 case $ac_cv_build in
2765 *-*-*) ;;
2766 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2767 esac
2768 build=$ac_cv_build
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_build
2771 shift
2772 build_cpu=$1
2773 build_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 build_os=$*
2778 IFS=$ac_save_IFS
2779 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2783 $as_echo_n "checking host system type... " >&6; }
2784 if ${ac_cv_host+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test "x$host_alias" = x; then
2788 ac_cv_host=$ac_cv_build
2789 else
2790 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2796 $as_echo "$ac_cv_host" >&6; }
2797 case $ac_cv_host in
2798 *-*-*) ;;
2799 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2800 esac
2801 host=$ac_cv_host
2802 ac_save_IFS=$IFS; IFS='-'
2803 set x $ac_cv_host
2804 shift
2805 host_cpu=$1
2806 host_vendor=$2
2807 shift; shift
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2810 host_os=$*
2811 IFS=$ac_save_IFS
2812 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2816 # Default versions for the gnu tools we build
2817 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2818 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2819 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2820 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2821 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2822 default_grub2_version="2.02"
2823 target_grub2_version=$default_grub2_version
2825 # The AROS target is slightly different to the normal GNU style
2826 # format. We don't have the middle part, and we reverse the order
2827 # of the $(CPU) and $(OS) bits.
2829 # Don't strip the version of the target yet, it might be
2830 # useful on some systems.
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2833 $as_echo_n "checking for AROS style target... " >&6; }
2835 if test "$target" = "NONE" ; then
2836 target=$host_os-$host_cpu
2837 else
2838 if test "$target" = "" ; then
2839 target=$host_os-$host_cpu
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2843 $as_echo "$target" >&6; }
2845 if test "$host_os" = "mingw32" ; then
2846 PWDCMD="pwd -W"
2849 # Don't know where else to put this...
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2851 $as_echo_n "checking building AROS in... " >&6; }
2852 AROS_BUILDDIR=`${PWDCMD-pwd}`
2853 AROS_BUILDDIR_UNIX=${PWD}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2855 $as_echo "$AROS_BUILDDIR" >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2858 $as_echo_n "checking AROS source in... " >&6; }
2859 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2860 SRCDIR=${srcpwd}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2862 $as_echo "$SRCDIR" >&6; }
2864 # Parse the target field into something useful.
2866 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2867 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2870 # Some debug output, to be removed again.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2872 $as_echo_n "checking for target system (debug output)... " >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2874 $as_echo "$target_os" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2876 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2878 $as_echo "$target_cpu" >&6; }
2880 aros_nominal_width=800
2881 aros_nominal_height=600
2882 aros_nominal_depth=4
2885 default_c_compilers="gcc clang cc"
2887 # Check whether --with-c-compiler was given.
2888 if test "${with_c_compiler+set}" = set; then :
2889 withval=$with_c_compiler; use_c_compiler="$withval"
2890 else
2891 use_c_compiler=""
2894 if test "$use_c_compiler" = ""; then
2895 host_c_compilers="$default_c_compilers"
2896 else
2897 host_c_compilers="$use_c_compiler"
2900 default_cxx_compilers="g++ clang++ c++"
2902 # Check whether --with-cxx-compiler was given.
2903 if test "${with_cxx_compiler+set}" = set; then :
2904 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2905 else
2906 use_cxx_compiler=""
2909 if test "$use_cxx_compiler" = ""; then
2910 host_cxx_compilers="$default_cxx_compilers"
2911 else
2912 host_cxx_compilers="$use_cxx_compiler"
2916 # The first step is to find the host binaries.
2917 # Check for a compiler.
2918 # Due to a bug in autoconf check for c++ compiler first.
2919 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2920 ac_ext=cpp
2921 ac_cpp='$CXXCPP $CPPFLAGS'
2922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2925 if test -z "$CXX"; then
2926 if test -n "$CCC"; then
2927 CXX=$CCC
2928 else
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in ${host_cxx_compilers}
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CXX+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CXX"; then
2940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2953 done
2954 done
2955 IFS=$as_save_IFS
2959 CXX=$ac_cv_prog_CXX
2960 if test -n "$CXX"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2962 $as_echo "$CXX" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2969 test -n "$CXX" && break
2970 done
2972 if test -z "$CXX"; then
2973 ac_ct_CXX=$CXX
2974 for ac_prog in ${host_cxx_compilers}
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$ac_ct_CXX"; then
2984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_CXX="$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2997 done
2998 done
2999 IFS=$as_save_IFS
3003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3004 if test -n "$ac_ct_CXX"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3006 $as_echo "$ac_ct_CXX" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$ac_ct_CXX" && break
3014 done
3016 if test "x$ac_ct_CXX" = x; then
3017 CXX="g++"
3018 else
3019 case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025 CXX=$ac_ct_CXX
3031 # Provide some information about the compiler.
3032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3033 set X $ac_compile
3034 ac_compiler=$2
3035 for ac_option in --version -v -V -qversion; do
3036 { { ac_try="$ac_compiler $ac_option >&5"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3044 ac_status=$?
3045 if test -s conftest.err; then
3046 sed '10a\
3047 ... rest of stderr output deleted ...
3048 10q' conftest.err >conftest.er1
3049 cat conftest.er1 >&5
3051 rm -f conftest.er1 conftest.err
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }
3054 done
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3060 main ()
3064 return 0;
3066 _ACEOF
3067 ac_clean_files_save=$ac_clean_files
3068 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3071 # of exeext.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3073 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3074 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 # The possible output files:
3077 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3079 ac_rmfiles=
3080 for ac_file in $ac_files
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3085 esac
3086 done
3087 rm -f $ac_rmfiles
3089 if { { ac_try="$ac_link_default"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_link_default") 2>&5
3097 ac_status=$?
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; then :
3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3101 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3103 # so that the user can short-circuit this test for compilers unknown to
3104 # Autoconf.
3105 for ac_file in $ac_files ''
3107 test -f "$ac_file" || continue
3108 case $ac_file in
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3111 [ab].out )
3112 # We found the default executable, but exeext='' is most
3113 # certainly right.
3114 break;;
3115 *.* )
3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3117 then :; else
3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 # We set ac_cv_exeext here because the later test for it is not
3121 # safe: cross compilers may not add the suffix if given an `-o'
3122 # argument, so we may need to know it at that point already.
3123 # Even if this section looks crufty: it has the advantage of
3124 # actually working.
3125 break;;
3127 break;;
3128 esac
3129 done
3130 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132 else
3133 ac_file=''
3135 if test -z "$ac_file"; then :
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 $as_echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error 77 "C++ compiler cannot create executables
3144 See \`config.log' for more details" "$LINENO" 5; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3150 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 ac_exeext=$ac_cv_exeext
3155 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3158 $as_echo_n "checking for suffix of executables... " >&6; }
3159 if { { ac_try="$ac_link"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link") 2>&5
3167 ac_status=$?
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3173 # `rm'.
3174 for ac_file in conftest.exe conftest conftest.*; do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 break;;
3180 * ) break;;
3181 esac
3182 done
3183 else
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details" "$LINENO" 5; }
3189 rm -f conftest conftest$ac_cv_exeext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3191 $as_echo "$ac_cv_exeext" >&6; }
3193 rm -f conftest.$ac_ext
3194 EXEEXT=$ac_cv_exeext
3195 ac_exeext=$EXEEXT
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198 #include <stdio.h>
3200 main ()
3202 FILE *f = fopen ("conftest.out", "w");
3203 return ferror (f) || fclose (f) != 0;
3206 return 0;
3208 _ACEOF
3209 ac_clean_files="$ac_clean_files conftest.out"
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3213 $as_echo_n "checking whether we are cross compiling... " >&6; }
3214 if test "$cross_compiling" != yes; then
3215 { { ac_try="$ac_link"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_link") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226 if { ac_try='./conftest$ac_cv_exeext'
3227 { { case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_try") 2>&5
3234 ac_status=$?
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $? "cannot run C++ compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details" "$LINENO" 5; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3251 $as_echo "$cross_compiling" >&6; }
3253 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3254 ac_clean_files=$ac_clean_files_save
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3256 $as_echo_n "checking for suffix of object files... " >&6; }
3257 if ${ac_cv_objext+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3264 main ()
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.o conftest.obj
3272 if { { ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_compile") 2>&5
3280 ac_status=$?
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 for ac_file in conftest.o conftest.obj conftest.*; do
3284 test -f "$ac_file" || continue;
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3288 break;;
3289 esac
3290 done
3291 else
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details" "$LINENO" 5; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3303 $as_echo "$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3305 ac_objext=$OBJEXT
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3307 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3308 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3315 main ()
3317 #ifndef __GNUC__
3318 choke me
3319 #endif
3322 return 0;
3324 _ACEOF
3325 if ac_fn_cxx_try_compile "$LINENO"; then :
3326 ac_compiler_gnu=yes
3327 else
3328 ac_compiler_gnu=no
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336 if test $ac_compiler_gnu = yes; then
3337 GXX=yes
3338 else
3339 GXX=
3341 ac_test_CXXFLAGS=${CXXFLAGS+set}
3342 ac_save_CXXFLAGS=$CXXFLAGS
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3345 if ${ac_cv_prog_cxx_g+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3350 ac_cv_prog_cxx_g=no
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
3365 else
3366 CXXFLAGS=""
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3371 main ()
3375 return 0;
3377 _ACEOF
3378 if ac_fn_cxx_try_compile "$LINENO"; then :
3380 else
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3382 CXXFLAGS="-g"
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 if ac_fn_cxx_try_compile "$LINENO"; then :
3395 ac_cv_prog_cxx_g=yes
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3405 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3406 if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3410 CXXFLAGS="-g -O2"
3411 else
3412 CXXFLAGS="-g"
3414 else
3415 if test "$GXX" = yes; then
3416 CXXFLAGS="-O2"
3417 else
3418 CXXFLAGS=
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433 for ac_prog in ${host_c_compilers}
3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3472 test -n "$CC" && break
3473 done
3475 if test -z "$CC"; then
3476 ac_ct_CC=$CC
3477 for ac_prog in ${host_c_compilers}
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_ac_ct_CC="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3502 IFS=$as_save_IFS
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3516 test -n "$ac_ct_CC" && break
3517 done
3519 if test "x$ac_ct_CC" = x; then
3520 CC=""
3521 else
3522 case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528 CC=$ac_ct_CC
3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "no acceptable C compiler found in \$PATH
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 # Provide some information about the compiler.
3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 set X $ac_compile
3541 ac_compiler=$2
3542 for ac_option in --version -v -V -qversion; do
3543 { { ac_try="$ac_compiler $ac_option >&5"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 ac_status=$?
3552 if test -s conftest.err; then
3553 sed '10a\
3554 ... rest of stderr output deleted ...
3555 10q' conftest.err >conftest.er1
3556 cat conftest.er1 >&5
3558 rm -f conftest.er1 conftest.err
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }
3561 done
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3565 if ${ac_cv_c_compiler_gnu+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3572 main ()
3574 #ifndef __GNUC__
3575 choke me
3576 #endif
3579 return 0;
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_compiler_gnu=yes
3584 else
3585 ac_compiler_gnu=no
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3593 if test $ac_compiler_gnu = yes; then
3594 GCC=yes
3595 else
3596 GCC=
3598 ac_test_CFLAGS=${CFLAGS+set}
3599 ac_save_CFLAGS=$CFLAGS
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3602 if ${ac_cv_prog_cc_g+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 ac_save_c_werror_flag=$ac_c_werror_flag
3606 ac_c_werror_flag=yes
3607 ac_cv_prog_cc_g=no
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
3622 else
3623 CFLAGS=""
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3628 main ()
3632 return 0;
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3637 else
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3639 CFLAGS="-g"
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3644 main ()
3648 return 0;
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_g=yes
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_c_werror_flag=$ac_save_c_werror_flag
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3662 $as_echo "$ac_cv_prog_cc_g" >&6; }
3663 if test "$ac_test_CFLAGS" = set; then
3664 CFLAGS=$ac_save_CFLAGS
3665 elif test $ac_cv_prog_cc_g = yes; then
3666 if test "$GCC" = yes; then
3667 CFLAGS="-g -O2"
3668 else
3669 CFLAGS="-g"
3671 else
3672 if test "$GCC" = yes; then
3673 CFLAGS="-O2"
3674 else
3675 CFLAGS=
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3680 if ${ac_cv_prog_cc_c89+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_cv_prog_cc_c89=no
3684 ac_save_CC=$CC
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <stdarg.h>
3688 #include <stdio.h>
3689 struct stat;
3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691 struct buf { int x; };
3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693 static char *e (p, i)
3694 char **p;
3695 int i;
3697 return p[i];
3699 static char *f (char * (*g) (char **, int), char **p, ...)
3701 char *s;
3702 va_list v;
3703 va_start (v,p);
3704 s = g (p, va_arg (v,int));
3705 va_end (v);
3706 return s;
3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710 function prototypes and stuff, but not '\xHH' hex character constants.
3711 These don't provoke an error unfortunately, instead are silently treated
3712 as 'x'. The following induces an error, until -std is added to get
3713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714 array size at least. It's necessary to write '\x00'==0 to get something
3715 that's true only with -std. */
3716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719 inside strings and character constants. */
3720 #define FOO(x) 'x'
3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3723 int test (int i, double x);
3724 struct s1 {int (*f) (int a);};
3725 struct s2 {int (*f) (double a);};
3726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727 int argc;
3728 char **argv;
3730 main ()
3732 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3734 return 0;
3736 _ACEOF
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3740 CC="$ac_save_CC $ac_arg"
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_c89=$ac_arg
3744 rm -f core conftest.err conftest.$ac_objext
3745 test "x$ac_cv_prog_cc_c89" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC
3751 # AC_CACHE_VAL
3752 case "x$ac_cv_prog_cc_c89" in
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3756 xno)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3760 CC="$CC $ac_cv_prog_cc_c89"
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763 esac
3764 if test "x$ac_cv_prog_cc_c89" != xno; then :
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 aros_host_def_cc="$CC"
3775 case $ac_cv_prog_cc_stdc in #(
3776 no) :
3777 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3778 *) :
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3780 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3781 if ${ac_cv_prog_cc_c99+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 ac_cv_prog_cc_c99=no
3785 ac_save_CC=$CC
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <stdarg.h>
3789 #include <stdbool.h>
3790 #include <stdlib.h>
3791 #include <wchar.h>
3792 #include <stdio.h>
3794 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3795 #define debug(...) fprintf (stderr, __VA_ARGS__)
3796 #define showlist(...) puts (#__VA_ARGS__)
3797 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3798 static void
3799 test_varargs_macros (void)
3801 int x = 1234;
3802 int y = 5678;
3803 debug ("Flag");
3804 debug ("X = %d\n", x);
3805 showlist (The first, second, and third items.);
3806 report (x>y, "x is %d but y is %d", x, y);
3809 // Check long long types.
3810 #define BIG64 18446744073709551615ull
3811 #define BIG32 4294967295ul
3812 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3813 #if !BIG_OK
3814 your preprocessor is broken;
3815 #endif
3816 #if BIG_OK
3817 #else
3818 your preprocessor is broken;
3819 #endif
3820 static long long int bignum = -9223372036854775807LL;
3821 static unsigned long long int ubignum = BIG64;
3823 struct incomplete_array
3825 int datasize;
3826 double data[];
3829 struct named_init {
3830 int number;
3831 const wchar_t *name;
3832 double average;
3835 typedef const char *ccp;
3837 static inline int
3838 test_restrict (ccp restrict text)
3840 // See if C++-style comments work.
3841 // Iterate through items via the restricted pointer.
3842 // Also check for declarations in for loops.
3843 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3844 continue;
3845 return 0;
3848 // Check varargs and va_copy.
3849 static void
3850 test_varargs (const char *format, ...)
3852 va_list args;
3853 va_start (args, format);
3854 va_list args_copy;
3855 va_copy (args_copy, args);
3857 const char *str;
3858 int number;
3859 float fnumber;
3861 while (*format)
3863 switch (*format++)
3865 case 's': // string
3866 str = va_arg (args_copy, const char *);
3867 break;
3868 case 'd': // int
3869 number = va_arg (args_copy, int);
3870 break;
3871 case 'f': // float
3872 fnumber = va_arg (args_copy, double);
3873 break;
3874 default:
3875 break;
3878 va_end (args_copy);
3879 va_end (args);
3883 main ()
3886 // Check bool.
3887 _Bool success = false;
3889 // Check restrict.
3890 if (test_restrict ("String literal") == 0)
3891 success = true;
3892 char *restrict newvar = "Another string";
3894 // Check varargs.
3895 test_varargs ("s, d' f .", "string", 65, 34.234);
3896 test_varargs_macros ();
3898 // Check flexible array members.
3899 struct incomplete_array *ia =
3900 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3901 ia->datasize = 10;
3902 for (int i = 0; i < ia->datasize; ++i)
3903 ia->data[i] = i * 1.234;
3905 // Check named initializers.
3906 struct named_init ni = {
3907 .number = 34,
3908 .name = L"Test wide string",
3909 .average = 543.34343,
3912 ni.number = 58;
3914 int dynamic_array[ni.number];
3915 dynamic_array[ni.number - 1] = 543;
3917 // work around unused variable warnings
3918 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3919 || dynamic_array[ni.number - 1] != 543);
3922 return 0;
3924 _ACEOF
3925 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3927 CC="$ac_save_CC $ac_arg"
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_c99=$ac_arg
3931 rm -f core conftest.err conftest.$ac_objext
3932 test "x$ac_cv_prog_cc_c99" != "xno" && break
3933 done
3934 rm -f conftest.$ac_ext
3935 CC=$ac_save_CC
3938 # AC_CACHE_VAL
3939 case "x$ac_cv_prog_cc_c99" in
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3942 $as_echo "none needed" >&6; } ;;
3943 xno)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3945 $as_echo "unsupported" >&6; } ;;
3947 CC="$CC $ac_cv_prog_cc_c99"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3949 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3950 esac
3951 if test "x$ac_cv_prog_cc_c99" != xno; then :
3952 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3956 if ${ac_cv_prog_cc_c89+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 ac_cv_prog_cc_c89=no
3960 ac_save_CC=$CC
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdarg.h>
3964 #include <stdio.h>
3965 struct stat;
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3970 char **p;
3971 int i;
3973 return p[i];
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3977 char *s;
3978 va_list v;
3979 va_start (v,p);
3980 s = g (p, va_arg (v,int));
3981 va_end (v);
3982 return s;
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3986 function prototypes and stuff, but not '\xHH' hex character constants.
3987 These don't provoke an error unfortunately, instead are silently treated
3988 as 'x'. The following induces an error, until -std is added to get
3989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3990 array size at least. It's necessary to write '\x00'==0 to get something
3991 that's true only with -std. */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995 inside strings and character constants. */
3996 #define FOO(x) 'x'
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 int argc;
4004 char **argv;
4006 main ()
4008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4010 return 0;
4012 _ACEOF
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4016 CC="$ac_save_CC $ac_arg"
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_prog_cc_c89=$ac_arg
4020 rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 done
4023 rm -f conftest.$ac_ext
4024 CC=$ac_save_CC
4027 # AC_CACHE_VAL
4028 case "x$ac_cv_prog_cc_c89" in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4032 xno)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4036 CC="$CC $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 esac
4040 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4042 else
4043 ac_cv_prog_cc_stdc=no
4048 esac
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4050 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4051 if ${ac_cv_prog_cc_stdc+:} false; then :
4052 $as_echo_n "(cached) " >&6
4055 case $ac_cv_prog_cc_stdc in #(
4056 no) :
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4058 $as_echo "unsupported" >&6; } ;; #(
4059 '') :
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061 $as_echo "none needed" >&6; } ;; #(
4062 *) :
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4064 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4065 esac
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4078 if test -z "$CPP"; then
4079 if ${ac_cv_prog_CPP+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4105 else
4106 # Broken: fails on valid input.
4107 continue
4109 rm -f conftest.err conftest.i conftest.$ac_ext
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4116 _ACEOF
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118 # Broken: success on invalid input.
4119 continue
4120 else
4121 # Passes both tests.
4122 ac_preproc_ok=:
4123 break
4125 rm -f conftest.err conftest.i conftest.$ac_ext
4127 done
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.i conftest.err conftest.$ac_ext
4130 if $ac_preproc_ok; then :
4131 break
4134 done
4135 ac_cv_prog_CPP=$CPP
4138 CPP=$ac_cv_prog_CPP
4139 else
4140 ac_cv_prog_CPP=$CPP
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4143 $as_echo "$CPP" >&6; }
4144 ac_preproc_ok=false
4145 for ac_c_preproc_warn_flag in '' yes
4147 # Use a header file that comes with gcc, so configuring glibc
4148 # with a fresh cross-compiler works.
4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 # <limits.h> exists even on freestanding compilers.
4151 # On the NeXT, cc -E runs the code through the compiler's parser,
4152 # not just through cpp. "Syntax error" is here to catch this case.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #ifdef __STDC__
4156 # include <limits.h>
4157 #else
4158 # include <assert.h>
4159 #endif
4160 Syntax error
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4164 else
4165 # Broken: fails on valid input.
4166 continue
4168 rm -f conftest.err conftest.i conftest.$ac_ext
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ac_nonexistent.h>
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177 # Broken: success on invalid input.
4178 continue
4179 else
4180 # Passes both tests.
4181 ac_preproc_ok=:
4182 break
4184 rm -f conftest.err conftest.i conftest.$ac_ext
4186 done
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.i conftest.err conftest.$ac_ext
4189 if $ac_preproc_ok; then :
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details" "$LINENO" 5; }
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 # Check for a compatible awk
4206 for ac_prog in gawk nawk
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_AWK+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -n "$AWK"; then
4216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_AWK="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4229 done
4230 done
4231 IFS=$as_save_IFS
4235 AWK=$ac_cv_prog_AWK
4236 if test -n "$AWK"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4238 $as_echo "$AWK" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 test -n "$AWK" && break
4246 done
4248 req_avail=yes
4249 if test "$AWK" = ""; then
4250 req_avail=no
4252 if test "$AWK" = "no"; then
4253 req_avail=no
4255 if test "$req_avail" = "no"; then
4256 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4258 # Extract the first word of "mmake", so it can be a program name with args.
4259 set dummy mmake; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_MMAKE+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$MMAKE"; then
4266 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_MMAKE="mmake "
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 MMAKE=$ac_cv_prog_MMAKE
4286 if test -n "$MMAKE"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4288 $as_echo "$MMAKE" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4296 # Perform some default variable assignments. Note all of these will be
4297 # Regenerated from the script, so there is no need to cache them.
4299 aros_build_host=$host
4300 aros_host_cpp="$CPP"
4301 aros_host_cc="$CC"
4302 aros_host_cxx="$CXX"
4303 if test "$GCC" = "yes"; then
4304 aros_gcc_ld=`$CC -print-prog-name=ld`
4305 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4306 set dummy `basename $aros_gcc_ld`; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_path_aros_host_ld+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 case $aros_host_ld in
4313 [\\/]* | ?:[\\/]*)
4314 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in `dirname $aros_gcc_ld`
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4333 esac
4335 aros_host_ld=$ac_cv_path_aros_host_ld
4336 if test -n "$aros_host_ld"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4338 $as_echo "$aros_host_ld" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4346 if test "$aros_host_ld" = ""; then
4347 # Extract the first word of "ld", so it can be a program name with args.
4348 set dummy ld; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_path_aros_host_ld+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 case $aros_host_ld in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4375 esac
4377 aros_host_ld=$ac_cv_path_aros_host_ld
4378 if test -n "$aros_host_ld"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4380 $as_echo "$aros_host_ld" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4388 req_avail=yes
4389 if test "$aros_host_ld" = ""; then
4390 req_avail=no
4392 if test "$aros_host_ld" = "no"; then
4393 req_avail=no
4395 if test "$req_avail" = "no"; then
4396 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4398 aros_host_make="make"
4399 aros_host_cflags="$CFLAGS"
4400 aros_host_cxxflags="$CXXFLAGS"
4401 aros_host_cppflags="$CPPFLAGS"
4402 aros_host_ldflags="$LDFLAGS"
4403 aros_host_debug="-g -O0"
4404 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4405 aros_host_mkargs="--no-print-directory"
4406 aros_host_exe_suffix="$EXEEXT"
4407 aros_host_lib_suffix=""
4409 # Ignore all compliance, AROS ROMs = 0
4410 # KickStart v1.0 = 30
4411 # KickStart v1.3 = 34
4412 # KickStart v2.0 = 37
4413 # KickStart v3.0 = 39
4414 # KickStart v3.1 = 40
4415 # AmigaOS v3.5 = 44
4416 aros_amigaos_compliance=0
4418 for ac_prog in aclocal aclocal19 aclocal-1.9
4420 # Extract the first word of "$ac_prog", so it can be a program name with args.
4421 set dummy $ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$aros_host_aclocal"; then
4428 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_aros_host_aclocal="$ac_prog"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4448 if test -n "$aros_host_aclocal"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4450 $as_echo "$aros_host_aclocal" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4457 test -n "$aros_host_aclocal" && break
4458 done
4460 for ac_prog in autoconf autoconf259 autoconf253
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$aros_host_autoconf"; then
4470 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_aros_host_autoconf="$ac_prog"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4483 done
4484 done
4485 IFS=$as_save_IFS
4489 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4490 if test -n "$aros_host_autoconf"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4492 $as_echo "$aros_host_autoconf" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4499 test -n "$aros_host_autoconf" && break
4500 done
4502 for ac_prog in autoheader autoheader259 autoheader253
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$aros_host_autoheader"; then
4512 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_aros_host_autoheader="$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4532 if test -n "$aros_host_autoheader"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4534 $as_echo "$aros_host_autoheader" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4541 test -n "$aros_host_autoheader" && break
4542 done
4544 for ac_prog in automake automake19 automake-1.9
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_aros_host_automake+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$aros_host_automake"; then
4554 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_aros_host_automake="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 aros_host_automake=$ac_cv_prog_aros_host_automake
4574 if test -n "$aros_host_automake"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4576 $as_echo "$aros_host_automake" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$aros_host_automake" && break
4584 done
4587 req_avail=yes
4588 if test "$aros_host_aclocal" = ""; then
4589 req_avail=no
4591 if test "$aros_host_aclocal" = "no"; then
4592 req_avail=no
4594 if test "$req_avail" = "no"; then
4595 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4597 req_avail=yes
4598 if test "$aros_host_automake" = ""; then
4599 req_avail=no
4601 if test "$aros_host_automake" = "no"; then
4602 req_avail=no
4604 if test "$req_avail" = "no"; then
4605 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4608 case "$aros_host_cc" in
4609 *clang*)
4610 aros_host_cc_pipe=""
4612 *gcc*)
4613 aros_host_cc_pipe="-pipe"
4615 icc)
4616 aros_host_cc_pipe=""
4619 aros_host_cc_pipe=""
4621 esac
4623 aros_kernel_cc_includes=""
4624 aros_target_cc_includes=""
4625 host_cc_elf=yes
4627 # ----------------------------------------------------------------------------------------
4628 # Host-specific defaults
4630 # This is the main host configuration section. It is where the host
4631 # can change the values of any variables it needs to change. We do
4632 # not look at anything that compiles to the target yet, we'll get
4633 # to that later.
4635 case "$host_os" in
4636 aros*)
4637 aros_host_arch="aros"
4638 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4639 case "$host_cpu" in
4640 *i?86*)
4641 aros_host_cpu="i386"
4643 *x86_64*)
4644 aros_host_cpu="x86_64"
4646 *powerpc*)
4647 aros_host_cpu="ppc"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4651 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4652 aros_host_cpu="$host_cpu"
4654 esac
4657 linux*)
4658 aros_host_arch="linux"
4659 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4660 android_build_os="linux-x86"
4661 android_tool="android"
4662 default_android_sdk="/opt/android-sdk-linux_x86"
4663 case "$host_cpu" in
4664 *i?86*)
4665 aros_host_cpu="i386"
4667 *x86_64*)
4668 aros_host_cpu="x86_64"
4670 *m68k*)
4671 aros_host_cpu="m68k"
4673 *powerpc*)
4674 aros_host_cpu="ppc"
4676 *arm*)
4677 aros_host_cpu="arm"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4681 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4682 aros_host_cpu="$host_cpu"
4684 esac
4687 freebsd*)
4688 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4689 aros_host_make="gmake"
4690 aros_host_arch="freebsd"
4691 aros_host_cpu="i386"
4693 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4695 case $host_os in
4696 freebsd[234]*)
4697 aros_object_format="elf_i386"
4701 aros_object_format="elf_i386_fbsd"
4703 esac
4707 darwin*)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4709 $as_echo_n "checking for macOS SDK files... " >&6; }
4710 LOC=$( xcode-select -p )
4711 if test $? != 0; then :
4712 as_fn_error $? "XCode incorrectly configured!
4713 please run 'xcode-select --install' before
4714 re-running configure" "$LINENO" 5
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4717 $as_echo "$LOC" >&6; }
4718 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4719 aros_host_arch="darwin"
4720 host_cc_elf=no
4721 if [ -z ${SED+x} ]; then SED="gsed"; fi
4722 android_build_os="darwin-x86"
4723 android_tool="android"
4724 default_android_sdk="/android-sdk-mac_x86"
4725 case "$host_cpu" in
4726 *i?86*)
4727 aros_host_cpu="i386"
4729 *x86_64*)
4730 aros_host_cpu="x86_64"
4732 *powerpc*)
4733 aros_host_cpu="ppc"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4738 aros_host_cpu="$host_cpu"
4740 esac
4742 aros_host_ldflags="$aros_host_ldflags -liconv"
4746 dragonfly*)
4747 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4748 aros_host_make="gmake"
4749 aros_host_arch="dragonfly"
4750 case $host_cpu in
4751 *i?86*)
4752 aros_host_cpu="i386"
4754 *amd64*)
4755 aros_host_cpu="x86_64"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4759 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4760 aros_host_cpu="$host_cpu"
4762 esac
4765 netbsd*)
4766 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4767 aros_host_make="gmake"
4768 aros_host_arch="netbsd"
4769 case "$host_cpu" in
4770 *i?86*)
4771 aros_host_cpu="i386"
4773 *m68k*)
4774 aros_host_cpu="m68k"
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
4782 aros_host_lib_suffix=".0.0"
4785 openbsd*)
4786 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4787 aros_host_make="gmake"
4788 aros_host_arch="openbsd"
4789 case "$host_cpu" in
4790 *i?86*)
4791 aros_host_cpu="i386"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4795 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4796 aros_host_cpu="$host_cpu"
4798 esac
4801 solaris*)
4802 aros_host_arch="solaris"
4803 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4804 case "$host_cpu" in
4805 *i?86*)
4806 aros_host_cpu="i386"
4808 *sparc*)
4809 aros_host_cpu="sparc"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4813 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4814 aros_host_cpu="$host_cpu"
4816 esac
4819 morphos*)
4820 aros_host_arch="morphos"
4821 aros_host_cpu="ppc"
4822 host_cc_elf=no
4825 amiga*)
4826 aros_host_arch="amiga"
4827 host_cc_elf=no
4828 SORT="/gg/bin/sort"
4829 TEST="/gg/bin/test"
4830 UNIQ="/gg/bin/uniq"
4831 FOR="for"
4832 TOUCH="/gg/bin/touch"
4833 case "$host_cpu" in
4834 *m68k*)
4835 aros_host_cpu="m68k"
4837 *powerpc*)
4838 aros_host_cpu="ppc"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4842 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4843 aros_host_cpu="$host_cpu"
4845 esac
4848 cygwin*)
4849 aros_host_arch="cygwin"
4850 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4851 host_cc_elf=no
4852 android_build_os="windows"
4853 android_tool="android.bat"
4854 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4856 case "$host_cpu" in
4857 *i?86*)
4858 aros_host_cpu="i386"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4862 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4863 aros_host_cpu="$host_cpu"
4865 esac
4868 mingw32*)
4869 aros_host_arch="mingw32"
4870 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4871 host_cc_elf=no
4872 android_build_os="windows"
4873 android_tool="android.bat"
4874 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4876 libpng_libextra="-lws2_32"
4878 case "$host_cpu" in
4879 *i?86*)
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4882 $as_echo_n "checking for Windows native gcc target... " >&6; }
4883 host_cpu=`gcc -dumpmachine`
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4885 $as_echo "$host_cpu" >&6; }
4888 esac
4890 case "$host_cpu" in
4891 *i?86*)
4892 aros_host_cpu="i386"
4895 mingw32*)
4896 aros_host_cpu="i386"
4899 *x86_64*)
4900 aros_host_cpu="x86_64"
4901 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4906 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4907 aros_host_cpu="$host_cpu"
4909 esac
4912 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4914 esac
4916 # Extract the first word of "ar", so it can be a program name with args.
4917 set dummy ar; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_aros_host_ar+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$aros_host_ar"; then
4924 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_aros_host_ar="ar cr"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 aros_host_ar=$ac_cv_prog_aros_host_ar
4944 if test -n "$aros_host_ar"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4946 $as_echo "$aros_host_ar" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4953 req_avail=yes
4954 if test "$aros_host_ar" = ""; then
4955 req_avail=no
4957 if test "$aros_host_ar" = "no"; then
4958 req_avail=no
4960 if test "$req_avail" = "no"; then
4961 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4963 # Extract the first word of "ranlib", so it can be a program name with args.
4964 set dummy ranlib; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$aros_host_ranlib"; then
4971 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_aros_host_ranlib="ranlib "
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4984 done
4985 done
4986 IFS=$as_save_IFS
4990 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4991 if test -n "$aros_host_ranlib"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4993 $as_echo "$aros_host_ranlib" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
5000 req_avail=yes
5001 if test "$aros_host_ranlib" = ""; then
5002 req_avail=no
5004 if test "$aros_host_ranlib" = "no"; then
5005 req_avail=no
5007 if test "$req_avail" = "no"; then
5008 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5010 # Extract the first word of "strip", so it can be a program name with args.
5011 set dummy strip; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_aros_host_strip+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$aros_host_strip"; then
5018 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_aros_host_strip="strip "
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5037 aros_host_strip=$ac_cv_prog_aros_host_strip
5038 if test -n "$aros_host_strip"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5040 $as_echo "$aros_host_strip" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 req_avail=yes
5048 if test "$aros_host_strip" = ""; then
5049 req_avail=no
5051 if test "$aros_host_strip" = "no"; then
5052 req_avail=no
5054 if test "$req_avail" = "no"; then
5055 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5058 # Extract the first word of "rm", so it can be a program name with args.
5059 set dummy rm; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_RM+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$RM"; then
5066 ac_cv_prog_RM="$RM" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_RM="rm -rf"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 RM=$ac_cv_prog_RM
5086 if test -n "$RM"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5088 $as_echo "$RM" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 req_avail=yes
5096 if test "$RM" = ""; then
5097 req_avail=no
5099 if test "$RM" = "no"; then
5100 req_avail=no
5102 if test "$req_avail" = "no"; then
5103 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5105 # Extract the first word of "cp", so it can be a program name with args.
5106 set dummy cp; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_CP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$CP"; then
5113 ac_cv_prog_CP="$CP" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_CP="cp "
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 CP=$ac_cv_prog_CP
5133 if test -n "$CP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5135 $as_echo "$CP" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 req_avail=yes
5143 if test "$CP" = ""; then
5144 req_avail=no
5146 if test "$CP" = "no"; then
5147 req_avail=no
5149 if test "$req_avail" = "no"; then
5150 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5152 # Extract the first word of "mv", so it can be a program name with args.
5153 set dummy mv; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_MV+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$MV"; then
5160 ac_cv_prog_MV="$MV" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_MV="mv "
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5175 IFS=$as_save_IFS
5179 MV=$ac_cv_prog_MV
5180 if test -n "$MV"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5182 $as_echo "$MV" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 req_avail=yes
5190 if test "$MV" = ""; then
5191 req_avail=no
5193 if test "$MV" = "no"; then
5194 req_avail=no
5196 if test "$req_avail" = "no"; then
5197 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5199 # Extract the first word of "echo", so it can be a program name with args.
5200 set dummy echo; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ECHO+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ECHO"; then
5207 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ECHO="echo "
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5222 IFS=$as_save_IFS
5226 ECHO=$ac_cv_prog_ECHO
5227 if test -n "$ECHO"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5229 $as_echo "$ECHO" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 req_avail=yes
5237 if test "$ECHO" = ""; then
5238 req_avail=no
5240 if test "$ECHO" = "no"; then
5241 req_avail=no
5243 if test "$req_avail" = "no"; then
5244 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5246 # Extract the first word of "mkdir", so it can be a program name with args.
5247 set dummy mkdir; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_MKDIR+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$MKDIR"; then
5254 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_MKDIR="mkdir -p"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 MKDIR=$ac_cv_prog_MKDIR
5274 if test -n "$MKDIR"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5276 $as_echo "$MKDIR" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 req_avail=yes
5284 if test "$MKDIR" = ""; then
5285 req_avail=no
5287 if test "$MKDIR" = "no"; then
5288 req_avail=no
5290 if test "$req_avail" = "no"; then
5291 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5293 # Extract the first word of "touch", so it can be a program name with args.
5294 set dummy touch; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_TOUCH+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$TOUCH"; then
5301 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_TOUCH="touch "
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 TOUCH=$ac_cv_prog_TOUCH
5321 if test -n "$TOUCH"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5323 $as_echo "$TOUCH" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 req_avail=yes
5331 if test "$TOUCH" = ""; then
5332 req_avail=no
5334 if test "$TOUCH" = "no"; then
5335 req_avail=no
5337 if test "$req_avail" = "no"; then
5338 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 # Extract the first word of "sort", so it can be a program name with args.
5341 set dummy sort; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_SORT+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$SORT"; then
5348 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_SORT="sort "
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 SORT=$ac_cv_prog_SORT
5368 if test -n "$SORT"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5370 $as_echo "$SORT" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 req_avail=yes
5378 if test "$SORT" = ""; then
5379 req_avail=no
5381 if test "$SORT" = "no"; then
5382 req_avail=no
5384 if test "$req_avail" = "no"; then
5385 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5387 # Extract the first word of "uniq", so it can be a program name with args.
5388 set dummy uniq; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_UNIQ+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$UNIQ"; then
5395 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_UNIQ="uniq "
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 UNIQ=$ac_cv_prog_UNIQ
5415 if test -n "$UNIQ"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5417 $as_echo "$UNIQ" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5424 req_avail=yes
5425 if test "$UNIQ" = ""; then
5426 req_avail=no
5428 if test "$UNIQ" = "no"; then
5429 req_avail=no
5431 if test "$req_avail" = "no"; then
5432 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5434 # Extract the first word of "true", so it can be a program name with args.
5435 set dummy true; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_NOP+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$NOP"; then
5442 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_NOP="true "
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5457 IFS=$as_save_IFS
5461 NOP=$ac_cv_prog_NOP
5462 if test -n "$NOP"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5464 $as_echo "$NOP" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5471 req_avail=yes
5472 if test "$NOP" = ""; then
5473 req_avail=no
5475 if test "$NOP" = "no"; then
5476 req_avail=no
5478 if test "$req_avail" = "no"; then
5479 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5481 # Extract the first word of "cat", so it can be a program name with args.
5482 set dummy cat; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_CAT+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$CAT"; then
5489 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_CAT="cat "
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 CAT=$ac_cv_prog_CAT
5509 if test -n "$CAT"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5511 $as_echo "$CAT" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 req_avail=yes
5519 if test "$CAT" = ""; then
5520 req_avail=no
5522 if test "$CAT" = "no"; then
5523 req_avail=no
5525 if test "$req_avail" = "no"; then
5526 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5528 # Extract the first word of "bison", so it can be a program name with args.
5529 set dummy bison; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_BISON+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$BISON"; then
5536 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_BISON="bison "
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 BISON=$ac_cv_prog_BISON
5556 if test -n "$BISON"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5558 $as_echo "$BISON" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 req_avail=yes
5566 if test "$BISON" = ""; then
5567 req_avail=no
5569 if test "$BISON" = "no"; then
5570 req_avail=no
5572 if test "$req_avail" = "no"; then
5573 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5575 # Extract the first word of "flex", so it can be a program name with args.
5576 set dummy flex; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_FLEX+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$FLEX"; then
5583 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_FLEX="flex "
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 FLEX=$ac_cv_prog_FLEX
5603 if test -n "$FLEX"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5605 $as_echo "$FLEX" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 req_avail=yes
5613 if test "$FLEX" = ""; then
5614 req_avail=no
5616 if test "$FLEX" = "no"; then
5617 req_avail=no
5619 if test "$req_avail" = "no"; then
5620 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5623 $as_echo_n "checking version of $FLEX... " >&6; }
5624 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5626 $as_echo "$ax_cv_flex_version" >&6; }
5627 # Extract the first word of "pngtopnm", so it can be a program name with args.
5628 set dummy pngtopnm; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$PNGTOPNM"; then
5635 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644 ac_cv_prog_PNGTOPNM="pngtopnm "
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5648 done
5649 done
5650 IFS=$as_save_IFS
5654 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5655 if test -n "$PNGTOPNM"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5657 $as_echo "$PNGTOPNM" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 req_avail=yes
5665 if test "$PNGTOPNM" = ""; then
5666 req_avail=no
5668 if test "$PNGTOPNM" = "no"; then
5669 req_avail=no
5671 if test "$req_avail" = "no"; then
5672 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5674 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5675 set dummy ppmtoilbm; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$PPMTOILBM"; then
5682 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5701 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5702 if test -n "$PPMTOILBM"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5704 $as_echo "$PPMTOILBM" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5711 req_avail=yes
5712 if test "$PPMTOILBM" = ""; then
5713 req_avail=no
5715 if test "$PPMTOILBM" = "no"; then
5716 req_avail=no
5718 if test "$req_avail" = "no"; then
5719 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5721 # Extract the first word of "sed", so it can be a program name with args.
5722 set dummy sed; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_prog_SED+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$SED"; then
5729 ac_cv_prog_SED="$SED" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_SED="sed "
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 SED=$ac_cv_prog_SED
5749 if test -n "$SED"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5751 $as_echo "$SED" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5758 req_avail=yes
5759 if test "$SED" = ""; then
5760 req_avail=no
5762 if test "$SED" = "no"; then
5763 req_avail=no
5765 if test "$req_avail" = "no"; then
5766 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5768 # Extract the first word of "chmod", so it can be a program name with args.
5769 set dummy chmod; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_CHMOD+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$CHMOD"; then
5776 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_CHMOD="chmod "
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5789 done
5790 done
5791 IFS=$as_save_IFS
5795 CHMOD=$ac_cv_prog_CHMOD
5796 if test -n "$CHMOD"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5798 $as_echo "$CHMOD" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 req_avail=yes
5806 if test "$CHMOD" = ""; then
5807 req_avail=no
5809 if test "$CHMOD" = "no"; then
5810 req_avail=no
5812 if test "$req_avail" = "no"; then
5813 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5815 # Extract the first word of "patch", so it can be a program name with args.
5816 set dummy patch; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_PATCH+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$PATCH"; then
5823 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_PATCH="patch "
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5842 PATCH=$ac_cv_prog_PATCH
5843 if test -n "$PATCH"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5845 $as_echo "$PATCH" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5852 req_avail=yes
5853 if test "$PATCH" = ""; then
5854 req_avail=no
5856 if test "$PATCH" = "no"; then
5857 req_avail=no
5859 if test "$req_avail" = "no"; then
5860 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5869 if test -n "$PYTHON"; then
5870 # If the user set $PYTHON, use it and don't search something else.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5872 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5873 prog="import sys
5874 # split strings by '.' and convert to numeric. Append some zeros
5875 # because we need at least 4 digits for the hex conversion.
5876 # map returns an iterator in Python 3.0 and a list in 2.x
5877 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5878 minverhex = 0
5879 # xrange is not present in Python 3.0 and range returns an iterator
5880 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5881 sys.exit(sys.hexversion < minverhex)"
5882 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5883 ($PYTHON -c "$prog") >&5 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; then :
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5888 $as_echo "yes" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5894 am_display_PYTHON=$PYTHON
5895 else
5896 # Otherwise, try each interpreter until we find one that satisfies
5897 # VERSION.
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5899 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5900 if ${am_cv_pathless_PYTHON+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5904 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
5905 test "$am_cv_pathless_PYTHON" = none && break
5906 prog="import sys
5907 # split strings by '.' and convert to numeric. Append some zeros
5908 # because we need at least 4 digits for the hex conversion.
5909 # map returns an iterator in Python 3.0 and a list in 2.x
5910 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5911 minverhex = 0
5912 # xrange is not present in Python 3.0 and range returns an iterator
5913 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5914 sys.exit(sys.hexversion < minverhex)"
5915 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5916 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; then :
5920 break
5922 done
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5925 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5926 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5927 if test "$am_cv_pathless_PYTHON" = none; then
5928 PYTHON=:
5929 else
5930 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5931 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_path_PYTHON+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 case $PYTHON in
5938 [\\/]* | ?:[\\/]*)
5939 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5953 done
5954 done
5955 IFS=$as_save_IFS
5958 esac
5960 PYTHON=$ac_cv_path_PYTHON
5961 if test -n "$PYTHON"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5963 $as_echo "$PYTHON" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 am_display_PYTHON=$am_cv_pathless_PYTHON
5975 if test "$PYTHON" = :; then
5976 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5977 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5981 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5982 if ${am_cv_python_version+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5988 $as_echo "$am_cv_python_version" >&6; }
5989 PYTHON_VERSION=$am_cv_python_version
5993 PYTHON_PREFIX='${prefix}'
5995 PYTHON_EXEC_PREFIX='${exec_prefix}'
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6000 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6001 if ${am_cv_python_platform+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6007 $as_echo "$am_cv_python_platform" >&6; }
6008 PYTHON_PLATFORM=$am_cv_python_platform
6011 # Just factor out some code duplication.
6012 am_python_setup_sysconfig="\
6013 import sys
6014 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6015 # with python 3.x. See automake bug#10227.
6016 try:
6017 import sysconfig
6018 except ImportError:
6019 can_use_sysconfig = 0
6020 else:
6021 can_use_sysconfig = 1
6022 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6023 # <https://github.com/pypa/virtualenv/issues/118>
6024 try:
6025 from platform import python_implementation
6026 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6027 can_use_sysconfig = 0
6028 except ImportError:
6029 pass"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6033 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6034 if ${am_cv_python_pythondir+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test "x$prefix" = xNONE
6038 then
6039 am_py_prefix=$ac_default_prefix
6040 else
6041 am_py_prefix=$prefix
6043 am_cv_python_pythondir=`$PYTHON -c "
6044 $am_python_setup_sysconfig
6045 if can_use_sysconfig:
6046 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6047 else:
6048 from distutils import sysconfig
6049 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6050 sys.stdout.write(sitedir)"`
6051 case $am_cv_python_pythondir in
6052 $am_py_prefix*)
6053 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6054 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6057 case $am_py_prefix in
6058 /usr|/System*) ;;
6060 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6062 esac
6064 esac
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6068 $as_echo "$am_cv_python_pythondir" >&6; }
6069 pythondir=$am_cv_python_pythondir
6073 pkgpythondir=\${pythondir}/$PACKAGE
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6077 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6078 if ${am_cv_python_pyexecdir+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test "x$exec_prefix" = xNONE
6082 then
6083 am_py_exec_prefix=$am_py_prefix
6084 else
6085 am_py_exec_prefix=$exec_prefix
6087 am_cv_python_pyexecdir=`$PYTHON -c "
6088 $am_python_setup_sysconfig
6089 if can_use_sysconfig:
6090 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6091 else:
6092 from distutils import sysconfig
6093 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6094 sys.stdout.write(sitedir)"`
6095 case $am_cv_python_pyexecdir in
6096 $am_py_exec_prefix*)
6097 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6098 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6101 case $am_py_exec_prefix in
6102 /usr|/System*) ;;
6104 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6106 esac
6108 esac
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6112 $as_echo "$am_cv_python_pyexecdir" >&6; }
6113 pyexecdir=$am_cv_python_pyexecdir
6117 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6125 # Check whether --enable-libpng-config was given.
6126 if test "${enable_libpng_config+set}" = set; then :
6127 enableval=$enable_libpng_config;
6130 if test "$enable_libpng_config" != "no"; then
6131 # Extract the first word of "libpng-config", so it can be a program name with args.
6132 set dummy libpng-config; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$arosconfig_use_libpngconfig"; then
6139 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6156 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6159 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6160 if test -n "$arosconfig_use_libpngconfig"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6162 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6170 if test "$arosconfig_use_libpngconfig" = "yes"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6172 $as_echo_n "checking libpng-config library... " >&6; }
6173 libpng_incdir="`libpng-config --cflags`"
6174 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6175 libpng="`libpng-config --libs`"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6177 $as_echo "$libpng" >&6; }
6178 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6181 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6182 if ${ac_cv_lib_png_png_read_png+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 ac_check_lib_save_LIBS=$LIBS
6186 LIBS="-lpng $LIBS"
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6190 /* Override any GCC internal prototype to avoid an error.
6191 Use char because int might match the return type of a GCC
6192 builtin and then its argument prototype would still apply. */
6193 #ifdef __cplusplus
6194 extern "C"
6195 #endif
6196 char png_read_png ();
6198 main ()
6200 return png_read_png ();
6202 return 0;
6204 _ACEOF
6205 if ac_fn_c_try_link "$LINENO"; then :
6206 ac_cv_lib_png_png_read_png=yes
6207 else
6208 ac_cv_lib_png_png_read_png=no
6210 rm -f core conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6215 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6216 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6217 libpng="-lpng"
6218 else
6219 libpng="no"
6222 if test "$libpng_libextra" != ""; then
6223 if test "$libpng" != "no"; then
6224 libpng_libextra="$libpng_libextra $libpng"
6228 req_avail=yes
6229 if test "$libpng" = ""; then
6230 req_avail=no
6232 if test "$libpng" = "no"; then
6233 req_avail=no
6235 if test "$req_avail" = "no"; then
6236 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6242 FOR=for
6244 IF=if
6246 TEST=test
6248 CMP=cmp
6252 # Check for some includes for the X11 HIDD and the kernel
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6255 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6256 if ${ac_cv_path_GREP+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -z "$GREP"; then
6260 ac_path_GREP_found=false
6261 # Loop through the user's path and test for each of PROGNAME-LIST
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_prog in grep ggrep; do
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6270 as_fn_executable_p "$ac_path_GREP" || continue
6271 # Check for GNU ac_path_GREP and select it if it is found.
6272 # Check for GNU $ac_path_GREP
6273 case `"$ac_path_GREP" --version 2>&1` in
6274 *GNU*)
6275 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6277 ac_count=0
6278 $as_echo_n 0123456789 >"conftest.in"
6279 while :
6281 cat "conftest.in" "conftest.in" >"conftest.tmp"
6282 mv "conftest.tmp" "conftest.in"
6283 cp "conftest.in" "conftest.nl"
6284 $as_echo 'GREP' >> "conftest.nl"
6285 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6287 as_fn_arith $ac_count + 1 && ac_count=$as_val
6288 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6289 # Best one so far, save it but keep looking for a better one
6290 ac_cv_path_GREP="$ac_path_GREP"
6291 ac_path_GREP_max=$ac_count
6293 # 10*(2^10) chars as input seems more than enough
6294 test $ac_count -gt 10 && break
6295 done
6296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6297 esac
6299 $ac_path_GREP_found && break 3
6300 done
6301 done
6302 done
6303 IFS=$as_save_IFS
6304 if test -z "$ac_cv_path_GREP"; then
6305 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6307 else
6308 ac_cv_path_GREP=$GREP
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6313 $as_echo "$ac_cv_path_GREP" >&6; }
6314 GREP="$ac_cv_path_GREP"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6318 $as_echo_n "checking for egrep... " >&6; }
6319 if ${ac_cv_path_EGREP+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6323 then ac_cv_path_EGREP="$GREP -E"
6324 else
6325 if test -z "$EGREP"; then
6326 ac_path_EGREP_found=false
6327 # Loop through the user's path and test for each of PROGNAME-LIST
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_prog in egrep; do
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6336 as_fn_executable_p "$ac_path_EGREP" || continue
6337 # Check for GNU ac_path_EGREP and select it if it is found.
6338 # Check for GNU $ac_path_EGREP
6339 case `"$ac_path_EGREP" --version 2>&1` in
6340 *GNU*)
6341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6343 ac_count=0
6344 $as_echo_n 0123456789 >"conftest.in"
6345 while :
6347 cat "conftest.in" "conftest.in" >"conftest.tmp"
6348 mv "conftest.tmp" "conftest.in"
6349 cp "conftest.in" "conftest.nl"
6350 $as_echo 'EGREP' >> "conftest.nl"
6351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6353 as_fn_arith $ac_count + 1 && ac_count=$as_val
6354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6355 # Best one so far, save it but keep looking for a better one
6356 ac_cv_path_EGREP="$ac_path_EGREP"
6357 ac_path_EGREP_max=$ac_count
6359 # 10*(2^10) chars as input seems more than enough
6360 test $ac_count -gt 10 && break
6361 done
6362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6363 esac
6365 $ac_path_EGREP_found && break 3
6366 done
6367 done
6368 done
6369 IFS=$as_save_IFS
6370 if test -z "$ac_cv_path_EGREP"; then
6371 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6373 else
6374 ac_cv_path_EGREP=$EGREP
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6380 $as_echo "$ac_cv_path_EGREP" >&6; }
6381 EGREP="$ac_cv_path_EGREP"
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6385 $as_echo_n "checking for ANSI C header files... " >&6; }
6386 if ${ac_cv_header_stdc+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 #include <stdlib.h>
6392 #include <stdarg.h>
6393 #include <string.h>
6394 #include <float.h>
6397 main ()
6401 return 0;
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"; then :
6405 ac_cv_header_stdc=yes
6406 else
6407 ac_cv_header_stdc=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 if test $ac_cv_header_stdc = yes; then
6412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <string.h>
6417 _ACEOF
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419 $EGREP "memchr" >/dev/null 2>&1; then :
6421 else
6422 ac_cv_header_stdc=no
6424 rm -f conftest*
6428 if test $ac_cv_header_stdc = yes; then
6429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <stdlib.h>
6434 _ACEOF
6435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6436 $EGREP "free" >/dev/null 2>&1; then :
6438 else
6439 ac_cv_header_stdc=no
6441 rm -f conftest*
6445 if test $ac_cv_header_stdc = yes; then
6446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6447 if test "$cross_compiling" = yes; then :
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <ctype.h>
6453 #include <stdlib.h>
6454 #if ((' ' & 0x0FF) == 0x020)
6455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6457 #else
6458 # define ISLOWER(c) \
6459 (('a' <= (c) && (c) <= 'i') \
6460 || ('j' <= (c) && (c) <= 'r') \
6461 || ('s' <= (c) && (c) <= 'z'))
6462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6463 #endif
6465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6467 main ()
6469 int i;
6470 for (i = 0; i < 256; i++)
6471 if (XOR (islower (i), ISLOWER (i))
6472 || toupper (i) != TOUPPER (i))
6473 return 2;
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_run "$LINENO"; then :
6479 else
6480 ac_cv_header_stdc=no
6482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6483 conftest.$ac_objext conftest.beam conftest.$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6489 $as_echo "$ac_cv_header_stdc" >&6; }
6490 if test $ac_cv_header_stdc = yes; then
6492 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6498 inttypes.h stdint.h unistd.h
6499 do :
6500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6504 cat >>confdefs.h <<_ACEOF
6505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 _ACEOF
6510 done
6513 for ac_header in sys/ipc.h sys/shm.h \
6514 sys/mmap.h sys/mman.h sysexits.h \
6515 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6517 do :
6518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6521 cat >>confdefs.h <<_ACEOF
6522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6523 _ACEOF
6527 done
6530 for ac_header in sys/mount.h
6531 do :
6532 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6534 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define HAVE_SYS_MOUNT_H 1
6537 _ACEOF
6541 done
6543 for ac_header in GL/glx.h
6544 do :
6545 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6546 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_GL_GLX_H 1
6549 _ACEOF
6550 host_feature_glx=yes
6551 else
6552 host_feature_glx=no
6555 done
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6559 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6563 #define __unused __attribute__((unused))
6564 #include <sys/stat.h>
6567 main ()
6571 return 0;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 host_stat_h__unused_used=no
6576 else
6577 host_stat_h__unused_used=yes
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6581 $as_echo "$host_stat_h__unused_used" >&6; }
6583 ac_header_dirent=no
6584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6585 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6587 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6588 if eval \${$as_ac_Header+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 #include <sys/types.h>
6594 #include <$ac_hdr>
6597 main ()
6599 if ((DIR *) 0)
6600 return 0;
6602 return 0;
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606 eval "$as_ac_Header=yes"
6607 else
6608 eval "$as_ac_Header=no"
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 eval ac_res=\$$as_ac_Header
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6614 $as_echo "$ac_res" >&6; }
6615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6616 cat >>confdefs.h <<_ACEOF
6617 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6618 _ACEOF
6620 ac_header_dirent=$ac_hdr; break
6623 done
6624 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6625 if test $ac_header_dirent = dirent.h; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6627 $as_echo_n "checking for library containing opendir... " >&6; }
6628 if ${ac_cv_search_opendir+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 ac_func_search_save_LIBS=$LIBS
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 /* Override any GCC internal prototype to avoid an error.
6636 Use char because int might match the return type of a GCC
6637 builtin and then its argument prototype would still apply. */
6638 #ifdef __cplusplus
6639 extern "C"
6640 #endif
6641 char opendir ();
6643 main ()
6645 return opendir ();
6647 return 0;
6649 _ACEOF
6650 for ac_lib in '' dir; do
6651 if test -z "$ac_lib"; then
6652 ac_res="none required"
6653 else
6654 ac_res=-l$ac_lib
6655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 ac_cv_search_opendir=$ac_res
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext
6662 if ${ac_cv_search_opendir+:} false; then :
6663 break
6665 done
6666 if ${ac_cv_search_opendir+:} false; then :
6668 else
6669 ac_cv_search_opendir=no
6671 rm conftest.$ac_ext
6672 LIBS=$ac_func_search_save_LIBS
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6675 $as_echo "$ac_cv_search_opendir" >&6; }
6676 ac_res=$ac_cv_search_opendir
6677 if test "$ac_res" != no; then :
6678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6684 $as_echo_n "checking for library containing opendir... " >&6; }
6685 if ${ac_cv_search_opendir+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_func_search_save_LIBS=$LIBS
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6692 /* Override any GCC internal prototype to avoid an error.
6693 Use char because int might match the return type of a GCC
6694 builtin and then its argument prototype would still apply. */
6695 #ifdef __cplusplus
6696 extern "C"
6697 #endif
6698 char opendir ();
6700 main ()
6702 return opendir ();
6704 return 0;
6706 _ACEOF
6707 for ac_lib in '' x; do
6708 if test -z "$ac_lib"; then
6709 ac_res="none required"
6710 else
6711 ac_res=-l$ac_lib
6712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 ac_cv_search_opendir=$ac_res
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext
6719 if ${ac_cv_search_opendir+:} false; then :
6720 break
6722 done
6723 if ${ac_cv_search_opendir+:} false; then :
6725 else
6726 ac_cv_search_opendir=no
6728 rm conftest.$ac_ext
6729 LIBS=$ac_func_search_save_LIBS
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6732 $as_echo "$ac_cv_search_opendir" >&6; }
6733 ac_res=$ac_cv_search_opendir
6734 if test "$ac_res" != no; then :
6735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6742 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6743 if ${ac_cv_header_stat_broken+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <sys/types.h>
6749 #include <sys/stat.h>
6751 #if defined S_ISBLK && defined S_IFDIR
6752 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6753 #endif
6755 #if defined S_ISBLK && defined S_IFCHR
6756 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6757 #endif
6759 #if defined S_ISLNK && defined S_IFREG
6760 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6761 #endif
6763 #if defined S_ISSOCK && defined S_IFREG
6764 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6765 #endif
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_header_stat_broken=no
6770 else
6771 ac_cv_header_stat_broken=yes
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6776 $as_echo "$ac_cv_header_stat_broken" >&6; }
6777 if test $ac_cv_header_stat_broken = yes; then
6779 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6784 $as_echo_n "checking for ANSI C header files... " >&6; }
6785 if ${ac_cv_header_stdc+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <stdlib.h>
6791 #include <stdarg.h>
6792 #include <string.h>
6793 #include <float.h>
6796 main ()
6800 return 0;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 ac_cv_header_stdc=yes
6805 else
6806 ac_cv_header_stdc=no
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 if test $ac_cv_header_stdc = yes; then
6811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <string.h>
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 $EGREP "memchr" >/dev/null 2>&1; then :
6820 else
6821 ac_cv_header_stdc=no
6823 rm -f conftest*
6827 if test $ac_cv_header_stdc = yes; then
6828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <stdlib.h>
6833 _ACEOF
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 $EGREP "free" >/dev/null 2>&1; then :
6837 else
6838 ac_cv_header_stdc=no
6840 rm -f conftest*
6844 if test $ac_cv_header_stdc = yes; then
6845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6846 if test "$cross_compiling" = yes; then :
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <ctype.h>
6852 #include <stdlib.h>
6853 #if ((' ' & 0x0FF) == 0x020)
6854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6856 #else
6857 # define ISLOWER(c) \
6858 (('a' <= (c) && (c) <= 'i') \
6859 || ('j' <= (c) && (c) <= 'r') \
6860 || ('s' <= (c) && (c) <= 'z'))
6861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6862 #endif
6864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6866 main ()
6868 int i;
6869 for (i = 0; i < 256; i++)
6870 if (XOR (islower (i), ISLOWER (i))
6871 || toupper (i) != TOUPPER (i))
6872 return 2;
6873 return 0;
6875 _ACEOF
6876 if ac_fn_c_try_run "$LINENO"; then :
6878 else
6879 ac_cv_header_stdc=no
6881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6882 conftest.$ac_objext conftest.beam conftest.$ac_ext
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6888 $as_echo "$ac_cv_header_stdc" >&6; }
6889 if test $ac_cv_header_stdc = yes; then
6891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6896 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6897 if ${ac_cv_header_sys_wait_h+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <sys/wait.h>
6904 #ifndef WEXITSTATUS
6905 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6906 #endif
6907 #ifndef WIFEXITED
6908 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6909 #endif
6912 main ()
6914 int s;
6915 wait (&s);
6916 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6918 return 0;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 ac_cv_header_sys_wait_h=yes
6923 else
6924 ac_cv_header_sys_wait_h=no
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6929 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6930 if test $ac_cv_header_sys_wait_h = yes; then
6932 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6937 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6938 if ${ac_cv_header_time+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943 #include <sys/types.h>
6944 #include <sys/time.h>
6945 #include <time.h>
6948 main ()
6950 if ((struct tm *) 0)
6951 return 0;
6953 return 0;
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"; then :
6957 ac_cv_header_time=yes
6958 else
6959 ac_cv_header_time=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6964 $as_echo "$ac_cv_header_time" >&6; }
6965 if test $ac_cv_header_time = yes; then
6967 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6971 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6972 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6976 _ACEOF
6979 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6984 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6985 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6989 _ACEOF
6992 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6994 else
6995 case " $LIBOBJS " in
6996 *" fileblocks.$ac_objext "* ) ;;
6997 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6999 esac
7004 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7005 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_STRUCT_STAT_ST_RDEV 1
7009 _ACEOF
7012 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7018 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7019 if ${ac_cv_struct_tm+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <sys/types.h>
7025 #include <time.h>
7028 main ()
7030 struct tm tm;
7031 int *p = &tm.tm_sec;
7032 return !p;
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 ac_cv_struct_tm=time.h
7039 else
7040 ac_cv_struct_tm=sys/time.h
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7045 $as_echo "$ac_cv_struct_tm" >&6; }
7046 if test $ac_cv_struct_tm = sys/time.h; then
7048 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7052 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7053 #include <$ac_cv_struct_tm>
7056 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_STRUCT_TM_TM_ZONE 1
7060 _ACEOF
7065 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7067 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7069 else
7070 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7072 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7073 ac_have_decl=1
7074 else
7075 ac_have_decl=0
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_DECL_TZNAME $ac_have_decl
7080 _ACEOF
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7083 $as_echo_n "checking for tzname... " >&6; }
7084 if ${ac_cv_var_tzname+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #include <time.h>
7090 #if !HAVE_DECL_TZNAME
7091 extern char *tzname[];
7092 #endif
7095 main ()
7097 return tzname[0][0];
7099 return 0;
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103 ac_cv_var_tzname=yes
7104 else
7105 ac_cv_var_tzname=no
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7111 $as_echo "$ac_cv_var_tzname" >&6; }
7112 if test $ac_cv_var_tzname = yes; then
7114 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7119 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7120 if test "x$ac_cv_type_off_t" = xyes; then :
7122 else
7124 cat >>confdefs.h <<_ACEOF
7125 #define off_t long int
7126 _ACEOF
7130 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7131 if test "x$ac_cv_type_pid_t" = xyes; then :
7133 else
7135 cat >>confdefs.h <<_ACEOF
7136 #define pid_t int
7137 _ACEOF
7141 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7142 if test "x$ac_cv_type_size_t" = xyes; then :
7144 else
7146 cat >>confdefs.h <<_ACEOF
7147 #define size_t unsigned int
7148 _ACEOF
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7153 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7154 if ${ac_cv_type_uid_t+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <sys/types.h>
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "uid_t" >/dev/null 2>&1; then :
7164 ac_cv_type_uid_t=yes
7165 else
7166 ac_cv_type_uid_t=no
7168 rm -f conftest*
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7172 $as_echo "$ac_cv_type_uid_t" >&6; }
7173 if test $ac_cv_type_uid_t = no; then
7175 $as_echo "#define uid_t int" >>confdefs.h
7178 $as_echo "#define gid_t int" >>confdefs.h
7183 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7184 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7188 _ACEOF
7194 # Look for some functions
7195 for ac_func in getpagesize kqueue statfs statvfs \
7196 clone kse_create rfork_thread thr_create sa_register \
7197 getcontext makecontext setcontext sigaltstack swapcontext
7198 do :
7199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7202 cat >>confdefs.h <<_ACEOF
7203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7204 _ACEOF
7207 done
7213 for ac_header in $ac_header_list
7214 do :
7215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7219 cat >>confdefs.h <<_ACEOF
7220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221 _ACEOF
7225 done
7234 for ac_func in getpagesize
7235 do :
7236 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7237 if test "x$ac_cv_func_getpagesize" = xyes; then :
7238 cat >>confdefs.h <<_ACEOF
7239 #define HAVE_GETPAGESIZE 1
7240 _ACEOF
7243 done
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7246 $as_echo_n "checking for working mmap... " >&6; }
7247 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test "$cross_compiling" = yes; then :
7251 ac_cv_func_mmap_fixed_mapped=no
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 /* malloc might have been renamed as rpl_malloc. */
7257 #undef malloc
7259 /* Thanks to Mike Haertel and Jim Avera for this test.
7260 Here is a matrix of mmap possibilities:
7261 mmap private not fixed
7262 mmap private fixed at somewhere currently unmapped
7263 mmap private fixed at somewhere already mapped
7264 mmap shared not fixed
7265 mmap shared fixed at somewhere currently unmapped
7266 mmap shared fixed at somewhere already mapped
7267 For private mappings, we should verify that changes cannot be read()
7268 back from the file, nor mmap's back from the file at a different
7269 address. (There have been systems where private was not correctly
7270 implemented like the infamous i386 svr4.0, and systems where the
7271 VM page cache was not coherent with the file system buffer cache
7272 like early versions of FreeBSD and possibly contemporary NetBSD.)
7273 For shared mappings, we should conversely verify that changes get
7274 propagated back to all the places they're supposed to be.
7276 Grep wants private fixed already mapped.
7277 The main things grep needs to know about mmap are:
7278 * does it exist and is it safe to write into the mmap'd area
7279 * how to use it (BSD variants) */
7281 #include <fcntl.h>
7282 #include <sys/mman.h>
7284 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7285 char *malloc ();
7286 #endif
7288 /* This mess was copied from the GNU getpagesize.h. */
7289 #ifndef HAVE_GETPAGESIZE
7290 # ifdef _SC_PAGESIZE
7291 # define getpagesize() sysconf(_SC_PAGESIZE)
7292 # else /* no _SC_PAGESIZE */
7293 # ifdef HAVE_SYS_PARAM_H
7294 # include <sys/param.h>
7295 # ifdef EXEC_PAGESIZE
7296 # define getpagesize() EXEC_PAGESIZE
7297 # else /* no EXEC_PAGESIZE */
7298 # ifdef NBPG
7299 # define getpagesize() NBPG * CLSIZE
7300 # ifndef CLSIZE
7301 # define CLSIZE 1
7302 # endif /* no CLSIZE */
7303 # else /* no NBPG */
7304 # ifdef NBPC
7305 # define getpagesize() NBPC
7306 # else /* no NBPC */
7307 # ifdef PAGESIZE
7308 # define getpagesize() PAGESIZE
7309 # endif /* PAGESIZE */
7310 # endif /* no NBPC */
7311 # endif /* no NBPG */
7312 # endif /* no EXEC_PAGESIZE */
7313 # else /* no HAVE_SYS_PARAM_H */
7314 # define getpagesize() 8192 /* punt totally */
7315 # endif /* no HAVE_SYS_PARAM_H */
7316 # endif /* no _SC_PAGESIZE */
7318 #endif /* no HAVE_GETPAGESIZE */
7321 main ()
7323 char *data, *data2, *data3;
7324 const char *cdata2;
7325 int i, pagesize;
7326 int fd, fd2;
7328 pagesize = getpagesize ();
7330 /* First, make a file with some known garbage in it. */
7331 data = (char *) malloc (pagesize);
7332 if (!data)
7333 return 1;
7334 for (i = 0; i < pagesize; ++i)
7335 *(data + i) = rand ();
7336 umask (0);
7337 fd = creat ("conftest.mmap", 0600);
7338 if (fd < 0)
7339 return 2;
7340 if (write (fd, data, pagesize) != pagesize)
7341 return 3;
7342 close (fd);
7344 /* Next, check that the tail of a page is zero-filled. File must have
7345 non-zero length, otherwise we risk SIGBUS for entire page. */
7346 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7347 if (fd2 < 0)
7348 return 4;
7349 cdata2 = "";
7350 if (write (fd2, cdata2, 1) != 1)
7351 return 5;
7352 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7353 if (data2 == MAP_FAILED)
7354 return 6;
7355 for (i = 0; i < pagesize; ++i)
7356 if (*(data2 + i))
7357 return 7;
7358 close (fd2);
7359 if (munmap (data2, pagesize))
7360 return 8;
7362 /* Next, try to mmap the file at a fixed address which already has
7363 something else allocated at it. If we can, also make sure that
7364 we see the same garbage. */
7365 fd = open ("conftest.mmap", O_RDWR);
7366 if (fd < 0)
7367 return 9;
7368 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7369 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7370 return 10;
7371 for (i = 0; i < pagesize; ++i)
7372 if (*(data + i) != *(data2 + i))
7373 return 11;
7375 /* Finally, make sure that changes to the mapped area do not
7376 percolate back to the file as seen by read(). (This is a bug on
7377 some variants of i386 svr4.0.) */
7378 for (i = 0; i < pagesize; ++i)
7379 *(data2 + i) = *(data2 + i) + 1;
7380 data3 = (char *) malloc (pagesize);
7381 if (!data3)
7382 return 12;
7383 if (read (fd, data3, pagesize) != pagesize)
7384 return 13;
7385 for (i = 0; i < pagesize; ++i)
7386 if (*(data + i) != *(data3 + i))
7387 return 14;
7388 close (fd);
7389 free (data);
7390 free (data3);
7391 return 0;
7393 _ACEOF
7394 if ac_fn_c_try_run "$LINENO"; then :
7395 ac_cv_func_mmap_fixed_mapped=yes
7396 else
7397 ac_cv_func_mmap_fixed_mapped=no
7399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7400 conftest.$ac_objext conftest.beam conftest.$ac_ext
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7405 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7406 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7408 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7411 rm -f conftest.mmap conftest.txt
7414 #-----------------------------------------------------------------------------
7417 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7418 # it switched on by default, and we use the host compiler, so it compiles AROS
7419 # code with this enabled resulting in link failures as we don't have support
7420 # for it.
7422 # We use two methods to disable it. For the host compiler (used to compile
7423 # some hosted modules), we test to see if the compiler supports stack
7424 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7425 # work on all platforms.
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7429 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7430 save_cflags="$CFLAGS"
7431 CFLAGS="$CFLAGS -fno-stack-protector"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 use_no_stack_protector="yes"
7445 else
7446 use_no_stack_protector="no"
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7450 $as_echo "$use_no_stack_protector" >&6; }
7451 if test "x-$use_no_stack_protector" = "x-yes" ; then
7452 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7454 CFLAGS="$save_cflags"
7456 #-----------------------------------------------------------------------------
7458 # Disable pointer-signedness warnings if the compiler recognises the option
7459 # (this only works for the host compiler at the moment)
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7462 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7463 save_cflags="$CFLAGS"
7464 CFLAGS="$CFLAGS -Wno-pointer-sign"
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 use_no_sign_warning="yes"
7478 else
7479 use_no_sign_warning="no"
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7483 $as_echo "$use_no_sign_warning" >&6; }
7484 if test "x-$use_no_sign_warning" = "x-yes" ; then
7485 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7487 CFLAGS="$save_cflags"
7489 #-----------------------------------------------------------------------------
7491 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7494 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7495 save_cflags="$CFLAGS"
7496 CFLAGS="$CFLAGS -fgnu89-inline"
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7501 main ()
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 use_gnu89_inline="yes"
7510 else
7511 use_gnu89_inline="no"
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7515 $as_echo "$use_gnu89_inline" >&6; }
7516 if test "x-$use_gnu89_inline" = "x-yes" ; then
7517 gnu89_inline="-fgnu89-inline"
7519 CFLAGS="$save_cflags"
7522 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7523 # On GCC >= 4.0 -iquote should be used
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7526 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7527 CFLAGS="$CFLAGS -iquote."
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7532 main ()
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 has_iquote="yes"
7541 else
7542 has_iquote="no"
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7546 $as_echo "$has_iquote" >&6; }
7547 if test "x-$has_iquote" = "x-yes" ; then
7548 host_cflags_iquote=-iquote
7549 host_cflags_iquote_end=
7550 else
7551 host_cflags_iquote=-I
7552 host_cflags_iquote_end=-I-
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7556 $as_echo "$as_me: Performing target configuration..." >&6;}
7559 test_kernel_cc=no
7561 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7562 export_newline="
7565 aros_elf_translate=
7566 aros_warn_flags=
7567 aros_isa_extra=
7568 aros_isa_flags=
7569 aros_config_cppflags=
7570 aros_config_cflags=
7571 aros_config_cxxflags=
7572 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7573 aros_config_ldflags=""
7575 aros_shared_default=yes
7577 aros_shared_cflags="-fPIC"
7578 aros_shared_aflags=""
7579 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7580 aros_kernel_ldflags="-Wl,-rpath,./lib"
7582 aros_kernel_ar_flags="cr"
7583 aros_target_ar_flags="cr"
7584 aros_target_nm_flags="-C -ul"
7585 aros_target_strip_flags="--strip-unneeded -R.comment"
7587 aros_c_libs=
7588 aros_cxx_libs=
7590 aros_target_genmap="-Wl,-Map -Xlinker"
7592 # Native flavour stuff
7593 aros_serial_debug="0"
7595 # Palm native flavour stuff
7596 aros_palm_debug_hack="0"
7598 # Unix flavour stuff
7599 aros_nesting_supervisor="0"
7601 # Collect-aros stuff: "-ius" to ignore undefined symbols
7602 ignore_undefined_symbols=""
7604 # Check for X11 by default
7605 need_x11="auto"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7608 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7610 # Check whether --with-toolchain was given.
7611 if test "${with_toolchain+set}" = set; then :
7612 withval=$with_toolchain; aros_toolchain="$withval"
7613 else
7614 aros_toolchain="$default_toolchain_family"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7618 $as_echo "$aros_toolchain" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7622 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7623 # Check whether --enable-lto was given.
7624 if test "${enable_lto+set}" = set; then :
7625 enableval=$enable_lto; aros_config_lto="$enableval"
7626 else
7627 aros_config_lto="no"
7630 if test "$aros_config_lto" != "no"; then
7631 aros_config_lto="yes"
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7634 $as_echo "$aros_config_lto" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7637 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7638 # Check whether --enable-coverage was given.
7639 if test "${enable_coverage+set}" = set; then :
7640 enableval=$enable_coverage; aros_config_coverage="$enableval"
7641 else
7642 aros_config_coverage="no"
7645 if test "$aros_config_coverage" != "no"; then
7646 aros_config_coverage="yes"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7649 $as_echo "$aros_config_coverage" >&6; }
7651 use_ld_wrapper=yes
7653 case "$aros_toolchain" in
7654 *llvm*)
7655 toolchain_c_compiler="clang"
7656 toolchain_cxx_compiler="clang++"
7657 toolchain_cpp_preprocessor="clang -E"
7658 toolchain_ld="ld.lld"
7659 aros_ld="ld"
7660 toolchain_as="llvm-as"
7661 toolchain_ar="llvm-ar"
7662 toolchain_ranlib="llvm-ranlib"
7663 toolchain_nm="llvm-nm"
7664 toolchain_strip="true"
7665 toolchain_objcopy="llvm-objcopy"
7666 toolchain_objdump="llvm-objdump"
7667 use_libatomic=yes
7669 *gnu*)
7670 toolchain_c_compiler="gcc"
7671 toolchain_cxx_compiler="g++"
7672 toolchain_cpp_preprocessor="gcc -E"
7673 toolchain_as="as"
7674 aros_ld="ld"
7675 if test "$aros_config_lto" != "yes"; then
7676 toolchain_ld="ld"
7677 toolchain_ar="ar"
7678 toolchain_ranlib="ranlib"
7679 toolchain_nm="nm"
7680 else
7681 toolchain_ld="ld.bfd"
7682 toolchain_ar="gcc-ar"
7683 toolchain_ranlib="gcc-ranlib"
7684 toolchain_nm="gcc-nm"
7686 toolchain_strip="strip"
7687 toolchain_objcopy="objcopy"
7688 toolchain_objdump="objdump"
7689 use_libatomic=yes
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7693 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7694 toolchain_c_compiler="cc"
7695 toolchain_cxx_compiler="c++"
7696 toolchain_cpp_preprocessor="cpp"
7697 toolchain_ld="ld"
7698 aros_ld="ld"
7699 toolchain_as="as"
7700 toolchain_ar="ar"
7701 toolchain_ranlib="ranlib"
7702 toolchain_nm="nm"
7703 toolchain_strip="strip"
7704 toolchain_objcopy="objcopy"
7705 toolchain_objdump="objdump"
7707 esac
7709 #-----------------------------------------------------------------------------
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7712 $as_echo_n "checking which type of build to do... " >&6; }
7713 # Check whether --enable-build_type was given.
7714 if test "${enable_build_type+set}" = set; then :
7715 enableval=$enable_build_type; build_type=$enableval
7716 else
7717 build_type="personal"
7721 if test "$build_type" = "nightly"; then
7722 build_type_string="NIGHTLY"
7723 elif test "$build_type" = "snapshot"; then
7724 build_type_string="SNAPSHOT"
7725 elif test "$build_type" = "milestone"; then
7726 build_type_string="MILESTONE"
7727 elif test "$build_type" = "release"; then
7728 build_type_string="RELEASE"
7729 else
7730 build_type_string="PERSONAL"
7731 build_type="personal"
7734 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7737 $as_echo "$build_type" >&6; }
7739 #-----------------------------------------------------------------------------
7740 all_debug_types="messages stack modules mungwall symbols"
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7743 $as_echo_n "checking which debug types to enable... " >&6; }
7744 # Check whether --enable-debug was given.
7745 if test "${enable_debug+set}" = set; then :
7746 enableval=$enable_debug; debug="$enableval"
7747 else
7748 debug=""
7752 if test "$debug" = "" -o "$debug" = "no"; then
7753 debug="none"
7754 elif test "$debug" = "yes"; then
7755 debug="all"
7758 if test "$debug" = "all" ; then
7759 debug="messages stack modules symbols"
7760 for d in $all_debug_types; do
7761 export aros_${d}_debug="1"
7762 done
7763 else
7764 for d in $all_debug_types; do
7765 export aros_${d}_debug="0"
7766 done
7769 if test "$debug" != "none"; then
7770 debug=`echo $debug | sed s/,/\ /g`
7771 for d in $debug; do
7772 found="0"
7773 for d2 in $all_debug_types; do
7774 if test "$d2" = "$d"; then
7775 found="1"
7776 break
7778 done
7779 if test "$found" = "0"; then
7780 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7782 export aros_${d}_debug="1"
7783 done
7784 aros_debug="yes"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7787 $as_echo "$debug" >&6; }
7789 if test "$aros_messages_debug" = "1"; then
7790 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7791 else
7792 aros_messages_debug=""
7794 if test "$aros_symbols_debug" = "1"; then
7795 aros_symbols_debug="-g"
7796 else
7797 aros_symbols_debug=""
7800 # These are the flags to pass when compiling debugged programs
7801 aros_debug_cppflags="$aros_messages_debug"
7802 aros_debug_cflags="$aros_symbols_debug"
7803 aros_debug_cxxflags=
7804 aros_debug_aflags=""
7805 aros_debug_ldflags="$aros_symbols_debug"
7807 #-----------------------------------------------------------------------------
7808 # Checking for distcc and ccache.
7810 # Always apply the transforms in this particular order. Basically you should
7811 # always run 'ccache distcc compiler' in that order for the best performance.
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7814 $as_echo_n "checking whether to enable distcc... " >&6; }
7815 # Check whether --enable-distcc was given.
7816 if test "${enable_distcc+set}" = set; then :
7817 enableval=$enable_distcc; distcc="$enableval"
7818 else
7819 distcc="no"
7822 if test "$distcc" != "" -a "$distcc" != "no"; then
7823 # AC_CHECK_PROG will print out the result in this case
7824 # Extract the first word of "distcc", so it can be a program name with args.
7825 set dummy distcc; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_path_DISTCC+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 case $DISTCC in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7851 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7853 esac
7855 DISTCC=$ac_cv_path_DISTCC
7856 if test -n "$DISTCC"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7858 $as_echo "$DISTCC" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7871 $as_echo_n "checking whether to enable ccache... " >&6; }
7872 # Check whether --enable-ccache was given.
7873 if test "${enable_ccache+set}" = set; then :
7874 enableval=$enable_ccache; ccache="$enableval"
7875 else
7876 ccache="no"
7879 if test "$ccache" != "" -a "$ccache" != "no"; then
7880 # AC_CHECK_PROG will print out the result in this case
7881 # Extract the first word of "ccache", so it can be a program name with args.
7882 set dummy ccache; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_CCACHE+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$CCACHE"; then
7889 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_CCACHE="ccache"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7908 CCACHE=$ac_cv_prog_CCACHE
7909 if test -n "$CCACHE"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7911 $as_echo "$CCACHE" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7923 #-----------------------------------------------------------------------------
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7925 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7927 # Check whether --with-kernel-gcc-version was given.
7928 if test "${with_kernel_gcc_version+set}" = set; then :
7929 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7930 else
7931 kernel_tool_version=""
7934 if test "$kernel_tool_version" != "" ; then
7935 msg_result=$kernel_tool_version
7936 else
7937 msg_result="default"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7940 $as_echo "$msg_result" >&6; }
7942 #-----------------------------------------------------------------------------
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7944 $as_echo_n "checking what optimization flags to use... " >&6; }
7946 # Check whether --with-optimization was given.
7947 if test "${with_optimization+set}" = set; then :
7948 withval=$with_optimization; optimization_level="$withval"
7949 else
7950 optimization_level="unknown"
7953 if test "$optimization_level" = "unknown"; then
7954 optimization="default"
7955 if test "$debug" != "none"; then
7956 optimization_level="-O0"
7957 else
7958 optimization_level="-O2"
7960 else
7961 optimization="$optimization_level"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7964 $as_echo "$optimization" >&6; }
7966 paranoia_default=yes
7967 #-----------------------------------------------------------------------------
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7969 $as_echo_n "checking which paranoia flags to use... " >&6; }
7971 # Check whether --with-paranoia was given.
7972 if test "${with_paranoia+set}" = set; then :
7973 withval=$with_paranoia; paranoia_flags="$withval"
7974 else
7975 paranoia_flags="$paranoia_default"
7978 if test "$paranoia_flags" = "no"; then
7979 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
7980 msg_result="none"
7981 else
7982 if test "$paranoia_flags" = "yes"; then
7983 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
7985 msg_result="$paranoia_flags"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7988 $as_echo "$msg_result" >&6; }
7989 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7991 #-----------------------------------------------------------------------------
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7993 $as_echo_n "checking what target variant to enable... " >&6; }
7994 # Check whether --enable-target_variant was given.
7995 if test "${enable_target_variant+set}" = set; then :
7996 enableval=$enable_target_variant; target_variant=$enableval
7997 else
7998 target_variant=""
8001 if test "$target_variant" = ""; then
8002 aros_target_variant=""
8003 aros_target_suffix=""
8004 enableval="none"
8005 else
8006 aros_target_variant="$target_variant"
8007 aros_target_suffix="-$target_variant"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8010 $as_echo "$enableval" >&6; }
8012 #-----------------------------------------------------------------------------
8013 # Target-specific defaults. You can override then on a per-target basis.
8015 # Bootloader name. Currently used by PC target.
8016 target_bootloader="none"
8017 PLATFORM_EXECSMP=
8018 ENABLE_EXECSMP=
8020 #-----------------------------------------------------------------------------
8021 # Additional options for some specific targets
8023 case "$aros_target_variant" in
8024 ios)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8026 $as_echo_n "checking XCode path... " >&6; }
8028 # Check whether --with-xcode was given.
8029 if test "${with_xcode+set}" = set; then :
8030 withval=$with_xcode; aros_xcode_path="$withval"
8031 else
8032 aros_xcode_path="/Developer"
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8036 $as_echo "$aros_xcode_path" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8039 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8041 # Check whether --with-sdk-version was given.
8042 if test "${with_sdk_version+set}" = set; then :
8043 withval=$with_sdk_version; aros_sdk_version="$withval"
8044 else
8045 aros_sdk_version="4.1"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8049 $as_echo "$aros_sdk_version" >&6; }
8053 "android")
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8055 $as_echo_n "checking Android SDK path... " >&6; }
8057 # Check whether --with-sdk was given.
8058 if test "${with_sdk+set}" = set; then :
8059 withval=$with_sdk; aros_android_sdk="$withval"
8060 else
8061 aros_android_sdk=$default_android_sdk
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8065 $as_echo "$aros_android_sdk" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8068 $as_echo_n "checking Android NDK path... " >&6; }
8070 # Check whether --with-ndk was given.
8071 if test "${with_ndk+set}" = set; then :
8072 withval=$with_ndk; aros_android_ndk="$withval"
8073 else
8074 aros_android_ndk="none"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8078 $as_echo "$aros_android_ndk" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8081 $as_echo_n "checking what Android SDK version to use... " >&6; }
8083 # Check whether --with-sdk-version was given.
8084 if test "${with_sdk_version+set}" = set; then :
8085 withval=$with_sdk_version; aros_sdk_version="$withval"
8086 else
8087 aros_sdk_version="12"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8091 $as_echo "$aros_sdk_version" >&6; }
8093 aros_android_level=android-$aros_sdk_version
8094 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8095 echo "Platform $aros_android_level is not installed in your SDK"
8096 echo "Use --with-sdk-version=<API level number> to select another platform version"
8097 echo "You can check what plaform versions are installed in your SDK"
8098 echo "by examining contents of $aros_android_sdk/platforms directory"
8099 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8102 export PATH="$aros_android_sdk/tools:$PATH"
8103 # Extract the first word of "$android_tool", so it can be a program name with args.
8104 set dummy $android_tool; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_path_android_tool+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 case $android_tool in
8111 [\\/]* | ?:[\\/]*)
8112 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8126 done
8127 done
8128 IFS=$as_save_IFS
8131 esac
8133 android_tool=$ac_cv_path_android_tool
8134 if test -n "$android_tool"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8136 $as_echo "$android_tool" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8143 req_avail=yes
8144 if test "$android_tool" = ""; then
8145 req_avail=no
8147 if test "$android_tool" = "no"; then
8148 req_avail=no
8150 if test "$req_avail" = "no"; then
8151 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8154 if test "$aros_android_ndk" != "none"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8156 $as_echo_n "checking what Android NDK version to use... " >&6; }
8158 # Check whether --with-ndk-version was given.
8159 if test "${with_ndk_version+set}" = set; then :
8160 withval=$with_ndk_version; aros_ndk_version="$withval"
8161 else
8162 aros_ndk_version="9"
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8166 $as_echo "$aros_ndk_version" >&6; }
8169 # Extract the first word of "ant", so it can be a program name with args.
8170 set dummy ant; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_ant+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 case $ant in
8177 [\\/]* | ?:[\\/]*)
8178 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8197 esac
8199 ant=$ac_cv_path_ant
8200 if test -n "$ant"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8202 $as_echo "$ant" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 if test "$ant" = ""; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8211 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8215 $as_echo_n "checking Build debug or release apk... " >&6; }
8217 # Check whether --with-apk-version was given.
8218 if test "${with_apk_version+set}" = set; then :
8219 withval=$with_apk_version; aros_android_antapk=$withval
8220 else
8221 aros_android_antapk=release
8224 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8225 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8228 $as_echo "$aros_android_antapk" >&6; }
8230 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8231 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8232 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8234 if test "$host_os" = "mingw32"; then
8235 android_tool="cmd //c $android_tool"
8238 need_dlopen="no"
8241 esac
8243 #-----------------------------------------------------------------------------
8244 # External toolchains
8245 kernel_tool_prefix="none"
8246 aros_tool_prefix="none"
8247 elf_tool_prefix="${target_cpu}-elf-"
8249 # Base target cpu ISA configuration switch.
8250 case "$target_cpu" in
8251 *aarch64*)
8253 *arm*)
8255 *m68k*)
8256 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8257 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8258 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8259 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8260 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8261 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8262 m68k_020_ext="ISA_MC68020_EXT :=020"
8263 m68k_030_ext="ISA_MC68030_EXT :=030"
8264 m68k_040_ext="ISA_MC68040_EXT :=040"
8265 m68k_060_ext="ISA_MC68060_EXT :=060"
8266 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8267 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8268 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8269 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8270 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8271 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8272 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8273 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8274 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8275 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8276 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8277 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8279 *x86_64* | *i?86*)
8280 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8281 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8283 *powerpc*)
8285 esac
8287 # This is the target configuration switch.
8288 case "$target_os" in
8289 linux*)
8290 aros_target_arch="linux"
8291 aros_target_family="unix"
8292 case "$target_cpu" in
8293 *m68k*)
8294 aros_target_cpu="m68k"
8295 aros_object_format="m68kelf"
8296 aros_flavour="emulcompat"
8297 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8298 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8299 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8300 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8301 gcc_target_cpu="mc68000"
8303 *i?86*)
8304 aros_target_cpu="i386"
8305 aros_object_format="elf_i386"
8306 aros_flavour="emulation"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8308 aros_isa_flags="$""(ISA_X86_FLAGS)"
8309 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8310 aros_kernel_ldflags="-Wl,-melf_i386"
8311 aros_nominal_depth=8
8312 gcc_target_cpu="i386"
8313 pci_hidd_target="hidd-pci-linux"
8314 android_tool_dir_prefix="x86"
8315 android_tool_prefix="i686-android-linux"
8316 android_ndk_arch="x86"
8318 *x86_64*)
8319 aros_target_cpu="x86_64"
8320 aros_object_format="elf_x86_64"
8321 aros_flavour="emulation"
8322 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8323 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8324 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8325 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8326 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8327 aros_nominal_depth=8
8328 pci_hidd_target="hidd-pci-linux"
8330 *powerpc*)
8331 aros_target_cpu="ppc"
8332 aros_object_format="elf32ppc"
8333 aros_flavour="emulation"
8334 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8335 aros_nominal_depth=8
8336 gcc_target_cpu="ppc"
8338 # TODO
8339 # Same as powerpc, but I need this for the nightly build to work again.
8340 # Actually, the nightly should be made working with powerpc target.
8341 # That just was too much work for the moment, another week or two.
8342 *ppc*)
8343 aros_target_cpu="ppc"
8344 aros_object_format="elf32ppc"
8345 aros_flavour="emulation"
8346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8347 aros_nominal_depth=8
8348 gcc_target_cpu="ppc"
8350 *aarch64*)
8351 aros_target_cpu="aarch64"
8352 target_cpu="aarch64"
8353 aros_object_format="aarch64elf_aros"
8354 aros_flavour="emulation"
8355 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8356 gcc_target_cpu="aarch64"
8357 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8358 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8359 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8360 aros_c_libs="$aros_c_libs -laeabi"
8361 gcc_default_float_abi="hard"
8362 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8364 *armhf*)
8365 aros_target_cpu="arm"
8366 target_cpu="arm"
8367 aros_object_format="armelf_aros"
8368 aros_flavour="emulation"
8369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8370 gcc_target_cpu="arm"
8371 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8372 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8373 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8374 aros_c_libs="$aros_c_libs -laeabi"
8375 gcc_default_float_abi="hard"
8376 android_tool_dir_prefix="arm-linux-androideabi"
8377 android_tool_prefix="arm-linux-androideabi"
8378 android_ndk_arch="arm"
8379 kernel_tool_prefix="arm-linux-gnueabihf-"
8381 *arm*)
8382 aros_target_cpu="arm"
8383 aros_object_format="armelf_aros"
8384 aros_flavour="emulation"
8385 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8386 gcc_target_cpu="arm"
8387 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8388 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8389 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8390 aros_c_libs="$aros_c_libs -laeabi"
8391 android_tool_dir_prefix="arm-linux-androideabi"
8392 android_tool_prefix="arm-linux-androideabi"
8393 android_ndk_arch="arm"
8394 kernel_tool_prefix="arm-linux-gnueabi-"
8397 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8399 esac
8400 case "$aros_target_variant" in
8401 android)
8403 if test "$android_ndk_arch" = ""; then
8404 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8407 aros_nominal_width=320
8408 aros_nominal_height=480
8409 if test "$aros_android_ndk" = "none"; then
8410 aros_kernel_cflags="-mandroid"
8411 aros_kernel_ldflags="-mandroid"
8412 CFLAGS="-mandroid"
8413 else
8414 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8415 kernel_tool_version=""
8416 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8417 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8418 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8419 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8420 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8422 need_x11=no
8423 # Disable implicit PIC mode
8424 aros_config_cflags="$aros_config_cflags -fno-pic"
8425 kernel_tool_prefix="$android_tool_prefix-"
8427 esac
8431 aros_target_arch="pc"
8432 aros_shared_default="no"
8433 target_bootloader="grub2"
8434 case "$target_cpu" in
8435 *i?86*)
8436 aros_target_cpu="i386"
8439 if test "$aros_object_format" = "" ; then
8440 aros_object_format="elf_i386"
8442 aros_flavour="standalone"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8444 aros_isa_flags="$""(ISA_X86_FLAGS)"
8445 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8446 aros_kernel_ldflags="-Wl,-melf_i386"
8447 aros_nominal_width=640
8448 aros_nominal_height=480
8449 gcc_target_cpu="i386"
8451 *x86_64*)
8452 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8453 aros_target_cpu="x86_64"
8454 aros_serial_debug=1
8455 if test "$aros_object_format" = "" ; then
8456 aros_object_format="elf_x86_64"
8458 aros_flavour="standalone"
8459 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8460 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8461 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8462 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8463 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8464 aros_kernel_ldflags=""
8465 aros_nominal_width=640
8466 aros_nominal_height=480
8467 case "$aros_target_variant" in
8468 smp)
8469 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8471 esac
8474 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8476 esac
8479 prep)
8480 aros_target_arch="prep"
8481 aros_shared_default="no"
8482 aros_target_cpu="ppc"
8483 aros_object_format="elf32ppc"
8484 aros_flavour="ppcnative"
8485 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8486 aros_kernel_ldflags=""
8487 aros_nominal_width=640
8488 aros_nominal_height=480
8489 gcc_target_cpu="ppc"
8492 freebsd*)
8493 aros_target_arch="freebsd"
8494 aros_target_family="unix"
8495 aros_target_cpu="i386"
8496 aros_flavour="emulation"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8498 gcc_target_cpu="i386"
8500 aros_target_strip_flags="-x"
8503 darwin*)
8504 aros_target_arch="darwin"
8505 aros_target_family="unix"
8506 aros_flavour="emulation"
8507 case "$target_cpu" in
8508 *i?86*)
8509 aros_ios_platform="iPhoneSimulator"
8510 aros_target_cpu="i386"
8511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8512 aros_isa_flags="$""(ISA_X86_FLAGS)"
8513 aros_kernel_ldflags=""
8514 aros_macosx_version="10.4"
8515 aros_nominal_depth=8
8516 gcc_target_cpu="i386"
8517 aros_object_format="elf_i386"
8518 aros_kernel_ar_flags="-cr"
8519 aros_target_strip_flags="-x"
8520 kernel_tool_flags="-m32"
8522 *x86_64*)
8523 aros_target_cpu="x86_64"
8524 aros_object_format="elf_x86_64"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8526 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8527 aros_macosx_version="10.6"
8528 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8529 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8530 aros_kernel_cflags="-m64"
8531 aros_kernel_ldflags="-m64"
8532 aros_nominal_depth=8
8533 aros_kernel_ar="ar"
8534 aros_kernel_ar_flags="-cr"
8535 aros_kernel_ld="ld"
8536 aros_kernel_as="as"
8537 aros_kernel_ranlib="ranlib"
8538 aros_kernel_nm="nm"
8539 aros_kernel_strip="strip"
8540 kernel_tool_prefix="i686-apple-darwin10-"
8542 *ppc*)
8543 aros_target_cpu="ppc"
8544 aros_object_format="elf32ppc"
8545 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8546 aros_kernel_ldflags=""
8547 aros_macosx_version="10.0"
8548 aros_nominal_depth=8
8549 gcc_target_cpu="ppc"
8550 aros_kernel_ar="ar"
8551 aros_kernel_ar_flags="-cr"
8552 aros_kernel_ld="ld -arch ppc"
8553 aros_kernel_as="as -arch ppc"
8554 aros_kernel_ranlib="ranlib -arch ppc"
8555 aros_kernel_nm="nm -arch ppc"
8556 aros_kernel_strip="strip -arch ppc"
8557 kernel_tool_prefix="powerpc-apple-darwin10-"
8559 *arm*)
8560 aros_ios_platform="iPhoneOS"
8561 aros_target_cpu="arm"
8562 aros_object_format="armelf_aros"
8563 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8564 aros_c_libs="$aros_c_libs -laeabi"
8565 aros_nominal_depth=8
8566 gcc_target_cpu="arm"
8567 aros_kernel_ar="ar"
8568 aros_kernel_ar_flags="-cr"
8569 aros_kernel_ld="ld -arch arm"
8570 aros_kernel_ranlib="ranlib -arch arm"
8571 kernel_tool_prefix="arm-apple-darwin10-"
8572 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8575 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8577 esac
8578 case "$aros_target_variant" in
8579 ios)
8580 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8581 aros_ios_version="3.0"
8582 aros_nominal_width=320
8583 aros_nominal_height=480
8584 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8585 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
8586 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8587 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8588 need_x11=no
8589 # This is here because it may depend on iOS or SDK version
8590 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8591 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8592 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8595 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8596 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8598 esac
8601 dragonfly*)
8602 aros_target_arch="dragonfly"
8603 aros_target_family="unix"
8604 aros_flavour="emulation"
8605 case "$target_cpu" in
8606 *i?86*)
8607 aros_target_cpu="i386"
8608 aros_object_format="elf_i386"
8609 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8610 aros_isa_flags="$""(ISA_X86_FLAGS)"
8612 *x86_64*)
8613 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8614 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8615 aros_target_cpu="x86_64"
8616 aros_object_format="elf_x86_64"
8617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8618 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8621 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8623 esac
8626 netbsd*)
8627 aros_target_arch="netbsd"
8628 aros_target_family="unix"
8629 case "$target_cpu" in
8630 *m68k*)
8631 aros_target_cpu="m68k"
8632 aros_object_format="m68kelf"
8633 aros_flavour="emulcompat"
8634 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8635 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8636 gcc_target_cpu="mc68000"
8638 *i?86*)
8639 aros_target_cpu="i386"
8640 aros_object_format="elf_i386"
8641 aros_flavour="emulation"
8642 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8643 aros_isa_flags="$""(ISA_X86_FLAGS)"
8644 aros_nominal_depth=8
8645 gcc_target_cpu="i386"
8648 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8650 esac
8651 aros_target_genmap="-Wl,-M -Xlinker >"
8652 aros_flavour="emulation"
8653 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8656 openbsd*)
8657 aros_target_arch="openbsd"
8658 aros_target_family="unix"
8659 case "$target_cpu" in
8660 *i?86*)
8661 aros_target_cpu="i386"
8662 aros_object_format="elf_i386"
8663 aros_flavour="emulation"
8664 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8665 aros_isa_flags="$""(ISA_X86_FLAGS)"
8666 gcc_target_cpu="i386"
8669 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8671 esac
8672 aros_target_genmap="-Wl,-M -Xlinker >"
8673 aros_target_nm_flags="-u"
8674 aros_flavour="emulation"
8677 solaris*)
8678 aros_target_arch="solaris"
8679 aros_target_family="unix"
8680 case "$target_cpu" in
8681 *i?86*)
8682 aros_target_cpu="i386"
8683 aros_object_format="elf_i386"
8684 aros_flavour="emulation"
8685 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8686 aros_isa_flags="$""(ISA_X86_FLAGS)"
8687 aros_nominal_depth=8
8688 gcc_target_cpu="i386"
8690 *sparc*)
8691 aros_target_cpu="sparc"
8692 aros_object_format="elf_sparc"
8693 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8694 gcc_target_cpu="sparc"
8697 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8699 esac
8700 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8701 aros_flavour="emulation"
8704 morphos*)
8705 aros_target_arch="morphos"
8706 aros_shared_default="no"
8707 aros_target_cpu="ppc"
8708 aros_object_format="elf_ppc"
8709 aros_flavour="nativecompat"
8710 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8711 gcc_target_cpu="ppc"
8714 sam440)
8715 aros_target_arch="sam440"
8716 aros_shared_default="no"
8717 aros_target_cpu="ppc"
8718 aros_object_format="elf32ppc"
8719 aros_flavour="ppcnative"
8720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8721 aros_kernel_ldflags=""
8722 aros_nominal_width=1024
8723 aros_nominal_height=768
8724 aros_nominal_depth=24
8725 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8726 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8727 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8728 gcc_target_cpu="powerpc"
8731 efika)
8732 aros_target_arch="efika"
8733 aros_shared_default="no"
8734 aros_target_cpu="arm"
8735 aros_object_format="armelf_aros"
8736 aros_flavour="standalone"
8737 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8738 aros_kernel_ldflags=""
8739 aros_nominal_width=1024
8740 aros_nominal_height=600
8741 aros_c_libs="$aros_c_libs -laeabi"
8742 gcc_default_cpu="armv7-a"
8743 gcc_default_fpu="vfpv3"
8744 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8745 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8746 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8747 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8748 if test "$optimization" = "default"; then
8749 optimization_level="-Os"
8751 case "$target_cpu" in
8752 *armhf*)
8753 gcc_default_float_abi="hard"
8754 target_cpu=arm
8755 aros_target_cpu=arm
8757 *arm*)
8758 gcc_default_float_abi="softfp"
8761 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8763 esac
8766 chrp)
8767 aros_target_arch="chrp"
8768 aros_shared_default="no"
8769 aros_target_cpu="ppc"
8770 aros_object_format="elf32ppc"
8771 aros_flavour="ppcnative"
8772 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8773 aros_kernel_ldflags=""
8774 aros_nominal_width=640
8775 aros_nominal_height=480
8776 aros_isa_flags="$aros_isa_flags -mno-toc"
8777 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8778 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8779 gcc_target_cpu="powerpc"
8780 case "$aros_target_variant" in
8781 efika)
8782 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8783 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8785 esac
8788 r*pi)
8789 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8790 aros_flavour="standalone"
8791 aros_target_arch="raspi"
8793 aros_shared_default="no"
8795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8797 case "$target_cpu" in
8798 *aarch64*)
8799 aros_target_cpu="aarch64"
8800 gcc_default_cpu="aarch64"
8801 aros_object_format="aarch64elf_aros"
8803 *armhf*)
8804 aros_target_cpu="arm"
8805 gcc_default_cpu="armv6zk"
8806 gcc_default_cpu_tune="arm1176jzf-s"
8807 aros_object_format="armelf_aros"
8808 aros_isa_flags="$aros_isa_flags -marm"
8809 aros_config_cflags="$aros_config_cflags"
8810 aros_config_cxxflags="$aros_config_cxxflags"
8811 aros_config_aflags="$aros_config_aflags -marm"
8812 aros_kernel_cflags="$aros_kernel_cflags -marm"
8813 aros_target_mkdep="$aros_target_mkdep -Darm"
8814 aros_c_libs="$aros_c_libs -laeabi"
8816 *armeb*)
8817 aros_flavour="standcompat"
8818 aros_target_cpu="armeb"
8819 gcc_default_float_abi="hard"
8820 gcc_default_cpu="armv7ve"
8821 gcc_default_cpu_tune="cortex-a7"
8822 aros_object_format="armelfb_aros"
8823 aros_isa_flags="$aros_isa_flags -marm"
8824 aros_config_cflags="$aros_config_cflags"
8825 aros_config_cxxflags="$aros_config_cxxflags"
8826 aros_config_aflags="$aros_config_aflags -marm"
8827 aros_kernel_cflags="$aros_kernel_cflags -marm"
8828 aros_target_mkdep="$aros_target_mkdep -Darm"
8829 aros_c_libs="$aros_c_libs -laeabi"
8831 *arm*)
8832 aros_target_cpu="arm"
8833 gcc_default_cpu="armv6zk"
8834 gcc_default_cpu_tune="arm1176jzf-s"
8835 aros_object_format="armelf_aros"
8836 aros_isa_flags="$aros_isa_flags -marm"
8837 aros_config_cflags="$aros_config_cflags"
8838 aros_config_cxxflags="$aros_config_cxxflags"
8839 aros_config_aflags="$aros_config_aflags -marm"
8840 aros_kernel_cflags="$aros_kernel_cflags -marm"
8841 aros_target_mkdep="$aros_target_mkdep -Darm"
8842 aros_c_libs="$aros_c_libs -laeabi"
8845 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8847 esac
8849 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8850 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8851 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8852 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8854 case "$aros_target_variant" in
8855 smp)
8856 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8858 esac
8861 stm32f7_discovery)
8862 aros_flavour="standalone"
8863 aros_target_arch="stm32f7_discovery"
8864 aros_target_cpu="arm"
8865 aros_target_cpu_mode="thumb2"
8866 aros_object_format="armelf_aros"
8867 aros_shared_default="no"
8869 gcc_default_cpu="armv7e-m"
8870 gcc_default_cpu_tune="cortex-m7"
8871 gcc_default_fpu="fpv5-sp-d16"
8872 gcc_default_float_abi="hard"
8874 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8877 amiga*)
8878 aros_elf_translate="$""(ELF2HUNK)"
8879 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
8880 aros_target_arch="amiga"
8881 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8882 aros_shared_default="no"
8884 case "$target_cpu" in
8885 *m68k*)
8886 # Check whether --enable-amigaos_compliance was given.
8887 if test "${enable_amigaos_compliance+set}" = set; then :
8888 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8891 aros_enable_mmu=no
8892 aros_target_cpu="m68k"
8893 aros_object_format="m68kelf"
8894 aros_flavour="standcompat"
8895 gcc_target_cpu="m68000"
8896 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8897 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8898 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8899 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8900 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8901 if test "$optimization" = "default"; then
8902 optimization_level="-Os"
8904 aros_config_aflags="$aros_config_aflags"
8905 aros_target_strip_flags="-R.comment --strip-debug"
8906 aros_nominal_width=640
8907 aros_nominal_height=256
8908 aros_nominal_depth=2
8910 *ppc*)
8911 aros_cpu="ppc"
8912 aros_flavour="native"
8913 gcc_target_cpu="ppc"
8916 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8918 esac
8921 mingw*)
8922 aros_target_arch="mingw32"
8923 aros_shared_default="no"
8924 aros_flavour="emulation"
8925 aros_shared_cflags=""
8926 need_crosstools="yes"
8927 need_dlopen="no"
8928 rescomp="windres"
8929 case "$target_cpu" in
8930 *i?86*)
8931 aros_target_cpu="i386"
8932 aros_object_format="elf_i386"
8933 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8934 aros_isa_flags="$""(ISA_X86_FLAGS)"
8935 aros_nominal_depth=8
8936 gcc_target_cpu="i386"
8938 kernel_tool_prefix="i386-mingw32-"
8940 *x86_64*)
8941 aros_target_cpu="x86_64"
8942 aros_object_format="elf_x86_64"
8943 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8944 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8945 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8946 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8947 aros_nominal_depth=8
8948 kernel_tool_prefix="x86_64-w64-mingw32-"
8950 *arm*)
8951 aros_target_cpu="arm"
8952 aros_object_format="armelf_aros"
8953 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8954 aros_c_libs="$aros_c_libs -laeabi"
8955 aros_nominal_depth=8
8956 gcc_target_cpu="arm"
8957 gcc_default_float_abi="soft"
8958 kernel_tool_prefix="arm-mingw32ce-"
8959 aros_nominal_width=160
8960 aros_nominal_height=160
8963 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8965 esac
8966 if test $host_os = "cygwin"; then
8967 aros_kernel_cflags="-mno-cygwin"
8970 pp*)
8971 aros_target_arch="pp"
8972 aros_shared_default="no"
8973 case "$target_cpu" in
8974 *m68k*)
8975 aros_target_cpu="m68k"
8976 aros_object_format="m68kelf"
8977 aros_flavour="palmnative"
8978 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8979 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8980 aros_nominal_width=160
8981 aros_nominal_height=160
8982 aros_nominal_depth=1
8983 aros_target_ar_flags="cru"
8984 aros_c_libs="$aros_c_libs -lgcc1"
8985 aros_shared_default=no
8986 aros_shared_cflags="-fpic"
8987 aros_shared_aflags=""
8988 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8989 aros_kernel_ldflags="-Wl,-rpath,./lib"
8990 aros_debug_cppflags="$aros_messages_debug"
8991 aros_debug_cflags="$aros_symbols_debug"
8992 aros_debug_aflags=""
8993 aros_debug_ldflags="$aros_symbols_debug"
8994 aros_mungwall_debug="0"
8995 aros_modules_debug="0"
8996 gcc_target_cpu="mc68000"
8997 ignore_undefined_symbols="-ius"
9000 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9002 esac
9005 mac*)
9006 aros_target_arch="mac"
9007 aros_shared_default="no"
9008 case "$target_cpu" in
9009 *m68k*)
9010 aros_target_cpu="m68k"
9011 aros_object_format="m68kelf"
9012 aros_flavour="mac68knative"
9013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9014 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9015 aros_nominal_width=512
9016 aros_nominal_height=384
9017 aros_nominal_depth=8
9018 aros_target_ar_flags="cru"
9019 aros_c_libs="$aros_c_libs -lgcc1"
9020 aros_shared_default=no
9021 aros_shared_cflags="-fpic"
9022 aros_shared_aflags=""
9023 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9024 aros_kernel_ldflags="-Wl,-rpath,./lib"
9025 aros_debug_cppflags="$aros_messages_debug"
9026 aros_debug_cflags="$aros_symbols_debug"
9027 aros_debug_aflags=""
9028 aros_debug_ldflags="$aros_symbols_debug"
9029 aros_mungwall_debug="0"
9030 aros_modules_debug="0"
9031 gcc_target_cpu="mc68000"
9032 ignore_undefined_symbols="-ius"
9035 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9037 esac
9041 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9043 esac
9045 #-----------------------------------------------------------------------------
9046 crosstools_guess="yes"
9047 aros_target_toolchain="no"
9048 aros_kernel_sysroot=""
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9051 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9053 # Check whether --with-kernel-toolchain-prefix was given.
9054 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9055 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9059 $as_echo "$kernel_tool_prefix" >&6; }
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9062 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9064 # Check whether --with-elf-toolchain-prefix was given.
9065 if test "${with_elf_toolchain_prefix+set}" = set; then :
9066 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9067 crosstools_guess="no"
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9071 $as_echo "$elf_tool_prefix" >&6; }
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9074 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9076 # Check whether --with-aros-toolchain was given.
9077 if test "${with_aros_toolchain+set}" = set; then :
9078 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9079 crosstools_guess="no"
9082 if test "$aros_tool_prefix" = "yes" ; then
9083 aros_tool_prefix=$aros_target_cpu-aros-
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9086 $as_echo "$aros_tool_prefix" >&6; }
9088 #-----------------------------------------------------------------------------
9089 # Checking if we should build crosstools..
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9091 $as_echo_n "checking whether to build crosstools... " >&6; }
9092 # Check whether --enable-crosstools was given.
9093 if test "${enable_crosstools+set}" = set; then :
9094 enableval=$enable_crosstools; crosstools="$enableval"
9095 else
9096 crosstools="$crosstools_guess"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9100 $as_echo "$crosstools" >&6; }
9102 if test "${crosstools}" = "yes"; then
9103 if test "${crosstools_guess}" = "no"; then
9104 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9108 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9109 aros_target_toolchain="yes"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9113 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9115 # Check whether --with-aros-toolchain-install was given.
9116 if test "${with_aros_toolchain_install+set}" = set; then :
9117 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9120 if test "x$aros_toolchain_install" = "x"; then
9121 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9122 else
9123 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9124 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9125 if test "$crosstools_guess" = "no" ; then
9126 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9127 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9132 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9134 #-----------------------------------------------------------------------------
9135 if test "$aros_toolchain" = "gnu" ; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9137 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9140 # Check whether --with-binutils-version was given.
9141 if test "${with_binutils_version+set}" = set; then :
9142 withval=$with_binutils_version; use_binutils_version="$withval"
9143 else
9144 use_binutils_version=""
9147 if test "$use_binutils_version" = ""; then
9148 target_binutils_version="$default_binutils_version"
9149 else
9150 target_binutils_version="$use_binutils_version"
9152 if test "$aros_toolchain" = "gnu" ; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9154 $as_echo "$target_binutils_version" >&6; }
9158 # Helper to identify gcc version
9161 #-----------------------------------------------------------------------------
9162 if test "$aros_toolchain" = "gnu" ; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9164 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9167 # Check whether --with-gcc-version was given.
9168 if test "${with_gcc_version+set}" = set; then :
9169 withval=$with_gcc_version; use_gcc_version="$withval"
9170 else
9171 use_gcc_version=""
9174 if test "$use_gcc_version" = ""; then
9175 if test "${crosstools}" = "no"; then
9176 if test "x$aros_toolchain_install" != "x"; then
9178 target_gcc_version=""
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9180 $as_echo_n "checking gcc version... " >&6; }
9181 if ${ax_cv_gcc_version+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9185 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9186 if test "x$ax_cv_gcc_version" = "x"; then :
9188 ax_cv_gcc_version=""
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9194 $as_echo "$ax_cv_gcc_version" >&6; }
9195 target_gcc_version=$ax_cv_gcc_version
9200 if test "$use_gcc_version" = ""; then
9201 target_gcc_version="$default_gcc_version"
9203 else
9204 target_gcc_version="$use_gcc_version"
9206 if test "$aros_toolchain" = "gnu" ; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9208 $as_echo "$target_gcc_version" >&6; }
9210 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9211 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9212 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9214 gcc_fix_bitfields="false"
9215 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9216 gcc_fix_bitfields="true"
9217 else
9218 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9219 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9220 gcc_fix_bitfields="true"
9225 if test "$gcc_fix_bitfields" = "true" ; then
9226 case "$aros_target_cpu" in
9227 *x86_64* | *i?86*)
9228 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9229 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9231 esac
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9236 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9237 # Check whether --enable-objc was given.
9238 if test "${enable_objc+set}" = set; then :
9239 enableval=$enable_objc; objc="$enableval"
9240 else
9241 objc="no"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9245 $as_echo "$objc" >&6; }
9246 if test "x$objc" = "xyes"; then
9247 objc_target="$objc"
9248 else
9249 objc_target="no-objc"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9253 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9254 # Check whether --enable-java was given.
9255 if test "${enable_java+set}" = set; then :
9256 enableval=$enable_java; java="$enableval"
9257 else
9258 java="no"
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9262 $as_echo "$java" >&6; }
9263 if test "x$java" != "xno"; then
9264 java_target="$java"
9265 else
9266 java_target="no-java"
9269 spec_obj_format="-m $aros_object_format"
9270 # Now process extra architecture-specific options.
9271 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9272 # as well as floating-point ABI.
9273 case "$aros_target_cpu" in
9274 *m68k*)
9275 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9276 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9277 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9278 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9279 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9280 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9281 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9283 *x86_64*)
9284 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9285 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9287 arm*)
9288 if test "$gcc_default_cpu" = ""; then
9289 gcc_default_cpu="armv6"
9291 if test "$gcc_default_fpu" = ""; then
9292 gcc_default_fpu="vfp"
9294 if test "$gcc_default_endian" = ""; then
9295 if test "$target_cpu" = "armeb"; then
9296 gcc_default_endian="big-endian"
9297 else
9298 gcc_default_endian="little-endian"
9301 if test "$gcc_default_float_abi" = ""; then
9302 if test "$target_cpu" = "armhf"; then
9303 gcc_default_float_abi="hard"
9304 else
9305 gcc_default_float_abi="softfp"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9310 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9312 # Check whether --with-cpu was given.
9313 if test "${with_cpu+set}" = set; then :
9314 withval=$with_cpu; aros_gcc_cpu="$withval"
9315 else
9316 aros_gcc_cpu=$gcc_default_cpu
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9320 $as_echo "$aros_gcc_cpu" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9323 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9325 # Check whether --with-fpu was given.
9326 if test "${with_fpu+set}" = set; then :
9327 withval=$with_fpu; aros_gcc_fpu="$withval"
9328 else
9329 aros_gcc_fpu=$gcc_default_fpu
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9333 $as_echo "$aros_gcc_fpu" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9336 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9338 # Check whether --with-float was given.
9339 if test "${with_float+set}" = set; then :
9340 withval=$with_float; aros_gcc_float_abi="$withval"
9341 else
9342 aros_gcc_float_abi=$gcc_default_float_abi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9346 $as_echo "$aros_gcc_float_abi" >&6; }
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9349 $as_echo_n "checking Which ARM mode to use... " >&6; }
9350 if test "$aros_target_cpu_mode" = ""; then
9351 aros_target_cpu_mode="arm32"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9353 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9354 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9356 $as_echo "$aros_target_cpu_mode" >&6; }
9359 case "$aros_target_cpu_mode" in
9360 arm32)
9361 gcc_default_mode="arm"
9362 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9364 arm64)
9365 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9367 thumb)
9368 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9370 thumb1)
9371 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9373 thumb2)
9374 gcc_default_mode="thumb"
9375 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9376 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9379 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9381 esac
9383 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9384 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9385 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9387 i386)
9388 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9389 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9391 esac
9393 # Some architectures may need custom ELF specs.
9394 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9395 elf_specs_in=config/${aros_object_format}-specs.in
9396 else
9397 elf_specs_in=config/elf-specs.in
9400 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9401 # Since we override specs, we may need to put these defines there
9402 if test "$gcc_target_cpu" != ""; then
9403 gcc_target_cpu="-D__${gcc_target_cpu}__"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9407 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9409 # Check whether --with-portssources was given.
9410 if test "${with_portssources+set}" = set; then :
9411 withval=$with_portssources; with_portssrcdir=$withval
9412 else
9413 with_portssrcdir="default"
9416 if test "$with_portssrcdir" = "default"; then
9417 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9418 else
9419 AROS_PORTSSRCDIR="$with_portssrcdir"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9422 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9425 $as_echo_n "checking which bootloader to use... " >&6; }
9427 # Check whether --with-bootloader was given.
9428 if test "${with_bootloader+set}" = set; then :
9429 withval=$with_bootloader; target_bootloader=$withval
9430 else
9431 target_bootloader=$target_bootloader
9434 if test "$target_bootloader" = "none"; then
9435 aros_target_bootloader=""
9436 else
9437 aros_target_bootloader="$target_bootloader"
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9440 $as_echo "$target_bootloader" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9443 $as_echo_n "checking which icon-set to use... " >&6; }
9445 # Check whether --with-iconset was given.
9446 if test "${with_iconset+set}" = set; then :
9447 withval=$with_iconset; target_iconset=$withval
9448 else
9449 target_iconset="default"
9452 if test "$target_iconset" = "default"; then
9453 aros_target_iconset="Gorilla"
9454 target_iconset="default (Gorilla)"
9455 else
9456 aros_target_iconset="$target_iconset"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9459 $as_echo "$target_iconset" >&6; }
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9462 $as_echo_n "checking which GUI Theme to use... " >&6; }
9464 # Check whether --with-theme was given.
9465 if test "${with_theme+set}" = set; then :
9466 withval=$with_theme; target_guitheme=$withval
9467 else
9468 target_guitheme="default"
9471 if test "$target_guitheme" = "default"; then
9472 aros_target_guitheme="Ice"
9473 else
9474 aros_target_guitheme="$target_guitheme"
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9477 $as_echo "$aros_target_guitheme" >&6; }
9479 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9480 # for target code)
9481 cross_compiling=no
9483 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9484 cross_compiling=yes
9487 if test "$aros_host_cpu" == "x86_64" ; then
9488 if test "$aros_target_cpu" == "i386" ; then
9489 cross_compiling=no
9493 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9494 if test "$aros_host_arch" != "$aros_target_arch" ; then
9495 cross_compiling=yes
9497 else
9498 cross_compiling=yes
9501 if test "$cross_compiling" = "no" ; then
9502 kernel_tool_prefix=""
9503 if test "$host_cc_elf" = "yes" ; then
9504 elf_tool_prefix=""
9508 if test "$kernel_tool_version" != ""; then
9509 kernel_tool_version="-$kernel_tool_version"
9512 #######################################################################
9513 ## Compute what toolchains to use, and their paths ##
9514 #######################################################################
9516 # This takes, as input:
9517 # crosstools {yes,no}
9518 # kernel_tool_version {"",[version]}
9519 # target_tool_version {"",[version]}
9520 # kernel_tool_prefix {none,[some-arch-os-]}
9521 # gnu-toolchain -:
9522 # target_tool_prefix ${aros_target_cpu}-aros-
9523 # aros_tool_prefix ${aros_target_cpu}-aros-
9525 # The output is
9526 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9527 # Where the 'kernel' binaries are located
9528 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9529 # Where the 'target' binaries are located
9530 # (not the symlink farm - that is aros_target_*!)
9532 # The rules are:
9533 # if crosstools then
9534 # if kernel_tools_prefix = "no-kernel-prefix-"
9535 # aros_kernel_* = crosstools cc paths
9536 # aros_kernel_cc = elf cc wrapper around crosstools cc
9537 # else
9538 # VALIDATE(${kernel_tools_prefix}*)
9539 # aros_kernel_* = ${kernel_tools_prefix}*
9540 # if ${kernel_tools_prefix}cc is an AROS gcc
9541 # aros_kernel_cc = ${kernel_tools_prefix}cc
9542 # else
9543 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9544 # fi
9545 # fi
9547 # orig_target_* = aros built crosstools
9548 # orig_target_cc = elf cc wrapper around crosstools cc
9549 # else
9550 # VALIDATE(${kernel_tools_prefix}*)
9552 # orig_target_* = aros_kernel_*
9553 # if aros_kernel_cc is an AROS gcc
9554 # orig_target_cc = aros_kernel_cc
9555 # else
9556 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9557 # fi
9558 # fi
9560 if test "$aros_toolchain" = "gnu" ; then
9561 target_tool_prefix="${aros_target_cpu}-aros-"
9562 elif test "$aros_toolchain" = "llvm" ; then
9563 target_tool_prefix="bin/"
9566 if test "$kernel_tool_prefix" != "" ; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9568 $as_echo_n "checking which kernel tools... " >&6; }
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9570 $as_echo "$kernel_tool_prefix" >&6; };
9573 if test "$kernel_tool_prefix" = "none" ; then
9574 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9575 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9577 else
9578 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9579 # Kernel tools required - find them
9580 # Note that 'normally', aros_kernel_* overrides will be
9581 # empty, unless specified in the per-arch sections above.
9582 test_kernel_cc=yes
9583 if test "x$aros_kernel_cpp" = "x"; then
9584 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9586 if test "${kernel_tool_version}" != ""; then
9587 if test "$aros_kernel_cpp" != ""; then
9588 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9589 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9590 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9594 if test "$aros_kernel_cpp" = ""; then
9595 if test "$cross_compiling" = "yes" ; then
9596 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9597 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 case $aros_kernel_cpp in
9604 [\\/]* | ?:[\\/]*)
9605 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9619 done
9620 done
9621 IFS=$as_save_IFS
9624 esac
9626 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9627 if test -n "$aros_kernel_cpp"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9629 $as_echo "$aros_kernel_cpp" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9636 else
9637 if test "$GCC" = "yes"; then
9638 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9639 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9640 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 case $aros_kernel_cpp in
9647 [\\/]* | ?:[\\/]*)
9648 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in `dirname $aros_gcc_cpp`
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9667 esac
9669 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9670 if test -n "$aros_kernel_cpp"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9672 $as_echo "$aros_kernel_cpp" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9680 if test "$aros_kernel_cpp" = ""; then
9681 # Extract the first word of "cpp", so it can be a program name with args.
9682 set dummy cpp; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 case $aros_kernel_cpp in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9704 done
9705 done
9706 IFS=$as_save_IFS
9709 esac
9711 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9712 if test -n "$aros_kernel_cpp"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9714 $as_echo "$aros_kernel_cpp" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9723 else
9724 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9725 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9726 set dummy $aros_kernel_cpp; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 case $aros_kernel_cpp in
9733 [\\/]* | ?:[\\/]*)
9734 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9753 esac
9755 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9756 if test -n "$aros_kernel_cpp"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9758 $as_echo "$aros_kernel_cpp" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9765 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9768 req_avail=yes
9769 if test "$aros_kernel_cpp" = ""; then
9770 req_avail=no
9772 if test "$aros_kernel_cpp" = "no"; then
9773 req_avail=no
9775 if test "$req_avail" = "no"; then
9776 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9779 if test "x$aros_kernel_cc" = "x"; then
9780 aros_kernel_cc=${kernel_tool_prefix}${CC}
9782 if test "${kernel_tool_version}" != ""; then
9783 if test "$aros_kernel_cc" != ""; then
9784 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9785 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9786 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9790 if test "$aros_kernel_cc" = ""; then
9791 if test "$cross_compiling" = "yes" ; then
9792 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9793 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 case $aros_kernel_cc in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9823 if test -n "$aros_kernel_cc"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9825 $as_echo "$aros_kernel_cc" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9832 else
9833 if test "$GCC" = "yes"; then
9834 aros_gcc_cc=`$CC -print-prog-name=cc`
9835 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9836 set dummy `basename $aros_gcc_cc`; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 case $aros_kernel_cc in
9843 [\\/]* | ?:[\\/]*)
9844 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in `dirname $aros_gcc_cc`
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9863 esac
9865 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9866 if test -n "$aros_kernel_cc"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9868 $as_echo "$aros_kernel_cc" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9876 if test "$aros_kernel_cc" = ""; then
9877 # Extract the first word of "cc", so it can be a program name with args.
9878 set dummy cc; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $aros_kernel_cc in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9905 esac
9907 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9908 if test -n "$aros_kernel_cc"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9910 $as_echo "$aros_kernel_cc" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9919 else
9920 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9921 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9922 set dummy $aros_kernel_cc; ac_word=$2
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9924 $as_echo_n "checking for $ac_word... " >&6; }
9925 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 case $aros_kernel_cc in
9929 [\\/]* | ?:[\\/]*)
9930 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 break 2
9944 done
9945 done
9946 IFS=$as_save_IFS
9949 esac
9951 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9952 if test -n "$aros_kernel_cc"; then
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9954 $as_echo "$aros_kernel_cc" >&6; }
9955 else
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957 $as_echo "no" >&6; }
9961 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9964 req_avail=yes
9965 if test "$aros_kernel_cc" = ""; then
9966 req_avail=no
9968 if test "$aros_kernel_cc" = "no"; then
9969 req_avail=no
9971 if test "$req_avail" = "no"; then
9972 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9975 if test "x$aros_kernel_cxx" = "x"; then
9976 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9978 if test "${kernel_tool_version}" != ""; then
9979 if test "$aros_kernel_cxx" != ""; then
9980 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9981 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9982 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9986 if test "$aros_kernel_cxx" = ""; then
9987 if test "$cross_compiling" = "yes" ; then
9988 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9989 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 case $aros_kernel_cxx in
9996 [\\/]* | ?:[\\/]*)
9997 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10007 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10011 done
10012 done
10013 IFS=$as_save_IFS
10016 esac
10018 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10019 if test -n "$aros_kernel_cxx"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10021 $as_echo "$aros_kernel_cxx" >&6; }
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10028 else
10029 if test "$GCC" = "yes"; then
10030 aros_gcc_cxx=`$CC -print-prog-name=cxx`
10031 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10032 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 case $aros_kernel_cxx in
10039 [\\/]* | ?:[\\/]*)
10040 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in `dirname $aros_gcc_cxx`
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10054 done
10055 done
10056 IFS=$as_save_IFS
10059 esac
10061 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10062 if test -n "$aros_kernel_cxx"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10064 $as_echo "$aros_kernel_cxx" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10072 if test "$aros_kernel_cxx" = ""; then
10073 # Extract the first word of "cxx", so it can be a program name with args.
10074 set dummy cxx; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 case $aros_kernel_cxx in
10081 [\\/]* | ?:[\\/]*)
10082 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10101 esac
10103 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10104 if test -n "$aros_kernel_cxx"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10106 $as_echo "$aros_kernel_cxx" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10115 else
10116 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10117 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10118 set dummy $aros_kernel_cxx; ac_word=$2
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120 $as_echo_n "checking for $ac_word... " >&6; }
10121 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 case $aros_kernel_cxx in
10125 [\\/]* | ?:[\\/]*)
10126 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10140 done
10141 done
10142 IFS=$as_save_IFS
10145 esac
10147 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10148 if test -n "$aros_kernel_cxx"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10150 $as_echo "$aros_kernel_cxx" >&6; }
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10157 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10160 # If it's set, make sure it's really there
10161 if test "x$aros_kernel_cxx" != "x" ; then
10162 req_avail=yes
10163 if test "$aros_kernel_cxx" = ""; then
10164 req_avail=no
10166 if test "$aros_kernel_cxx" = "no"; then
10167 req_avail=no
10169 if test "$req_avail" = "no"; then
10170 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10174 if test "$aros_kernel_ld" = ""; then
10175 if test "$cross_compiling" = "yes" ; then
10176 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10177 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 $as_echo_n "checking for $ac_word... " >&6; }
10180 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 case $aros_kernel_ld in
10184 [\\/]* | ?:[\\/]*)
10185 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10195 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10199 done
10200 done
10201 IFS=$as_save_IFS
10204 esac
10206 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10207 if test -n "$aros_kernel_ld"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10209 $as_echo "$aros_kernel_ld" >&6; }
10210 else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10216 else
10217 if test "$GCC" = "yes"; then
10218 aros_gcc_ld=`$CC -print-prog-name=ld`
10219 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10220 set dummy `basename $aros_gcc_ld`; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 case $aros_kernel_ld in
10227 [\\/]* | ?:[\\/]*)
10228 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in `dirname $aros_gcc_ld`
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10238 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 break 2
10242 done
10243 done
10244 IFS=$as_save_IFS
10247 esac
10249 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10250 if test -n "$aros_kernel_ld"; then
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10252 $as_echo "$aros_kernel_ld" >&6; }
10253 else
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10260 if test "$aros_kernel_ld" = ""; then
10261 # Extract the first word of "ld", so it can be a program name with args.
10262 set dummy ld; ac_word=$2
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 $as_echo_n "checking for $ac_word... " >&6; }
10265 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 case $aros_kernel_ld in
10269 [\\/]* | ?:[\\/]*)
10270 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10284 done
10285 done
10286 IFS=$as_save_IFS
10289 esac
10291 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10292 if test -n "$aros_kernel_ld"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10294 $as_echo "$aros_kernel_ld" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10303 else
10304 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10305 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10306 set dummy $aros_kernel_ld; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_ld in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10336 if test -n "$aros_kernel_ld"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10338 $as_echo "$aros_kernel_ld" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10345 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10348 req_avail=yes
10349 if test "$aros_kernel_ld" = ""; then
10350 req_avail=no
10352 if test "$aros_kernel_ld" = "no"; then
10353 req_avail=no
10355 if test "$req_avail" = "no"; then
10356 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10359 if test "$aros_kernel_as" = ""; then
10360 if test "$cross_compiling" = "yes" ; then
10361 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10362 set dummy ${kernel_tool_prefix}as; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if ${ac_cv_path_aros_kernel_as+:} false; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 case $aros_kernel_as in
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10384 done
10385 done
10386 IFS=$as_save_IFS
10389 esac
10391 aros_kernel_as=$ac_cv_path_aros_kernel_as
10392 if test -n "$aros_kernel_as"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10394 $as_echo "$aros_kernel_as" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10401 else
10402 if test "$GCC" = "yes"; then
10403 aros_gcc_as=`$CC -print-prog-name=as`
10404 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10405 set dummy `basename $aros_gcc_as`; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_path_aros_kernel_as+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 case $aros_kernel_as in
10412 [\\/]* | ?:[\\/]*)
10413 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in `dirname $aros_gcc_as`
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 break 2
10427 done
10428 done
10429 IFS=$as_save_IFS
10432 esac
10434 aros_kernel_as=$ac_cv_path_aros_kernel_as
10435 if test -n "$aros_kernel_as"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10437 $as_echo "$aros_kernel_as" >&6; }
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10445 if test "$aros_kernel_as" = ""; then
10446 # Extract the first word of "as", so it can be a program name with args.
10447 set dummy as; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_aros_kernel_as+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 case $aros_kernel_as in
10454 [\\/]* | ?:[\\/]*)
10455 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10471 IFS=$as_save_IFS
10474 esac
10476 aros_kernel_as=$ac_cv_path_aros_kernel_as
10477 if test -n "$aros_kernel_as"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10479 $as_echo "$aros_kernel_as" >&6; }
10480 else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10488 else
10489 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10490 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10491 set dummy $aros_kernel_as; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_path_aros_kernel_as+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 case $aros_kernel_as in
10498 [\\/]* | ?:[\\/]*)
10499 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10513 done
10514 done
10515 IFS=$as_save_IFS
10518 esac
10520 aros_kernel_as=$ac_cv_path_aros_kernel_as
10521 if test -n "$aros_kernel_as"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10523 $as_echo "$aros_kernel_as" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10530 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10533 req_avail=yes
10534 if test "$aros_kernel_as" = ""; then
10535 req_avail=no
10537 if test "$aros_kernel_as" = "no"; then
10538 req_avail=no
10540 if test "$req_avail" = "no"; then
10541 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10544 if test "$aros_kernel_ar" = ""; then
10545 if test "$cross_compiling" = "yes" ; then
10546 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10547 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 case $aros_kernel_ar in
10554 [\\/]* | ?:[\\/]*)
10555 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10565 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10574 esac
10576 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10577 if test -n "$aros_kernel_ar"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10579 $as_echo "$aros_kernel_ar" >&6; }
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10586 else
10587 if test "$GCC" = "yes"; then
10588 aros_gcc_ar=`$CC -print-prog-name=ar`
10589 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10590 set dummy `basename $aros_gcc_ar`; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 case $aros_kernel_ar in
10597 [\\/]* | ?:[\\/]*)
10598 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in `dirname $aros_gcc_ar`
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10608 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10612 done
10613 done
10614 IFS=$as_save_IFS
10617 esac
10619 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10620 if test -n "$aros_kernel_ar"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10622 $as_echo "$aros_kernel_ar" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10630 if test "$aros_kernel_ar" = ""; then
10631 # Extract the first word of "ar", so it can be a program name with args.
10632 set dummy ar; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 case $aros_kernel_ar in
10639 [\\/]* | ?:[\\/]*)
10640 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10659 esac
10661 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10662 if test -n "$aros_kernel_ar"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10664 $as_echo "$aros_kernel_ar" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10673 else
10674 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10675 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10676 set dummy $aros_kernel_ar; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 case $aros_kernel_ar in
10683 [\\/]* | ?:[\\/]*)
10684 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10698 done
10699 done
10700 IFS=$as_save_IFS
10703 esac
10705 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10706 if test -n "$aros_kernel_ar"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10708 $as_echo "$aros_kernel_ar" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10715 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10718 req_avail=yes
10719 if test "$aros_kernel_ar" = ""; then
10720 req_avail=no
10722 if test "$aros_kernel_ar" = "no"; then
10723 req_avail=no
10725 if test "$req_avail" = "no"; then
10726 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10729 if test "$aros_kernel_ranlib" = ""; then
10730 if test "$cross_compiling" = "yes" ; then
10731 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10732 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 case $aros_kernel_ranlib in
10739 [\\/]* | ?:[\\/]*)
10740 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10754 done
10755 done
10756 IFS=$as_save_IFS
10759 esac
10761 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10762 if test -n "$aros_kernel_ranlib"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10764 $as_echo "$aros_kernel_ranlib" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10771 else
10772 if test "$GCC" = "yes"; then
10773 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10774 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10775 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 case $aros_kernel_ranlib in
10782 [\\/]* | ?:[\\/]*)
10783 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in `dirname $aros_gcc_ranlib`
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10802 esac
10804 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10805 if test -n "$aros_kernel_ranlib"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10807 $as_echo "$aros_kernel_ranlib" >&6; }
10808 else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10815 if test "$aros_kernel_ranlib" = ""; then
10816 # Extract the first word of "ranlib", so it can be a program name with args.
10817 set dummy ranlib; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 case $aros_kernel_ranlib in
10824 [\\/]* | ?:[\\/]*)
10825 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10839 done
10840 done
10841 IFS=$as_save_IFS
10844 esac
10846 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10847 if test -n "$aros_kernel_ranlib"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10849 $as_echo "$aros_kernel_ranlib" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10858 else
10859 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10860 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10861 set dummy $aros_kernel_ranlib; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 case $aros_kernel_ranlib in
10868 [\\/]* | ?:[\\/]*)
10869 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10883 done
10884 done
10885 IFS=$as_save_IFS
10888 esac
10890 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10891 if test -n "$aros_kernel_ranlib"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10893 $as_echo "$aros_kernel_ranlib" >&6; }
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10900 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10903 req_avail=yes
10904 if test "$aros_kernel_ranlib" = ""; then
10905 req_avail=no
10907 if test "$aros_kernel_ranlib" = "no"; then
10908 req_avail=no
10910 if test "$req_avail" = "no"; then
10911 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10914 if test "$aros_kernel_nm" = ""; then
10915 if test "$cross_compiling" = "yes" ; then
10916 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10917 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 case $aros_kernel_nm in
10924 [\\/]* | ?:[\\/]*)
10925 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10931 IFS=$as_save_IFS
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10935 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 break 2
10939 done
10940 done
10941 IFS=$as_save_IFS
10944 esac
10946 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10947 if test -n "$aros_kernel_nm"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10949 $as_echo "$aros_kernel_nm" >&6; }
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10956 else
10957 if test "$GCC" = "yes"; then
10958 aros_gcc_nm=`$CC -print-prog-name=nm`
10959 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10960 set dummy `basename $aros_gcc_nm`; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 case $aros_kernel_nm in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in `dirname $aros_gcc_nm`
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10987 esac
10989 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10990 if test -n "$aros_kernel_nm"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10992 $as_echo "$aros_kernel_nm" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
11000 if test "$aros_kernel_nm" = ""; then
11001 # Extract the first word of "nm", so it can be a program name with args.
11002 set dummy nm; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 case $aros_kernel_nm in
11009 [\\/]* | ?:[\\/]*)
11010 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11029 esac
11031 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11032 if test -n "$aros_kernel_nm"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11034 $as_echo "$aros_kernel_nm" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11043 else
11044 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11045 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11046 set dummy $aros_kernel_nm; ac_word=$2
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048 $as_echo_n "checking for $ac_word... " >&6; }
11049 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 case $aros_kernel_nm in
11053 [\\/]* | ?:[\\/]*)
11054 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11064 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 break 2
11068 done
11069 done
11070 IFS=$as_save_IFS
11073 esac
11075 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11076 if test -n "$aros_kernel_nm"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11078 $as_echo "$aros_kernel_nm" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11085 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11088 req_avail=yes
11089 if test "$aros_kernel_nm" = ""; then
11090 req_avail=no
11092 if test "$aros_kernel_nm" = "no"; then
11093 req_avail=no
11095 if test "$req_avail" = "no"; then
11096 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11099 if test "$aros_kernel_strip" = ""; then
11100 if test "$cross_compiling" = "yes" ; then
11101 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11102 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 case $aros_kernel_strip in
11109 [\\/]* | ?:[\\/]*)
11110 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11124 done
11125 done
11126 IFS=$as_save_IFS
11129 esac
11131 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11132 if test -n "$aros_kernel_strip"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11134 $as_echo "$aros_kernel_strip" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11141 else
11142 if test "$GCC" = "yes"; then
11143 aros_gcc_strip=`$CC -print-prog-name=strip`
11144 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11145 set dummy `basename $aros_gcc_strip`; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 case $aros_kernel_strip in
11152 [\\/]* | ?:[\\/]*)
11153 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in `dirname $aros_gcc_strip`
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11167 done
11168 done
11169 IFS=$as_save_IFS
11172 esac
11174 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11175 if test -n "$aros_kernel_strip"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11177 $as_echo "$aros_kernel_strip" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11185 if test "$aros_kernel_strip" = ""; then
11186 # Extract the first word of "strip", so it can be a program name with args.
11187 set dummy strip; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 case $aros_kernel_strip in
11194 [\\/]* | ?:[\\/]*)
11195 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11214 esac
11216 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11217 if test -n "$aros_kernel_strip"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11219 $as_echo "$aros_kernel_strip" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11228 else
11229 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11230 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11231 set dummy $aros_kernel_strip; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 case $aros_kernel_strip in
11238 [\\/]* | ?:[\\/]*)
11239 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11253 done
11254 done
11255 IFS=$as_save_IFS
11258 esac
11260 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11261 if test -n "$aros_kernel_strip"; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11263 $as_echo "$aros_kernel_strip" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11270 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11273 req_avail=yes
11274 if test "$aros_kernel_strip" = ""; then
11275 req_avail=no
11277 if test "$aros_kernel_strip" = "no"; then
11278 req_avail=no
11280 if test "$req_avail" = "no"; then
11281 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11284 # Objcopy and objdump are not required for the kernel
11285 # toolchain on many architectures.
11286 # So we'll look for them, but not make them strictly required.
11288 if test "$aros_kernel_objcopy" = ""; then
11289 if test "$cross_compiling" = "yes" ; then
11290 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11291 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 case $aros_kernel_objcopy in
11298 [\\/]* | ?:[\\/]*)
11299 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11313 done
11314 done
11315 IFS=$as_save_IFS
11318 esac
11320 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11321 if test -n "$aros_kernel_objcopy"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11323 $as_echo "$aros_kernel_objcopy" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11330 else
11331 if test "$GCC" = "yes"; then
11332 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11333 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11334 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 case $aros_kernel_objcopy in
11341 [\\/]* | ?:[\\/]*)
11342 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in `dirname $aros_gcc_objcopy`
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11361 esac
11363 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11364 if test -n "$aros_kernel_objcopy"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11366 $as_echo "$aros_kernel_objcopy" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11374 if test "$aros_kernel_objcopy" = ""; then
11375 # Extract the first word of "objcopy", so it can be a program name with args.
11376 set dummy objcopy; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $aros_kernel_objcopy in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11403 esac
11405 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11406 if test -n "$aros_kernel_objcopy"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11408 $as_echo "$aros_kernel_objcopy" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11417 else
11418 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11419 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11420 set dummy $aros_kernel_objcopy; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 case $aros_kernel_objcopy in
11427 [\\/]* | ?:[\\/]*)
11428 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11442 done
11443 done
11444 IFS=$as_save_IFS
11447 esac
11449 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11450 if test -n "$aros_kernel_objcopy"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11452 $as_echo "$aros_kernel_objcopy" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11459 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11463 if test "$aros_kernel_objdump" = ""; then
11464 if test "$cross_compiling" = "yes" ; then
11465 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11466 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 case $aros_kernel_objdump in
11473 [\\/]* | ?:[\\/]*)
11474 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11484 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11488 done
11489 done
11490 IFS=$as_save_IFS
11493 esac
11495 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11496 if test -n "$aros_kernel_objdump"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11498 $as_echo "$aros_kernel_objdump" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11505 else
11506 if test "$GCC" = "yes"; then
11507 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11508 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11509 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 case $aros_kernel_objdump in
11516 [\\/]* | ?:[\\/]*)
11517 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in `dirname $aros_gcc_objdump`
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11531 done
11532 done
11533 IFS=$as_save_IFS
11536 esac
11538 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11539 if test -n "$aros_kernel_objdump"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11541 $as_echo "$aros_kernel_objdump" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11549 if test "$aros_kernel_objdump" = ""; then
11550 # Extract the first word of "objdump", so it can be a program name with args.
11551 set dummy objdump; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 case $aros_kernel_objdump in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11569 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11573 done
11574 done
11575 IFS=$as_save_IFS
11578 esac
11580 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11581 if test -n "$aros_kernel_objdump"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11583 $as_echo "$aros_kernel_objdump" >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11592 else
11593 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11594 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11595 set dummy $aros_kernel_objdump; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $aros_kernel_objdump in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11622 esac
11624 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11625 if test -n "$aros_kernel_objdump"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11627 $as_echo "$aros_kernel_objdump" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11634 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11637 if test "x${crosstools}" != "xyes" ; then
11638 req_avail=yes
11639 if test "$aros_kernel_objcopy" = ""; then
11640 req_avail=no
11642 if test "$aros_kernel_objcopy" = "no"; then
11643 req_avail=no
11645 if test "$req_avail" = "no"; then
11646 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11648 req_avail=yes
11649 if test "$aros_kernel_objdump" = ""; then
11650 req_avail=no
11652 if test "$aros_kernel_objdump" = "no"; then
11653 req_avail=no
11655 if test "$req_avail" = "no"; then
11656 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11663 $as_echo_n "checking which target tools to use... " >&6; }
11664 if test "$aros_target_toolchain" = "yes"; then
11665 if test "$aros_toolchain" = "llvm" ; then
11666 msg_result="llvm"
11667 else
11668 msg_result=$target_tool_prefix
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11671 $as_echo "$msg_result" >&6; }
11672 # We are building AROS crosstools
11673 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11674 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11675 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11676 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11677 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11678 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11679 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11680 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11681 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11682 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11683 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11684 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11685 else
11686 # Determine whether AROS or ELF tools should be used
11687 if test "$aros_tool_prefix" = "none"; then
11688 aros_tool_prefix="${elf_tool_prefix}"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11692 $as_echo "$aros_tool_prefix" >&6; }
11693 # We are *not* building AROS crosstools - use the AROS or ELF tools
11695 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11696 if test "$cross_compiling" = "yes" ; then
11697 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11698 set dummy ${target_tool_prefix}cpp; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_orig_target_cpp+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 case $orig_target_cpp in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11725 esac
11727 orig_target_cpp=$ac_cv_path_orig_target_cpp
11728 if test -n "$orig_target_cpp"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11730 $as_echo "$orig_target_cpp" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11737 else
11738 if test "$GCC" = "yes"; then
11739 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11740 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11741 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if ${ac_cv_path_orig_target_cpp+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 case $orig_target_cpp in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in `dirname $aros_gcc_cpp`
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11763 done
11764 done
11765 IFS=$as_save_IFS
11768 esac
11770 orig_target_cpp=$ac_cv_path_orig_target_cpp
11771 if test -n "$orig_target_cpp"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11773 $as_echo "$orig_target_cpp" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11781 if test "$orig_target_cpp" = ""; then
11782 # Extract the first word of "cpp", so it can be a program name with args.
11783 set dummy cpp; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_path_orig_target_cpp+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 case $orig_target_cpp in
11790 [\\/]* | ?:[\\/]*)
11791 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11805 done
11806 done
11807 IFS=$as_save_IFS
11810 esac
11812 orig_target_cpp=$ac_cv_path_orig_target_cpp
11813 if test -n "$orig_target_cpp"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11815 $as_echo "$orig_target_cpp" >&6; }
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11824 else
11825 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11826 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11827 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_path_orig_target_cpp+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 case $orig_target_cpp in
11834 [\\/]* | ?:[\\/]*)
11835 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11849 done
11850 done
11851 IFS=$as_save_IFS
11854 esac
11856 orig_target_cpp=$ac_cv_path_orig_target_cpp
11857 if test -n "$orig_target_cpp"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11859 $as_echo "$orig_target_cpp" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11866 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11869 req_avail=yes
11870 if test "$orig_target_cpp" = ""; then
11871 req_avail=no
11873 if test "$orig_target_cpp" = "no"; then
11874 req_avail=no
11876 if test "$req_avail" = "no"; then
11877 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11880 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11881 if test "$cross_compiling" = "yes" ; then
11882 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11883 set dummy ${target_tool_prefix}gcc; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_orig_target_cc+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $orig_target_cc in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11910 esac
11912 orig_target_cc=$ac_cv_path_orig_target_cc
11913 if test -n "$orig_target_cc"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11915 $as_echo "$orig_target_cc" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11922 else
11923 if test "$GCC" = "yes"; then
11924 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11925 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11926 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if ${ac_cv_path_orig_target_cc+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 case $orig_target_cc in
11933 [\\/]* | ?:[\\/]*)
11934 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in `dirname $aros_gcc_gcc`
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11948 done
11949 done
11950 IFS=$as_save_IFS
11953 esac
11955 orig_target_cc=$ac_cv_path_orig_target_cc
11956 if test -n "$orig_target_cc"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11958 $as_echo "$orig_target_cc" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11966 if test "$orig_target_cc" = ""; then
11967 # Extract the first word of "gcc", so it can be a program name with args.
11968 set dummy gcc; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_path_orig_target_cc+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 case $orig_target_cc in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11986 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11990 done
11991 done
11992 IFS=$as_save_IFS
11995 esac
11997 orig_target_cc=$ac_cv_path_orig_target_cc
11998 if test -n "$orig_target_cc"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12000 $as_echo "$orig_target_cc" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12009 else
12010 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12011 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12012 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if ${ac_cv_path_orig_target_cc+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 case $orig_target_cc in
12019 [\\/]* | ?:[\\/]*)
12020 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12034 done
12035 done
12036 IFS=$as_save_IFS
12039 esac
12041 orig_target_cc=$ac_cv_path_orig_target_cc
12042 if test -n "$orig_target_cc"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12044 $as_echo "$orig_target_cc" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12051 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12054 req_avail=yes
12055 if test "$orig_target_cc" = ""; then
12056 req_avail=no
12058 if test "$orig_target_cc" = "no"; then
12059 req_avail=no
12061 if test "$req_avail" = "no"; then
12062 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12065 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12066 if test "$cross_compiling" = "yes" ; then
12067 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12068 set dummy ${target_tool_prefix}g++; ac_word=$2
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070 $as_echo_n "checking for $ac_word... " >&6; }
12071 if ${ac_cv_path_orig_target_cxx+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 case $orig_target_cxx in
12075 [\\/]* | ?:[\\/]*)
12076 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12090 done
12091 done
12092 IFS=$as_save_IFS
12095 esac
12097 orig_target_cxx=$ac_cv_path_orig_target_cxx
12098 if test -n "$orig_target_cxx"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12100 $as_echo "$orig_target_cxx" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12107 else
12108 if test "$GCC" = "yes"; then
12109 aros_gcc_g++=`$CC -print-prog-name=g++`
12110 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12111 set dummy `basename $aros_gcc_g++`; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_path_orig_target_cxx+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 case $orig_target_cxx in
12118 [\\/]* | ?:[\\/]*)
12119 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in `dirname $aros_gcc_g++`
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12133 done
12134 done
12135 IFS=$as_save_IFS
12138 esac
12140 orig_target_cxx=$ac_cv_path_orig_target_cxx
12141 if test -n "$orig_target_cxx"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12143 $as_echo "$orig_target_cxx" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12151 if test "$orig_target_cxx" = ""; then
12152 # Extract the first word of "g++", so it can be a program name with args.
12153 set dummy g++; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_path_orig_target_cxx+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 case $orig_target_cxx in
12160 [\\/]* | ?:[\\/]*)
12161 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12180 esac
12182 orig_target_cxx=$ac_cv_path_orig_target_cxx
12183 if test -n "$orig_target_cxx"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12185 $as_echo "$orig_target_cxx" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12194 else
12195 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12196 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12197 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_path_orig_target_cxx+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 case $orig_target_cxx in
12204 [\\/]* | ?:[\\/]*)
12205 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12219 done
12220 done
12221 IFS=$as_save_IFS
12224 esac
12226 orig_target_cxx=$ac_cv_path_orig_target_cxx
12227 if test -n "$orig_target_cxx"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12229 $as_echo "$orig_target_cxx" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12236 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12239 req_avail=yes
12240 if test "$orig_target_cxx" = ""; then
12241 req_avail=no
12243 if test "$orig_target_cxx" = "no"; then
12244 req_avail=no
12246 if test "$req_avail" = "no"; then
12247 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12250 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12251 if test "$cross_compiling" = "yes" ; then
12252 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12253 set dummy ${target_tool_prefix}gcc; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_path_orig_target_ld+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 case $orig_target_ld in
12260 [\\/]* | ?:[\\/]*)
12261 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12275 done
12276 done
12277 IFS=$as_save_IFS
12280 esac
12282 orig_target_ld=$ac_cv_path_orig_target_ld
12283 if test -n "$orig_target_ld"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12285 $as_echo "$orig_target_ld" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12292 else
12293 if test "$GCC" = "yes"; then
12294 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12295 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12296 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if ${ac_cv_path_orig_target_ld+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 case $orig_target_ld in
12303 [\\/]* | ?:[\\/]*)
12304 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in `dirname $aros_gcc_gcc`
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12314 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12318 done
12319 done
12320 IFS=$as_save_IFS
12323 esac
12325 orig_target_ld=$ac_cv_path_orig_target_ld
12326 if test -n "$orig_target_ld"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12328 $as_echo "$orig_target_ld" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12336 if test "$orig_target_ld" = ""; then
12337 # Extract the first word of "gcc", so it can be a program name with args.
12338 set dummy gcc; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_path_orig_target_ld+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 case $orig_target_ld in
12345 [\\/]* | ?:[\\/]*)
12346 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12356 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12365 esac
12367 orig_target_ld=$ac_cv_path_orig_target_ld
12368 if test -n "$orig_target_ld"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12370 $as_echo "$orig_target_ld" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12379 else
12380 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12381 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12382 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if ${ac_cv_path_orig_target_ld+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 case $orig_target_ld in
12389 [\\/]* | ?:[\\/]*)
12390 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12396 IFS=$as_save_IFS
12397 test -z "$as_dir" && as_dir=.
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 break 2
12404 done
12405 done
12406 IFS=$as_save_IFS
12409 esac
12411 orig_target_ld=$ac_cv_path_orig_target_ld
12412 if test -n "$orig_target_ld"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12414 $as_echo "$orig_target_ld" >&6; }
12415 else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12421 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12424 req_avail=yes
12425 if test "$orig_target_ld" = ""; then
12426 req_avail=no
12428 if test "$orig_target_ld" = "no"; then
12429 req_avail=no
12431 if test "$req_avail" = "no"; then
12432 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12435 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12436 if test "$cross_compiling" = "yes" ; then
12437 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12438 set dummy ${target_tool_prefix}as; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if ${ac_cv_path_orig_target_as+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 case $orig_target_as in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12460 done
12461 done
12462 IFS=$as_save_IFS
12465 esac
12467 orig_target_as=$ac_cv_path_orig_target_as
12468 if test -n "$orig_target_as"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12470 $as_echo "$orig_target_as" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12477 else
12478 if test "$GCC" = "yes"; then
12479 aros_gcc_as=`$CC -print-prog-name=as`
12480 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12481 set dummy `basename $aros_gcc_as`; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_orig_target_as+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 case $orig_target_as in
12488 [\\/]* | ?:[\\/]*)
12489 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in `dirname $aros_gcc_as`
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12503 done
12504 done
12505 IFS=$as_save_IFS
12508 esac
12510 orig_target_as=$ac_cv_path_orig_target_as
12511 if test -n "$orig_target_as"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12513 $as_echo "$orig_target_as" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12521 if test "$orig_target_as" = ""; then
12522 # Extract the first word of "as", so it can be a program name with args.
12523 set dummy as; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_path_orig_target_as+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 case $orig_target_as in
12530 [\\/]* | ?:[\\/]*)
12531 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12545 done
12546 done
12547 IFS=$as_save_IFS
12550 esac
12552 orig_target_as=$ac_cv_path_orig_target_as
12553 if test -n "$orig_target_as"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12555 $as_echo "$orig_target_as" >&6; }
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12564 else
12565 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12566 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12567 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_path_orig_target_as+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 case $orig_target_as in
12574 [\\/]* | ?:[\\/]*)
12575 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12581 IFS=$as_save_IFS
12582 test -z "$as_dir" && as_dir=.
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587 break 2
12589 done
12590 done
12591 IFS=$as_save_IFS
12594 esac
12596 orig_target_as=$ac_cv_path_orig_target_as
12597 if test -n "$orig_target_as"; then
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12599 $as_echo "$orig_target_as" >&6; }
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12606 orig_target_as="$orig_target_as $ac_tool_optarg"
12609 req_avail=yes
12610 if test "$orig_target_as" = ""; then
12611 req_avail=no
12613 if test "$orig_target_as" = "no"; then
12614 req_avail=no
12616 if test "$req_avail" = "no"; then
12617 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12620 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12621 if test "$cross_compiling" = "yes" ; then
12622 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12623 set dummy ${target_tool_prefix}ar; ac_word=$2
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if ${ac_cv_path_orig_target_ar+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 case $orig_target_ar in
12630 [\\/]* | ?:[\\/]*)
12631 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12645 done
12646 done
12647 IFS=$as_save_IFS
12650 esac
12652 orig_target_ar=$ac_cv_path_orig_target_ar
12653 if test -n "$orig_target_ar"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12655 $as_echo "$orig_target_ar" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12662 else
12663 if test "$GCC" = "yes"; then
12664 aros_gcc_ar=`$CC -print-prog-name=ar`
12665 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12666 set dummy `basename $aros_gcc_ar`; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if ${ac_cv_path_orig_target_ar+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 case $orig_target_ar in
12673 [\\/]* | ?:[\\/]*)
12674 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in `dirname $aros_gcc_ar`
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12684 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12688 done
12689 done
12690 IFS=$as_save_IFS
12693 esac
12695 orig_target_ar=$ac_cv_path_orig_target_ar
12696 if test -n "$orig_target_ar"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12698 $as_echo "$orig_target_ar" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12706 if test "$orig_target_ar" = ""; then
12707 # Extract the first word of "ar", so it can be a program name with args.
12708 set dummy ar; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if ${ac_cv_path_orig_target_ar+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 case $orig_target_ar in
12715 [\\/]* | ?:[\\/]*)
12716 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12726 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12730 done
12731 done
12732 IFS=$as_save_IFS
12735 esac
12737 orig_target_ar=$ac_cv_path_orig_target_ar
12738 if test -n "$orig_target_ar"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12740 $as_echo "$orig_target_ar" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12749 else
12750 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12751 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12752 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_orig_target_ar+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 case $orig_target_ar in
12759 [\\/]* | ?:[\\/]*)
12760 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12774 done
12775 done
12776 IFS=$as_save_IFS
12779 esac
12781 orig_target_ar=$ac_cv_path_orig_target_ar
12782 if test -n "$orig_target_ar"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12784 $as_echo "$orig_target_ar" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12791 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12794 req_avail=yes
12795 if test "$orig_target_ar" = ""; then
12796 req_avail=no
12798 if test "$orig_target_ar" = "no"; then
12799 req_avail=no
12801 if test "$req_avail" = "no"; then
12802 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12805 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12806 if test "$cross_compiling" = "yes" ; then
12807 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12808 set dummy ${target_tool_prefix}ar; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 case $orig_target_ranlib in
12815 [\\/]* | ?:[\\/]*)
12816 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12826 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12830 done
12831 done
12832 IFS=$as_save_IFS
12835 esac
12837 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12838 if test -n "$orig_target_ranlib"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12840 $as_echo "$orig_target_ranlib" >&6; }
12841 else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12847 else
12848 if test "$GCC" = "yes"; then
12849 aros_gcc_ar=`$CC -print-prog-name=ar`
12850 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12851 set dummy `basename $aros_gcc_ar`; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 case $orig_target_ranlib in
12858 [\\/]* | ?:[\\/]*)
12859 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in `dirname $aros_gcc_ar`
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12873 done
12874 done
12875 IFS=$as_save_IFS
12878 esac
12880 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12881 if test -n "$orig_target_ranlib"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12883 $as_echo "$orig_target_ranlib" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12891 if test "$orig_target_ranlib" = ""; then
12892 # Extract the first word of "ar", so it can be a program name with args.
12893 set dummy ar; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 case $orig_target_ranlib in
12900 [\\/]* | ?:[\\/]*)
12901 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12915 done
12916 done
12917 IFS=$as_save_IFS
12920 esac
12922 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12923 if test -n "$orig_target_ranlib"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12925 $as_echo "$orig_target_ranlib" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12934 else
12935 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12936 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12937 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 case $orig_target_ranlib in
12944 [\\/]* | ?:[\\/]*)
12945 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12964 esac
12966 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12967 if test -n "$orig_target_ranlib"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12969 $as_echo "$orig_target_ranlib" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12976 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12979 req_avail=yes
12980 if test "$orig_target_ranlib" = ""; then
12981 req_avail=no
12983 if test "$orig_target_ranlib" = "no"; then
12984 req_avail=no
12986 if test "$req_avail" = "no"; then
12987 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12990 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12991 if test "$cross_compiling" = "yes" ; then
12992 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12993 set dummy ${target_tool_prefix}nm; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if ${ac_cv_path_orig_target_nm+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 case $orig_target_nm in
13000 [\\/]* | ?:[\\/]*)
13001 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13015 done
13016 done
13017 IFS=$as_save_IFS
13020 esac
13022 orig_target_nm=$ac_cv_path_orig_target_nm
13023 if test -n "$orig_target_nm"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13025 $as_echo "$orig_target_nm" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13032 else
13033 if test "$GCC" = "yes"; then
13034 aros_gcc_nm=`$CC -print-prog-name=nm`
13035 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13036 set dummy `basename $aros_gcc_nm`; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_orig_target_nm+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 case $orig_target_nm in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in `dirname $aros_gcc_nm`
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13063 esac
13065 orig_target_nm=$ac_cv_path_orig_target_nm
13066 if test -n "$orig_target_nm"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13068 $as_echo "$orig_target_nm" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13076 if test "$orig_target_nm" = ""; then
13077 # Extract the first word of "nm", so it can be a program name with args.
13078 set dummy nm; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_orig_target_nm+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 case $orig_target_nm in
13085 [\\/]* | ?:[\\/]*)
13086 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13100 done
13101 done
13102 IFS=$as_save_IFS
13105 esac
13107 orig_target_nm=$ac_cv_path_orig_target_nm
13108 if test -n "$orig_target_nm"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13110 $as_echo "$orig_target_nm" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13119 else
13120 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13121 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13122 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_path_orig_target_nm+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 case $orig_target_nm in
13129 [\\/]* | ?:[\\/]*)
13130 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13144 done
13145 done
13146 IFS=$as_save_IFS
13149 esac
13151 orig_target_nm=$ac_cv_path_orig_target_nm
13152 if test -n "$orig_target_nm"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13154 $as_echo "$orig_target_nm" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13161 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13164 req_avail=yes
13165 if test "$orig_target_nm" = ""; then
13166 req_avail=no
13168 if test "$orig_target_nm" = "no"; then
13169 req_avail=no
13171 if test "$req_avail" = "no"; then
13172 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13175 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13176 if test "$cross_compiling" = "yes" ; then
13177 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13178 set dummy ${target_tool_prefix}strip; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_path_orig_target_strip+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 case $orig_target_strip in
13185 [\\/]* | ?:[\\/]*)
13186 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13205 esac
13207 orig_target_strip=$ac_cv_path_orig_target_strip
13208 if test -n "$orig_target_strip"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13210 $as_echo "$orig_target_strip" >&6; }
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13217 else
13218 if test "$GCC" = "yes"; then
13219 aros_gcc_strip=`$CC -print-prog-name=strip`
13220 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13221 set dummy `basename $aros_gcc_strip`; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_path_orig_target_strip+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 case $orig_target_strip in
13228 [\\/]* | ?:[\\/]*)
13229 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in `dirname $aros_gcc_strip`
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13248 esac
13250 orig_target_strip=$ac_cv_path_orig_target_strip
13251 if test -n "$orig_target_strip"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13253 $as_echo "$orig_target_strip" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13261 if test "$orig_target_strip" = ""; then
13262 # Extract the first word of "strip", so it can be a program name with args.
13263 set dummy strip; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_path_orig_target_strip+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 case $orig_target_strip in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13290 esac
13292 orig_target_strip=$ac_cv_path_orig_target_strip
13293 if test -n "$orig_target_strip"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13295 $as_echo "$orig_target_strip" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13304 else
13305 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13306 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13307 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309 $as_echo_n "checking for $ac_word... " >&6; }
13310 if ${ac_cv_path_orig_target_strip+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 case $orig_target_strip in
13314 [\\/]* | ?:[\\/]*)
13315 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13329 done
13330 done
13331 IFS=$as_save_IFS
13334 esac
13336 orig_target_strip=$ac_cv_path_orig_target_strip
13337 if test -n "$orig_target_strip"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13339 $as_echo "$orig_target_strip" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13346 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13349 req_avail=yes
13350 if test "$orig_target_strip" = ""; then
13351 req_avail=no
13353 if test "$orig_target_strip" = "no"; then
13354 req_avail=no
13356 if test "$req_avail" = "no"; then
13357 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13360 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13361 if test "$cross_compiling" = "yes" ; then
13362 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13363 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 case $orig_target_objcopy in
13370 [\\/]* | ?:[\\/]*)
13371 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375 for as_dir in $PATH
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 for ac_exec_ext in '' $ac_executable_extensions; do
13380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13381 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 break 2
13385 done
13386 done
13387 IFS=$as_save_IFS
13390 esac
13392 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13393 if test -n "$orig_target_objcopy"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13395 $as_echo "$orig_target_objcopy" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 else
13403 if test "$GCC" = "yes"; then
13404 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13405 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13406 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 case $orig_target_objcopy in
13413 [\\/]* | ?:[\\/]*)
13414 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in `dirname $aros_gcc_objcopy`
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13428 done
13429 done
13430 IFS=$as_save_IFS
13433 esac
13435 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13436 if test -n "$orig_target_objcopy"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13438 $as_echo "$orig_target_objcopy" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13446 if test "$orig_target_objcopy" = ""; then
13447 # Extract the first word of "objcopy", so it can be a program name with args.
13448 set dummy objcopy; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 case $orig_target_objcopy in
13455 [\\/]* | ?:[\\/]*)
13456 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13462 IFS=$as_save_IFS
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 break 2
13470 done
13471 done
13472 IFS=$as_save_IFS
13475 esac
13477 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13478 if test -n "$orig_target_objcopy"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13480 $as_echo "$orig_target_objcopy" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13489 else
13490 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13491 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13492 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 case $orig_target_objcopy in
13499 [\\/]* | ?:[\\/]*)
13500 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13510 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13514 done
13515 done
13516 IFS=$as_save_IFS
13519 esac
13521 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13522 if test -n "$orig_target_objcopy"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13524 $as_echo "$orig_target_objcopy" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13531 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13534 req_avail=yes
13535 if test "$orig_target_objcopy" = ""; then
13536 req_avail=no
13538 if test "$orig_target_objcopy" = "no"; then
13539 req_avail=no
13541 if test "$req_avail" = "no"; then
13542 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13545 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13546 if test "$cross_compiling" = "yes" ; then
13547 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13548 set dummy ${target_tool_prefix}objdump; ac_word=$2
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550 $as_echo_n "checking for $ac_word... " >&6; }
13551 if ${ac_cv_path_orig_target_objdump+:} false; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554 case $orig_target_objdump in
13555 [\\/]* | ?:[\\/]*)
13556 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13570 done
13571 done
13572 IFS=$as_save_IFS
13575 esac
13577 orig_target_objdump=$ac_cv_path_orig_target_objdump
13578 if test -n "$orig_target_objdump"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13580 $as_echo "$orig_target_objdump" >&6; }
13581 else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13587 else
13588 if test "$GCC" = "yes"; then
13589 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13590 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13591 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_path_orig_target_objdump+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 case $orig_target_objdump in
13598 [\\/]* | ?:[\\/]*)
13599 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in `dirname $aros_gcc_objdump`
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13613 done
13614 done
13615 IFS=$as_save_IFS
13618 esac
13620 orig_target_objdump=$ac_cv_path_orig_target_objdump
13621 if test -n "$orig_target_objdump"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13623 $as_echo "$orig_target_objdump" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13631 if test "$orig_target_objdump" = ""; then
13632 # Extract the first word of "objdump", so it can be a program name with args.
13633 set dummy objdump; ac_word=$2
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13635 $as_echo_n "checking for $ac_word... " >&6; }
13636 if ${ac_cv_path_orig_target_objdump+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 case $orig_target_objdump in
13640 [\\/]* | ?:[\\/]*)
13641 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13655 done
13656 done
13657 IFS=$as_save_IFS
13660 esac
13662 orig_target_objdump=$ac_cv_path_orig_target_objdump
13663 if test -n "$orig_target_objdump"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13665 $as_echo "$orig_target_objdump" >&6; }
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13674 else
13675 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13676 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13677 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679 $as_echo_n "checking for $ac_word... " >&6; }
13680 if ${ac_cv_path_orig_target_objdump+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 case $orig_target_objdump in
13684 [\\/]* | ?:[\\/]*)
13685 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13699 done
13700 done
13701 IFS=$as_save_IFS
13704 esac
13706 orig_target_objdump=$ac_cv_path_orig_target_objdump
13707 if test -n "$orig_target_objdump"; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13709 $as_echo "$orig_target_objdump" >&6; }
13710 else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13716 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13719 req_avail=yes
13720 if test "$orig_target_objdump" = ""; then
13721 req_avail=no
13723 if test "$orig_target_objdump" = "no"; then
13724 req_avail=no
13726 if test "$req_avail" = "no"; then
13727 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13731 if test "$kernel_tool_prefix" = "none" ; then
13732 # No kernel tools specified
13733 # Assume target tools == kernel tools with ELF wrapper
13734 aros_kernel_cc=$orig_target_cc
13735 aros_kernel_cxx=$orig_target_cxx
13736 aros_kernel_cpp=$orig_target_cpp
13737 aros_kernel_ld=$orig_target_ld
13738 aros_kernel_as=$orig_target_as
13739 aros_kernel_ar=$orig_target_ar
13740 aros_kernel_ranlib=$orig_target_ranlib
13741 aros_kernel_nm=$orig_target_nm
13742 aros_kernel_strip=$orig_target_strip
13743 aros_kernel_objcopy=$orig_target_objcopy
13744 aros_kernel_objdump=$orig_target_objdump
13745 use_kernel_cc_wrapper=yes
13748 # At this point, all aros_kernel_* and aros_target_*
13749 # tools should be set up correctly
13751 CC="$aros_kernel_cc $kernel_tool_flags"
13752 CPP="$aros_kernel_cpp"
13754 #-----------------------------------------------------------------------------
13756 # Find all the tools we need to compile. This could be cross-compiling
13757 # though! If that is the case we use the GNU form of the target and
13758 # simply add this to the front of the binary name. This is rather simple,
13759 # but it should work under most circumstances.
13761 # The default tools are to use the same as the host, but only if the
13762 # host and target CPU are the same. With GCC this is normally enough.
13765 aros_cc_pre=""
13766 aros_shared_ld="$aros_host_ld"
13768 aros_target_mkdep="$aros_host_mkdep"
13770 # The default tools executables to be linked to.
13771 if test "$rescomp" != ""; then
13772 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13773 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 case $aros_kernel_rescomp in
13780 [\\/]* | ?:[\\/]*)
13781 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13795 done
13796 done
13797 IFS=$as_save_IFS
13800 esac
13802 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13803 if test -n "$aros_kernel_rescomp"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13805 $as_echo "$aros_kernel_rescomp" >&6; }
13806 else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13812 req_avail=yes
13813 if test "$aros_kernel_rescomp" = ""; then
13814 req_avail=no
13816 if test "$aros_kernel_rescomp" = "no"; then
13817 req_avail=no
13819 if test "$req_avail" = "no"; then
13820 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13824 # Set up the sources for the symlink farm
13825 if test "$crosstools" = "yes"; then
13826 crosstools_target=tools-crosstools
13829 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13830 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13832 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13833 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13834 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13835 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13836 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13837 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13838 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13840 # aros_cc_pre is a variable that is added to the front of the compiler name
13841 # in the generated aros-gcc shell script. We need this to enable the cache
13842 # to work across cleaned builds. Also, support DISTCC using the correct
13843 # environment variable.
13846 if test "x${DISTCC}" != "x" ; then
13847 if test "x${CCACHE}" != "x" ; then
13848 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13849 else
13850 aros_cc_pre="${DISTCC} "
13852 else
13853 if test "x${CCACHE}" != "x" ; then
13854 aros_cc_pre="${CCACHE} "
13858 aros_target_nostdinc_cflags=-nostdinc
13860 aros_target_nostartup_ldflags=-nostartfiles
13862 aros_target_nix_ldflags=-nix
13864 aros_target_detach_ldflags=-detach
13866 aros_target_nostdlib_ldflags=-nostdlib
13869 aros_target_cc_path=
13871 # Target tools
13873 if test "$aros_target_toolchain" != "yes"; then
13874 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13875 if test "$GCC" = "yes"; then
13876 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13878 else
13879 # We do not know which c compiler version we are going to build and what we need to know
13880 # here is different for different versions so this will be set later during the
13881 # build of crosstools.
13882 if test "$aros_toolchain" = "gnu" ; then
13883 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13884 elif test "$aros_toolchain" = "llvm" ; then
13885 prefix="$AROS_CROSSTOOLSDIR/bin/"
13887 aros_target_cc_path=@aros_target_cc_path@
13889 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13890 aros_target_cc="${prefix}${toolchain_c_compiler}"
13891 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13892 aros_target_as="${prefix}${toolchain_as}"
13893 if test "${use_ld_wrapper}" = "yes"; then
13894 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13895 else
13896 aros_target_ld="${prefix}${toolchain_ld}"
13898 aros_toolchain_ld="${prefix}${toolchain_ld}"
13900 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13901 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13902 aros_target_objdump="${prefix}${toolchain_objdump}"
13903 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13904 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13905 aros_target_strip="${prefix}${toolchain_strip}"
13906 aros_plain_nm="${prefix}${toolchain_nm}"
13907 aros_plain_ar="${prefix}${toolchain_ar}"
13909 # Check whether --enable-includes was given.
13910 if test "${enable_includes+set}" = set; then :
13911 enableval=$enable_includes; aros_target_incl=$enable_includes
13912 else
13913 aros_target_incl=no
13917 if test "x$aros_target_incl" = "xno"; then
13918 if test "x$test_kernel_cc" != "xno"; then
13919 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13920 else
13921 aros_target_incl=
13925 if test "x$aros_kernel_includes" = "x"; then
13926 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13927 if test "x$aros_target_incl" != "x"; then
13928 aros_kernel_includes="-isystem $aros_target_incl"
13933 if test "x$test_kernel_cc" != "xno"; then
13934 if test "$aros_kernel_includes" != "" ; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13936 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13937 if test "$aros_kernel_cc_includes" = "" ; then
13938 # Try to guess where the directory is.
13939 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13940 if test -d $aros_kernel_cc_includes; then
13941 # Check if there is also an include-fixed directory and add it
13942 # to kernel compiler's include path as it may contain some of
13943 # the headers we need.
13944 if test -d "$aros_kernel_cc_includes"-fixed; then
13945 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13947 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13948 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13949 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13951 else
13952 # The directory doesn't exist, we need to do some more work.
13953 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13955 # These are the headers we're looking for.
13956 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13957 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13958 zutil.h stdint.h"
13960 dirs=
13961 for h in $headers; do
13962 # Which other headers are needed by each of the above?
13963 deps=$(echo "#include <$h>" | \
13964 $aros_kernel_cc -E -M - 2>/dev/null | \
13965 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13967 # Copy all the needed headers to a directory beneath gendir.
13968 for d in $deps; do
13969 h=$(basename $d)
13970 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13971 sed -n "s,^.*/include\(/.*\),\1,p")
13972 ! test -d $dir && mkdir -p $dir
13973 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13974 done
13975 done
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13979 $as_echo "$aros_kernel_cc_includes" >&6; }
13980 # Adding -nostdinc to kernel includes as they are always used together.
13981 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13985 if test "$crosstools" != "yes"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13987 $as_echo_n "checking for the target compiler's include path... " >&6; }
13988 if test "$aros_target_cc_includes" = "" ; then
13989 #try to guess where the directory is
13990 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13991 if ! test -d $aros_target_cc_includes; then
13992 #the directory doesn't exist, we need to do some more work
13993 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13995 #these are the headers we're looking for
13996 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13997 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13998 zutil.h"
14000 dirs=
14001 for h in $headers; do
14002 #which other headers each of the above headers needs?
14003 deps=$(echo "#include <$h>" | \
14004 $orig_target_cc -E -M - 2>/dev/null | \
14005 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14007 #copy all the needed headers to a directory beneath gendir
14008 for d in $deps; do
14009 h=$(basename $d)
14010 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14011 sed -n "s,^.*/include\(/.*\),\1,p")
14012 ! test -d $dir && mkdir -p $dir
14013 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14014 done
14015 done
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14019 $as_echo "$aros_target_cc_includes" >&6; }
14020 else
14021 # We do not know which c compiler version we are going to build and what we need to know
14022 # here is different for different versions so this will be set later during the
14023 # build of crosstools.
14024 aros_target_cc_includes=@aros_target_cc_includes@
14028 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14029 # On GCC >= 4.0 -iquote should be used
14032 save_cc="$CC"
14033 save_cflags="$CFLAGS"
14034 if test "x$test_kernel_cc" != "xno"; then
14035 CFLAGS="-iquote."
14036 kernel_cflags_iquote=$host_cflags_iquote
14037 kernel_cflags_iquote_end=$host_cflags_iquote_end
14038 if test "x-$cross_compiling" = "x-yes"; then
14039 CC="$aros_kernel_cc"
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14041 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14042 if test "x-$crosstools" != "x-yes"; then
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14047 main ()
14051 return 0;
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055 use_no_stack_protector="yes"
14056 else
14057 use_no_stack_protector="no"
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 else
14061 # we do know it is supported for the smallest version of gcc we are going to build
14062 # we assume it's also supported by later versions
14063 use_no_stack_protector=yes
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14066 $as_echo "$use_no_stack_protector" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14068 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14069 if test "x-$crosstools" != "x-yes"; then
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14074 main ()
14078 return 0;
14080 _ACEOF
14081 if ac_fn_c_try_compile "$LINENO"; then :
14082 has_iquote="yes"
14083 else
14084 has_iquote="no"
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 else
14088 # we do know it is supported for the smallest version of gcc we are going to build
14089 # we assume it's also supported by later versions
14090 has_iquote=yes
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14093 $as_echo "$has_iquote" >&6; }
14094 if test "x-$has_iquote" = "x-yes" ; then
14095 kernel_cflags_iquote=-iquote
14096 kernel_cflags_iquote_end=
14097 else
14098 kernel_cflags_iquote=-I
14099 kernel_cflags_iquote_end=-I-
14102 if test "x-$use_no_stack_protector" = "x-yes" ; then
14103 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14106 #-----------------------------------------------------------------------------
14108 # Check if we can explicitly choose older version of symbol hashing
14110 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14111 CC="$aros_kernel_cc"
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14113 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14118 main ()
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 use_hash_style="yes"
14127 else
14128 use_hash_style="no"
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14133 $as_echo "$use_hash_style" >&6; }
14134 if test "x-$use_hash_style" = "x-yes" ; then
14135 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14137 else
14138 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14139 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14141 CC="$save_cc"
14142 CFLAGS="$save_cflags"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14151 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14153 # Check whether --with-resolution was given.
14154 if test "${with_resolution+set}" = set; then :
14155 withval=$with_resolution; resolution=$withval
14156 else
14157 resolution=none
14160 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14161 if test "$resolution" = "yes" ; then
14162 resolution="none"
14164 if test "$resolution" = "no" ; then
14165 resolution="none"
14167 if test "$resolution" != "none" ; then
14168 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14169 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14170 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14173 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14174 aros_cv_nominal_width=$aros_nominal_width
14175 aros_cv_nominal_height=$aros_nominal_height
14176 aros_cv_nominal_depth=$aros_nominal_depth
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14179 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14181 # Check whether --with-serial-debug was given.
14182 if test "${with_serial_debug+set}" = set; then :
14183 withval=$with_serial_debug; serial_debug=$withval
14184 else
14185 serial_debug=none
14188 if test "$aros_serial_debug" = 0 ; then
14189 serial_debug_forced=""
14190 if test "$serial_debug" = "yes" ; then
14191 serial_debug="1"
14193 if test "$serial_debug" = "no" ; then
14194 serial_debug="none"
14196 else
14197 serial_debug_forced="(forced)"
14198 serial_debug=$aros_serial_debug
14200 if test "$serial_debug" != "none" ; then
14201 aros_serial_debug=$serial_debug
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14203 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14210 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14211 # Check whether --enable-palm_debug_hack was given.
14212 if test "${enable_palm_debug_hack+set}" = set; then :
14213 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14214 else
14215 palm_debug_hack="no"
14218 if test "$palm_debug_hack" = "yes" ; then
14219 aros_palm_debug_hack="1"
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14222 $as_echo "$palm_debug_hack" >&6; }
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14225 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14226 # Check whether --enable-usb30_code was given.
14227 if test "${enable_usb30_code+set}" = set; then :
14228 enableval=$enable_usb30_code; usb30_code="yes"
14229 else
14230 usb30_code="no"
14233 if test "$usb30_code" = "yes" ; then
14234 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14235 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14238 $as_echo "$usb30_code" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14241 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14242 # Check whether --enable-nesting_supervisor was given.
14243 if test "${enable_nesting_supervisor+set}" = set; then :
14244 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14245 else
14246 nesting_supervisor="no"
14249 if test "$nesting_supervisor" = "yes" ; then
14250 aros_nesting_supervisor="1"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14253 $as_echo "$nesting_supervisor" >&6; }
14255 if test "$aros_enable_mmu" = "" ; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14257 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14258 # Check whether --enable-mmu was given.
14259 if test "${enable_mmu+set}" = set; then :
14260 enableval=$enable_mmu; aros_enable_mmu=$enableval
14261 else
14262 aros_enable_mmu="yes"
14265 if test "$aros_enable_mmu" = "" ; then
14266 aros_enable_mmu="yes"
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14269 $as_echo "$aros_enable_mmu" >&6; }
14271 if test "$aros_enable_mmu" = "no" ; then
14272 aros_enable_mmu="0"
14273 else
14274 aros_enable_mmu="1"
14278 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14280 if test "x-$need_dlopen" != "x-no" ; then
14281 save_libs="$LIBS"
14282 LIBS=""
14283 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14284 if test "x$ac_cv_func_dlopen" = xyes; then :
14285 have_dl="yes"
14286 else
14287 have_dl="no"
14290 if test "x-$have_dl" = "x-no" ; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14293 if ${ac_cv_lib_dl_dlopen+:} false; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 ac_check_lib_save_LIBS=$LIBS
14297 LIBS="-ldl $LIBS"
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char dlopen ();
14309 main ()
14311 return dlopen ();
14313 return 0;
14315 _ACEOF
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 ac_cv_lib_dl_dlopen=yes
14318 else
14319 ac_cv_lib_dl_dlopen=no
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323 LIBS=$ac_check_lib_save_LIBS
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14328 have_dl="yes"
14329 aros_host_ldflags="$aros_host_ldflags -ldl"
14330 else
14331 have_dl="no"
14335 if test "x-$have_dl" = "x-no" ; then
14336 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14338 LIBS="$save_libs"
14342 # Check whether --enable-x11_hidd was given.
14343 if test "${enable_x11_hidd+set}" = set; then :
14344 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14345 else
14346 x11_hidd="$need_x11"
14349 case "x-$x11_hidd" in
14350 x-yes|x-no|x-auto) ;;
14351 *) x11_hidd="$need_x11" ;;
14352 esac
14354 ENABLE_X11=0
14356 if test "x-$x11_hidd" != "x-no" ; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14359 $as_echo_n "checking for X... " >&6; }
14362 # Check whether --with-x was given.
14363 if test "${with_x+set}" = set; then :
14364 withval=$with_x;
14367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14368 if test "x$with_x" = xno; then
14369 # The user explicitly disabled X.
14370 have_x=disabled
14371 else
14372 case $x_includes,$x_libraries in #(
14373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 # One or both of the vars are not set, and there is no cached value.
14378 ac_x_includes=no ac_x_libraries=no
14379 rm -f -r conftest.dir
14380 if mkdir conftest.dir; then
14381 cd conftest.dir
14382 cat >Imakefile <<'_ACEOF'
14383 incroot:
14384 @echo incroot='${INCROOT}'
14385 usrlibdir:
14386 @echo usrlibdir='${USRLIBDIR}'
14387 libdir:
14388 @echo libdir='${LIBDIR}'
14389 _ACEOF
14390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14392 for ac_var in incroot usrlibdir libdir; do
14393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14394 done
14395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14396 for ac_extension in a so sl dylib la dll; do
14397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14398 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14399 ac_im_usrlibdir=$ac_im_libdir; break
14401 done
14402 # Screen out bogus values from the imake configuration. They are
14403 # bogus both because they are the default anyway, and because
14404 # using them would break gcc on systems where it needs fixed includes.
14405 case $ac_im_incroot in
14406 /usr/include) ac_x_includes= ;;
14407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14408 esac
14409 case $ac_im_usrlibdir in
14410 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14412 esac
14414 cd ..
14415 rm -f -r conftest.dir
14418 # Standard set of common directories for X headers.
14419 # Check X11 before X11Rn because it is often a symlink to the current release.
14420 ac_x_header_dirs='
14421 /usr/X11/include
14422 /usr/X11R7/include
14423 /usr/X11R6/include
14424 /usr/X11R5/include
14425 /usr/X11R4/include
14427 /usr/include/X11
14428 /usr/include/X11R7
14429 /usr/include/X11R6
14430 /usr/include/X11R5
14431 /usr/include/X11R4
14433 /usr/local/X11/include
14434 /usr/local/X11R7/include
14435 /usr/local/X11R6/include
14436 /usr/local/X11R5/include
14437 /usr/local/X11R4/include
14439 /usr/local/include/X11
14440 /usr/local/include/X11R7
14441 /usr/local/include/X11R6
14442 /usr/local/include/X11R5
14443 /usr/local/include/X11R4
14445 /usr/X386/include
14446 /usr/x386/include
14447 /usr/XFree86/include/X11
14449 /usr/include
14450 /usr/local/include
14451 /usr/unsupported/include
14452 /usr/athena/include
14453 /usr/local/x11r5/include
14454 /usr/lpp/Xamples/include
14456 /usr/openwin/include
14457 /usr/openwin/share/include'
14459 if test "$ac_x_includes" = no; then
14460 # Guess where to find include files, by looking for Xlib.h.
14461 # First, try using that file with no special directory specified.
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 #include <X11/Xlib.h>
14465 _ACEOF
14466 if ac_fn_c_try_cpp "$LINENO"; then :
14467 # We can compile using X headers with no special include directory.
14468 ac_x_includes=
14469 else
14470 for ac_dir in $ac_x_header_dirs; do
14471 if test -r "$ac_dir/X11/Xlib.h"; then
14472 ac_x_includes=$ac_dir
14473 break
14475 done
14477 rm -f conftest.err conftest.i conftest.$ac_ext
14478 fi # $ac_x_includes = no
14480 if test "$ac_x_libraries" = no; then
14481 # Check for the libraries.
14482 # See if we find them without any special options.
14483 # Don't add to $LIBS permanently.
14484 ac_save_LIBS=$LIBS
14485 LIBS="-lX11 $LIBS"
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 #include <X11/Xlib.h>
14490 main ()
14492 XrmInitialize ()
14494 return 0;
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 LIBS=$ac_save_LIBS
14499 # We can link X programs with no special library path.
14500 ac_x_libraries=
14501 else
14502 LIBS=$ac_save_LIBS
14503 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14505 # Don't even attempt the hair of trying to link an X program!
14506 for ac_extension in a so sl dylib la dll; do
14507 if test -r "$ac_dir/libX11.$ac_extension"; then
14508 ac_x_libraries=$ac_dir
14509 break 2
14511 done
14512 done
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516 fi # $ac_x_libraries = no
14518 case $ac_x_includes,$ac_x_libraries in #(
14519 no,* | *,no | *\'*)
14520 # Didn't find X, or a directory has "'" in its name.
14521 ac_cv_have_x="have_x=no";; #(
14523 # Record where we found X for the cache.
14524 ac_cv_have_x="have_x=yes\
14525 ac_x_includes='$ac_x_includes'\
14526 ac_x_libraries='$ac_x_libraries'"
14527 esac
14529 ;; #(
14530 *) have_x=yes;;
14531 esac
14532 eval "$ac_cv_have_x"
14533 fi # $with_x != no
14535 if test "$have_x" != yes; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14537 $as_echo "$have_x" >&6; }
14538 no_x=yes
14539 else
14540 # If each of the values was on the command line, it overrides each guess.
14541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14543 # Update the cache value to reflect the command line values.
14544 ac_cv_have_x="have_x=yes\
14545 ac_x_includes='$x_includes'\
14546 ac_x_libraries='$x_libraries'"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14548 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14552 if test -n "$x_includes"; then
14553 X_CFLAGS="$X_CFLAGS -I$x_includes"
14556 if test -n "$x_libraries"; then
14557 X_LIBS="$X_LIBS -L$x_libraries"
14560 if test "x-$no_x" = "x-yes" ; then
14562 if test "x-$x11_hidd" != "x-auto" ; then
14563 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14566 else
14567 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
14568 if test "x-$host_feature_glx" != "x-no" ; then
14569 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
14571 ENABLE_X11=1
14573 aros_host_x11_cflags="$X_CFLAGS"
14574 aros_host_x11_ldflags="$X_LIBS -lX11"
14576 # Check whether --enable-x11_shm was given.
14577 if test "${enable_x11_shm+set}" = set; then :
14578 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14579 else
14580 x11_hidd_shm="auto"
14583 case "x-$x11_hidd_shm" in
14584 x-yes|x-no|x-auto) ;;
14585 *) x11_hidd_shm="auto" ;;
14586 esac
14588 have_xshm=no
14590 if test "x-$x11_hidd_shm" != "x-no" ; then
14592 for ac_header in sys/ipc.h
14593 do :
14594 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14595 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14596 cat >>confdefs.h <<_ACEOF
14597 #define HAVE_SYS_IPC_H 1
14598 _ACEOF
14602 done
14604 for ac_header in sys/shm.h
14605 do :
14606 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14607 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_SYS_SHM_H 1
14610 _ACEOF
14614 done
14617 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14619 save_cflags="$CFLAGS"
14620 save_ldflags="$LDFLAGS"
14621 CFLAGS="$CFLAGS $X_CFLAGS"
14622 LDFLAGS="$LDFLAGS $X_LIBS"
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14624 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14625 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 ac_check_lib_save_LIBS=$LIBS
14629 LIBS="-lXext $LIBS"
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 char XShmQueryExtension ();
14641 main ()
14643 return XShmQueryExtension ();
14645 return 0;
14647 _ACEOF
14648 if ac_fn_c_try_link "$LINENO"; then :
14649 ac_cv_lib_Xext_XShmQueryExtension=yes
14650 else
14651 ac_cv_lib_Xext_XShmQueryExtension=no
14653 rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655 LIBS=$ac_check_lib_save_LIBS
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14658 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14659 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14660 have_xshm=yes
14663 CFLAGS="$save_cflags"
14664 LDFLAGS="$save_ldflags"
14668 if test "x-$have_xshm" = "x-yes" ; then
14669 DO_XSHM_SUPPORT="1"
14670 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14671 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14672 else
14673 DO_XSHM_SUPPORT="0"
14677 # Check whether --enable-x11_vidmode was given.
14678 if test "${enable_x11_vidmode+set}" = set; then :
14679 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14680 else
14681 x11_hidd_vidmode="auto"
14684 case "x-$x11_hidd_vidmode" in
14685 x-yes|x-no|x-auto) ;;
14686 *) x11_hidd_vidmode="auto" ;;
14687 esac
14689 have_vidmode=no
14691 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14693 save_cflags="$CFLAGS"
14694 save_ldflags="$LDFLAGS"
14695 CFLAGS="$CFLAGS $X_CFLAGS"
14696 LDFLAGS="$LDFLAGS $X_LIBS"
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14698 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14699 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 ac_check_lib_save_LIBS=$LIBS
14703 LIBS="-lXxf86vm $LIBS"
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14707 /* Override any GCC internal prototype to avoid an error.
14708 Use char because int might match the return type of a GCC
14709 builtin and then its argument prototype would still apply. */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 char XF86VidModeQueryExtension ();
14715 main ()
14717 return XF86VidModeQueryExtension ();
14719 return 0;
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14724 else
14725 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14727 rm -f core conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14732 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14733 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14734 have_vidmode=yes
14737 CFLAGS="$save_cflags"
14738 LDFLAGS="$save_ldflags"
14741 if test "x-$have_vidmode" = "x-yes" ; then
14742 DO_VIDMODE_SUPPORT="1"
14743 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14744 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14745 else
14746 DO_VIDMODE_SUPPORT="0"
14751 # Check whether --enable-sdl_hidd was given.
14752 if test "${enable_sdl_hidd+set}" = set; then :
14753 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14754 else
14755 sdl_hidd="auto"
14758 case "x-$sdl_hidd" in
14759 x-yes|x-no|x-auto) ;;
14760 *) sdl_hidd="auto" ;;
14761 esac
14763 if test "x-$sdl_hidd" != "x-no" ; then
14765 SDL_VERSION=1.2.5
14767 # Check whether --with-sdl-prefix was given.
14768 if test "${with_sdl_prefix+set}" = set; then :
14769 withval=$with_sdl_prefix; sdl_prefix="$withval"
14770 else
14771 sdl_prefix=""
14775 # Check whether --with-sdl-exec-prefix was given.
14776 if test "${with_sdl_exec_prefix+set}" = set; then :
14777 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14778 else
14779 sdl_exec_prefix=""
14782 # Check whether --enable-sdltest was given.
14783 if test "${enable_sdltest+set}" = set; then :
14784 enableval=$enable_sdltest;
14785 else
14786 enable_sdltest=yes
14790 if test x$sdl_exec_prefix != x ; then
14791 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14792 if test x${SDL_CONFIG+set} != xset ; then
14793 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14796 if test x$sdl_prefix != x ; then
14797 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14798 if test x${SDL_CONFIG+set} != xset ; then
14799 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14803 as_save_PATH="$PATH"
14804 if test "x$prefix" != xNONE; then
14805 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14807 # Extract the first word of "sdl-config", so it can be a program name with args.
14808 set dummy sdl-config; ac_word=$2
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14810 $as_echo_n "checking for $ac_word... " >&6; }
14811 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 case $SDL_CONFIG in
14815 [\\/]* | ?:[\\/]*)
14816 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14820 for as_dir in $PATH
14822 IFS=$as_save_IFS
14823 test -z "$as_dir" && as_dir=.
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14826 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14828 break 2
14830 done
14831 done
14832 IFS=$as_save_IFS
14834 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14836 esac
14838 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14839 if test -n "$SDL_CONFIG"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14841 $as_echo "$SDL_CONFIG" >&6; }
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14848 PATH="$as_save_PATH"
14849 min_sdl_version=$SDL_VERSION
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14851 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14852 no_sdl=""
14853 if test "$SDL_CONFIG" = "no" ; then
14854 no_sdl=yes
14855 else
14856 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14857 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14859 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14860 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14861 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14862 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14863 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14865 if test "x$enable_sdltest" = "xyes" ; then
14866 ac_save_CFLAGS="$CFLAGS"
14867 ac_save_CXXFLAGS="$CXXFLAGS"
14868 ac_save_LIBS="$LIBS"
14869 CFLAGS="$CFLAGS $SDL_CFLAGS"
14870 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14871 LIBS="$LIBS $SDL_LIBS"
14872 rm -f conf.sdltest
14873 if test "$cross_compiling" = yes; then :
14874 echo $ac_n "cross compiling; assumed OK... $ac_c"
14875 else
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14879 #include <stdio.h>
14880 #include <stdlib.h>
14881 #include <string.h>
14882 #include "SDL.h"
14884 char*
14885 my_strdup (char *str)
14887 char *new_str;
14889 if (str)
14891 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14892 strcpy (new_str, str);
14894 else
14895 new_str = NULL;
14897 return new_str;
14900 int main (int argc, char *argv[])
14902 int major, minor, micro;
14903 char *tmp_version;
14905 /* This hangs on some systems (?)
14906 system ("touch conf.sdltest");
14908 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14910 /* HP/UX 9 (%@#!) writes to sscanf strings */
14911 tmp_version = my_strdup("$min_sdl_version");
14912 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14913 printf("%s, bad version string\n", "$min_sdl_version");
14914 exit(1);
14917 if (($sdl_major_version > major) ||
14918 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14919 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14921 return 0;
14923 else
14925 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14926 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14927 printf("*** best to upgrade to the required version.\n");
14928 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14929 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14930 printf("*** config.cache before re-running configure\n");
14931 return 1;
14936 _ACEOF
14937 if ac_fn_c_try_run "$LINENO"; then :
14939 else
14940 no_sdl=yes
14942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14943 conftest.$ac_objext conftest.beam conftest.$ac_ext
14946 CFLAGS="$ac_save_CFLAGS"
14947 CXXFLAGS="$ac_save_CXXFLAGS"
14948 LIBS="$ac_save_LIBS"
14951 if test "x$no_sdl" = x ; then
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14953 $as_echo "yes" >&6; }
14954 have_sdl="yes"
14955 else
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957 $as_echo "no" >&6; }
14958 if test "$SDL_CONFIG" = "no" ; then
14959 echo "*** The sdl-config script installed by SDL could not be found"
14960 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14961 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14962 echo "*** full path to sdl-config."
14963 else
14964 if test -f conf.sdltest ; then
14966 else
14967 echo "*** Could not run SDL test program, checking why..."
14968 CFLAGS="$CFLAGS $SDL_CFLAGS"
14969 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14970 LIBS="$LIBS $SDL_LIBS"
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14974 #include <stdio.h>
14975 #include "SDL.h"
14977 int main(int argc, char *argv[])
14978 { return 0; }
14979 #undef main
14980 #define main K_and_R_C_main
14983 main ()
14985 return 0;
14987 return 0;
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991 echo "*** The test program compiled, but did not run. This usually means"
14992 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14993 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14994 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14995 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14996 echo "*** is required on your system"
14997 echo "***"
14998 echo "*** If you have an old version installed, it is best to remove it, although"
14999 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15000 else
15001 echo "*** The test program failed to compile or link. See the file config.log for the"
15002 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15003 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15004 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15006 rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008 CFLAGS="$ac_save_CFLAGS"
15009 CXXFLAGS="$ac_save_CXXFLAGS"
15010 LIBS="$ac_save_LIBS"
15013 SDL_CFLAGS=""
15014 SDL_LIBS=""
15015 have_sdl="no"
15019 rm -f conf.sdltest
15022 if test "x-$have_sdl" != "x-yes" ; then
15024 if test "x-$sdl_hidd" != "x-auto" ; then
15025 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15028 else
15029 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15030 aros_host_sdl_cflags=$SDL_CFLAGS
15031 aros_host_sdl_libs=$SDL_LIBS
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15039 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15040 # Check whether --enable-dbus was given.
15041 if test "${enable_dbus+set}" = set; then :
15042 enableval=$enable_dbus; dbus="yes"
15043 else
15044 dbus="no"
15047 if test "$dbus" = "yes" ; then
15048 ENABLE_DBUS=1
15049 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15050 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15051 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15052 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15053 else
15054 ENABLE_DBUS=0
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15057 $as_echo "$dbus" >&6; }
15059 if test "$use_kernel_cc_wrapper" = "yes" ; then
15060 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15063 aros_kernel_cppflags=$aros_config_cppflags
15064 aros_optimization_cflags="$optimization_level"
15065 if test "$optimization" = "default"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15067 $as_echo_n "checking default optimization level to use... " >&6; }
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15069 $as_echo "$optimization_level" >&6; }
15072 if ! test "$gcc_default_cpu" = "" ; then
15073 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15076 if test "$use_libatomic" = "yes" ; then
15077 aros_cxx_libs="$aros_cxx_libs -latomic"
15081 # Generic
15095 # Compatability with other Amiga-like operating systems
15098 # Host Related ###########################
15130 # Target Related #########################
15223 # Native version related
15228 # MMU related
15231 # Bootloader related
15234 # Unix/Hosted version related
15237 # ARM default GCC target related
15244 # Palm native version related
15247 # Apple iOS related
15252 # Android related
15258 # Debug related
15264 # Collect-aros stuff: "-ius" to ignore undefined symbols
15267 # C compiler related
15272 #ObjC compiler related
15275 #Java related
15278 # DBUS related
15285 #X11 related
15293 #X11 related
15297 # USB3.0 code
15300 case "$aros_flavour" in
15301 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15302 aros_flavour="emulation" ;;
15303 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15304 aros_flavour="emulation" ;;
15305 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15306 aros_flavour="standalone";;
15307 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15308 aros_flavour="standalone";;
15309 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15310 aros_flavour="native" ;;
15311 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15312 aros_flavour="native" ;;
15313 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15314 aros_flavour="linklib" ;;
15315 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15316 aros_flavour="palmnative" ;;
15317 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15318 aros_flavour="mac68knative" ;;
15319 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15320 aros_flavour="ppcnative" ;;
15321 esac
15323 if test ! -d ${aros_inc_dir} ; then
15324 ${MKDIR} ${aros_inc_dir}
15326 if test ! -d ${aros_geninc_dir} ; then
15327 ${MKDIR} ${aros_geninc_dir}
15329 if test ! -d ${aros_hostcfg_dir} ; then
15330 ${MKDIR} ${aros_hostcfg_dir}
15332 if test ! -d ${aros_targetcfg_dir} ; then
15333 ${MKDIR} ${aros_targetcfg_dir}
15335 if test ! -d ${aros_tools_dir} ; then
15336 ${MKDIR} ${aros_tools_dir}
15338 if test ! -d ${aros_scripts_dir} ; then
15339 ${MKDIR} ${aros_scripts_dir}
15342 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15345 # Generic build tools (metamake, etc)
15346 ac_config_commands="$ac_config_commands genmf-executable-support"
15348 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"
15351 # Binutils
15352 ac_config_commands="$ac_config_commands binutils-support"
15354 if test "${use_ld_wrapper}" = "yes"; then
15355 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"
15358 # Bare Elf support script and spec
15359 if test "${use_kernel_cc_wrapper}" = "yes"; then
15360 ac_config_commands="$ac_config_commands elf-compiler-support"
15362 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"
15366 # Host compiler support scripts and spec
15367 if test "${aros_target_toolchain}" = "no"; then
15368 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15370 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"
15374 # Android support
15375 if test "$aros_target_variant" == "android"; then
15376 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15380 # cmake helper
15381 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15384 cat >confcache <<\_ACEOF
15385 # This file is a shell script that caches the results of configure
15386 # tests run on this system so they can be shared between configure
15387 # scripts and configure runs, see configure's option --config-cache.
15388 # It is not useful on other systems. If it contains results you don't
15389 # want to keep, you may remove or edit it.
15391 # config.status only pays attention to the cache file if you give it
15392 # the --recheck option to rerun configure.
15394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15396 # following values.
15398 _ACEOF
15400 # The following way of writing the cache mishandles newlines in values,
15401 # but we know of no workaround that is simple, portable, and efficient.
15402 # So, we kill variables containing newlines.
15403 # Ultrix sh set writes to stderr and can't be redirected directly,
15404 # and sets the high bit in the cache file unless we assign to the vars.
15406 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15407 eval ac_val=\$$ac_var
15408 case $ac_val in #(
15409 *${as_nl}*)
15410 case $ac_var in #(
15411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15413 esac
15414 case $ac_var in #(
15415 _ | IFS | as_nl) ;; #(
15416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15417 *) { eval $ac_var=; unset $ac_var;} ;;
15418 esac ;;
15419 esac
15420 done
15422 (set) 2>&1 |
15423 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15424 *${as_nl}ac_space=\ *)
15425 # `set' does not quote correctly, so add quotes: double-quote
15426 # substitution turns \\\\ into \\, and sed turns \\ into \.
15427 sed -n \
15428 "s/'/'\\\\''/g;
15429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15430 ;; #(
15432 # `set' quotes correctly as required by POSIX, so do not add quotes.
15433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15435 esac |
15436 sort
15438 sed '
15439 /^ac_cv_env_/b end
15440 t clear
15441 :clear
15442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15443 t end
15444 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15445 :end' >>confcache
15446 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15447 if test -w "$cache_file"; then
15448 if test "x$cache_file" != "x/dev/null"; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15450 $as_echo "$as_me: updating cache $cache_file" >&6;}
15451 if test ! -f "$cache_file" || test -h "$cache_file"; then
15452 cat confcache >"$cache_file"
15453 else
15454 case $cache_file in #(
15455 */* | ?:*)
15456 mv -f confcache "$cache_file"$$ &&
15457 mv -f "$cache_file"$$ "$cache_file" ;; #(
15459 mv -f confcache "$cache_file" ;;
15460 esac
15463 else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15468 rm -f confcache
15470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15471 # Let make expand exec_prefix.
15472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15474 DEFS=-DHAVE_CONFIG_H
15476 ac_libobjs=
15477 ac_ltlibobjs=
15479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15480 # 1. Remove the extension, and $U if already installed.
15481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15482 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15484 # will be set to the directory where LIBOBJS objects are built.
15485 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15486 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15487 done
15488 LIBOBJS=$ac_libobjs
15490 LTLIBOBJS=$ac_ltlibobjs
15494 : "${CONFIG_STATUS=./config.status}"
15495 ac_write_fail=0
15496 ac_clean_files_save=$ac_clean_files
15497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15499 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15500 as_write_fail=0
15501 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15502 #! $SHELL
15503 # Generated by $as_me.
15504 # Run this file to recreate the current configuration.
15505 # Compiler output produced by configure, useful for debugging
15506 # configure, is in config.log if it exists.
15508 debug=false
15509 ac_cs_recheck=false
15510 ac_cs_silent=false
15512 SHELL=\${CONFIG_SHELL-$SHELL}
15513 export SHELL
15514 _ASEOF
15515 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15516 ## -------------------- ##
15517 ## M4sh Initialization. ##
15518 ## -------------------- ##
15520 # Be more Bourne compatible
15521 DUALCASE=1; export DUALCASE # for MKS sh
15522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15523 emulate sh
15524 NULLCMD=:
15525 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15526 # is contrary to our usage. Disable this feature.
15527 alias -g '${1+"$@"}'='"$@"'
15528 setopt NO_GLOB_SUBST
15529 else
15530 case `(set -o) 2>/dev/null` in #(
15531 *posix*) :
15532 set -o posix ;; #(
15533 *) :
15535 esac
15539 as_nl='
15541 export as_nl
15542 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15543 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15546 # Prefer a ksh shell builtin over an external printf program on Solaris,
15547 # but without wasting forks for bash or zsh.
15548 if test -z "$BASH_VERSION$ZSH_VERSION" \
15549 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15550 as_echo='print -r --'
15551 as_echo_n='print -rn --'
15552 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15553 as_echo='printf %s\n'
15554 as_echo_n='printf %s'
15555 else
15556 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15557 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15558 as_echo_n='/usr/ucb/echo -n'
15559 else
15560 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15561 as_echo_n_body='eval
15562 arg=$1;
15563 case $arg in #(
15564 *"$as_nl"*)
15565 expr "X$arg" : "X\\(.*\\)$as_nl";
15566 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15567 esac;
15568 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15570 export as_echo_n_body
15571 as_echo_n='sh -c $as_echo_n_body as_echo'
15573 export as_echo_body
15574 as_echo='sh -c $as_echo_body as_echo'
15577 # The user is always right.
15578 if test "${PATH_SEPARATOR+set}" != set; then
15579 PATH_SEPARATOR=:
15580 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15581 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15582 PATH_SEPARATOR=';'
15587 # IFS
15588 # We need space, tab and new line, in precisely that order. Quoting is
15589 # there to prevent editors from complaining about space-tab.
15590 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15591 # splitting by setting IFS to empty value.)
15592 IFS=" "" $as_nl"
15594 # Find who we are. Look in the path if we contain no directory separator.
15595 as_myself=
15596 case $0 in #((
15597 *[\\/]* ) as_myself=$0 ;;
15598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15599 for as_dir in $PATH
15601 IFS=$as_save_IFS
15602 test -z "$as_dir" && as_dir=.
15603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15604 done
15605 IFS=$as_save_IFS
15608 esac
15609 # We did not find ourselves, most probably we were run as `sh COMMAND'
15610 # in which case we are not to be found in the path.
15611 if test "x$as_myself" = x; then
15612 as_myself=$0
15614 if test ! -f "$as_myself"; then
15615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15616 exit 1
15619 # Unset variables that we do not need and which cause bugs (e.g. in
15620 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15621 # suppresses any "Segmentation fault" message there. '((' could
15622 # trigger a bug in pdksh 5.2.14.
15623 for as_var in BASH_ENV ENV MAIL MAILPATH
15624 do eval test x\${$as_var+set} = xset \
15625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15626 done
15627 PS1='$ '
15628 PS2='> '
15629 PS4='+ '
15631 # NLS nuisances.
15632 LC_ALL=C
15633 export LC_ALL
15634 LANGUAGE=C
15635 export LANGUAGE
15637 # CDPATH.
15638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15641 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15642 # ----------------------------------------
15643 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15644 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15645 # script with STATUS, using 1 if that was 0.
15646 as_fn_error ()
15648 as_status=$1; test $as_status -eq 0 && as_status=1
15649 if test "$4"; then
15650 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15651 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15653 $as_echo "$as_me: error: $2" >&2
15654 as_fn_exit $as_status
15655 } # as_fn_error
15658 # as_fn_set_status STATUS
15659 # -----------------------
15660 # Set $? to STATUS, without forking.
15661 as_fn_set_status ()
15663 return $1
15664 } # as_fn_set_status
15666 # as_fn_exit STATUS
15667 # -----------------
15668 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15669 as_fn_exit ()
15671 set +e
15672 as_fn_set_status $1
15673 exit $1
15674 } # as_fn_exit
15676 # as_fn_unset VAR
15677 # ---------------
15678 # Portably unset VAR.
15679 as_fn_unset ()
15681 { eval $1=; unset $1;}
15683 as_unset=as_fn_unset
15684 # as_fn_append VAR VALUE
15685 # ----------------------
15686 # Append the text in VALUE to the end of the definition contained in VAR. Take
15687 # advantage of any shell optimizations that allow amortized linear growth over
15688 # repeated appends, instead of the typical quadratic growth present in naive
15689 # implementations.
15690 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15691 eval 'as_fn_append ()
15693 eval $1+=\$2
15695 else
15696 as_fn_append ()
15698 eval $1=\$$1\$2
15700 fi # as_fn_append
15702 # as_fn_arith ARG...
15703 # ------------------
15704 # Perform arithmetic evaluation on the ARGs, and store the result in the
15705 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15706 # must be portable across $(()) and expr.
15707 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15708 eval 'as_fn_arith ()
15710 as_val=$(( $* ))
15712 else
15713 as_fn_arith ()
15715 as_val=`expr "$@" || test $? -eq 1`
15717 fi # as_fn_arith
15720 if expr a : '\(a\)' >/dev/null 2>&1 &&
15721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15722 as_expr=expr
15723 else
15724 as_expr=false
15727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15728 as_basename=basename
15729 else
15730 as_basename=false
15733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15734 as_dirname=dirname
15735 else
15736 as_dirname=false
15739 as_me=`$as_basename -- "$0" ||
15740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15741 X"$0" : 'X\(//\)$' \| \
15742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15743 $as_echo X/"$0" |
15744 sed '/^.*\/\([^/][^/]*\)\/*$/{
15745 s//\1/
15748 /^X\/\(\/\/\)$/{
15749 s//\1/
15752 /^X\/\(\/\).*/{
15753 s//\1/
15756 s/.*/./; q'`
15758 # Avoid depending upon Character Ranges.
15759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15762 as_cr_digits='0123456789'
15763 as_cr_alnum=$as_cr_Letters$as_cr_digits
15765 ECHO_C= ECHO_N= ECHO_T=
15766 case `echo -n x` in #(((((
15767 -n*)
15768 case `echo 'xy\c'` in
15769 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15770 xy) ECHO_C='\c';;
15771 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15772 ECHO_T=' ';;
15773 esac;;
15775 ECHO_N='-n';;
15776 esac
15778 rm -f conf$$ conf$$.exe conf$$.file
15779 if test -d conf$$.dir; then
15780 rm -f conf$$.dir/conf$$.file
15781 else
15782 rm -f conf$$.dir
15783 mkdir conf$$.dir 2>/dev/null
15785 if (echo >conf$$.file) 2>/dev/null; then
15786 if ln -s conf$$.file conf$$ 2>/dev/null; then
15787 as_ln_s='ln -s'
15788 # ... but there are two gotchas:
15789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15791 # In both cases, we have to default to `cp -pR'.
15792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15793 as_ln_s='cp -pR'
15794 elif ln conf$$.file conf$$ 2>/dev/null; then
15795 as_ln_s=ln
15796 else
15797 as_ln_s='cp -pR'
15799 else
15800 as_ln_s='cp -pR'
15802 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15803 rmdir conf$$.dir 2>/dev/null
15806 # as_fn_mkdir_p
15807 # -------------
15808 # Create "$as_dir" as a directory, including parents if necessary.
15809 as_fn_mkdir_p ()
15812 case $as_dir in #(
15813 -*) as_dir=./$as_dir;;
15814 esac
15815 test -d "$as_dir" || eval $as_mkdir_p || {
15816 as_dirs=
15817 while :; do
15818 case $as_dir in #(
15819 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15820 *) as_qdir=$as_dir;;
15821 esac
15822 as_dirs="'$as_qdir' $as_dirs"
15823 as_dir=`$as_dirname -- "$as_dir" ||
15824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15825 X"$as_dir" : 'X\(//\)[^/]' \| \
15826 X"$as_dir" : 'X\(//\)$' \| \
15827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15828 $as_echo X"$as_dir" |
15829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15830 s//\1/
15833 /^X\(\/\/\)[^/].*/{
15834 s//\1/
15837 /^X\(\/\/\)$/{
15838 s//\1/
15841 /^X\(\/\).*/{
15842 s//\1/
15845 s/.*/./; q'`
15846 test -d "$as_dir" && break
15847 done
15848 test -z "$as_dirs" || eval "mkdir $as_dirs"
15849 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15852 } # as_fn_mkdir_p
15853 if mkdir -p . 2>/dev/null; then
15854 as_mkdir_p='mkdir -p "$as_dir"'
15855 else
15856 test -d ./-p && rmdir ./-p
15857 as_mkdir_p=false
15861 # as_fn_executable_p FILE
15862 # -----------------------
15863 # Test if FILE is an executable regular file.
15864 as_fn_executable_p ()
15866 test -f "$1" && test -x "$1"
15867 } # as_fn_executable_p
15868 as_test_x='test -x'
15869 as_executable_p=as_fn_executable_p
15871 # Sed expression to map a string onto a valid CPP name.
15872 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15874 # Sed expression to map a string onto a valid variable name.
15875 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15878 exec 6>&1
15879 ## ----------------------------------- ##
15880 ## Main body of $CONFIG_STATUS script. ##
15881 ## ----------------------------------- ##
15882 _ASEOF
15883 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 # Save the log message, to keep $0 and so on meaningful, and to
15887 # report actual input values of CONFIG_FILES etc. instead of their
15888 # values after options handling.
15889 ac_log="
15890 This file was extended by $as_me, which was
15891 generated by GNU Autoconf 2.69. Invocation command line was
15893 CONFIG_FILES = $CONFIG_FILES
15894 CONFIG_HEADERS = $CONFIG_HEADERS
15895 CONFIG_LINKS = $CONFIG_LINKS
15896 CONFIG_COMMANDS = $CONFIG_COMMANDS
15897 $ $0 $@
15899 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15902 _ACEOF
15904 case $ac_config_files in *"
15905 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15906 esac
15908 case $ac_config_headers in *"
15909 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15910 esac
15913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914 # Files that config.status was made for.
15915 config_files="$ac_config_files"
15916 config_headers="$ac_config_headers"
15917 config_commands="$ac_config_commands"
15919 _ACEOF
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 ac_cs_usage="\
15923 \`$as_me' instantiates files and other configuration actions
15924 from templates according to the current configuration. Unless the files
15925 and actions are specified as TAGs, all are instantiated by default.
15927 Usage: $0 [OPTION]... [TAG]...
15929 -h, --help print this help, then exit
15930 -V, --version print version number and configuration settings, then exit
15931 --config print configuration, then exit
15932 -q, --quiet, --silent
15933 do not print progress messages
15934 -d, --debug don't remove temporary files
15935 --recheck update $as_me by reconfiguring in the same conditions
15936 --file=FILE[:TEMPLATE]
15937 instantiate the configuration file FILE
15938 --header=FILE[:TEMPLATE]
15939 instantiate the configuration header FILE
15941 Configuration files:
15942 $config_files
15944 Configuration headers:
15945 $config_headers
15947 Configuration commands:
15948 $config_commands
15950 Report bugs to the package provider."
15952 _ACEOF
15953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15954 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15955 ac_cs_version="\\
15956 config.status
15957 configured by $0, generated by GNU Autoconf 2.69,
15958 with options \\"\$ac_cs_config\\"
15960 Copyright (C) 2012 Free Software Foundation, Inc.
15961 This config.status script is free software; the Free Software Foundation
15962 gives unlimited permission to copy, distribute and modify it."
15964 ac_pwd='$ac_pwd'
15965 srcdir='$srcdir'
15966 test -n "\$AWK" || AWK=awk
15967 _ACEOF
15969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970 # The default lists apply if the user does not specify any file.
15971 ac_need_defaults=:
15972 while test $# != 0
15974 case $1 in
15975 --*=?*)
15976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15978 ac_shift=:
15980 --*=)
15981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15982 ac_optarg=
15983 ac_shift=:
15986 ac_option=$1
15987 ac_optarg=$2
15988 ac_shift=shift
15990 esac
15992 case $ac_option in
15993 # Handling of the options.
15994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15995 ac_cs_recheck=: ;;
15996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15997 $as_echo "$ac_cs_version"; exit ;;
15998 --config | --confi | --conf | --con | --co | --c )
15999 $as_echo "$ac_cs_config"; exit ;;
16000 --debug | --debu | --deb | --de | --d | -d )
16001 debug=: ;;
16002 --file | --fil | --fi | --f )
16003 $ac_shift
16004 case $ac_optarg in
16005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16006 '') as_fn_error $? "missing file argument" ;;
16007 esac
16008 as_fn_append CONFIG_FILES " '$ac_optarg'"
16009 ac_need_defaults=false;;
16010 --header | --heade | --head | --hea )
16011 $ac_shift
16012 case $ac_optarg in
16013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16014 esac
16015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16016 ac_need_defaults=false;;
16017 --he | --h)
16018 # Conflict between --help and --header
16019 as_fn_error $? "ambiguous option: \`$1'
16020 Try \`$0 --help' for more information.";;
16021 --help | --hel | -h )
16022 $as_echo "$ac_cs_usage"; exit ;;
16023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16025 ac_cs_silent=: ;;
16027 # This is an error.
16028 -*) as_fn_error $? "unrecognized option: \`$1'
16029 Try \`$0 --help' for more information." ;;
16031 *) as_fn_append ac_config_targets " $1"
16032 ac_need_defaults=false ;;
16034 esac
16035 shift
16036 done
16038 ac_configure_extra_args=
16040 if $ac_cs_silent; then
16041 exec 6>/dev/null
16042 ac_configure_extra_args="$ac_configure_extra_args --silent"
16045 _ACEOF
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 if \$ac_cs_recheck; then
16048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16049 shift
16050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16051 CONFIG_SHELL='$SHELL'
16052 export CONFIG_SHELL
16053 exec "\$@"
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 exec 5>>config.log
16060 echo
16061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16062 ## Running $as_me. ##
16063 _ASBOX
16064 $as_echo "$ac_log"
16065 } >&5
16067 _ACEOF
16068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 # INIT-COMMANDS
16073 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16074 aros_tools_dir=${aros_tools_dir}
16078 aros_host_exe_suffix=${aros_host_exe_suffix}
16079 aros_tools_dir=${aros_tools_dir}
16080 aros_target_cpu=${aros_target_cpu}
16081 aros_target_arch=${aros_target_arch}
16082 aros_target_suffix=${aros_target_suffix}
16083 orig_target_nm=${orig_target_nm}
16084 orig_target_as=${orig_target_as}
16085 orig_target_ar=${orig_target_ar}
16086 orig_target_ranlib=${orig_target_ranlib}
16087 orig_target_objdump=${orig_target_objdump}
16088 orig_target_objcopy=${orig_target_objcopy}
16089 orig_target_strip=${orig_target_strip}
16090 aros_kernel_ld=${aros_kernel_ld}
16094 aros_host_exe_suffix=${aros_host_exe_suffix}
16095 aros_tools_dir=${aros_tools_dir}
16096 aros_target_cpu=${aros_target_cpu}
16097 aros_target_arch=${aros_target_arch}
16098 aros_target_suffix=${aros_target_suffix}
16099 aros_kernel_ld=${aros_kernel_ld}
16103 aros_host_exe_suffix=${aros_host_exe_suffix}
16104 aros_tools_dir=${aros_tools_dir}
16105 aros_target_cpu=${aros_target_cpu}
16106 aros_target_arch=${aros_target_arch}
16107 aros_target_suffix=${aros_target_suffix}
16111 _ACEOF
16113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115 # Handling of arguments.
16116 for ac_config_target in $ac_config_targets
16118 case $ac_config_target in
16119 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16120 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16121 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16122 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16123 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16124 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16125 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16126 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16127 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16128 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16129 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16130 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16131 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16132 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16133 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16134 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16135 "${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" ;;
16136 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16137 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16138 "${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" ;;
16139 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16140 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16141 "${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" ;;
16142 "${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" ;;
16143 "${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" ;;
16144 "${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" ;;
16145 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16147 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16148 esac
16149 done
16152 # If the user did not use the arguments to specify the items to instantiate,
16153 # then the envvar interface is used. Set only those that are not.
16154 # We use the long form for the default assignment because of an extremely
16155 # bizarre bug on SunOS 4.1.3.
16156 if $ac_need_defaults; then
16157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16162 # Have a temporary directory for convenience. Make it in the build tree
16163 # simply because there is no reason against having it here, and in addition,
16164 # creating and moving files from /tmp can sometimes cause problems.
16165 # Hook for its removal unless debugging.
16166 # Note that there is a small window in which the directory will not be cleaned:
16167 # after its creation but before its name has been assigned to `$tmp'.
16168 $debug ||
16170 tmp= ac_tmp=
16171 trap 'exit_status=$?
16172 : "${ac_tmp:=$tmp}"
16173 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16175 trap 'as_fn_exit 1' 1 2 13 15
16177 # Create a (secure) tmp directory for tmp files.
16180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16181 test -d "$tmp"
16182 } ||
16184 tmp=./conf$$-$RANDOM
16185 (umask 077 && mkdir "$tmp")
16186 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16187 ac_tmp=$tmp
16189 # Set up the scripts for CONFIG_FILES section.
16190 # No need to generate them if there are no CONFIG_FILES.
16191 # This happens for instance with `./config.status config.h'.
16192 if test -n "$CONFIG_FILES"; then
16195 ac_cr=`echo X | tr X '\015'`
16196 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16197 # But we know of no other shell where ac_cr would be empty at this
16198 # point, so we can use a bashism as a fallback.
16199 if test "x$ac_cr" = x; then
16200 eval ac_cr=\$\'\\r\'
16202 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16203 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16204 ac_cs_awk_cr='\\r'
16205 else
16206 ac_cs_awk_cr=$ac_cr
16209 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16210 _ACEOF
16214 echo "cat >conf$$subs.awk <<_ACEOF" &&
16215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16216 echo "_ACEOF"
16217 } >conf$$subs.sh ||
16218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16219 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16220 ac_delim='%!_!# '
16221 for ac_last_try in false false false false false :; do
16222 . ./conf$$subs.sh ||
16223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16226 if test $ac_delim_n = $ac_delim_num; then
16227 break
16228 elif $ac_last_try; then
16229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16230 else
16231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16233 done
16234 rm -f conf$$subs.sh
16236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16238 _ACEOF
16239 sed -n '
16241 s/^/S["/; s/!.*/"]=/
16244 s/^[^!]*!//
16245 :repl
16246 t repl
16247 s/'"$ac_delim"'$//
16248 t delim
16251 s/\(.\{148\}\)..*/\1/
16252 t more1
16253 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16256 b repl
16257 :more1
16258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16261 s/.\{148\}//
16262 t nl
16263 :delim
16265 s/\(.\{148\}\)..*/\1/
16266 t more2
16267 s/["\\]/\\&/g; s/^/"/; s/$/"/
16270 :more2
16271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16274 s/.\{148\}//
16275 t delim
16276 ' <conf$$subs.awk | sed '
16277 /^[^""]/{
16279 s/\n//
16281 ' >>$CONFIG_STATUS || ac_write_fail=1
16282 rm -f conf$$subs.awk
16283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16284 _ACAWK
16285 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16286 for (key in S) S_is_set[key] = 1
16287 FS = "\a"
16291 line = $ 0
16292 nfields = split(line, field, "@")
16293 substed = 0
16294 len = length(field[1])
16295 for (i = 2; i < nfields; i++) {
16296 key = field[i]
16297 keylen = length(key)
16298 if (S_is_set[key]) {
16299 value = S[key]
16300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16301 len += length(value) + length(field[++i])
16302 substed = 1
16303 } else
16304 len += 1 + keylen
16307 print line
16310 _ACAWK
16311 _ACEOF
16312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16315 else
16317 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16318 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16319 _ACEOF
16321 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16322 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16323 # trailing colons and then remove the whole line if VPATH becomes empty
16324 # (actually we leave an empty line to preserve line numbers).
16325 if test "x$srcdir" = x.; then
16326 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16328 s///
16329 s/^/:/
16330 s/[ ]*$/:/
16331 s/:\$(srcdir):/:/g
16332 s/:\${srcdir}:/:/g
16333 s/:@srcdir@:/:/g
16334 s/^:*//
16335 s/:*$//
16337 s/\(=[ ]*\).*/\1/
16339 s/\n//
16340 s/^[^=]*=[ ]*$//
16344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16345 fi # test -n "$CONFIG_FILES"
16347 # Set up the scripts for CONFIG_HEADERS section.
16348 # No need to generate them if there are no CONFIG_HEADERS.
16349 # This happens for instance with `./config.status Makefile'.
16350 if test -n "$CONFIG_HEADERS"; then
16351 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16352 BEGIN {
16353 _ACEOF
16355 # Transform confdefs.h into an awk script `defines.awk', embedded as
16356 # here-document in config.status, that substitutes the proper values into
16357 # config.h.in to produce config.h.
16359 # Create a delimiter string that does not exist in confdefs.h, to ease
16360 # handling of long lines.
16361 ac_delim='%!_!# '
16362 for ac_last_try in false false :; do
16363 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16364 if test -z "$ac_tt"; then
16365 break
16366 elif $ac_last_try; then
16367 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16368 else
16369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16371 done
16373 # For the awk script, D is an array of macro values keyed by name,
16374 # likewise P contains macro parameters if any. Preserve backslash
16375 # newline sequences.
16377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16378 sed -n '
16379 s/.\{148\}/&'"$ac_delim"'/g
16380 t rset
16381 :rset
16382 s/^[ ]*#[ ]*define[ ][ ]*/ /
16383 t def
16385 :def
16386 s/\\$//
16387 t bsnl
16388 s/["\\]/\\&/g
16389 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16390 D["\1"]=" \3"/p
16391 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16393 :bsnl
16394 s/["\\]/\\&/g
16395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16396 D["\1"]=" \3\\\\\\n"\\/p
16397 t cont
16398 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16399 t cont
16401 :cont
16403 s/.\{148\}/&'"$ac_delim"'/g
16404 t clear
16405 :clear
16406 s/\\$//
16407 t bsnlc
16408 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16410 :bsnlc
16411 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16412 b cont
16413 ' <confdefs.h | sed '
16414 s/'"$ac_delim"'/"\\\
16415 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16418 for (key in D) D_is_set[key] = 1
16419 FS = "\a"
16421 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16422 line = \$ 0
16423 split(line, arg, " ")
16424 if (arg[1] == "#") {
16425 defundef = arg[2]
16426 mac1 = arg[3]
16427 } else {
16428 defundef = substr(arg[1], 2)
16429 mac1 = arg[2]
16431 split(mac1, mac2, "(") #)
16432 macro = mac2[1]
16433 prefix = substr(line, 1, index(line, defundef) - 1)
16434 if (D_is_set[macro]) {
16435 # Preserve the white space surrounding the "#".
16436 print prefix "define", macro P[macro] D[macro]
16437 next
16438 } else {
16439 # Replace #undef with comments. This is necessary, for example,
16440 # in the case of _POSIX_SOURCE, which is predefined and required
16441 # on some systems where configure will not decide to define it.
16442 if (defundef == "undef") {
16443 print "/*", prefix defundef, macro, "*/"
16444 next
16448 { print }
16449 _ACAWK
16450 _ACEOF
16451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16452 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16453 fi # test -n "$CONFIG_HEADERS"
16456 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16457 shift
16458 for ac_tag
16460 case $ac_tag in
16461 :[FHLC]) ac_mode=$ac_tag; continue;;
16462 esac
16463 case $ac_mode$ac_tag in
16464 :[FHL]*:*);;
16465 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16466 :[FH]-) ac_tag=-:-;;
16467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16468 esac
16469 ac_save_IFS=$IFS
16470 IFS=:
16471 set x $ac_tag
16472 IFS=$ac_save_IFS
16473 shift
16474 ac_file=$1
16475 shift
16477 case $ac_mode in
16478 :L) ac_source=$1;;
16479 :[FH])
16480 ac_file_inputs=
16481 for ac_f
16483 case $ac_f in
16484 -) ac_f="$ac_tmp/stdin";;
16485 *) # Look for the file first in the build tree, then in the source tree
16486 # (if the path is not absolute). The absolute path cannot be DOS-style,
16487 # because $ac_f cannot contain `:'.
16488 test -f "$ac_f" ||
16489 case $ac_f in
16490 [\\/$]*) false;;
16491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16492 esac ||
16493 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16494 esac
16495 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16496 as_fn_append ac_file_inputs " '$ac_f'"
16497 done
16499 # Let's still pretend it is `configure' which instantiates (i.e., don't
16500 # use $as_me), people would be surprised to read:
16501 # /* config.h. Generated by config.status. */
16502 configure_input='Generated from '`
16503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16504 `' by configure.'
16505 if test x"$ac_file" != x-; then
16506 configure_input="$ac_file. $configure_input"
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16508 $as_echo "$as_me: creating $ac_file" >&6;}
16510 # Neutralize special characters interpreted by sed in replacement strings.
16511 case $configure_input in #(
16512 *\&* | *\|* | *\\* )
16513 ac_sed_conf_input=`$as_echo "$configure_input" |
16514 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16515 *) ac_sed_conf_input=$configure_input;;
16516 esac
16518 case $ac_tag in
16519 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16521 esac
16523 esac
16525 ac_dir=`$as_dirname -- "$ac_file" ||
16526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527 X"$ac_file" : 'X\(//\)[^/]' \| \
16528 X"$ac_file" : 'X\(//\)$' \| \
16529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16530 $as_echo X"$ac_file" |
16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16532 s//\1/
16535 /^X\(\/\/\)[^/].*/{
16536 s//\1/
16539 /^X\(\/\/\)$/{
16540 s//\1/
16543 /^X\(\/\).*/{
16544 s//\1/
16547 s/.*/./; q'`
16548 as_dir="$ac_dir"; as_fn_mkdir_p
16549 ac_builddir=.
16551 case "$ac_dir" in
16552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16555 # A ".." for each directory in $ac_dir_suffix.
16556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16557 case $ac_top_builddir_sub in
16558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16560 esac ;;
16561 esac
16562 ac_abs_top_builddir=$ac_pwd
16563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16564 # for backward compatibility:
16565 ac_top_builddir=$ac_top_build_prefix
16567 case $srcdir in
16568 .) # We are building in place.
16569 ac_srcdir=.
16570 ac_top_srcdir=$ac_top_builddir_sub
16571 ac_abs_top_srcdir=$ac_pwd ;;
16572 [\\/]* | ?:[\\/]* ) # Absolute name.
16573 ac_srcdir=$srcdir$ac_dir_suffix;
16574 ac_top_srcdir=$srcdir
16575 ac_abs_top_srcdir=$srcdir ;;
16576 *) # Relative name.
16577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16578 ac_top_srcdir=$ac_top_build_prefix$srcdir
16579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16580 esac
16581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16584 case $ac_mode in
16587 # CONFIG_FILE
16590 _ACEOF
16592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593 # If the template does not know about datarootdir, expand it.
16594 # FIXME: This hack should be removed a few years after 2.60.
16595 ac_datarootdir_hack=; ac_datarootdir_seen=
16596 ac_sed_dataroot='
16597 /datarootdir/ {
16601 /@datadir@/p
16602 /@docdir@/p
16603 /@infodir@/p
16604 /@localedir@/p
16605 /@mandir@/p'
16606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16607 *datarootdir*) ac_datarootdir_seen=yes;;
16608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16611 _ACEOF
16612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16613 ac_datarootdir_hack='
16614 s&@datadir@&$datadir&g
16615 s&@docdir@&$docdir&g
16616 s&@infodir@&$infodir&g
16617 s&@localedir@&$localedir&g
16618 s&@mandir@&$mandir&g
16619 s&\\\${datarootdir}&$datarootdir&g' ;;
16620 esac
16621 _ACEOF
16623 # Neutralize VPATH when `$srcdir' = `.'.
16624 # Shell code in configure.ac might set extrasub.
16625 # FIXME: do we really want to maintain this feature?
16626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16627 ac_sed_extra="$ac_vpsub
16628 $extrasub
16629 _ACEOF
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16633 s|@configure_input@|$ac_sed_conf_input|;t t
16634 s&@top_builddir@&$ac_top_builddir_sub&;t t
16635 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16636 s&@srcdir@&$ac_srcdir&;t t
16637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16638 s&@top_srcdir@&$ac_top_srcdir&;t t
16639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16640 s&@builddir@&$ac_builddir&;t t
16641 s&@abs_builddir@&$ac_abs_builddir&;t t
16642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16643 $ac_datarootdir_hack
16645 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16646 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16649 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16651 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16653 which seems to be undefined. Please make sure it is defined" >&5
16654 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16655 which seems to be undefined. Please make sure it is defined" >&2;}
16657 rm -f "$ac_tmp/stdin"
16658 case $ac_file in
16659 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16660 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16661 esac \
16662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16666 # CONFIG_HEADER
16668 if test x"$ac_file" != x-; then
16670 $as_echo "/* $configure_input */" \
16671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16672 } >"$ac_tmp/config.h" \
16673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16674 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16676 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16677 else
16678 rm -f "$ac_file"
16679 mv "$ac_tmp/config.h" "$ac_file" \
16680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16682 else
16683 $as_echo "/* $configure_input */" \
16684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16685 || as_fn_error $? "could not create -" "$LINENO" 5
16689 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16690 $as_echo "$as_me: executing $ac_file commands" >&6;}
16692 esac
16695 case $ac_file$ac_mode in
16696 "genmf-executable-support":C)
16697 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16698 chmod a+x ${aros_tools_dir}/genmf.py
16700 "binutils-support":C)
16701 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16702 mkdir -p $prefix
16703 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16705 chmod a+x ${prefix2}-ld
16707 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16708 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16709 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16710 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16711 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16712 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16713 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16715 "elf-compiler-support":C)
16716 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16717 mkdir -p $prefix
16718 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16720 chmod a+x ${prefix2}-gcc
16722 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16724 "host-compiler-wrapper-support":C)
16725 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16726 mkdir -p $prefix
16727 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16729 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16732 esac
16733 done # for ac_tag
16736 as_fn_exit 0
16737 _ACEOF
16738 ac_clean_files=$ac_clean_files_save
16740 test $ac_write_fail = 0 ||
16741 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16744 # configure is writing to config.log, and then calls config.status.
16745 # config.status does its own redirection, appending to config.log.
16746 # Unfortunately, on DOS this fails, as config.log is still kept open
16747 # by configure, so config.status won't be able to write to it; its
16748 # output is simply discarded. So we exec the FD to /dev/null,
16749 # effectively closing config.log, so it can be properly (re)opened and
16750 # appended to by config.status. When coming back to configure, we
16751 # need to make the FD available again.
16752 if test "$no_create" != yes; then
16753 ac_cs_success=:
16754 ac_config_status_args=
16755 test "$silent" = yes &&
16756 ac_config_status_args="$ac_config_status_args --quiet"
16757 exec 5>/dev/null
16758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16759 exec 5>>config.log
16760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16761 # would make configure fail if this is the last instruction.
16762 $ac_cs_success || as_fn_exit 1
16764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16771 #XXX compatability...
16772 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16774 if test -n "$aros_shared_cflags" ; then
16775 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16776 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg