Changed a way macOS SDK is detected. The old one assumed fixed path in root directory.
[AROS.git] / configure
blob59b93672bb008db14f898cc44c156ae77653e943
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 target_grub2_version
657 aros_host_sdl_libs
658 aros_host_sdl_cflags
659 aros_host_x11_ldflags
660 aros_host_x11_cflags
661 DO_VIDMODE_SUPPORT
662 DO_XSHM_SUPPORT
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 host_android_gfx
668 host_sdl_gfx
669 host_x_gfx
670 crosstools_cxx_target
671 crosstools_target
672 aros_isa_flags
673 aros_isa_extra
674 aros_optimization_cflags
675 aros_config_coverage
676 aros_config_lto
677 aros_target_strip_flags
678 aros_target_genmap
679 aros_debug_ldflags
680 aros_debug_aflags
681 aros_debug_cxxflags
682 aros_debug_cflags
683 aros_debug_cppflags
684 aros_kernel_ldflags
685 aros_kernel_objcflags
686 aros_kernel_includes
687 aros_kernel_cflags
688 aros_kernel_cppflags
689 aros_kernel_sysroot
690 aros_config_ldflags
691 aros_config_aflags
692 aros_config_cxxflags
693 aros_config_cflags
694 aros_config_cppflags
695 aros_nowarn_flags
696 aros_warn_flags
697 aros_config_sysroot
698 aros_shared_ldflags
699 aros_shared_aflags
700 aros_shared_cflags
701 aros_arch_libs
702 aros_compiler_libs
703 spec_obj_format
704 aros_object_format
705 aros_shared_ld
706 aros_shared_default
707 aros_target_nm
708 aros_target_strip
709 aros_target_objcopy
710 aros_target_objdump
711 aros_target_cc_path
712 aros_target_cc_includes
713 aros_target_ld
714 aros_target_as
715 aros_target_cpp
716 aros_target_cxx
717 aros_target_cc
718 aros_plain_ar
719 aros_plain_nm
720 aros_target_ranlib
721 aros_target_ar
722 aros_target_suffix
723 aros_target_variant
724 aros_target_cpu_mode
725 aros_target_cpu
726 aros_target_family
727 aros_target_arch
728 aros_target_bootloader
729 aros_target_iconset
730 aros_target_guitheme
731 aros_tools_dir
732 aros_host_lib_suffix
733 aros_host_exe_suffix
734 aros_host_mkargs
735 aros_host_mkdep
736 aros_host_debug
737 aros_host_ldflags
738 gnu89_inline
739 aros_host_cxxflags
740 aros_host_cflags
741 aros_host_cppflags
742 aros_host_make
743 aros_host_cxx
744 aros_host_cc
745 aros_host_def_cc
746 aros_host_cpp
747 aros_host_cpu
748 aros_host_arch
749 aros_cc_pre
750 aros_amigaos_compliance
751 AROS_PORTSSRCDIR
752 AROS_CROSSTOOLSDIR
753 SRCDIR
754 AROS_BUILDDIR_UNIX
755 AROS_BUILDDIR
756 aros_build_host
757 aros_toolchain_ld
758 aros_target_toolchain
759 aros_flavour_uc
760 aros_flavour
761 aros_cpu
762 aros_arch
763 SDL_LIBS
764 SDL_CFLAGS
765 SDL_CONFIG
766 XMKMF
767 kernel_cflags_iquote_end
768 kernel_cflags_iquote
769 host_cflags_iquote_end
770 host_cflags_iquote
771 aros_toolchain
772 aros_target_nostdlib_ldflags
773 aros_target_detach_ldflags
774 aros_target_nix_ldflags
775 aros_target_nostartup_ldflags
776 aros_target_nostdinc_cflags
777 aros_kernel_rescomp
778 orig_target_objdump
779 orig_target_objcopy
780 orig_target_strip
781 orig_target_nm
782 orig_target_ranlib
783 orig_target_ar
784 orig_target_as
785 orig_target_ld
786 orig_target_cxx
787 orig_target_cc
788 orig_target_cpp
789 aros_kernel_objdump
790 aros_kernel_objcopy
791 aros_kernel_strip
792 aros_kernel_nm
793 aros_kernel_ranlib
794 aros_kernel_ar
795 aros_kernel_as
796 aros_kernel_ld
797 aros_kernel_cxx
798 aros_kernel_cc
799 aros_kernel_cpp
800 target_gcc_version
802 android_tool
803 CCACHE
804 DISTCC
805 LIBOBJS
806 EGREP
807 GREP
809 TEST
812 libpng_incdir
813 libpng_libextra
814 libpng
815 arosconfig_use_libpngconfig
816 pkgpyexecdir
817 pyexecdir
818 pkgpythondir
819 pythondir
820 PYTHON_PLATFORM
821 PYTHON_EXEC_PREFIX
822 PYTHON_PREFIX
823 PYTHON_VERSION
824 PYTHON
825 PATCH
826 CHMOD
828 PPMTOILBM
829 PNGTOPNM
830 FLEX
831 BISON
834 UNIQ
835 SORT
836 TOUCH
837 MKDIR
838 ECHO
842 aros_host_strip
843 aros_host_ranlib
844 aros_host_ar
845 aros_host_automake
846 aros_host_autoheader
847 aros_host_autoconf
848 aros_host_aclocal
849 aros_host_ld
850 MMAKE
853 ac_ct_CC
854 CFLAGS
856 OBJEXT
857 EXEEXT
858 ac_ct_CXX
859 CPPFLAGS
860 LDFLAGS
861 CXXFLAGS
863 host_os
864 host_vendor
865 host_cpu
866 host
867 build_os
868 build_vendor
869 build_cpu
870 build
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 localstatedir
891 sharedstatedir
892 sysconfdir
893 datadir
894 datarootdir
895 libexecdir
896 sbindir
897 bindir
898 program_transform_name
899 prefix
900 exec_prefix
901 PACKAGE_URL
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 with_c_compiler
913 with_cxx_compiler
914 enable_libpng_config
915 with_toolchain
916 enable_lto
917 enable_coverage
918 enable_build_type
919 enable_debug
920 enable_distcc
921 enable_ccache
922 with_kernel_gcc_version
923 with_optimization
924 with_paranoia
925 enable_target_variant
926 with_xcode
927 with_sdk_version
928 with_sdk
929 with_ndk
930 with_ndk_version
931 with_apk_version
932 enable_amigaos_compliance
933 with_kernel_toolchain_prefix
934 with_elf_toolchain_prefix
935 with_aros_toolchain
936 enable_crosstools
937 with_aros_toolchain_install
938 with_binutils_version
939 with_gcc_version
940 enable_objc
941 enable_java
942 with_cpu
943 with_fpu
944 with_float
945 with_portssources
946 with_bootloader
947 with_iconset
948 with_theme
949 enable_includes
950 with_resolution
951 with_serial_debug
952 enable_palm_debug_hack
953 enable_usb30_code
954 enable_nesting_supervisor
955 enable_mmu
956 enable_x11_hidd
957 with_x
958 enable_x11_shm
959 enable_x11_vidmode
960 enable_sdl_hidd
961 with_sdl_prefix
962 with_sdl_exec_prefix
963 enable_sdltest
964 enable_dbus
966 ac_precious_vars='build_alias
967 host_alias
968 target_alias
970 CXXFLAGS
971 LDFLAGS
972 LIBS
973 CPPFLAGS
976 CFLAGS
978 PYTHON
979 XMKMF'
982 # Initialize some variables set by options.
983 ac_init_help=
984 ac_init_version=false
985 ac_unrecognized_opts=
986 ac_unrecognized_sep=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
989 cache_file=/dev/null
990 exec_prefix=NONE
991 no_create=
992 no_recursion=
993 prefix=NONE
994 program_prefix=NONE
995 program_suffix=NONE
996 program_transform_name=s,x,x,
997 silent=
998 site=
999 srcdir=
1000 verbose=
1001 x_includes=NONE
1002 x_libraries=NONE
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir='${exec_prefix}/bin'
1011 sbindir='${exec_prefix}/sbin'
1012 libexecdir='${exec_prefix}/libexec'
1013 datarootdir='${prefix}/share'
1014 datadir='${datarootdir}'
1015 sysconfdir='${prefix}/etc'
1016 sharedstatedir='${prefix}/com'
1017 localstatedir='${prefix}/var'
1018 includedir='${prefix}/include'
1019 oldincludedir='/usr/include'
1020 docdir='${datarootdir}/doc/${PACKAGE}'
1021 infodir='${datarootdir}/info'
1022 htmldir='${docdir}'
1023 dvidir='${docdir}'
1024 pdfdir='${docdir}'
1025 psdir='${docdir}'
1026 libdir='${exec_prefix}/lib'
1027 localedir='${datarootdir}/locale'
1028 mandir='${datarootdir}/man'
1030 ac_prev=
1031 ac_dashdash=
1032 for ac_option
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\$ac_option
1037 ac_prev=
1038 continue
1041 case $ac_option in
1042 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 *=) ac_optarg= ;;
1044 *) ac_optarg=yes ;;
1045 esac
1047 # Accept the important Cygnus configure options, so we can diagnose typos.
1049 case $ac_dashdash$ac_option in
1051 ac_dashdash=yes ;;
1053 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054 ac_prev=bindir ;;
1055 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056 bindir=$ac_optarg ;;
1058 -build | --build | --buil | --bui | --bu)
1059 ac_prev=build_alias ;;
1060 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061 build_alias=$ac_optarg ;;
1063 -cache-file | --cache-file | --cache-fil | --cache-fi \
1064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065 ac_prev=cache_file ;;
1066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068 cache_file=$ac_optarg ;;
1070 --config-cache | -C)
1071 cache_file=config.cache ;;
1073 -datadir | --datadir | --datadi | --datad)
1074 ac_prev=datadir ;;
1075 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076 datadir=$ac_optarg ;;
1078 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079 | --dataroo | --dataro | --datar)
1080 ac_prev=datarootdir ;;
1081 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083 datarootdir=$ac_optarg ;;
1085 -disable-* | --disable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=no ;;
1101 -docdir | --docdir | --docdi | --doc | --do)
1102 ac_prev=docdir ;;
1103 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104 docdir=$ac_optarg ;;
1106 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107 ac_prev=dvidir ;;
1108 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109 dvidir=$ac_optarg ;;
1111 -enable-* | --enable-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid feature name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=\$ac_optarg ;;
1127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129 | --exec | --exe | --ex)
1130 ac_prev=exec_prefix ;;
1131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133 | --exec=* | --exe=* | --ex=*)
1134 exec_prefix=$ac_optarg ;;
1136 -gas | --gas | --ga | --g)
1137 # Obsolete; use --with-gas.
1138 with_gas=yes ;;
1140 -help | --help | --hel | --he | -h)
1141 ac_init_help=long ;;
1142 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143 ac_init_help=recursive ;;
1144 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145 ac_init_help=short ;;
1147 -host | --host | --hos | --ho)
1148 ac_prev=host_alias ;;
1149 -host=* | --host=* | --hos=* | --ho=*)
1150 host_alias=$ac_optarg ;;
1152 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153 ac_prev=htmldir ;;
1154 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155 | --ht=*)
1156 htmldir=$ac_optarg ;;
1158 -includedir | --includedir | --includedi | --included | --include \
1159 | --includ | --inclu | --incl | --inc)
1160 ac_prev=includedir ;;
1161 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162 | --includ=* | --inclu=* | --incl=* | --inc=*)
1163 includedir=$ac_optarg ;;
1165 -infodir | --infodir | --infodi | --infod | --info | --inf)
1166 ac_prev=infodir ;;
1167 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168 infodir=$ac_optarg ;;
1170 -libdir | --libdir | --libdi | --libd)
1171 ac_prev=libdir ;;
1172 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173 libdir=$ac_optarg ;;
1175 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176 | --libexe | --libex | --libe)
1177 ac_prev=libexecdir ;;
1178 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179 | --libexe=* | --libex=* | --libe=*)
1180 libexecdir=$ac_optarg ;;
1182 -localedir | --localedir | --localedi | --localed | --locale)
1183 ac_prev=localedir ;;
1184 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185 localedir=$ac_optarg ;;
1187 -localstatedir | --localstatedir | --localstatedi | --localstated \
1188 | --localstate | --localstat | --localsta | --localst | --locals)
1189 ac_prev=localstatedir ;;
1190 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192 localstatedir=$ac_optarg ;;
1194 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195 ac_prev=mandir ;;
1196 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197 mandir=$ac_optarg ;;
1199 -nfp | --nfp | --nf)
1200 # Obsolete; use --without-fp.
1201 with_fp=no ;;
1203 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204 | --no-cr | --no-c | -n)
1205 no_create=yes ;;
1207 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 no_recursion=yes ;;
1211 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213 | --oldin | --oldi | --old | --ol | --o)
1214 ac_prev=oldincludedir ;;
1215 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218 oldincludedir=$ac_optarg ;;
1220 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221 ac_prev=prefix ;;
1222 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223 prefix=$ac_optarg ;;
1225 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226 | --program-pre | --program-pr | --program-p)
1227 ac_prev=program_prefix ;;
1228 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230 program_prefix=$ac_optarg ;;
1232 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233 | --program-suf | --program-su | --program-s)
1234 ac_prev=program_suffix ;;
1235 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237 program_suffix=$ac_optarg ;;
1239 -program-transform-name | --program-transform-name \
1240 | --program-transform-nam | --program-transform-na \
1241 | --program-transform-n | --program-transform- \
1242 | --program-transform | --program-transfor \
1243 | --program-transfo | --program-transf \
1244 | --program-trans | --program-tran \
1245 | --progr-tra | --program-tr | --program-t)
1246 ac_prev=program_transform_name ;;
1247 -program-transform-name=* | --program-transform-name=* \
1248 | --program-transform-nam=* | --program-transform-na=* \
1249 | --program-transform-n=* | --program-transform-=* \
1250 | --program-transform=* | --program-transfor=* \
1251 | --program-transfo=* | --program-transf=* \
1252 | --program-trans=* | --program-tran=* \
1253 | --progr-tra=* | --program-tr=* | --program-t=*)
1254 program_transform_name=$ac_optarg ;;
1256 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257 ac_prev=pdfdir ;;
1258 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259 pdfdir=$ac_optarg ;;
1261 -psdir | --psdir | --psdi | --psd | --ps)
1262 ac_prev=psdir ;;
1263 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264 psdir=$ac_optarg ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 silent=yes ;;
1270 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271 ac_prev=sbindir ;;
1272 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273 | --sbi=* | --sb=*)
1274 sbindir=$ac_optarg ;;
1276 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278 | --sharedst | --shareds | --shared | --share | --shar \
1279 | --sha | --sh)
1280 ac_prev=sharedstatedir ;;
1281 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284 | --sha=* | --sh=*)
1285 sharedstatedir=$ac_optarg ;;
1287 -site | --site | --sit)
1288 ac_prev=site ;;
1289 -site=* | --site=* | --sit=*)
1290 site=$ac_optarg ;;
1292 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293 ac_prev=srcdir ;;
1294 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295 srcdir=$ac_optarg ;;
1297 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298 | --syscon | --sysco | --sysc | --sys | --sy)
1299 ac_prev=sysconfdir ;;
1300 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302 sysconfdir=$ac_optarg ;;
1304 -target | --target | --targe | --targ | --tar | --ta | --t)
1305 ac_prev=target_alias ;;
1306 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307 target_alias=$ac_optarg ;;
1309 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310 verbose=yes ;;
1312 -version | --version | --versio | --versi | --vers | -V)
1313 ac_init_version=: ;;
1315 -with-* | --with-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=\$ac_optarg ;;
1331 -without-* | --without-*)
1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1365 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1366 Try \`$0 --help' for more information"
1369 *=*)
1370 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371 # Reject names that are not valid shell variable names.
1372 case $ac_envvar in #(
1373 '' | [0-9]* | *[!_$as_cr_alnum]* )
1374 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1375 esac
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1387 esac
1388 done
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 as_fn_error $? "missing argument to $ac_option"
1395 if test -n "$ac_unrecognized_opts"; then
1396 case $enable_option_checking in
1397 no) ;;
1398 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1399 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400 esac
1403 # Check all directory arguments for consistency.
1404 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1405 datadir sysconfdir sharedstatedir localstatedir includedir \
1406 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1407 libdir localedir mandir
1409 eval ac_val=\$$ac_var
1410 # Remove trailing slashes.
1411 case $ac_val in
1412 */ )
1413 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1414 eval $ac_var=\$ac_val;;
1415 esac
1416 # Be sure to have absolute directory names.
1417 case $ac_val in
1418 [\\/$]* | ?:[\\/]* ) continue;;
1419 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420 esac
1421 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1422 done
1424 # There might be people who depend on the old broken behavior: `$host'
1425 # used to hold the argument of --host etc.
1426 # FIXME: To remove some day.
1427 build=$build_alias
1428 host=$host_alias
1429 target=$target_alias
1431 # FIXME: To remove some day.
1432 if test "x$host_alias" != x; then
1433 if test "x$build_alias" = x; then
1434 cross_compiling=maybe
1435 elif test "x$build_alias" != "x$host_alias"; then
1436 cross_compiling=yes
1440 ac_tool_prefix=
1441 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443 test "$silent" = yes && exec 6>/dev/null
1446 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di=`ls -di .` &&
1448 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449 as_fn_error $? "working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 as_fn_error $? "pwd does not report name of working directory"
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456 ac_srcdir_defaulted=yes
1457 # Try the directory containing this script, then the parent directory.
1458 ac_confdir=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460 X"$as_myself" : 'X\(//\)[^/]' \| \
1461 X"$as_myself" : 'X\(//\)$' \| \
1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 s//\1/
1468 /^X\(\/\/\)[^/].*/{
1469 s//\1/
1472 /^X\(\/\/\)$/{
1473 s//\1/
1476 /^X\(\/\).*/{
1477 s//\1/
1480 s/.*/./; q'`
1481 srcdir=$ac_confdir
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 srcdir=..
1485 else
1486 ac_srcdir_defaulted=no
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1492 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 ac_abs_confdir=`(
1494 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1495 pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498 srcdir=.
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1519 cat <<_ACEOF
1520 \`configure' configures this package to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1529 Configuration:
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking ...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1544 [PREFIX]
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1573 _ACEOF
1575 cat <<\_ACEOF
1577 X features:
1578 --x-includes=DIR X include files are in DIR
1579 --x-libraries=DIR X library files are in DIR
1581 System types:
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 _ACEOF
1587 if test -n "$ac_init_help"; then
1589 cat <<\_ACEOF
1591 Optional Features:
1592 --disable-option-checking ignore unrecognized --enable/--with options
1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1595 --disable-libpng-config disable libpng-config test and configuration
1596 --enable-lto=yes|no Enable link time optimizations if the target
1597 compiler supports them (default=no)
1598 --enable-coverage=yes|no
1599 Enable coverage instrumentation if the target
1600 compiler supports it (default=no)
1601 --enable-build-type=TYPE
1602 Select the build type. Available types are:
1603 personal, nightly, snapshot, milestone, release. Do
1604 NOT use this option unless you know what you are
1605 doing! (default=personal)
1606 --enable-debug=list Enable different types of debug. Commas or
1607 whitespaces can be used to separate the items in the
1608 list. Available types of debug are: all, none,
1609 messages, stack, mungwall, modules, symbols. If no
1610 list is provided then "all" is assumed.
1611 (default=none)
1612 --enable-distcc Use distcc as a front end to the compiler
1613 (default=no).
1614 --enable-ccache Use ccache as a front end to the compiler
1615 (default=no).
1616 --enable-target-variant=NAME
1617 Enable a specific target variant (default=none)
1618 --enable-amigaos-compliance=VERSION
1619 Enforce userspace AmigaOS compliance to a specific
1620 KickStart version (default=none).
1621 --disable-crosstools Do not build cross-compiler toolchain
1622 --enable-objc Enable Objectve-C support (default=no)
1623 --enable-java Enable Java support (default=no)
1624 --enable-includes=dir Alternative system include directory
1625 --enable-palm-debug-hack
1626 Enable palm debug output hack in palm native
1627 (default=no)
1628 --enable-usb30-code Enable usb3.0 code (default=no)
1629 --enable-nesting-supervisor
1630 Enable nesting supervisor support in unix
1631 (default=no)
1632 --disable-mmu Disable MMU support (default=enabled)
1633 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1634 --enable-x11-shm use X11 shared memory (default=auto)
1635 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1636 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1637 --disable-sdltest Do not try to compile and run a test SDL program
1638 --enable-dbus Enable DBUS support via dbus.library (default=no)
1640 Optional Packages:
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-c-compiler=VERSION
1644 Use specified c compiler for building AROS
1645 --with-cxx-compiler=VERSION
1646 Use specified c++ compiler building AROS
1647 --with-toolchain=family Which toolchain family to crosscompile with
1648 (defaults to gnu)
1649 --with-kernel-gcc-version=VERSION
1650 Use gcc-VERSION for building bootstrap
1651 --with-optimization=FLAGS
1652 Use optimization flags FLAGS (e.g
1653 --with-optimization=-O2).
1654 --with-paranoia=(yes|no|FLAGS)
1655 Specific compiler warning FLAGS to enable for
1656 paranoia builds (default=-Wall -Werror)
1657 --with-xcode=PATH Specify XCode path for iOS targets
1658 (default=/Developer).
1659 --with-sdk-version=VERSION
1660 Use iOS SDK version VERSION (default=4.1).
1661 --with-sdk=PATH Specify Android SDK path
1662 (default=$default_android_sdk).
1663 --with-ndk=PATH Specify Android NDK path (default=none).
1664 --with-sdk-version=LEVEL
1665 Use Android SDK for API LEVEL (default=12).
1666 --with-ndk-version=LEVEL
1667 Use Android NDK for API LEVEL (default=9).
1668 --with-apk-version=(release|debug)
1669 Which version of AROSBootstrap.apk to compile.
1670 Release version needs key for signing, debug version
1671 will only run in emulator. (default=release)
1672 --with-kernel-toolchain-prefix=...
1673 Specify crosscompile toolchain prefix for kernel
1674 objects
1675 --with-elf-toolchain-prefix=...
1676 Specify crosscompile toolchain prefix to wrap for
1677 AROS objects
1678 --with-aros-toolchain=PREFIX
1679 Specify prebuilt AROS toolchain. Use yes for default
1680 name
1681 --with-aros-toolchain-install=DIR
1682 Where to install or search for cross tools binaries
1683 --with-binutils-version=VERSION
1684 Use binutils-VERSION for building AROS
1685 --with-gcc-version=VERSION
1686 Compile gcc-VERSION for AROS
1687 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1688 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1689 --with-float=<spec> Specify floating point ABI
1690 (default=$gcc_default_float_abi).
1691 --with-portssources=DIR Where to download sourcecode for external ports
1692 --with-bootloader=NAME Use a specific bootloader
1693 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1694 --with-theme=NAME Use a specific GUI Theme
1695 --with-resolution=XRESxYRESxDEPTH
1696 Default resolution of the initial WorkbenchScreen
1697 --with-serial-debug Enable serial debug output in native (default=no)
1698 --with-x use the X Window System
1699 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1700 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1702 Some influential environment variables:
1703 CXX C++ compiler command
1704 CXXFLAGS C++ compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CC C compiler command
1711 CFLAGS C compiler flags
1712 CPP C preprocessor
1713 PYTHON the Python interpreter
1714 XMKMF Path to xmkmf, Makefile generator for X Window System
1716 Use these variables to override the choices made by `configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1720 _ACEOF
1721 ac_status=$?
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 continue
1730 ac_builddir=.
1732 case "$ac_dir" in
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1741 esac ;;
1742 esac
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1748 case $srcdir in
1749 .) # We are building in place.
1750 ac_srcdir=.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1757 *) # Relative name.
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 esac
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1772 else
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 fi || ac_status=$?
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1776 done
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1781 cat <<\_ACEOF
1782 configure
1783 generated by GNU Autoconf 2.69
1785 Copyright (C) 2012 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1788 _ACEOF
1789 exit
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_cpp
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=\$ac_header_compiler"
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_mongrel
2042 # ac_fn_c_try_run LINENO
2043 # ----------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2046 ac_fn_c_try_run ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_link"
2050 case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060 { { case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_try") 2>&5
2067 ac_status=$?
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: program exited with status $ac_status" >&5
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=$ac_status
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_c_try_run
2084 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2085 # -------------------------------------------------------
2086 # Tests whether HEADER exists and can be compiled using the include files in
2087 # INCLUDES, setting the cache variable VAR accordingly.
2088 ac_fn_c_check_header_compile ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_header_compile
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static $2 ac_aggr;
2134 if (ac_aggr.$3)
2135 return 0;
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static $2 ac_aggr;
2150 if (sizeof ac_aggr.$3)
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158 else
2159 eval "$4=no"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 eval ac_res=\$$4
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_member
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2173 # ---------------------------------------------
2174 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2175 # accordingly.
2176 ac_fn_c_check_decl ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 as_decl_name=`echo $2|sed 's/ *(.*//'`
2180 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2182 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 #ifndef $as_decl_name
2193 #ifdef __cplusplus
2194 (void) $as_decl_use;
2195 #else
2196 (void) $as_decl_name;
2197 #endif
2198 #endif
2201 return 0;
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 eval "$3=yes"
2206 else
2207 eval "$3=no"
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 } # ac_fn_c_check_decl
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=no"
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof ($2))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 if (sizeof (($2)))
2251 return 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2258 else
2259 eval "$3=yes"
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_check_func LINENO FUNC VAR
2273 # ----------------------------------
2274 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2275 ac_fn_c_check_func ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2287 #define $2 innocuous_$2
2289 /* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $2 (); below.
2291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2292 <limits.h> exists even on freestanding compilers. */
2294 #ifdef __STDC__
2295 # include <limits.h>
2296 #else
2297 # include <assert.h>
2298 #endif
2300 #undef $2
2302 /* Override any GCC internal prototype to avoid an error.
2303 Use char because int might match the return type of a GCC
2304 builtin and then its argument prototype would still apply. */
2305 #ifdef __cplusplus
2306 extern "C"
2307 #endif
2308 char $2 ();
2309 /* The GNU C library defines this for functions which it implements
2310 to always fail with ENOSYS. Some functions are actually named
2311 something starting with __ and the normal name is an alias. */
2312 #if defined __stub_$2 || defined __stub___$2
2313 choke me
2314 #endif
2317 main ()
2319 return $2 ();
2321 return 0;
2323 _ACEOF
2324 if ac_fn_c_try_link "$LINENO"; then :
2325 eval "$3=yes"
2326 else
2327 eval "$3=no"
2329 rm -f core conftest.err conftest.$ac_objext \
2330 conftest$ac_exeext conftest.$ac_ext
2332 eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_func
2338 cat >config.log <<_ACEOF
2339 This file contains any messages produced by compilers while
2340 running configure, to aid debugging if configure makes a mistake.
2342 It was created by $as_me, which was
2343 generated by GNU Autoconf 2.69. Invocation command line was
2345 $ $0 $@
2347 _ACEOF
2348 exec 5>>config.log
2350 cat <<_ASUNAME
2351 ## --------- ##
2352 ## Platform. ##
2353 ## --------- ##
2355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2362 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2364 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2365 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2367 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2368 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2369 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2370 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2372 _ASUNAME
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 $as_echo "PATH: $as_dir"
2380 done
2381 IFS=$as_save_IFS
2383 } >&5
2385 cat >&5 <<_ACEOF
2388 ## ----------- ##
2389 ## Core tests. ##
2390 ## ----------- ##
2392 _ACEOF
2395 # Keep a trace of the command line.
2396 # Strip out --no-create and --no-recursion so they do not pile up.
2397 # Strip out --silent because we don't want to record it for future runs.
2398 # Also quote any args containing shell meta-characters.
2399 # Make two passes to allow for proper duplicate-argument suppression.
2400 ac_configure_args=
2401 ac_configure_args0=
2402 ac_configure_args1=
2403 ac_must_keep_next=false
2404 for ac_pass in 1 2
2406 for ac_arg
2408 case $ac_arg in
2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2411 | -silent | --silent | --silen | --sile | --sil)
2412 continue ;;
2413 *\'*)
2414 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 esac
2416 case $ac_pass in
2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419 as_fn_append ac_configure_args1 " '$ac_arg'"
2420 if test $ac_must_keep_next = true; then
2421 ac_must_keep_next=false # Got value, back to normal.
2422 else
2423 case $ac_arg in
2424 *=* | --config-cache | -C | -disable-* | --disable-* \
2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2427 | -with-* | --with-* | -without-* | --without-* | --x)
2428 case "$ac_configure_args0 " in
2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2430 esac
2432 -* ) ac_must_keep_next=true ;;
2433 esac
2435 as_fn_append ac_configure_args " '$ac_arg'"
2437 esac
2438 done
2439 done
2440 { ac_configure_args0=; unset ac_configure_args0;}
2441 { ac_configure_args1=; unset ac_configure_args1;}
2443 # When interrupted or exit'd, cleanup temporary files, and complete
2444 # config.log. We remove comments because anyway the quotes in there
2445 # would cause problems or look ugly.
2446 # WARNING: Use '\'' to represent an apostrophe within the trap.
2447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2448 trap 'exit_status=$?
2449 # Save into config.log some information that might help in debugging.
2451 echo
2453 $as_echo "## ---------------- ##
2454 ## Cache variables. ##
2455 ## ---------------- ##"
2456 echo
2457 # The following way of writing the cache mishandles newlines in values,
2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in #(
2462 *${as_nl}*)
2463 case $ac_var in #(
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2466 esac
2467 case $ac_var in #(
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2471 esac ;;
2472 esac
2473 done
2474 (set) 2>&1 |
2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2477 sed -n \
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2480 ;; #(
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484 esac |
2485 sort
2487 echo
2489 $as_echo "## ----------------- ##
2490 ## Output variables. ##
2491 ## ----------------- ##"
2492 echo
2493 for ac_var in $ac_subst_vars
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2503 if test -n "$ac_subst_files"; then
2504 $as_echo "## ------------------- ##
2505 ## File substitutions. ##
2506 ## ------------------- ##"
2507 echo
2508 for ac_var in $ac_subst_files
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2519 if test -s confdefs.h; then
2520 $as_echo "## ----------- ##
2521 ## confdefs.h. ##
2522 ## ----------- ##"
2523 echo
2524 cat confdefs.h
2525 echo
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2530 } >&5
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2533 exit $exit_status
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 done
2538 ac_signal=0
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2543 $as_echo "/* confdefs.h */" > confdefs.h
2545 # Predefined preprocessor variables.
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2557 _ACEOF
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2561 _ACEOF
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2569 _ACEOF
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2574 ac_site_file1=NONE
2575 ac_site_file2=NONE
2576 if test -n "$CONFIG_SITE"; then
2577 # We do not want a PATH search for config.site.
2578 case $CONFIG_SITE in #((
2579 -*) ac_site_file1=./$CONFIG_SITE;;
2580 */*) ac_site_file1=$CONFIG_SITE;;
2581 *) ac_site_file1=./$CONFIG_SITE;;
2582 esac
2583 elif test "x$prefix" != xNONE; then
2584 ac_site_file1=$prefix/share/config.site
2585 ac_site_file2=$prefix/etc/config.site
2586 else
2587 ac_site_file1=$ac_default_prefix/share/config.site
2588 ac_site_file2=$ac_default_prefix/etc/config.site
2590 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 test "x$ac_site_file" = xNONE && continue
2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2595 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2596 sed 's/^/| /' "$ac_site_file" >&5
2597 . "$ac_site_file" \
2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 as_fn_error $? "failed to load site script $ac_site_file
2601 See \`config.log' for more details" "$LINENO" 5; }
2603 done
2605 if test -r "$cache_file"; then
2606 # Some versions of bash will fail to source /dev/null (special files
2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2610 $as_echo "$as_me: loading cache $cache_file" >&6;}
2611 case $cache_file in
2612 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2613 *) . "./$cache_file";;
2614 esac
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2618 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 >$cache_file
2622 as_fn_append ac_header_list " stdlib.h"
2623 as_fn_append ac_header_list " unistd.h"
2624 as_fn_append ac_header_list " sys/param.h"
2625 # Check that the precious variables saved in the cache have kept the same
2626 # value.
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2634 set,)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2638 ,set)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2642 ,);;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2661 fi;;
2662 esac
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2665 case $ac_new_val in
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2668 esac
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2672 esac
2674 done
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 ac_aux_dir=
2695 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2696 if test -f "$ac_dir/install-sh"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/install-sh -c"
2699 break
2700 elif test -f "$ac_dir/install.sh"; then
2701 ac_aux_dir=$ac_dir
2702 ac_install_sh="$ac_aux_dir/install.sh -c"
2703 break
2704 elif test -f "$ac_dir/shtool"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/shtool install -c"
2707 break
2709 done
2710 if test -z "$ac_aux_dir"; then
2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2714 # These three variables are undocumented and unsupported,
2715 # and are intended to be withdrawn in a future Autoconf release.
2716 # They can cause serious problems if a builder's source tree is in a directory
2717 # whose full name contains unusual characters.
2718 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2719 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2720 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2724 # Check what host we are running on.
2725 # If a target is not suggested, we use this one.
2726 # Note that what we call a target, Autoconf calls a host.
2727 # Make sure we can run config.sub.
2728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2729 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2732 $as_echo_n "checking build system type... " >&6; }
2733 if ${ac_cv_build+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 ac_build_alias=$build_alias
2737 test "x$ac_build_alias" = x &&
2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2739 test "x$ac_build_alias" = x &&
2740 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2746 $as_echo "$ac_cv_build" >&6; }
2747 case $ac_cv_build in
2748 *-*-*) ;;
2749 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2750 esac
2751 build=$ac_cv_build
2752 ac_save_IFS=$IFS; IFS='-'
2753 set x $ac_cv_build
2754 shift
2755 build_cpu=$1
2756 build_vendor=$2
2757 shift; shift
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2760 build_os=$*
2761 IFS=$ac_save_IFS
2762 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2766 $as_echo_n "checking host system type... " >&6; }
2767 if ${ac_cv_host+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test "x$host_alias" = x; then
2771 ac_cv_host=$ac_cv_build
2772 else
2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2780 case $ac_cv_host in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2783 esac
2784 host=$ac_cv_host
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_host
2787 shift
2788 host_cpu=$1
2789 host_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 host_os=$*
2794 IFS=$ac_save_IFS
2795 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 # Default versions for the gnu tools we build
2800 default_gcc_version="4.6.4"
2801 default_binutils_version="2.23.2"
2802 default_grub2_version="2.02"
2803 target_grub2_version=$default_grub2_version
2805 # The AROS target is slightly different to the normal GNU style
2806 # format. We don't have the middle part, and we reverse the order
2807 # of the $(CPU) and $(OS) bits.
2809 # Don't strip the version of the target yet, it might be
2810 # useful on some systems.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2813 $as_echo_n "checking for AROS style target... " >&6; }
2815 if test "$target" = "NONE" ; then
2816 target=$host_os-$host_cpu
2817 else
2818 if test "$target" = "" ; then
2819 target=$host_os-$host_cpu
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2823 $as_echo "$target" >&6; }
2825 if test "$host_os" = "mingw32" ; then
2826 PWDCMD="pwd -W"
2829 # Don't know where else to put this...
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2831 $as_echo_n "checking building AROS in... " >&6; }
2832 AROS_BUILDDIR=`${PWDCMD-pwd}`
2833 AROS_BUILDDIR_UNIX=${PWD}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2835 $as_echo "$AROS_BUILDDIR" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2838 $as_echo_n "checking AROS source in... " >&6; }
2839 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2840 SRCDIR=${srcpwd}
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2842 $as_echo "$SRCDIR" >&6; }
2844 # Parse the target field into something useful.
2846 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2847 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2850 # Some debug output, to be removed again.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2852 $as_echo_n "checking for target system (debug output)... " >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2854 $as_echo "$target_os" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2856 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2858 $as_echo "$target_cpu" >&6; }
2860 aros_nominal_width=800
2861 aros_nominal_height=600
2862 aros_nominal_depth=4
2865 default_c_compilers="gcc clang cc"
2867 # Check whether --with-c-compiler was given.
2868 if test "${with_c_compiler+set}" = set; then :
2869 withval=$with_c_compiler; use_c_compiler="$withval"
2870 else
2871 use_c_compiler=""
2874 if test "$use_c_compiler" = ""; then
2875 host_c_compilers="$default_c_compilers"
2876 else
2877 host_c_compilers="$use_c_compiler"
2880 default_cxx_compilers="g++ clang++ c++"
2882 # Check whether --with-cxx-compiler was given.
2883 if test "${with_cxx_compiler+set}" = set; then :
2884 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2885 else
2886 use_cxx_compiler=""
2889 if test "$use_cxx_compiler" = ""; then
2890 host_cxx_compilers="$default_cxx_compilers"
2891 else
2892 host_cxx_compilers="$use_cxx_compiler"
2896 # The first step is to find the host binaries.
2897 # Check for a compiler.
2898 # Due to a bug in autoconf check for c++ compiler first.
2899 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2900 ac_ext=cpp
2901 ac_cpp='$CXXCPP $CPPFLAGS'
2902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2905 if test -z "$CXX"; then
2906 if test -n "$CCC"; then
2907 CXX=$CCC
2908 else
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in ${host_cxx_compilers}
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CXX+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CXX"; then
2920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2939 CXX=$ac_cv_prog_CXX
2940 if test -n "$CXX"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2942 $as_echo "$CXX" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$CXX" && break
2950 done
2952 if test -z "$CXX"; then
2953 ac_ct_CXX=$CXX
2954 for ac_prog in ${host_cxx_compilers}
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$ac_ct_CXX"; then
2964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_CXX="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2977 done
2978 done
2979 IFS=$as_save_IFS
2983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2984 if test -n "$ac_ct_CXX"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2986 $as_echo "$ac_ct_CXX" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$ac_ct_CXX" && break
2994 done
2996 if test "x$ac_ct_CXX" = x; then
2997 CXX="g++"
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CXX=$ac_ct_CXX
3011 # Provide some information about the compiler.
3012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3013 set X $ac_compile
3014 ac_compiler=$2
3015 for ac_option in --version -v -V -qversion; do
3016 { { ac_try="$ac_compiler $ac_option >&5"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3024 ac_status=$?
3025 if test -s conftest.err; then
3026 sed '10a\
3027 ... rest of stderr output deleted ...
3028 10q' conftest.err >conftest.er1
3029 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 done
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 ac_clean_files_save=$ac_clean_files
3048 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3049 # Try to create an executable without -o first, disregard a.out.
3050 # It will help us diagnose broken compilers, and finding out an intuition
3051 # of exeext.
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3053 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3054 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056 # The possible output files:
3057 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3059 ac_rmfiles=
3060 for ac_file in $ac_files
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3065 esac
3066 done
3067 rm -f $ac_rmfiles
3069 if { { ac_try="$ac_link_default"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3081 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3083 # so that the user can short-circuit this test for compilers unknown to
3084 # Autoconf.
3085 for ac_file in $ac_files ''
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3091 [ab].out )
3092 # We found the default executable, but exeext='' is most
3093 # certainly right.
3094 break;;
3095 *.* )
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3097 then :; else
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3104 # actually working.
3105 break;;
3107 break;;
3108 esac
3109 done
3110 test "$ac_cv_exeext" = no && ac_cv_exeext=
3112 else
3113 ac_file=''
3115 if test -z "$ac_file"; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 $as_echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error 77 "C++ compiler cannot create executables
3124 See \`config.log' for more details" "$LINENO" 5; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3130 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3132 $as_echo "$ac_file" >&6; }
3133 ac_exeext=$ac_cv_exeext
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3138 $as_echo_n "checking for suffix of executables... " >&6; }
3139 if { { ac_try="$ac_link"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3152 # work properly (i.e., refer to `conftest.exe'), while it won't with
3153 # `rm'.
3154 for ac_file in conftest.exe conftest conftest.*; do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159 break;;
3160 * ) break;;
3161 esac
3162 done
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 rm -f conftest conftest$ac_cv_exeext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3171 $as_echo "$ac_cv_exeext" >&6; }
3173 rm -f conftest.$ac_ext
3174 EXEEXT=$ac_cv_exeext
3175 ac_exeext=$EXEEXT
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <stdio.h>
3180 main ()
3182 FILE *f = fopen ("conftest.out", "w");
3183 return ferror (f) || fclose (f) != 0;
3186 return 0;
3188 _ACEOF
3189 ac_clean_files="$ac_clean_files conftest.out"
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3193 $as_echo_n "checking whether we are cross compiling... " >&6; }
3194 if test "$cross_compiling" != yes; then
3195 { { ac_try="$ac_link"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 if { ac_try='./conftest$ac_cv_exeext'
3207 { { case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; }; then
3217 cross_compiling=no
3218 else
3219 if test "$cross_compiling" = maybe; then
3220 cross_compiling=yes
3221 else
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot run C++ compiled programs.
3225 If you meant to cross compile, use \`--host'.
3226 See \`config.log' for more details" "$LINENO" 5; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3233 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3234 ac_clean_files=$ac_clean_files_save
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if ${ac_cv_objext+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3285 ac_objext=$OBJEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3288 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 if ac_fn_cxx_try_compile "$LINENO"; then :
3306 ac_compiler_gnu=yes
3307 else
3308 ac_compiler_gnu=no
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3317 GXX=yes
3318 else
3319 GXX=
3321 ac_test_CXXFLAGS=${CXXFLAGS+set}
3322 ac_save_CXXFLAGS=$CXXFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3325 if ${ac_cv_prog_cxx_g+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3329 ac_cxx_werror_flag=yes
3330 ac_cv_prog_cxx_g=no
3331 CXXFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 ac_cv_prog_cxx_g=yes
3345 else
3346 CXXFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3360 else
3361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3362 CXXFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 if ac_fn_cxx_try_compile "$LINENO"; then :
3375 ac_cv_prog_cxx_g=yes
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387 CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389 if test "$GXX" = yes; then
3390 CXXFLAGS="-g -O2"
3391 else
3392 CXXFLAGS="-g"
3394 else
3395 if test "$GXX" = yes; then
3396 CXXFLAGS="-O2"
3397 else
3398 CXXFLAGS=
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 for ac_prog in ${host_c_compilers}
3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3452 test -n "$CC" && break
3453 done
3455 if test -z "$CC"; then
3456 ac_ct_CC=$CC
3457 for ac_prog in ${host_c_compilers}
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_CC="$ac_prog"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 test -n "$ac_ct_CC" && break
3497 done
3499 if test "x$ac_ct_CC" = x; then
3500 CC=""
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503 yes:)
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3507 esac
3508 CC=$ac_ct_CC
3513 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "no acceptable C compiler found in \$PATH
3516 See \`config.log' for more details" "$LINENO" 5; }
3518 # Provide some information about the compiler.
3519 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3520 set X $ac_compile
3521 ac_compiler=$2
3522 for ac_option in --version -v -V -qversion; do
3523 { { ac_try="$ac_compiler $ac_option >&5"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3531 ac_status=$?
3532 if test -s conftest.err; then
3533 sed '10a\
3534 ... rest of stderr output deleted ...
3535 10q' conftest.err >conftest.er1
3536 cat conftest.er1 >&5
3538 rm -f conftest.er1 conftest.err
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }
3541 done
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3554 #ifndef __GNUC__
3555 choke me
3556 #endif
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_compiler_gnu=yes
3564 else
3565 ac_compiler_gnu=no
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3574 GCC=yes
3575 else
3576 GCC=
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3587 ac_cv_prog_cc_g=no
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3593 main ()
3597 return 0;
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602 else
3603 CFLAGS=""
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3608 main ()
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3617 else
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619 CFLAGS="-g"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3624 main ()
3628 return 0;
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_g=yes
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #include <stdarg.h>
3668 #include <stdio.h>
3669 struct stat;
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3674 char **p;
3675 int i;
3677 return p[i];
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700 #define FOO(x) 'x'
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 int argc;
3708 char **argv;
3710 main ()
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726 done
3727 rm -f conftest.$ac_ext
3728 CC=$ac_save_CC
3731 # AC_CACHE_VAL
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3736 xno)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743 esac
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 aros_host_def_cc="$CC"
3755 case $ac_cv_prog_cc_stdc in #(
3756 no) :
3757 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3758 *) :
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3760 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3761 if ${ac_cv_prog_cc_c99+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 ac_cv_prog_cc_c99=no
3765 ac_save_CC=$CC
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdarg.h>
3769 #include <stdbool.h>
3770 #include <stdlib.h>
3771 #include <wchar.h>
3772 #include <stdio.h>
3774 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3775 #define debug(...) fprintf (stderr, __VA_ARGS__)
3776 #define showlist(...) puts (#__VA_ARGS__)
3777 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3778 static void
3779 test_varargs_macros (void)
3781 int x = 1234;
3782 int y = 5678;
3783 debug ("Flag");
3784 debug ("X = %d\n", x);
3785 showlist (The first, second, and third items.);
3786 report (x>y, "x is %d but y is %d", x, y);
3789 // Check long long types.
3790 #define BIG64 18446744073709551615ull
3791 #define BIG32 4294967295ul
3792 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3793 #if !BIG_OK
3794 your preprocessor is broken;
3795 #endif
3796 #if BIG_OK
3797 #else
3798 your preprocessor is broken;
3799 #endif
3800 static long long int bignum = -9223372036854775807LL;
3801 static unsigned long long int ubignum = BIG64;
3803 struct incomplete_array
3805 int datasize;
3806 double data[];
3809 struct named_init {
3810 int number;
3811 const wchar_t *name;
3812 double average;
3815 typedef const char *ccp;
3817 static inline int
3818 test_restrict (ccp restrict text)
3820 // See if C++-style comments work.
3821 // Iterate through items via the restricted pointer.
3822 // Also check for declarations in for loops.
3823 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3824 continue;
3825 return 0;
3828 // Check varargs and va_copy.
3829 static void
3830 test_varargs (const char *format, ...)
3832 va_list args;
3833 va_start (args, format);
3834 va_list args_copy;
3835 va_copy (args_copy, args);
3837 const char *str;
3838 int number;
3839 float fnumber;
3841 while (*format)
3843 switch (*format++)
3845 case 's': // string
3846 str = va_arg (args_copy, const char *);
3847 break;
3848 case 'd': // int
3849 number = va_arg (args_copy, int);
3850 break;
3851 case 'f': // float
3852 fnumber = va_arg (args_copy, double);
3853 break;
3854 default:
3855 break;
3858 va_end (args_copy);
3859 va_end (args);
3863 main ()
3866 // Check bool.
3867 _Bool success = false;
3869 // Check restrict.
3870 if (test_restrict ("String literal") == 0)
3871 success = true;
3872 char *restrict newvar = "Another string";
3874 // Check varargs.
3875 test_varargs ("s, d' f .", "string", 65, 34.234);
3876 test_varargs_macros ();
3878 // Check flexible array members.
3879 struct incomplete_array *ia =
3880 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3881 ia->datasize = 10;
3882 for (int i = 0; i < ia->datasize; ++i)
3883 ia->data[i] = i * 1.234;
3885 // Check named initializers.
3886 struct named_init ni = {
3887 .number = 34,
3888 .name = L"Test wide string",
3889 .average = 543.34343,
3892 ni.number = 58;
3894 int dynamic_array[ni.number];
3895 dynamic_array[ni.number - 1] = 543;
3897 // work around unused variable warnings
3898 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3899 || dynamic_array[ni.number - 1] != 543);
3902 return 0;
3904 _ACEOF
3905 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c99=$ac_arg
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c99" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c99" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC="$CC $ac_cv_prog_cc_c99"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3929 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c99" != xno; then :
3932 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3936 if ${ac_cv_prog_cc_c89+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 ac_cv_prog_cc_c89=no
3940 ac_save_CC=$CC
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdarg.h>
3944 #include <stdio.h>
3945 struct stat;
3946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3947 struct buf { int x; };
3948 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3949 static char *e (p, i)
3950 char **p;
3951 int i;
3953 return p[i];
3955 static char *f (char * (*g) (char **, int), char **p, ...)
3957 char *s;
3958 va_list v;
3959 va_start (v,p);
3960 s = g (p, va_arg (v,int));
3961 va_end (v);
3962 return s;
3965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3966 function prototypes and stuff, but not '\xHH' hex character constants.
3967 These don't provoke an error unfortunately, instead are silently treated
3968 as 'x'. The following induces an error, until -std is added to get
3969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3970 array size at least. It's necessary to write '\x00'==0 to get something
3971 that's true only with -std. */
3972 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3974 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3975 inside strings and character constants. */
3976 #define FOO(x) 'x'
3977 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983 int argc;
3984 char **argv;
3986 main ()
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 return 0;
3992 _ACEOF
3993 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996 CC="$ac_save_CC $ac_arg"
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_prog_cc_c89=$ac_arg
4000 rm -f core conftest.err conftest.$ac_objext
4001 test "x$ac_cv_prog_cc_c89" != "xno" && break
4002 done
4003 rm -f conftest.$ac_ext
4004 CC=$ac_save_CC
4007 # AC_CACHE_VAL
4008 case "x$ac_cv_prog_cc_c89" in
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4011 $as_echo "none needed" >&6; } ;;
4012 xno)
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014 $as_echo "unsupported" >&6; } ;;
4016 CC="$CC $ac_cv_prog_cc_c89"
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4019 esac
4020 if test "x$ac_cv_prog_cc_c89" != xno; then :
4021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4022 else
4023 ac_cv_prog_cc_stdc=no
4028 esac
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4030 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4031 if ${ac_cv_prog_cc_stdc+:} false; then :
4032 $as_echo_n "(cached) " >&6
4035 case $ac_cv_prog_cc_stdc in #(
4036 no) :
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 $as_echo "unsupported" >&6; } ;; #(
4039 '') :
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;; #(
4042 *) :
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4044 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4045 esac
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4056 CPP=
4058 if test -z "$CPP"; then
4059 if ${ac_cv_prog_CPP+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 # Double quotes because CPP needs to be expanded
4063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081 Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4085 else
4086 # Broken: fails on valid input.
4087 continue
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4099 continue
4100 else
4101 # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111 break
4114 done
4115 ac_cv_prog_CPP=$CPP
4118 CPP=$ac_cv_prog_CPP
4119 else
4120 ac_cv_prog_CPP=$CPP
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4123 $as_echo "$CPP" >&6; }
4124 ac_preproc_ok=false
4125 for ac_c_preproc_warn_flag in '' yes
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140 Syntax error
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4144 else
4145 # Broken: fails on valid input.
4146 continue
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157 # Broken: success on invalid input.
4158 continue
4159 else
4160 # Passes both tests.
4161 ac_preproc_ok=:
4162 break
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then :
4171 else
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details" "$LINENO" 5; }
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 # Check for a compatible awk
4186 for ac_prog in gawk nawk
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_AWK+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$AWK"; then
4196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_AWK="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 AWK=$ac_cv_prog_AWK
4216 if test -n "$AWK"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4218 $as_echo "$AWK" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$AWK" && break
4226 done
4228 req_avail=yes
4229 if test "$AWK" = ""; then
4230 req_avail=no
4232 if test "$AWK" = "no"; then
4233 req_avail=no
4235 if test "$req_avail" = "no"; then
4236 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4238 # Extract the first word of "mmake", so it can be a program name with args.
4239 set dummy mmake; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_MMAKE+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$MMAKE"; then
4246 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_MMAKE="mmake "
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 MMAKE=$ac_cv_prog_MMAKE
4266 if test -n "$MMAKE"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4268 $as_echo "$MMAKE" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4276 # Perform some default variable assignments. Note all of these will be
4277 # Regenerated from the script, so there is no need to cache them.
4279 aros_build_host=$host
4280 aros_host_cpp="$CPP"
4281 aros_host_cc="$CC"
4282 aros_host_cxx="$CXX"
4283 if test "$GCC" = "yes"; then
4284 aros_gcc_ld=`$CC -print-prog-name=ld`
4285 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4286 set dummy `basename $aros_gcc_ld`; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_path_aros_host_ld+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 case $aros_host_ld in
4293 [\\/]* | ?:[\\/]*)
4294 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in `dirname $aros_gcc_ld`
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4313 esac
4315 aros_host_ld=$ac_cv_path_aros_host_ld
4316 if test -n "$aros_host_ld"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4318 $as_echo "$aros_host_ld" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test "$aros_host_ld" = ""; then
4327 # Extract the first word of "ld", so it can be a program name with args.
4328 set dummy ld; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_path_aros_host_ld+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 case $aros_host_ld in
4335 [\\/]* | ?:[\\/]*)
4336 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4355 esac
4357 aros_host_ld=$ac_cv_path_aros_host_ld
4358 if test -n "$aros_host_ld"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4360 $as_echo "$aros_host_ld" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 req_avail=yes
4369 if test "$aros_host_ld" = ""; then
4370 req_avail=no
4372 if test "$aros_host_ld" = "no"; then
4373 req_avail=no
4375 if test "$req_avail" = "no"; then
4376 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4378 aros_host_make="make"
4379 aros_host_cflags="$CFLAGS"
4380 aros_host_cxxflags="$CXXFLAGS"
4381 aros_host_cppflags="$CPPFLAGS"
4382 aros_host_ldflags="$LDFLAGS"
4383 aros_host_debug="-g -O0"
4384 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4385 aros_host_mkargs="--no-print-directory"
4386 aros_host_exe_suffix="$EXEEXT"
4387 aros_host_lib_suffix=""
4389 # Ignore all compliance, AROS ROMs = 0
4390 # KickStart v1.0 = 30
4391 # KickStart v1.3 = 34
4392 # KickStart v2.0 = 37
4393 # KickStart v3.0 = 39
4394 # KickStart v3.1 = 40
4395 # AmigaOS v3.5 = 44
4396 aros_amigaos_compliance=0
4398 for ac_prog in aclocal aclocal19 aclocal-1.9
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$aros_host_aclocal"; then
4408 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_aros_host_aclocal="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4428 if test -n "$aros_host_aclocal"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4430 $as_echo "$aros_host_aclocal" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$aros_host_aclocal" && break
4438 done
4440 for ac_prog in autoconf autoconf259 autoconf253
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$aros_host_autoconf"; then
4450 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_aros_host_autoconf="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4470 if test -n "$aros_host_autoconf"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4472 $as_echo "$aros_host_autoconf" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$aros_host_autoconf" && break
4480 done
4482 for ac_prog in autoheader autoheader259 autoheader253
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$aros_host_autoheader"; then
4492 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_aros_host_autoheader="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4512 if test -n "$aros_host_autoheader"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4514 $as_echo "$aros_host_autoheader" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 test -n "$aros_host_autoheader" && break
4522 done
4524 for ac_prog in automake automake19 automake-1.9
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_aros_host_automake+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$aros_host_automake"; then
4534 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_aros_host_automake="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 aros_host_automake=$ac_cv_prog_aros_host_automake
4554 if test -n "$aros_host_automake"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4556 $as_echo "$aros_host_automake" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$aros_host_automake" && break
4564 done
4567 req_avail=yes
4568 if test "$aros_host_aclocal" = ""; then
4569 req_avail=no
4571 if test "$aros_host_aclocal" = "no"; then
4572 req_avail=no
4574 if test "$req_avail" = "no"; then
4575 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4577 req_avail=yes
4578 if test "$aros_host_automake" = ""; then
4579 req_avail=no
4581 if test "$aros_host_automake" = "no"; then
4582 req_avail=no
4584 if test "$req_avail" = "no"; then
4585 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4588 case "$aros_host_cc" in
4589 *clang*)
4590 aros_host_cc_pipe=""
4592 *gcc*)
4593 aros_host_cc_pipe="-pipe"
4595 icc)
4596 aros_host_cc_pipe=""
4599 aros_host_cc_pipe=""
4601 esac
4603 aros_kernel_cc_includes=""
4604 aros_target_cc_includes=""
4605 host_cc_elf=yes
4607 # ----------------------------------------------------------------------------------------
4608 # Host-specific defaults
4610 # This is the main host configuration section. It is where the host
4611 # can change the values of any variables it needs to change. We do
4612 # not look at anything that compiles to the target yet, we'll get
4613 # to that later.
4615 case "$host_os" in
4616 aros*)
4617 aros_host_arch="aros"
4618 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4619 case "$host_cpu" in
4620 *i?86*)
4621 aros_host_cpu="i386"
4623 *x86_64*)
4624 aros_host_cpu="x86_64"
4626 *powerpc*)
4627 aros_host_cpu="ppc"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4631 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4632 aros_host_cpu="$host_cpu"
4634 esac
4637 linux*)
4638 aros_host_arch="linux"
4639 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4640 android_build_os="linux-x86"
4641 android_tool="android"
4642 default_android_sdk="/opt/android-sdk-linux_x86"
4643 case "$host_cpu" in
4644 *i?86*)
4645 aros_host_cpu="i386"
4647 *x86_64*)
4648 aros_host_cpu="x86_64"
4650 *m68k*)
4651 aros_host_cpu="m68k"
4653 *powerpc*)
4654 aros_host_cpu="ppc"
4656 *arm*)
4657 aros_host_cpu="arm"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4661 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4662 aros_host_cpu="$host_cpu"
4664 esac
4667 freebsd*)
4668 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4669 aros_host_make="gmake"
4670 aros_host_arch="freebsd"
4671 aros_host_cpu="i386"
4673 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4675 case $host_os in
4676 freebsd[234]*)
4677 aros_object_format="elf_i386"
4681 aros_object_format="elf_i386_fbsd"
4683 esac
4687 darwin*)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4689 $as_echo_n "checking for macOS SDK files... " >&6; }
4690 LOC=$( xcode-select -p )
4691 if test $? != 0; then :
4692 as_fn_error $? "XCode incorrectly configured!
4693 please run 'xcode-select --install' before
4694 re-running configure" "$LINENO" 5
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4697 $as_echo "$LOC" >&6; }
4698 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4699 aros_host_arch="darwin"
4700 host_cc_elf=no
4701 if [ -z ${SED+x} ]; then SED="gsed"; fi
4702 android_build_os="darwin-x86"
4703 android_tool="android"
4704 default_android_sdk="/android-sdk-mac_x86"
4705 case "$host_cpu" in
4706 *i?86*)
4707 aros_host_cpu="i386"
4709 *x86_64*)
4710 aros_host_cpu="x86_64"
4712 *powerpc*)
4713 aros_host_cpu="ppc"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4717 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4718 aros_host_cpu="$host_cpu"
4720 esac
4722 aros_host_ldflags="$aros_host_ldflags -liconv"
4726 dragonfly*)
4727 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4728 aros_host_make="gmake"
4729 aros_host_arch="dragonfly"
4730 case $host_cpu in
4731 *i?86*)
4732 aros_host_cpu="i386"
4734 *amd64*)
4735 aros_host_cpu="x86_64"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4739 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4740 aros_host_cpu="$host_cpu"
4742 esac
4745 netbsd*)
4746 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4747 aros_host_make="gmake"
4748 aros_host_arch="netbsd"
4749 case "$host_cpu" in
4750 *i?86*)
4751 aros_host_cpu="i386"
4753 *m68k*)
4754 aros_host_cpu="m68k"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4758 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4759 aros_host_cpu="$host_cpu"
4761 esac
4762 aros_host_lib_suffix=".0.0"
4765 openbsd*)
4766 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4767 aros_host_make="gmake"
4768 aros_host_arch="openbsd"
4769 case "$host_cpu" in
4770 *i?86*)
4771 aros_host_cpu="i386"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4775 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4776 aros_host_cpu="$host_cpu"
4778 esac
4781 solaris*)
4782 aros_host_arch="solaris"
4783 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4784 case "$host_cpu" in
4785 *i?86*)
4786 aros_host_cpu="i386"
4788 *sparc*)
4789 aros_host_cpu="sparc"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4793 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4794 aros_host_cpu="$host_cpu"
4796 esac
4799 morphos*)
4800 aros_host_arch="morphos"
4801 aros_host_cpu="ppc"
4802 host_cc_elf=no
4805 amiga*)
4806 aros_host_arch="amiga"
4807 host_cc_elf=no
4808 SORT="/gg/bin/sort"
4809 TEST="/gg/bin/test"
4810 UNIQ="/gg/bin/uniq"
4811 FOR="for"
4812 TOUCH="/gg/bin/touch"
4813 case "$host_cpu" in
4814 *m68k*)
4815 aros_host_cpu="m68k"
4817 *powerpc*)
4818 aros_host_cpu="ppc"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4822 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4823 aros_host_cpu="$host_cpu"
4825 esac
4828 cygwin*)
4829 aros_host_arch="cygwin"
4830 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4831 host_cc_elf=no
4832 android_build_os="windows"
4833 android_tool="android.bat"
4834 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4836 case "$host_cpu" in
4837 *i?86*)
4838 aros_host_cpu="i386"
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 mingw32*)
4849 aros_host_arch="mingw32"
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="/c/android-sdk-windows-1.6_r1"
4856 libpng_libextra="-lws2_32"
4858 case "$host_cpu" in
4859 *i?86*)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4862 $as_echo_n "checking for Windows native gcc target... " >&6; }
4863 host_cpu=`gcc -dumpmachine`
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4865 $as_echo "$host_cpu" >&6; }
4868 esac
4870 case "$host_cpu" in
4871 *i?86*)
4872 aros_host_cpu="i386"
4875 mingw32*)
4876 aros_host_cpu="i386"
4879 *x86_64*)
4880 aros_host_cpu="x86_64"
4881 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4886 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4887 aros_host_cpu="$host_cpu"
4889 esac
4892 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4894 esac
4896 # Extract the first word of "ar", so it can be a program name with args.
4897 set dummy ar; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_aros_host_ar+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$aros_host_ar"; then
4904 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_aros_host_ar="ar cr"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 aros_host_ar=$ac_cv_prog_aros_host_ar
4924 if test -n "$aros_host_ar"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4926 $as_echo "$aros_host_ar" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 req_avail=yes
4934 if test "$aros_host_ar" = ""; then
4935 req_avail=no
4937 if test "$aros_host_ar" = "no"; then
4938 req_avail=no
4940 if test "$req_avail" = "no"; then
4941 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4943 # Extract the first word of "ranlib", so it can be a program name with args.
4944 set dummy ranlib; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$aros_host_ranlib"; then
4951 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_aros_host_ranlib="ranlib "
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4971 if test -n "$aros_host_ranlib"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4973 $as_echo "$aros_host_ranlib" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 req_avail=yes
4981 if test "$aros_host_ranlib" = ""; then
4982 req_avail=no
4984 if test "$aros_host_ranlib" = "no"; then
4985 req_avail=no
4987 if test "$req_avail" = "no"; then
4988 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4990 # Extract the first word of "strip", so it can be a program name with args.
4991 set dummy strip; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_aros_host_strip+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$aros_host_strip"; then
4998 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_aros_host_strip="strip "
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 aros_host_strip=$ac_cv_prog_aros_host_strip
5018 if test -n "$aros_host_strip"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5020 $as_echo "$aros_host_strip" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 req_avail=yes
5028 if test "$aros_host_strip" = ""; then
5029 req_avail=no
5031 if test "$aros_host_strip" = "no"; then
5032 req_avail=no
5034 if test "$req_avail" = "no"; then
5035 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5038 # Extract the first word of "rm", so it can be a program name with args.
5039 set dummy rm; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_RM+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$RM"; then
5046 ac_cv_prog_RM="$RM" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_RM="rm -rf"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 RM=$ac_cv_prog_RM
5066 if test -n "$RM"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5068 $as_echo "$RM" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 req_avail=yes
5076 if test "$RM" = ""; then
5077 req_avail=no
5079 if test "$RM" = "no"; then
5080 req_avail=no
5082 if test "$req_avail" = "no"; then
5083 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5085 # Extract the first word of "cp", so it can be a program name with args.
5086 set dummy cp; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$CP"; then
5093 ac_cv_prog_CP="$CP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_CP="cp "
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 CP=$ac_cv_prog_CP
5113 if test -n "$CP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5115 $as_echo "$CP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 req_avail=yes
5123 if test "$CP" = ""; then
5124 req_avail=no
5126 if test "$CP" = "no"; then
5127 req_avail=no
5129 if test "$req_avail" = "no"; then
5130 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5132 # Extract the first word of "mv", so it can be a program name with args.
5133 set dummy mv; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_MV+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$MV"; then
5140 ac_cv_prog_MV="$MV" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_MV="mv "
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 MV=$ac_cv_prog_MV
5160 if test -n "$MV"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5162 $as_echo "$MV" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5169 req_avail=yes
5170 if test "$MV" = ""; then
5171 req_avail=no
5173 if test "$MV" = "no"; then
5174 req_avail=no
5176 if test "$req_avail" = "no"; then
5177 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5179 # Extract the first word of "echo", so it can be a program name with args.
5180 set dummy echo; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ECHO+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ECHO"; then
5187 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ECHO="echo "
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 ECHO=$ac_cv_prog_ECHO
5207 if test -n "$ECHO"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5209 $as_echo "$ECHO" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5216 req_avail=yes
5217 if test "$ECHO" = ""; then
5218 req_avail=no
5220 if test "$ECHO" = "no"; then
5221 req_avail=no
5223 if test "$req_avail" = "no"; then
5224 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "mkdir", so it can be a program name with args.
5227 set dummy mkdir; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_MKDIR+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$MKDIR"; then
5234 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_MKDIR="mkdir -p"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 MKDIR=$ac_cv_prog_MKDIR
5254 if test -n "$MKDIR"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5256 $as_echo "$MKDIR" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 req_avail=yes
5264 if test "$MKDIR" = ""; then
5265 req_avail=no
5267 if test "$MKDIR" = "no"; then
5268 req_avail=no
5270 if test "$req_avail" = "no"; then
5271 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5273 # Extract the first word of "touch", so it can be a program name with args.
5274 set dummy touch; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_TOUCH+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$TOUCH"; then
5281 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_TOUCH="touch "
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 TOUCH=$ac_cv_prog_TOUCH
5301 if test -n "$TOUCH"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5303 $as_echo "$TOUCH" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5310 req_avail=yes
5311 if test "$TOUCH" = ""; then
5312 req_avail=no
5314 if test "$TOUCH" = "no"; then
5315 req_avail=no
5317 if test "$req_avail" = "no"; then
5318 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5320 # Extract the first word of "sort", so it can be a program name with args.
5321 set dummy sort; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_SORT+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$SORT"; then
5328 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_SORT="sort "
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5343 IFS=$as_save_IFS
5347 SORT=$ac_cv_prog_SORT
5348 if test -n "$SORT"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5350 $as_echo "$SORT" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 req_avail=yes
5358 if test "$SORT" = ""; then
5359 req_avail=no
5361 if test "$SORT" = "no"; then
5362 req_avail=no
5364 if test "$req_avail" = "no"; then
5365 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5367 # Extract the first word of "uniq", so it can be a program name with args.
5368 set dummy uniq; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_UNIQ+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$UNIQ"; then
5375 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_UNIQ="uniq "
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 UNIQ=$ac_cv_prog_UNIQ
5395 if test -n "$UNIQ"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5397 $as_echo "$UNIQ" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 req_avail=yes
5405 if test "$UNIQ" = ""; then
5406 req_avail=no
5408 if test "$UNIQ" = "no"; then
5409 req_avail=no
5411 if test "$req_avail" = "no"; then
5412 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5414 # Extract the first word of "true", so it can be a program name with args.
5415 set dummy true; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_NOP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$NOP"; then
5422 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_NOP="true "
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5435 done
5436 done
5437 IFS=$as_save_IFS
5441 NOP=$ac_cv_prog_NOP
5442 if test -n "$NOP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5444 $as_echo "$NOP" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5451 req_avail=yes
5452 if test "$NOP" = ""; then
5453 req_avail=no
5455 if test "$NOP" = "no"; then
5456 req_avail=no
5458 if test "$req_avail" = "no"; then
5459 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5461 # Extract the first word of "cat", so it can be a program name with args.
5462 set dummy cat; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_CAT+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$CAT"; then
5469 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_CAT="cat "
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5482 done
5483 done
5484 IFS=$as_save_IFS
5488 CAT=$ac_cv_prog_CAT
5489 if test -n "$CAT"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5491 $as_echo "$CAT" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5498 req_avail=yes
5499 if test "$CAT" = ""; then
5500 req_avail=no
5502 if test "$CAT" = "no"; then
5503 req_avail=no
5505 if test "$req_avail" = "no"; then
5506 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5508 # Extract the first word of "bison", so it can be a program name with args.
5509 set dummy bison; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_BISON+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$BISON"; then
5516 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_BISON="bison "
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 BISON=$ac_cv_prog_BISON
5536 if test -n "$BISON"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5538 $as_echo "$BISON" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5545 req_avail=yes
5546 if test "$BISON" = ""; then
5547 req_avail=no
5549 if test "$BISON" = "no"; then
5550 req_avail=no
5552 if test "$req_avail" = "no"; then
5553 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5555 # Extract the first word of "flex", so it can be a program name with args.
5556 set dummy flex; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_FLEX+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$FLEX"; then
5563 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_FLEX="flex "
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5578 IFS=$as_save_IFS
5582 FLEX=$ac_cv_prog_FLEX
5583 if test -n "$FLEX"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5585 $as_echo "$FLEX" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5592 req_avail=yes
5593 if test "$FLEX" = ""; then
5594 req_avail=no
5596 if test "$FLEX" = "no"; then
5597 req_avail=no
5599 if test "$req_avail" = "no"; then
5600 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5602 # Extract the first word of "pngtopnm", so it can be a program name with args.
5603 set dummy pngtopnm; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$PNGTOPNM"; then
5610 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_PNGTOPNM="pngtopnm "
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5625 IFS=$as_save_IFS
5629 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5630 if test -n "$PNGTOPNM"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5632 $as_echo "$PNGTOPNM" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5639 req_avail=yes
5640 if test "$PNGTOPNM" = ""; then
5641 req_avail=no
5643 if test "$PNGTOPNM" = "no"; then
5644 req_avail=no
5646 if test "$req_avail" = "no"; then
5647 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5649 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5650 set dummy ppmtoilbm; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$PPMTOILBM"; then
5657 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5670 done
5671 done
5672 IFS=$as_save_IFS
5676 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5677 if test -n "$PPMTOILBM"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5679 $as_echo "$PPMTOILBM" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5686 req_avail=yes
5687 if test "$PPMTOILBM" = ""; then
5688 req_avail=no
5690 if test "$PPMTOILBM" = "no"; then
5691 req_avail=no
5693 if test "$req_avail" = "no"; then
5694 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5696 # Extract the first word of "sed", so it can be a program name with args.
5697 set dummy sed; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_SED+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$SED"; then
5704 ac_cv_prog_SED="$SED" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_SED="sed "
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5723 SED=$ac_cv_prog_SED
5724 if test -n "$SED"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5726 $as_echo "$SED" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5733 req_avail=yes
5734 if test "$SED" = ""; then
5735 req_avail=no
5737 if test "$SED" = "no"; then
5738 req_avail=no
5740 if test "$req_avail" = "no"; then
5741 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5743 # Extract the first word of "chmod", so it can be a program name with args.
5744 set dummy chmod; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_CHMOD+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$CHMOD"; then
5751 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_CHMOD="chmod "
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5764 done
5765 done
5766 IFS=$as_save_IFS
5770 CHMOD=$ac_cv_prog_CHMOD
5771 if test -n "$CHMOD"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5773 $as_echo "$CHMOD" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5780 req_avail=yes
5781 if test "$CHMOD" = ""; then
5782 req_avail=no
5784 if test "$CHMOD" = "no"; then
5785 req_avail=no
5787 if test "$req_avail" = "no"; then
5788 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5790 # Extract the first word of "patch", so it can be a program name with args.
5791 set dummy patch; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_PATCH+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$PATCH"; then
5798 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_PATCH="patch "
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5811 done
5812 done
5813 IFS=$as_save_IFS
5817 PATCH=$ac_cv_prog_PATCH
5818 if test -n "$PATCH"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5820 $as_echo "$PATCH" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5827 req_avail=yes
5828 if test "$PATCH" = ""; then
5829 req_avail=no
5831 if test "$PATCH" = "no"; then
5832 req_avail=no
5834 if test "$req_avail" = "no"; then
5835 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5844 if test -n "$PYTHON"; then
5845 # If the user set $PYTHON, use it and don't search something else.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5847 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5848 prog="import sys
5849 # split strings by '.' and convert to numeric. Append some zeros
5850 # because we need at least 4 digits for the hex conversion.
5851 # map returns an iterator in Python 3.0 and a list in 2.x
5852 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5853 minverhex = 0
5854 # xrange is not present in Python 3.0 and range returns an iterator
5855 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5856 sys.exit(sys.hexversion < minverhex)"
5857 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5858 ($PYTHON -c "$prog") >&5 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863 $as_echo "yes" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5869 am_display_PYTHON=$PYTHON
5870 else
5871 # Otherwise, try each interpreter until we find one that satisfies
5872 # VERSION.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5874 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5875 if ${am_cv_pathless_PYTHON+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5879 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
5880 test "$am_cv_pathless_PYTHON" = none && break
5881 prog="import sys
5882 # split strings by '.' and convert to numeric. Append some zeros
5883 # because we need at least 4 digits for the hex conversion.
5884 # map returns an iterator in Python 3.0 and a list in 2.x
5885 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5886 minverhex = 0
5887 # xrange is not present in Python 3.0 and range returns an iterator
5888 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5889 sys.exit(sys.hexversion < minverhex)"
5890 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5891 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; then :
5895 break
5897 done
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5900 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5901 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5902 if test "$am_cv_pathless_PYTHON" = none; then
5903 PYTHON=:
5904 else
5905 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5906 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_PYTHON+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 case $PYTHON in
5913 [\\/]* | ?:[\\/]*)
5914 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5928 done
5929 done
5930 IFS=$as_save_IFS
5933 esac
5935 PYTHON=$ac_cv_path_PYTHON
5936 if test -n "$PYTHON"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5938 $as_echo "$PYTHON" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5946 am_display_PYTHON=$am_cv_pathless_PYTHON
5950 if test "$PYTHON" = :; then
5951 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5952 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5956 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5957 if ${am_cv_python_version+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5963 $as_echo "$am_cv_python_version" >&6; }
5964 PYTHON_VERSION=$am_cv_python_version
5968 PYTHON_PREFIX='${prefix}'
5970 PYTHON_EXEC_PREFIX='${exec_prefix}'
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5975 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5976 if ${am_cv_python_platform+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5982 $as_echo "$am_cv_python_platform" >&6; }
5983 PYTHON_PLATFORM=$am_cv_python_platform
5986 # Just factor out some code duplication.
5987 am_python_setup_sysconfig="\
5988 import sys
5989 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5990 # with python 3.x. See automake bug#10227.
5991 try:
5992 import sysconfig
5993 except ImportError:
5994 can_use_sysconfig = 0
5995 else:
5996 can_use_sysconfig = 1
5997 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5998 # <https://github.com/pypa/virtualenv/issues/118>
5999 try:
6000 from platform import python_implementation
6001 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6002 can_use_sysconfig = 0
6003 except ImportError:
6004 pass"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6008 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6009 if ${am_cv_python_pythondir+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test "x$prefix" = xNONE
6013 then
6014 am_py_prefix=$ac_default_prefix
6015 else
6016 am_py_prefix=$prefix
6018 am_cv_python_pythondir=`$PYTHON -c "
6019 $am_python_setup_sysconfig
6020 if can_use_sysconfig:
6021 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6022 else:
6023 from distutils import sysconfig
6024 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6025 sys.stdout.write(sitedir)"`
6026 case $am_cv_python_pythondir in
6027 $am_py_prefix*)
6028 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6029 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6032 case $am_py_prefix in
6033 /usr|/System*) ;;
6035 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6037 esac
6039 esac
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6043 $as_echo "$am_cv_python_pythondir" >&6; }
6044 pythondir=$am_cv_python_pythondir
6048 pkgpythondir=\${pythondir}/$PACKAGE
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6052 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6053 if ${am_cv_python_pyexecdir+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test "x$exec_prefix" = xNONE
6057 then
6058 am_py_exec_prefix=$am_py_prefix
6059 else
6060 am_py_exec_prefix=$exec_prefix
6062 am_cv_python_pyexecdir=`$PYTHON -c "
6063 $am_python_setup_sysconfig
6064 if can_use_sysconfig:
6065 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6066 else:
6067 from distutils import sysconfig
6068 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6069 sys.stdout.write(sitedir)"`
6070 case $am_cv_python_pyexecdir in
6071 $am_py_exec_prefix*)
6072 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6073 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6076 case $am_py_exec_prefix in
6077 /usr|/System*) ;;
6079 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6081 esac
6083 esac
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6087 $as_echo "$am_cv_python_pyexecdir" >&6; }
6088 pyexecdir=$am_cv_python_pyexecdir
6092 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6100 # Check whether --enable-libpng-config was given.
6101 if test "${enable_libpng_config+set}" = set; then :
6102 enableval=$enable_libpng_config;
6105 if test "$enable_libpng_config" != "no"; then
6106 # Extract the first word of "libpng-config", so it can be a program name with args.
6107 set dummy libpng-config; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 if test -n "$arosconfig_use_libpngconfig"; then
6114 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6127 done
6128 done
6129 IFS=$as_save_IFS
6131 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6134 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6135 if test -n "$arosconfig_use_libpngconfig"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6137 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test "$arosconfig_use_libpngconfig" = "yes"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6147 $as_echo_n "checking libpng-config library... " >&6; }
6148 libpng_incdir="`libpng-config --cflags`"
6149 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6150 libpng="`libpng-config --libs`"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6152 $as_echo "$libpng" >&6; }
6153 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6156 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6157 if ${ac_cv_lib_png_png_read_png+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 ac_check_lib_save_LIBS=$LIBS
6161 LIBS="-lpng $LIBS"
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6165 /* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 char png_read_png ();
6173 main ()
6175 return png_read_png ();
6177 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 ac_cv_lib_png_png_read_png=yes
6182 else
6183 ac_cv_lib_png_png_read_png=no
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6190 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6191 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6192 libpng="-lpng"
6193 else
6194 libpng="no"
6197 if test "$libpng_libextra" != ""; then
6198 if test "$libpng" != "no"; then
6199 libpng_libextra="$libpng_libextra $libpng"
6203 req_avail=yes
6204 if test "$libpng" = ""; then
6205 req_avail=no
6207 if test "$libpng" = "no"; then
6208 req_avail=no
6210 if test "$req_avail" = "no"; then
6211 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6217 FOR=for
6219 IF=if
6221 TEST=test
6223 CMP=cmp
6227 # Check for some includes for the X11 HIDD and the kernel
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6231 if ${ac_cv_path_GREP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -z "$GREP"; then
6235 ac_path_GREP_found=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_prog in grep ggrep; do
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6245 as_fn_executable_p "$ac_path_GREP" || continue
6246 # Check for GNU ac_path_GREP and select it if it is found.
6247 # Check for GNU $ac_path_GREP
6248 case `"$ac_path_GREP" --version 2>&1` in
6249 *GNU*)
6250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6252 ac_count=0
6253 $as_echo_n 0123456789 >"conftest.in"
6254 while :
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 $as_echo 'GREP' >> "conftest.nl"
6260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6262 as_fn_arith $ac_count + 1 && ac_count=$as_val
6263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_GREP="$ac_path_GREP"
6266 ac_path_GREP_max=$ac_count
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6270 done
6271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6272 esac
6274 $ac_path_GREP_found && break 3
6275 done
6276 done
6277 done
6278 IFS=$as_save_IFS
6279 if test -z "$ac_cv_path_GREP"; then
6280 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6282 else
6283 ac_cv_path_GREP=$GREP
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6288 $as_echo "$ac_cv_path_GREP" >&6; }
6289 GREP="$ac_cv_path_GREP"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6293 $as_echo_n "checking for egrep... " >&6; }
6294 if ${ac_cv_path_EGREP+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6298 then ac_cv_path_EGREP="$GREP -E"
6299 else
6300 if test -z "$EGREP"; then
6301 ac_path_EGREP_found=false
6302 # Loop through the user's path and test for each of PROGNAME-LIST
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_prog in egrep; do
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6311 as_fn_executable_p "$ac_path_EGREP" || continue
6312 # Check for GNU ac_path_EGREP and select it if it is found.
6313 # Check for GNU $ac_path_EGREP
6314 case `"$ac_path_EGREP" --version 2>&1` in
6315 *GNU*)
6316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6318 ac_count=0
6319 $as_echo_n 0123456789 >"conftest.in"
6320 while :
6322 cat "conftest.in" "conftest.in" >"conftest.tmp"
6323 mv "conftest.tmp" "conftest.in"
6324 cp "conftest.in" "conftest.nl"
6325 $as_echo 'EGREP' >> "conftest.nl"
6326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6328 as_fn_arith $ac_count + 1 && ac_count=$as_val
6329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6330 # Best one so far, save it but keep looking for a better one
6331 ac_cv_path_EGREP="$ac_path_EGREP"
6332 ac_path_EGREP_max=$ac_count
6334 # 10*(2^10) chars as input seems more than enough
6335 test $ac_count -gt 10 && break
6336 done
6337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6338 esac
6340 $ac_path_EGREP_found && break 3
6341 done
6342 done
6343 done
6344 IFS=$as_save_IFS
6345 if test -z "$ac_cv_path_EGREP"; then
6346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6348 else
6349 ac_cv_path_EGREP=$EGREP
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6355 $as_echo "$ac_cv_path_EGREP" >&6; }
6356 EGREP="$ac_cv_path_EGREP"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6360 $as_echo_n "checking for ANSI C header files... " >&6; }
6361 if ${ac_cv_header_stdc+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <stdlib.h>
6367 #include <stdarg.h>
6368 #include <string.h>
6369 #include <float.h>
6372 main ()
6376 return 0;
6378 _ACEOF
6379 if ac_fn_c_try_compile "$LINENO"; then :
6380 ac_cv_header_stdc=yes
6381 else
6382 ac_cv_header_stdc=no
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 if test $ac_cv_header_stdc = yes; then
6387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <string.h>
6392 _ACEOF
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 $EGREP "memchr" >/dev/null 2>&1; then :
6396 else
6397 ac_cv_header_stdc=no
6399 rm -f conftest*
6403 if test $ac_cv_header_stdc = yes; then
6404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 #include <stdlib.h>
6409 _ACEOF
6410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6411 $EGREP "free" >/dev/null 2>&1; then :
6413 else
6414 ac_cv_header_stdc=no
6416 rm -f conftest*
6420 if test $ac_cv_header_stdc = yes; then
6421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6422 if test "$cross_compiling" = yes; then :
6424 else
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <ctype.h>
6428 #include <stdlib.h>
6429 #if ((' ' & 0x0FF) == 0x020)
6430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6432 #else
6433 # define ISLOWER(c) \
6434 (('a' <= (c) && (c) <= 'i') \
6435 || ('j' <= (c) && (c) <= 'r') \
6436 || ('s' <= (c) && (c) <= 'z'))
6437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6438 #endif
6440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6442 main ()
6444 int i;
6445 for (i = 0; i < 256; i++)
6446 if (XOR (islower (i), ISLOWER (i))
6447 || toupper (i) != TOUPPER (i))
6448 return 2;
6449 return 0;
6451 _ACEOF
6452 if ac_fn_c_try_run "$LINENO"; then :
6454 else
6455 ac_cv_header_stdc=no
6457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6458 conftest.$ac_objext conftest.beam conftest.$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6464 $as_echo "$ac_cv_header_stdc" >&6; }
6465 if test $ac_cv_header_stdc = yes; then
6467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6473 inttypes.h stdint.h unistd.h
6474 do :
6475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6479 cat >>confdefs.h <<_ACEOF
6480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 _ACEOF
6485 done
6488 for ac_header in sys/ipc.h sys/shm.h \
6489 sys/mmap.h sys/mman.h sysexits.h \
6490 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6492 do :
6493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6496 cat >>confdefs.h <<_ACEOF
6497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6502 done
6505 for ac_header in sys/mount.h
6506 do :
6507 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6509 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6510 cat >>confdefs.h <<_ACEOF
6511 #define HAVE_SYS_MOUNT_H 1
6512 _ACEOF
6516 done
6519 ac_header_dirent=no
6520 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6521 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6523 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6524 if eval \${$as_ac_Header+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #include <sys/types.h>
6530 #include <$ac_hdr>
6533 main ()
6535 if ((DIR *) 0)
6536 return 0;
6538 return 0;
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542 eval "$as_ac_Header=yes"
6543 else
6544 eval "$as_ac_Header=no"
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 eval ac_res=\$$as_ac_Header
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6554 _ACEOF
6556 ac_header_dirent=$ac_hdr; break
6559 done
6560 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6561 if test $ac_header_dirent = dirent.h; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6563 $as_echo_n "checking for library containing opendir... " >&6; }
6564 if ${ac_cv_search_opendir+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 ac_func_search_save_LIBS=$LIBS
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6571 /* Override any GCC internal prototype to avoid an error.
6572 Use char because int might match the return type of a GCC
6573 builtin and then its argument prototype would still apply. */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 char opendir ();
6579 main ()
6581 return opendir ();
6583 return 0;
6585 _ACEOF
6586 for ac_lib in '' dir; do
6587 if test -z "$ac_lib"; then
6588 ac_res="none required"
6589 else
6590 ac_res=-l$ac_lib
6591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6593 if ac_fn_c_try_link "$LINENO"; then :
6594 ac_cv_search_opendir=$ac_res
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext
6598 if ${ac_cv_search_opendir+:} false; then :
6599 break
6601 done
6602 if ${ac_cv_search_opendir+:} false; then :
6604 else
6605 ac_cv_search_opendir=no
6607 rm conftest.$ac_ext
6608 LIBS=$ac_func_search_save_LIBS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6611 $as_echo "$ac_cv_search_opendir" >&6; }
6612 ac_res=$ac_cv_search_opendir
6613 if test "$ac_res" != no; then :
6614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6620 $as_echo_n "checking for library containing opendir... " >&6; }
6621 if ${ac_cv_search_opendir+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 ac_func_search_save_LIBS=$LIBS
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 /* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6631 #ifdef __cplusplus
6632 extern "C"
6633 #endif
6634 char opendir ();
6636 main ()
6638 return opendir ();
6640 return 0;
6642 _ACEOF
6643 for ac_lib in '' x; do
6644 if test -z "$ac_lib"; then
6645 ac_res="none required"
6646 else
6647 ac_res=-l$ac_lib
6648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 ac_cv_search_opendir=$ac_res
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext
6655 if ${ac_cv_search_opendir+:} false; then :
6656 break
6658 done
6659 if ${ac_cv_search_opendir+:} false; then :
6661 else
6662 ac_cv_search_opendir=no
6664 rm conftest.$ac_ext
6665 LIBS=$ac_func_search_save_LIBS
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6668 $as_echo "$ac_cv_search_opendir" >&6; }
6669 ac_res=$ac_cv_search_opendir
6670 if test "$ac_res" != no; then :
6671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6678 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6679 if ${ac_cv_header_stat_broken+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 #include <sys/stat.h>
6687 #if defined S_ISBLK && defined S_IFDIR
6688 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6689 #endif
6691 #if defined S_ISBLK && defined S_IFCHR
6692 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6693 #endif
6695 #if defined S_ISLNK && defined S_IFREG
6696 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6697 #endif
6699 #if defined S_ISSOCK && defined S_IFREG
6700 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6701 #endif
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 ac_cv_header_stat_broken=no
6706 else
6707 ac_cv_header_stat_broken=yes
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6712 $as_echo "$ac_cv_header_stat_broken" >&6; }
6713 if test $ac_cv_header_stat_broken = yes; then
6715 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6720 $as_echo_n "checking for ANSI C header files... " >&6; }
6721 if ${ac_cv_header_stdc+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 #include <stdlib.h>
6727 #include <stdarg.h>
6728 #include <string.h>
6729 #include <float.h>
6732 main ()
6736 return 0;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 ac_cv_header_stdc=yes
6741 else
6742 ac_cv_header_stdc=no
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 if test $ac_cv_header_stdc = yes; then
6747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <string.h>
6752 _ACEOF
6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6754 $EGREP "memchr" >/dev/null 2>&1; then :
6756 else
6757 ac_cv_header_stdc=no
6759 rm -f conftest*
6763 if test $ac_cv_header_stdc = yes; then
6764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <stdlib.h>
6769 _ACEOF
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "free" >/dev/null 2>&1; then :
6773 else
6774 ac_cv_header_stdc=no
6776 rm -f conftest*
6780 if test $ac_cv_header_stdc = yes; then
6781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6782 if test "$cross_compiling" = yes; then :
6784 else
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <ctype.h>
6788 #include <stdlib.h>
6789 #if ((' ' & 0x0FF) == 0x020)
6790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6792 #else
6793 # define ISLOWER(c) \
6794 (('a' <= (c) && (c) <= 'i') \
6795 || ('j' <= (c) && (c) <= 'r') \
6796 || ('s' <= (c) && (c) <= 'z'))
6797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6798 #endif
6800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 main ()
6804 int i;
6805 for (i = 0; i < 256; i++)
6806 if (XOR (islower (i), ISLOWER (i))
6807 || toupper (i) != TOUPPER (i))
6808 return 2;
6809 return 0;
6811 _ACEOF
6812 if ac_fn_c_try_run "$LINENO"; then :
6814 else
6815 ac_cv_header_stdc=no
6817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6818 conftest.$ac_objext conftest.beam conftest.$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6824 $as_echo "$ac_cv_header_stdc" >&6; }
6825 if test $ac_cv_header_stdc = yes; then
6827 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6832 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6833 if ${ac_cv_header_sys_wait_h+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #include <sys/types.h>
6839 #include <sys/wait.h>
6840 #ifndef WEXITSTATUS
6841 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6842 #endif
6843 #ifndef WIFEXITED
6844 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6845 #endif
6848 main ()
6850 int s;
6851 wait (&s);
6852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6854 return 0;
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_header_sys_wait_h=yes
6859 else
6860 ac_cv_header_sys_wait_h=no
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6865 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6866 if test $ac_cv_header_sys_wait_h = yes; then
6868 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6873 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6874 if ${ac_cv_header_time+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <sys/types.h>
6880 #include <sys/time.h>
6881 #include <time.h>
6884 main ()
6886 if ((struct tm *) 0)
6887 return 0;
6889 return 0;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 ac_cv_header_time=yes
6894 else
6895 ac_cv_header_time=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6900 $as_echo "$ac_cv_header_time" >&6; }
6901 if test $ac_cv_header_time = yes; then
6903 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6907 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6908 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6912 _ACEOF
6915 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6920 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6921 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6923 cat >>confdefs.h <<_ACEOF
6924 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6925 _ACEOF
6928 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6930 else
6931 case " $LIBOBJS " in
6932 *" fileblocks.$ac_objext "* ) ;;
6933 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6935 esac
6940 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6941 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6943 cat >>confdefs.h <<_ACEOF
6944 #define HAVE_STRUCT_STAT_ST_RDEV 1
6945 _ACEOF
6948 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6954 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6955 if ${ac_cv_struct_tm+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6961 #include <time.h>
6964 main ()
6966 struct tm tm;
6967 int *p = &tm.tm_sec;
6968 return !p;
6970 return 0;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 ac_cv_struct_tm=time.h
6975 else
6976 ac_cv_struct_tm=sys/time.h
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6981 $as_echo "$ac_cv_struct_tm" >&6; }
6982 if test $ac_cv_struct_tm = sys/time.h; then
6984 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6988 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6989 #include <$ac_cv_struct_tm>
6992 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_STRUCT_TM_TM_ZONE 1
6996 _ACEOF
7001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7003 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7005 else
7006 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7008 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7009 ac_have_decl=1
7010 else
7011 ac_have_decl=0
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_DECL_TZNAME $ac_have_decl
7016 _ACEOF
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7019 $as_echo_n "checking for tzname... " >&6; }
7020 if ${ac_cv_var_tzname+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #include <time.h>
7026 #if !HAVE_DECL_TZNAME
7027 extern char *tzname[];
7028 #endif
7031 main ()
7033 return tzname[0][0];
7035 return 0;
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 ac_cv_var_tzname=yes
7040 else
7041 ac_cv_var_tzname=no
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7047 $as_echo "$ac_cv_var_tzname" >&6; }
7048 if test $ac_cv_var_tzname = yes; then
7050 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7055 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7056 if test "x$ac_cv_type_off_t" = xyes; then :
7058 else
7060 cat >>confdefs.h <<_ACEOF
7061 #define off_t long int
7062 _ACEOF
7066 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7067 if test "x$ac_cv_type_pid_t" = xyes; then :
7069 else
7071 cat >>confdefs.h <<_ACEOF
7072 #define pid_t int
7073 _ACEOF
7077 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7078 if test "x$ac_cv_type_size_t" = xyes; then :
7080 else
7082 cat >>confdefs.h <<_ACEOF
7083 #define size_t unsigned int
7084 _ACEOF
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7089 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7090 if ${ac_cv_type_uid_t+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 #include <sys/types.h>
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "uid_t" >/dev/null 2>&1; then :
7100 ac_cv_type_uid_t=yes
7101 else
7102 ac_cv_type_uid_t=no
7104 rm -f conftest*
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7108 $as_echo "$ac_cv_type_uid_t" >&6; }
7109 if test $ac_cv_type_uid_t = no; then
7111 $as_echo "#define uid_t int" >>confdefs.h
7114 $as_echo "#define gid_t int" >>confdefs.h
7119 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7120 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7122 cat >>confdefs.h <<_ACEOF
7123 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7124 _ACEOF
7130 # Look for some functions
7131 for ac_func in getpagesize kqueue statfs statvfs \
7132 clone kse_create rfork_thread thr_create sa_register \
7133 getcontext makecontext setcontext sigaltstack swapcontext
7134 do :
7135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7138 cat >>confdefs.h <<_ACEOF
7139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7140 _ACEOF
7143 done
7149 for ac_header in $ac_header_list
7150 do :
7151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7155 cat >>confdefs.h <<_ACEOF
7156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157 _ACEOF
7161 done
7170 for ac_func in getpagesize
7171 do :
7172 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7173 if test "x$ac_cv_func_getpagesize" = xyes; then :
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_GETPAGESIZE 1
7176 _ACEOF
7179 done
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7182 $as_echo_n "checking for working mmap... " >&6; }
7183 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test "$cross_compiling" = yes; then :
7187 ac_cv_func_mmap_fixed_mapped=no
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 $ac_includes_default
7192 /* malloc might have been renamed as rpl_malloc. */
7193 #undef malloc
7195 /* Thanks to Mike Haertel and Jim Avera for this test.
7196 Here is a matrix of mmap possibilities:
7197 mmap private not fixed
7198 mmap private fixed at somewhere currently unmapped
7199 mmap private fixed at somewhere already mapped
7200 mmap shared not fixed
7201 mmap shared fixed at somewhere currently unmapped
7202 mmap shared fixed at somewhere already mapped
7203 For private mappings, we should verify that changes cannot be read()
7204 back from the file, nor mmap's back from the file at a different
7205 address. (There have been systems where private was not correctly
7206 implemented like the infamous i386 svr4.0, and systems where the
7207 VM page cache was not coherent with the file system buffer cache
7208 like early versions of FreeBSD and possibly contemporary NetBSD.)
7209 For shared mappings, we should conversely verify that changes get
7210 propagated back to all the places they're supposed to be.
7212 Grep wants private fixed already mapped.
7213 The main things grep needs to know about mmap are:
7214 * does it exist and is it safe to write into the mmap'd area
7215 * how to use it (BSD variants) */
7217 #include <fcntl.h>
7218 #include <sys/mman.h>
7220 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7221 char *malloc ();
7222 #endif
7224 /* This mess was copied from the GNU getpagesize.h. */
7225 #ifndef HAVE_GETPAGESIZE
7226 # ifdef _SC_PAGESIZE
7227 # define getpagesize() sysconf(_SC_PAGESIZE)
7228 # else /* no _SC_PAGESIZE */
7229 # ifdef HAVE_SYS_PARAM_H
7230 # include <sys/param.h>
7231 # ifdef EXEC_PAGESIZE
7232 # define getpagesize() EXEC_PAGESIZE
7233 # else /* no EXEC_PAGESIZE */
7234 # ifdef NBPG
7235 # define getpagesize() NBPG * CLSIZE
7236 # ifndef CLSIZE
7237 # define CLSIZE 1
7238 # endif /* no CLSIZE */
7239 # else /* no NBPG */
7240 # ifdef NBPC
7241 # define getpagesize() NBPC
7242 # else /* no NBPC */
7243 # ifdef PAGESIZE
7244 # define getpagesize() PAGESIZE
7245 # endif /* PAGESIZE */
7246 # endif /* no NBPC */
7247 # endif /* no NBPG */
7248 # endif /* no EXEC_PAGESIZE */
7249 # else /* no HAVE_SYS_PARAM_H */
7250 # define getpagesize() 8192 /* punt totally */
7251 # endif /* no HAVE_SYS_PARAM_H */
7252 # endif /* no _SC_PAGESIZE */
7254 #endif /* no HAVE_GETPAGESIZE */
7257 main ()
7259 char *data, *data2, *data3;
7260 const char *cdata2;
7261 int i, pagesize;
7262 int fd, fd2;
7264 pagesize = getpagesize ();
7266 /* First, make a file with some known garbage in it. */
7267 data = (char *) malloc (pagesize);
7268 if (!data)
7269 return 1;
7270 for (i = 0; i < pagesize; ++i)
7271 *(data + i) = rand ();
7272 umask (0);
7273 fd = creat ("conftest.mmap", 0600);
7274 if (fd < 0)
7275 return 2;
7276 if (write (fd, data, pagesize) != pagesize)
7277 return 3;
7278 close (fd);
7280 /* Next, check that the tail of a page is zero-filled. File must have
7281 non-zero length, otherwise we risk SIGBUS for entire page. */
7282 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7283 if (fd2 < 0)
7284 return 4;
7285 cdata2 = "";
7286 if (write (fd2, cdata2, 1) != 1)
7287 return 5;
7288 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7289 if (data2 == MAP_FAILED)
7290 return 6;
7291 for (i = 0; i < pagesize; ++i)
7292 if (*(data2 + i))
7293 return 7;
7294 close (fd2);
7295 if (munmap (data2, pagesize))
7296 return 8;
7298 /* Next, try to mmap the file at a fixed address which already has
7299 something else allocated at it. If we can, also make sure that
7300 we see the same garbage. */
7301 fd = open ("conftest.mmap", O_RDWR);
7302 if (fd < 0)
7303 return 9;
7304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7306 return 10;
7307 for (i = 0; i < pagesize; ++i)
7308 if (*(data + i) != *(data2 + i))
7309 return 11;
7311 /* Finally, make sure that changes to the mapped area do not
7312 percolate back to the file as seen by read(). (This is a bug on
7313 some variants of i386 svr4.0.) */
7314 for (i = 0; i < pagesize; ++i)
7315 *(data2 + i) = *(data2 + i) + 1;
7316 data3 = (char *) malloc (pagesize);
7317 if (!data3)
7318 return 12;
7319 if (read (fd, data3, pagesize) != pagesize)
7320 return 13;
7321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data3 + i))
7323 return 14;
7324 close (fd);
7325 return 0;
7327 _ACEOF
7328 if ac_fn_c_try_run "$LINENO"; then :
7329 ac_cv_func_mmap_fixed_mapped=yes
7330 else
7331 ac_cv_func_mmap_fixed_mapped=no
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334 conftest.$ac_objext conftest.beam conftest.$ac_ext
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7339 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7342 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7345 rm -f conftest.mmap conftest.txt
7348 #-----------------------------------------------------------------------------
7351 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7352 # it switched on by default, and we use the host compiler, so it compiles AROS
7353 # code with this enabled resulting in link failures as we don't have support
7354 # for it.
7356 # We use two methods to disable it. For the host compiler (used to compile
7357 # some hosted modules), we test to see if the compiler supports stack
7358 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7359 # work on all platforms.
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7363 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7364 save_cflags="$CFLAGS"
7365 CFLAGS="$CFLAGS -fno-stack-protector"
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7370 main ()
7374 return 0;
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 use_no_stack_protector="yes"
7379 else
7380 use_no_stack_protector="no"
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7384 $as_echo "$use_no_stack_protector" >&6; }
7385 if test "x-$use_no_stack_protector" = "x-yes" ; then
7386 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7388 CFLAGS="$save_cflags"
7390 #-----------------------------------------------------------------------------
7392 # Disable pointer-signedness warnings if the compiler recognises the option
7393 # (this only works for the host compiler at the moment)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7396 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7397 save_cflags="$CFLAGS"
7398 CFLAGS="$CFLAGS -Wno-pointer-sign"
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7403 main ()
7407 return 0;
7409 _ACEOF
7410 if ac_fn_c_try_compile "$LINENO"; then :
7411 use_no_sign_warning="yes"
7412 else
7413 use_no_sign_warning="no"
7415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7417 $as_echo "$use_no_sign_warning" >&6; }
7418 if test "x-$use_no_sign_warning" = "x-yes" ; then
7419 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7421 CFLAGS="$save_cflags"
7423 #-----------------------------------------------------------------------------
7425 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7428 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7429 save_cflags="$CFLAGS"
7430 CFLAGS="$CFLAGS -fgnu89-inline"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7435 main ()
7439 return 0;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 use_gnu89_inline="yes"
7444 else
7445 use_gnu89_inline="no"
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7449 $as_echo "$use_gnu89_inline" >&6; }
7450 if test "x-$use_gnu89_inline" = "x-yes" ; then
7451 gnu89_inline="-fgnu89-inline"
7453 CFLAGS="$save_cflags"
7456 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7457 # On GCC >= 4.0 -iquote should be used
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7460 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7461 CFLAGS="$CFLAGS -iquote."
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7466 main ()
7470 return 0;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"; then :
7474 has_iquote="yes"
7475 else
7476 has_iquote="no"
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7480 $as_echo "$has_iquote" >&6; }
7481 if test "x-$has_iquote" = "x-yes" ; then
7482 host_cflags_iquote=-iquote
7483 host_cflags_iquote_end=
7484 else
7485 host_cflags_iquote=-I
7486 host_cflags_iquote_end=-I-
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7490 $as_echo "$as_me: Performing target configuration..." >&6;}
7493 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7495 toolchain_needs_sysroot=no
7497 aros_warn_flags=
7498 aros_isa_extra=
7499 aros_isa_flags=
7500 aros_config_cppflags=
7501 aros_config_cflags=
7502 aros_config_cxxflags=
7503 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7504 aros_config_ldflags=""
7506 aros_shared_default=yes
7508 aros_shared_cflags="-fPIC"
7509 aros_shared_aflags=""
7510 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7511 aros_kernel_ldflags="-Wl,-rpath,./lib"
7513 aros_kernel_ar_flags="cr"
7514 aros_target_ar_flags="cr"
7515 aros_target_nm_flags="-C -ul"
7516 aros_target_strip_flags="--strip-unneeded -R.comment"
7518 aros_compiler_libs=
7519 aros_arch_libs=
7521 aros_target_genmap="-Wl,-Map -Xlinker"
7523 # Native flavour stuff
7524 aros_serial_debug="0"
7526 # Palm native flavour stuff
7527 aros_palm_debug_hack="0"
7529 # Unix flavour stuff
7530 aros_nesting_supervisor="0"
7532 # Collect-aros stuff: "-ius" to ignore undefined symbols
7533 ignore_undefined_symbols=""
7535 # Check for X11 by default
7536 need_x11="auto"
7538 host_x_gfx=no
7539 host_sdl_gfx=no
7540 host_android_gfx=no
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7544 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7546 # Check whether --with-toolchain was given.
7547 if test "${with_toolchain+set}" = set; then :
7548 withval=$with_toolchain; aros_toolchain="$withval"
7549 else
7550 aros_toolchain="gnu"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7554 $as_echo "$aros_toolchain" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7558 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7559 # Check whether --enable-lto was given.
7560 if test "${enable_lto+set}" = set; then :
7561 enableval=$enable_lto; aros_config_lto="$enableval"
7562 else
7563 aros_config_lto="no"
7566 if test "$aros_config_lto" != "no"; then
7567 aros_config_lto="yes"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7570 $as_echo "$aros_config_lto" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7573 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7574 # Check whether --enable-coverage was given.
7575 if test "${enable_coverage+set}" = set; then :
7576 enableval=$enable_coverage; aros_config_coverage="$enableval"
7577 else
7578 aros_config_coverage="no"
7581 if test "$aros_config_coverage" != "no"; then
7582 aros_config_coverage="yes"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7585 $as_echo "$aros_config_coverage" >&6; }
7587 use_ld_wrapper=yes
7589 case "$aros_toolchain" in
7590 *llvm*)
7591 # toolchain_needs_sysroot=yes
7592 toolchain_c_compiler="clang"
7593 toolchain_cxx_compiler="clang++"
7594 toolchain_cpp_preprocessor="clang -E"
7595 toolchain_ld="ld.lld"
7596 aros_ld="ld"
7597 toolchain_as="llvm-as"
7598 toolchain_ar="llvm-ar"
7599 toolchain_ranlib="llvm-ranlib"
7600 toolchain_nm="llvm-nm"
7601 toolchain_strip="true"
7602 toolchain_objcopy="llvm-objcopy"
7603 toolchain_objdump="llvm-objdump"
7605 *gnu*)
7606 toolchain_c_compiler="gcc"
7607 toolchain_cxx_compiler="g++"
7608 toolchain_cpp_preprocessor="gcc -E"
7609 toolchain_as="as"
7610 aros_ld="ld"
7611 if test "$aros_config_lto" != "yes"; then
7612 toolchain_ld="ld"
7613 toolchain_ar="ar"
7614 toolchain_ranlib="ranlib"
7615 toolchain_nm="nm"
7616 else
7617 toolchain_ld="ld.bfd"
7618 toolchain_ar="gcc-ar"
7619 toolchain_ranlib="gcc-ranlib"
7620 toolchain_nm="gcc-nm"
7622 toolchain_strip="strip"
7623 toolchain_objcopy="objcopy"
7624 toolchain_objdump="objdump"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7628 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7629 toolchain_c_compiler="cc"
7630 toolchain_cxx_compiler="c++"
7631 toolchain_cpp_preprocessor="cpp"
7632 toolchain_ld="ld"
7633 aros_ld="ld"
7634 toolchain_as="as"
7635 toolchain_ar="ar"
7636 toolchain_ranlib="ranlib"
7637 toolchain_nm="nm"
7638 toolchain_strip="strip"
7639 toolchain_objcopy="objcopy"
7640 toolchain_objdump="objdump"
7642 esac
7644 #-----------------------------------------------------------------------------
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7647 $as_echo_n "checking which type of build to do... " >&6; }
7648 # Check whether --enable-build_type was given.
7649 if test "${enable_build_type+set}" = set; then :
7650 enableval=$enable_build_type; build_type=$enableval
7651 else
7652 build_type="personal"
7656 if test "$build_type" = "nightly"; then
7657 build_type_string="NIGHTLY"
7658 elif test "$build_type" = "snapshot"; then
7659 build_type_string="SNAPSHOT"
7660 elif test "$build_type" = "milestone"; then
7661 build_type_string="MILESTONE"
7662 elif test "$build_type" = "release"; then
7663 build_type_string="RELEASE"
7664 else
7665 build_type_string="PERSONAL"
7666 build_type="personal"
7669 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7672 $as_echo "$build_type" >&6; }
7674 #-----------------------------------------------------------------------------
7675 all_debug_types="messages stack modules mungwall symbols"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7678 $as_echo_n "checking which debug types to enable... " >&6; }
7679 # Check whether --enable-debug was given.
7680 if test "${enable_debug+set}" = set; then :
7681 enableval=$enable_debug; debug="$enableval"
7682 else
7683 debug=""
7687 if test "$debug" = "" -o "$debug" = "no"; then
7688 debug="none"
7689 elif test "$debug" = "yes"; then
7690 debug="all"
7693 if test "$debug" = "all" ; then
7694 debug="messages stack modules symbols"
7695 for d in $all_debug_types; do
7696 export aros_${d}_debug="1"
7697 done
7698 else
7699 for d in $all_debug_types; do
7700 export aros_${d}_debug="0"
7701 done
7704 if test "$debug" != "none"; then
7705 debug=`echo $debug | sed s/,/\ /g`
7706 for d in $debug; do
7707 found="0"
7708 for d2 in $all_debug_types; do
7709 if test "$d2" = "$d"; then
7710 found="1"
7711 break
7713 done
7714 if test "$found" = "0"; then
7715 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7717 export aros_${d}_debug="1"
7718 done
7719 aros_debug="yes"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7722 $as_echo "$debug" >&6; }
7724 if test "$aros_messages_debug" = "1"; then
7725 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7726 else
7727 aros_messages_debug=""
7729 if test "$aros_symbols_debug" = "1"; then
7730 aros_symbols_debug="-g"
7731 else
7732 aros_symbols_debug=""
7735 # These are the flags to pass when compiling debugged programs
7736 aros_debug_cppflags="$aros_messages_debug"
7737 aros_debug_cflags="$aros_symbols_debug"
7738 aros_debug_cxxflags=
7739 aros_debug_aflags=""
7740 aros_debug_ldflags="$aros_symbols_debug"
7742 #-----------------------------------------------------------------------------
7743 # Checking for distcc and ccache.
7745 # Always apply the transforms in this particular order. Basically you should
7746 # always run 'ccache distcc compiler' in that order for the best performance.
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7749 $as_echo_n "checking whether to enable distcc... " >&6; }
7750 # Check whether --enable-distcc was given.
7751 if test "${enable_distcc+set}" = set; then :
7752 enableval=$enable_distcc; distcc="$enableval"
7753 else
7754 distcc="no"
7757 if test "$distcc" != "" -a "$distcc" != "no"; then
7758 # AC_CHECK_PROG will print out the result in this case
7759 # Extract the first word of "distcc", so it can be a program name with args.
7760 set dummy distcc; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_path_DISTCC+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 case $DISTCC in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7786 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7788 esac
7790 DISTCC=$ac_cv_path_DISTCC
7791 if test -n "$DISTCC"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7793 $as_echo "$DISTCC" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7806 $as_echo_n "checking whether to enable ccache... " >&6; }
7807 # Check whether --enable-ccache was given.
7808 if test "${enable_ccache+set}" = set; then :
7809 enableval=$enable_ccache; ccache="$enableval"
7810 else
7811 ccache="no"
7814 if test "$ccache" != "" -a "$ccache" != "no"; then
7815 # AC_CHECK_PROG will print out the result in this case
7816 # Extract the first word of "ccache", so it can be a program name with args.
7817 set dummy ccache; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_CCACHE+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$CCACHE"; then
7824 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_CCACHE="ccache"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7837 done
7838 done
7839 IFS=$as_save_IFS
7843 CCACHE=$ac_cv_prog_CCACHE
7844 if test -n "$CCACHE"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7846 $as_echo "$CCACHE" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7858 #-----------------------------------------------------------------------------
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7860 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7862 # Check whether --with-kernel-gcc-version was given.
7863 if test "${with_kernel_gcc_version+set}" = set; then :
7864 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7865 else
7866 kernel_tool_version=""
7869 if test "$kernel_tool_version" != "" ; then
7870 msg_result=$kernel_tool_version
7871 else
7872 msg_result="default"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7875 $as_echo "$msg_result" >&6; }
7877 #-----------------------------------------------------------------------------
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7879 $as_echo_n "checking what optimization flags to use... " >&6; }
7881 # Check whether --with-optimization was given.
7882 if test "${with_optimization+set}" = set; then :
7883 withval=$with_optimization; optimization_level="$withval"
7884 else
7885 optimization_level="unknown"
7888 if test "$optimization_level" = "unknown"; then
7889 optimization="default"
7890 if test "$debug" != "none"; then
7891 optimization_level="-O0"
7892 else
7893 optimization_level="-O2"
7895 else
7896 optimization="$optimization_level"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7899 $as_echo "$optimization" >&6; }
7901 paranoia_default=yes
7902 #-----------------------------------------------------------------------------
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7904 $as_echo_n "checking which paranoia flags to use... " >&6; }
7906 # Check whether --with-paranoia was given.
7907 if test "${with_paranoia+set}" = set; then :
7908 withval=$with_paranoia; paranoia_flags="$withval"
7909 else
7910 paranoia_flags="$paranoia_default"
7913 if test "$paranoia_flags" = "no"; then
7914 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7915 msg_result="none"
7916 else
7917 if test "$paranoia_flags" = "yes"; then
7918 paranoia_flags="-Wall -Werror"
7920 msg_result="$paranoia_flags"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7923 $as_echo "$msg_result" >&6; }
7924 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7926 #-----------------------------------------------------------------------------
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7928 $as_echo_n "checking what target variant to enable... " >&6; }
7929 # Check whether --enable-target_variant was given.
7930 if test "${enable_target_variant+set}" = set; then :
7931 enableval=$enable_target_variant; target_variant=$enableval
7932 else
7933 target_variant=""
7936 if test "$target_variant" = ""; then
7937 aros_target_variant=""
7938 aros_target_suffix=""
7939 enableval="none"
7940 else
7941 aros_target_variant="$target_variant"
7942 aros_target_suffix="-$target_variant"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7945 $as_echo "$enableval" >&6; }
7947 #-----------------------------------------------------------------------------
7948 # Target-specific defaults. You can override then on a per-target basis.
7950 # Bootloader name. Currently used by PC target.
7951 target_bootloader="none"
7952 PLATFORM_EXECSMP=
7953 ENABLE_EXECSMP=
7955 #-----------------------------------------------------------------------------
7956 # Additional options for some specific targets
7958 case "$aros_target_variant" in
7959 ios)
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7961 $as_echo_n "checking XCode path... " >&6; }
7963 # Check whether --with-xcode was given.
7964 if test "${with_xcode+set}" = set; then :
7965 withval=$with_xcode; aros_xcode_path="$withval"
7966 else
7967 aros_xcode_path="/Developer"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7971 $as_echo "$aros_xcode_path" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7974 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7976 # Check whether --with-sdk-version was given.
7977 if test "${with_sdk_version+set}" = set; then :
7978 withval=$with_sdk_version; aros_sdk_version="$withval"
7979 else
7980 aros_sdk_version="4.1"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7984 $as_echo "$aros_sdk_version" >&6; }
7988 "android")
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7990 $as_echo_n "checking Android SDK path... " >&6; }
7992 # Check whether --with-sdk was given.
7993 if test "${with_sdk+set}" = set; then :
7994 withval=$with_sdk; aros_android_sdk="$withval"
7995 else
7996 aros_android_sdk=$default_android_sdk
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8000 $as_echo "$aros_android_sdk" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8003 $as_echo_n "checking Android NDK path... " >&6; }
8005 # Check whether --with-ndk was given.
8006 if test "${with_ndk+set}" = set; then :
8007 withval=$with_ndk; aros_android_ndk="$withval"
8008 else
8009 aros_android_ndk="none"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8013 $as_echo "$aros_android_ndk" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8016 $as_echo_n "checking what Android SDK version to use... " >&6; }
8018 # Check whether --with-sdk-version was given.
8019 if test "${with_sdk_version+set}" = set; then :
8020 withval=$with_sdk_version; aros_sdk_version="$withval"
8021 else
8022 aros_sdk_version="12"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8026 $as_echo "$aros_sdk_version" >&6; }
8028 aros_android_level=android-$aros_sdk_version
8029 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8030 echo "Platform $aros_android_level is not installed in your SDK"
8031 echo "Use --with-sdk-version=<API level number> to select another platform version"
8032 echo "You can check what plaform versions are installed in your SDK"
8033 echo "by examining contents of $aros_android_sdk/platforms directory"
8034 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8037 export PATH="$aros_android_sdk/tools:$PATH"
8038 # Extract the first word of "$android_tool", so it can be a program name with args.
8039 set dummy $android_tool; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_path_android_tool+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 case $android_tool in
8046 [\\/]* | ?:[\\/]*)
8047 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8061 done
8062 done
8063 IFS=$as_save_IFS
8066 esac
8068 android_tool=$ac_cv_path_android_tool
8069 if test -n "$android_tool"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8071 $as_echo "$android_tool" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8078 req_avail=yes
8079 if test "$android_tool" = ""; then
8080 req_avail=no
8082 if test "$android_tool" = "no"; then
8083 req_avail=no
8085 if test "$req_avail" = "no"; then
8086 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8089 if test "$aros_android_ndk" != "none"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8091 $as_echo_n "checking what Android NDK version to use... " >&6; }
8093 # Check whether --with-ndk-version was given.
8094 if test "${with_ndk_version+set}" = set; then :
8095 withval=$with_ndk_version; aros_ndk_version="$withval"
8096 else
8097 aros_ndk_version="9"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8101 $as_echo "$aros_ndk_version" >&6; }
8104 # Extract the first word of "ant", so it can be a program name with args.
8105 set dummy ant; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_path_ant+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 case $ant in
8112 [\\/]* | ?:[\\/]*)
8113 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8132 esac
8134 ant=$ac_cv_path_ant
8135 if test -n "$ant"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8137 $as_echo "$ant" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 if test "$ant" = ""; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8146 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8150 $as_echo_n "checking Build debug or release apk... " >&6; }
8152 # Check whether --with-apk-version was given.
8153 if test "${with_apk_version+set}" = set; then :
8154 withval=$with_apk_version; aros_android_antapk=$withval
8155 else
8156 aros_android_antapk=release
8159 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8160 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8163 $as_echo "$aros_android_antapk" >&6; }
8165 if test "$host_os" = "mingw32"; then
8166 android_tool="cmd //c $android_tool"
8169 need_dlopen="no"
8172 esac
8174 #-----------------------------------------------------------------------------
8175 # External toolchains
8176 kernel_tool_prefix="none"
8177 aros_tool_prefix="none"
8178 elf_tool_prefix="${target_cpu}-elf-"
8179 x86_isa_extra="ISA_X86_FLAGS := -m32 -march=i486"
8180 x86_64_isa_extra="ISA_X8664_FLAGS := -mcmodel=large"
8181 export_newline="
8183 # This is the target configuration switch.
8184 case "$target_os" in
8185 linux*)
8186 aros_target_arch="linux"
8187 aros_target_family="unix"
8188 case "$target_cpu" in
8189 *m68k*)
8190 aros_target_cpu="m68k"
8191 aros_object_format="m68kelf"
8192 aros_flavour="emulcompat"
8193 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8194 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8195 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8196 gcc_target_cpu="mc68000"
8198 *i?86*)
8199 aros_target_cpu="i386"
8200 aros_object_format="elf_i386"
8201 aros_flavour="emulation"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8203 aros_isa_flags="$""(ISA_X86_FLAGS)"
8204 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8205 aros_kernel_ldflags="-Wl,-melf_i386"
8206 aros_nominal_depth=8
8207 gcc_target_cpu="i386"
8208 pci_hidd_target="hidd-pci-linux"
8209 android_tool_dir_prefix="x86"
8210 android_tool_prefix="i686-android-linux"
8211 android_ndk_arch="x86"
8213 *x86_64*)
8214 aros_target_cpu="x86_64"
8215 aros_object_format="elf_x86_64"
8216 aros_flavour="emulation"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8218 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8219 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8220 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8221 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8222 aros_nominal_depth=8
8223 pci_hidd_target="hidd-pci-linux"
8225 *powerpc*)
8226 aros_target_cpu="ppc"
8227 aros_object_format="elf32ppc"
8228 aros_flavour="emulation"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8230 aros_nominal_depth=8
8231 gcc_target_cpu="ppc"
8233 # TODO
8234 # Same as powerpc, but I need this for the nightly build to work again.
8235 # Actually, the nightly should be made working with powerpc target.
8236 # That just was too much work for the moment, another week or two.
8237 *ppc*)
8238 aros_target_cpu="ppc"
8239 aros_object_format="elf32ppc"
8240 aros_flavour="emulation"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8242 aros_nominal_depth=8
8243 gcc_target_cpu="ppc"
8245 *aarch64*)
8246 aros_target_cpu="aarch64"
8247 target_cpu="aarch64"
8248 aros_object_format="aarch64elf_aros"
8249 aros_flavour="emulation"
8250 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8251 gcc_target_cpu="aarch64"
8252 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8253 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8254 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8255 aros_arch_libs="-laeabi"
8256 gcc_default_float_abi="hard"
8257 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8259 *armhf*)
8260 aros_target_cpu="arm"
8261 target_cpu="arm"
8262 aros_object_format="armelf_aros"
8263 aros_flavour="emulation"
8264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8265 gcc_target_cpu="arm"
8266 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8267 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8268 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8269 aros_arch_libs="-laeabi"
8270 gcc_default_float_abi="hard"
8271 android_tool_dir_prefix="arm-linux-androideabi"
8272 android_tool_prefix="arm-linux-androideabi"
8273 android_ndk_arch="arm"
8274 kernel_tool_prefix="arm-linux-gnueabihf-"
8276 *arm*)
8277 aros_target_cpu="arm"
8278 aros_object_format="armelf_aros"
8279 aros_flavour="emulation"
8280 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8281 gcc_target_cpu="arm"
8282 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8283 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8284 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8285 aros_arch_libs="-laeabi"
8286 android_tool_dir_prefix="arm-linux-androideabi"
8287 android_tool_prefix="arm-linux-androideabi"
8288 android_ndk_arch="arm"
8289 kernel_tool_prefix="arm-linux-gnueabi-"
8292 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8294 esac
8295 case "$aros_target_variant" in
8296 android)
8298 if test "$android_ndk_arch" = ""; then
8299 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8302 aros_nominal_width=320
8303 aros_nominal_height=480
8304 if test "$aros_android_ndk" = "none"; then
8305 aros_kernel_cflags="-mandroid"
8306 aros_kernel_ldflags="-mandroid"
8307 CFLAGS="-mandroid"
8308 else
8309 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8310 kernel_tool_version=""
8311 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8312 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8313 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8314 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8315 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8317 need_x11=no
8318 host_android_gfx=yes
8319 # Disable implicit PIC mode
8320 aros_config_cflags="$aros_config_cflags -fno-pic"
8321 kernel_tool_prefix="$android_tool_prefix-"
8323 esac
8327 aros_target_arch="pc"
8328 aros_shared_default="no"
8329 target_bootloader="grub2"
8330 case "$target_cpu" in
8331 *i?86*)
8332 aros_target_cpu="i386"
8335 if test "$aros_object_format" = "" ; then
8336 aros_object_format="elf_i386"
8338 aros_flavour="standalone"
8339 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8340 aros_isa_flags="$""(ISA_X86_FLAGS)"
8341 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8342 aros_kernel_ldflags="-Wl,-melf_i386"
8343 aros_nominal_width=640
8344 aros_nominal_height=480
8345 gcc_target_cpu="i386"
8347 *x86_64*)
8348 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8349 aros_target_cpu="x86_64"
8350 aros_serial_debug=1
8351 if test "$aros_object_format" = "" ; then
8352 aros_object_format="elf_x86_64"
8354 aros_flavour="standalone"
8355 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8356 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8357 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8358 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8359 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8360 aros_kernel_ldflags=""
8361 aros_nominal_width=640
8362 aros_nominal_height=480
8363 case "$aros_target_variant" in
8364 smp)
8365 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8367 esac
8370 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8372 esac
8375 prep)
8376 aros_target_arch="prep"
8377 aros_shared_default="no"
8378 aros_target_cpu="ppc"
8379 aros_object_format="elf32ppc"
8380 aros_flavour="ppcnative"
8381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8382 aros_kernel_ldflags=""
8383 aros_nominal_width=640
8384 aros_nominal_height=480
8385 gcc_target_cpu="ppc"
8388 freebsd*)
8389 aros_target_arch="freebsd"
8390 aros_target_family="unix"
8391 aros_target_cpu="i386"
8392 aros_flavour="emulation"
8393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8394 gcc_target_cpu="i386"
8396 aros_target_strip_flags="-x"
8399 darwin*)
8400 aros_target_arch="darwin"
8401 aros_target_family="unix"
8402 aros_flavour="emulation"
8403 case "$target_cpu" in
8404 *i?86*)
8405 aros_ios_platform="iPhoneSimulator"
8406 aros_target_cpu="i386"
8407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8408 aros_isa_flags="$""(ISA_X86_FLAGS)"
8409 aros_kernel_ldflags=""
8410 aros_macosx_version="10.4"
8411 aros_nominal_depth=8
8412 gcc_target_cpu="i386"
8413 aros_object_format="elf_i386"
8414 aros_kernel_ar_flags="-cr"
8415 aros_target_strip_flags="-x"
8416 kernel_tool_flags="-m32"
8418 *x86_64*)
8419 aros_target_cpu="x86_64"
8420 aros_object_format="elf_x86_64"
8421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8422 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8423 aros_macosx_version="10.6"
8424 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8425 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8426 aros_kernel_cflags="-m64"
8427 aros_kernel_ldflags="-m64"
8428 aros_nominal_depth=8
8429 aros_kernel_ar="ar"
8430 aros_kernel_ar_flags="-cr"
8431 aros_kernel_ld="ld"
8432 aros_kernel_as="as"
8433 aros_kernel_ranlib="ranlib"
8434 aros_kernel_nm="nm"
8435 aros_kernel_strip="strip"
8436 kernel_tool_prefix="i686-apple-darwin10-"
8438 *ppc*)
8439 aros_target_cpu="ppc"
8440 aros_object_format="elf32ppc"
8441 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8442 aros_kernel_ldflags=""
8443 aros_macosx_version="10.0"
8444 aros_nominal_depth=8
8445 gcc_target_cpu="ppc"
8446 aros_kernel_ar="ar"
8447 aros_kernel_ar_flags="-cr"
8448 aros_kernel_ld="ld -arch ppc"
8449 aros_kernel_as="as -arch ppc"
8450 aros_kernel_ranlib="ranlib -arch ppc"
8451 aros_kernel_nm="nm -arch ppc"
8452 aros_kernel_strip="strip -arch ppc"
8453 kernel_tool_prefix="powerpc-apple-darwin10-"
8455 *arm*)
8456 aros_ios_platform="iPhoneOS"
8457 aros_target_cpu="arm"
8458 aros_object_format="armelf_aros"
8459 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8460 aros_arch_libs="-laeabi"
8461 aros_nominal_depth=8
8462 gcc_target_cpu="arm"
8463 aros_kernel_ar="ar"
8464 aros_kernel_ar_flags="-cr"
8465 aros_kernel_ld="ld -arch arm"
8466 aros_kernel_ranlib="ranlib -arch arm"
8467 kernel_tool_prefix="arm-apple-darwin10-"
8468 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8471 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8473 esac
8474 case "$aros_target_variant" in
8475 ios)
8476 aros_ios_version="3.0"
8477 aros_nominal_width=320
8478 aros_nominal_height=480
8479 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8480 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8481 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8482 need_x11=no
8483 # This is here because it may depend on iOS or SDK version
8484 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8485 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8486 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8489 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8490 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8492 esac
8495 dragonfly*)
8496 aros_target_arch="dragonfly"
8497 aros_target_family="unix"
8498 aros_flavour="emulation"
8499 case "$target_cpu" in
8500 *i?86*)
8501 aros_target_cpu="i386"
8502 aros_object_format="elf_i386"
8503 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8504 aros_isa_flags="$""(ISA_X86_FLAGS)"
8506 *x86_64*)
8507 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8508 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8509 aros_target_cpu="x86_64"
8510 aros_object_format="elf_x86_64"
8511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8512 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8515 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8517 esac
8520 netbsd*)
8521 aros_target_arch="netbsd"
8522 aros_target_family="unix"
8523 case "$target_cpu" in
8524 *m68k*)
8525 aros_target_cpu="m68k"
8526 aros_object_format="m68kelf"
8527 aros_flavour="emulcompat"
8528 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8529 gcc_target_cpu="mc68000"
8531 *i?86*)
8532 aros_target_cpu="i386"
8533 aros_object_format="elf_i386"
8534 aros_flavour="emulation"
8535 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8536 aros_isa_flags="$""(ISA_X86_FLAGS)"
8537 aros_nominal_depth=8
8538 gcc_target_cpu="i386"
8541 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8543 esac
8544 aros_target_genmap="-Wl,-M -Xlinker >"
8545 aros_flavour="emulation"
8546 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8549 openbsd*)
8550 aros_target_arch="openbsd"
8551 aros_target_family="unix"
8552 case "$target_cpu" in
8553 *i?86*)
8554 aros_target_cpu="i386"
8555 aros_object_format="elf_i386"
8556 aros_flavour="emulation"
8557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8558 aros_isa_flags="$""(ISA_X86_FLAGS)"
8559 gcc_target_cpu="i386"
8562 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8564 esac
8565 aros_target_genmap="-Wl,-M -Xlinker >"
8566 aros_target_nm_flags="-u"
8567 aros_flavour="emulation"
8570 solaris*)
8571 aros_target_arch="solaris"
8572 aros_target_family="unix"
8573 case "$target_cpu" in
8574 *i?86*)
8575 aros_target_cpu="i386"
8576 aros_object_format="elf_i386"
8577 aros_flavour="emulation"
8578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8579 aros_isa_flags="$""(ISA_X86_FLAGS)"
8580 aros_nominal_depth=8
8581 gcc_target_cpu="i386"
8583 *sparc*)
8584 aros_target_cpu="sparc"
8585 aros_object_format="elf_sparc"
8586 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8587 gcc_target_cpu="sparc"
8590 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8592 esac
8593 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8594 aros_flavour="emulation"
8597 morphos*)
8598 aros_target_arch="morphos"
8599 aros_shared_default="no"
8600 aros_target_cpu="ppc"
8601 aros_object_format="elf_ppc"
8602 aros_flavour="nativecompat"
8603 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8604 gcc_target_cpu="ppc"
8607 sam440)
8608 aros_target_arch="sam440"
8609 aros_shared_default="no"
8610 aros_target_cpu="ppc"
8611 aros_object_format="elf32ppc"
8612 aros_flavour="ppcnative"
8613 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8614 aros_kernel_ldflags=""
8615 aros_nominal_width=1024
8616 aros_nominal_height=768
8617 aros_nominal_depth=24
8618 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8619 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8620 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8621 gcc_target_cpu="powerpc"
8624 efika)
8625 aros_target_arch="efika"
8626 aros_shared_default="no"
8627 aros_target_cpu="arm"
8628 aros_object_format="armelf_aros"
8629 aros_flavour="standalone"
8630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8631 aros_kernel_ldflags=""
8632 aros_nominal_width=1024
8633 aros_nominal_height=600
8634 aros_arch_libs="-laeabi"
8635 gcc_default_cpu="armv7-a"
8636 gcc_default_fpu="vfpv3"
8637 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8638 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8639 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8640 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8641 if test "$optimization" = "default"; then
8642 optimization_level="-Os"
8644 case "$target_cpu" in
8645 *armhf*)
8646 gcc_default_float_abi="hard"
8647 target_cpu=arm
8648 aros_target_cpu=arm
8650 *arm*)
8651 gcc_default_float_abi="softfp"
8654 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8656 esac
8659 chrp)
8660 aros_target_arch="chrp"
8661 aros_shared_default="no"
8662 aros_target_cpu="ppc"
8663 aros_object_format="elf32ppc"
8664 aros_flavour="ppcnative"
8665 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8666 aros_kernel_ldflags=""
8667 aros_nominal_width=640
8668 aros_nominal_height=480
8669 aros_isa_flags="$aros_isa_flags -mno-toc"
8670 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8671 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8672 gcc_target_cpu="powerpc"
8673 case "$aros_target_variant" in
8674 efika)
8675 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8676 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8678 esac
8681 r*pi)
8682 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8683 aros_flavour="standalone"
8684 aros_target_arch="raspi"
8686 aros_shared_default="no"
8688 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8690 case "$target_cpu" in
8691 *aarch64*)
8692 aros_target_cpu="aarch64"
8693 gcc_default_cpu="aarch64"
8694 aros_object_format="aarch64elf_aros"
8696 *armhf*)
8697 aros_target_cpu="arm"
8698 gcc_default_cpu="armv6zk"
8699 gcc_default_cpu_tune="arm1176jzf-s"
8700 aros_object_format="armelf_aros"
8701 aros_isa_flags="$aros_isa_flags -marm"
8702 aros_config_cflags="$aros_config_cflags"
8703 aros_config_cxxflags="$aros_config_cxxflags"
8704 aros_config_aflags="$aros_config_aflags -marm"
8705 aros_kernel_cflags="$aros_kernel_cflags -marm"
8706 aros_target_mkdep="$aros_target_mkdep -Darm"
8707 aros_arch_libs="-laeabi"
8709 *arm*)
8710 aros_target_cpu="arm"
8711 gcc_default_cpu="armv6zk"
8712 gcc_default_cpu_tune="arm1176jzf-s"
8713 aros_object_format="armelf_aros"
8714 aros_isa_flags="$aros_isa_flags -marm"
8715 aros_config_cflags="$aros_config_cflags"
8716 aros_config_cxxflags="$aros_config_cxxflags"
8717 aros_config_aflags="$aros_config_aflags -marm"
8718 aros_kernel_cflags="$aros_kernel_cflags -marm"
8719 aros_target_mkdep="$aros_target_mkdep -Darm"
8720 aros_arch_libs="-laeabi"
8723 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8725 esac
8727 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8728 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8729 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8730 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8732 case "$aros_target_variant" in
8733 smp)
8734 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8736 esac
8739 stm32f7_discovery)
8740 aros_flavour="standalone"
8741 aros_target_arch="stm32f7_discovery"
8742 aros_target_cpu="arm"
8743 aros_target_cpu_mode="thumb2"
8744 aros_object_format="armelf_aros"
8745 aros_shared_default="no"
8747 gcc_default_cpu="armv7e-m"
8748 gcc_default_cpu_tune="cortex-m7"
8749 gcc_default_fpu="fpv5-sp-d16"
8750 gcc_default_float_abi="hard"
8752 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8755 amiga*)
8756 aros_target_arch="amiga"
8757 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8758 aros_shared_default="no"
8760 case "$target_cpu" in
8761 *m68k*)
8762 # Check whether --enable-amigaos_compliance was given.
8763 if test "${enable_amigaos_compliance+set}" = set; then :
8764 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8767 aros_enable_mmu=no
8768 aros_target_cpu="m68k"
8769 aros_object_format="m68kelf"
8770 aros_flavour="standcompat"
8771 gcc_target_cpu="m68000"
8772 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8773 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8774 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8775 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8776 if test "$optimization" = "default"; then
8777 optimization_level="-Os"
8779 aros_config_aflags="$aros_config_aflags"
8780 aros_target_strip_flags="-R.comment --strip-debug"
8781 aros_nominal_width=640
8782 aros_nominal_height=256
8783 aros_nominal_depth=2
8785 *ppc*)
8786 aros_cpu="ppc"
8787 aros_flavour="native"
8788 gcc_target_cpu="ppc"
8791 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8793 esac
8796 mingw*)
8797 aros_target_arch="mingw32"
8798 aros_shared_default="no"
8799 aros_flavour="emulation"
8800 aros_shared_cflags=""
8801 need_crosstools="yes"
8802 need_dlopen="no"
8803 rescomp="windres"
8804 case "$target_cpu" in
8805 *i?86*)
8806 aros_target_cpu="i386"
8807 aros_object_format="elf_i386"
8808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8809 aros_isa_flags="$""(ISA_X86_FLAGS)"
8810 aros_nominal_depth=8
8811 gcc_target_cpu="i386"
8813 kernel_tool_prefix="i386-mingw32-"
8815 *x86_64*)
8816 aros_target_cpu="x86_64"
8817 aros_object_format="elf_x86_64"
8818 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8819 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8820 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8821 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8822 aros_nominal_depth=8
8823 kernel_tool_prefix="x86_64-w64-mingw32-"
8825 *arm*)
8826 aros_target_cpu="arm"
8827 aros_object_format="armelf_aros"
8828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8829 aros_arch_libs="-laeabi"
8830 aros_nominal_depth=8
8831 gcc_target_cpu="arm"
8832 gcc_default_float_abi="soft"
8833 kernel_tool_prefix="arm-mingw32ce-"
8834 aros_nominal_width=160
8835 aros_nominal_height=160
8838 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8840 esac
8841 if test $host_os = "cygwin"; then
8842 aros_kernel_cflags="-mno-cygwin"
8845 pp*)
8846 aros_target_arch="pp"
8847 aros_shared_default="no"
8848 case "$target_cpu" in
8849 *m68k*)
8850 aros_target_cpu="m68k"
8851 aros_object_format="m68kelf"
8852 aros_flavour="palmnative"
8853 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8854 aros_nominal_width=160
8855 aros_nominal_height=160
8856 aros_nominal_depth=1
8857 aros_target_ar_flags="cru"
8858 aros_compiler_libs="-lgcc1"
8859 aros_shared_default=no
8860 aros_shared_cflags="-fpic"
8861 aros_shared_aflags=""
8862 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8863 aros_kernel_ldflags="-Wl,-rpath,./lib"
8864 aros_debug_cppflags="$aros_messages_debug"
8865 aros_debug_cflags="$aros_symbols_debug"
8866 aros_debug_aflags=""
8867 aros_debug_ldflags="$aros_symbols_debug"
8868 aros_mungwall_debug="0"
8869 aros_modules_debug="0"
8870 gcc_target_cpu="mc68000"
8871 ignore_undefined_symbols="-ius"
8874 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8876 esac
8879 mac*)
8880 aros_target_arch="mac"
8881 aros_shared_default="no"
8882 case "$target_cpu" in
8883 *m68k*)
8884 aros_target_cpu="m68k"
8885 aros_object_format="m68kelf"
8886 aros_flavour="mac68knative"
8887 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8888 aros_nominal_width=512
8889 aros_nominal_height=384
8890 aros_nominal_depth=8
8891 aros_target_ar_flags="cru"
8892 aros_compiler_libs="-lgcc1"
8893 aros_shared_default=no
8894 aros_shared_cflags="-fpic"
8895 aros_shared_aflags=""
8896 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8897 aros_kernel_ldflags="-Wl,-rpath,./lib"
8898 aros_debug_cppflags="$aros_messages_debug"
8899 aros_debug_cflags="$aros_symbols_debug"
8900 aros_debug_aflags=""
8901 aros_debug_ldflags="$aros_symbols_debug"
8902 aros_mungwall_debug="0"
8903 aros_modules_debug="0"
8904 gcc_target_cpu="mc68000"
8905 ignore_undefined_symbols="-ius"
8908 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8910 esac
8914 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8916 esac
8918 #-----------------------------------------------------------------------------
8919 crosstools_guess="yes"
8920 aros_target_toolchain="no"
8921 aros_config_sysroot=""
8922 aros_kernel_sysroot=""
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8925 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8927 # Check whether --with-kernel-toolchain-prefix was given.
8928 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8929 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8933 $as_echo "$kernel_tool_prefix" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8936 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8938 # Check whether --with-elf-toolchain-prefix was given.
8939 if test "${with_elf_toolchain_prefix+set}" = set; then :
8940 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8941 crosstools_guess="no"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8945 $as_echo "$elf_tool_prefix" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8948 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8950 # Check whether --with-aros-toolchain was given.
8951 if test "${with_aros_toolchain+set}" = set; then :
8952 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8953 crosstools_guess="no"
8956 if test "$aros_tool_prefix" = "yes" ; then
8957 aros_tool_prefix=$aros_target_cpu-aros-
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8960 $as_echo "$aros_tool_prefix" >&6; }
8962 #-----------------------------------------------------------------------------
8963 # Checking if we should build crosstools..
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8965 $as_echo_n "checking whether to build crosstools... " >&6; }
8966 # Check whether --enable-crosstools was given.
8967 if test "${enable_crosstools+set}" = set; then :
8968 enableval=$enable_crosstools; crosstools="$enableval"
8969 else
8970 crosstools="$crosstools_guess"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8974 $as_echo "$crosstools" >&6; }
8976 if test "${crosstools}" = "yes"; then
8977 if test "${crosstools_guess}" = "no"; then
8978 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8982 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8983 aros_target_toolchain="yes"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8987 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8989 # Check whether --with-aros-toolchain-install was given.
8990 if test "${with_aros_toolchain_install+set}" = set; then :
8991 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8994 if test "x$aros_toolchain_install" = "x"; then
8995 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8996 else
8997 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8998 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8999 if test "$crosstools_guess" = "no" ; then
9000 toolchain_needs_sysroot=yes
9002 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9003 aros_kernel_sysroot = $aros_config_sysroot
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9008 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9011 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9012 if test "$toolchain_needs_sysroot" = "yes" ; then
9013 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9016 $as_echo "$toolchain_needs_sysroot" >&6; }
9018 #-----------------------------------------------------------------------------
9019 if test "$aros_toolchain" = "gnu" ; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9021 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9024 # Check whether --with-binutils-version was given.
9025 if test "${with_binutils_version+set}" = set; then :
9026 withval=$with_binutils_version; use_binutils_version="$withval"
9027 else
9028 use_binutils_version=""
9031 if test "$use_binutils_version" = ""; then
9032 target_binutils_version="$default_binutils_version"
9033 else
9034 target_binutils_version="$use_binutils_version"
9036 if test "$aros_toolchain" = "gnu" ; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9038 $as_echo "$target_binutils_version" >&6; }
9042 # Helper to identify gcc version
9045 #-----------------------------------------------------------------------------
9046 if test "$aros_toolchain" = "gnu" ; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9048 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9051 # Check whether --with-gcc-version was given.
9052 if test "${with_gcc_version+set}" = set; then :
9053 withval=$with_gcc_version; use_gcc_version="$withval"
9054 else
9055 use_gcc_version=""
9058 if test "$use_gcc_version" = ""; then
9059 if test "${crosstools}" = "no"; then
9060 if test "x$aros_toolchain_install" != "x"; then
9062 target_gcc_version=""
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9064 $as_echo_n "checking gcc version... " >&6; }
9065 if ${ax_cv_gcc_version+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9069 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9070 if test "x$ax_cv_gcc_version" = "x"; then :
9072 ax_cv_gcc_version=""
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9078 $as_echo "$ax_cv_gcc_version" >&6; }
9079 target_gcc_version=$ax_cv_gcc_version
9084 if test "$use_gcc_version" = ""; then
9085 target_gcc_version="$default_gcc_version"
9087 else
9088 target_gcc_version="$use_gcc_version"
9090 if test "$aros_toolchain" = "gnu" ; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9092 $as_echo "$target_gcc_version" >&6; }
9094 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9095 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9096 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9098 gcc_fix_bitfields="false"
9099 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9100 gcc_fix_bitfields="true"
9101 else
9102 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9103 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9104 gcc_fix_bitfields="true"
9109 if test "$gcc_fix_bitfields" = "true" ; then
9110 case "$aros_target_cpu" in
9111 *x86_64* | i386)
9112 x86_isa_extra="$x86_isa_extra -mno-ms-bitfields"
9113 x86_64_isa_extra="$x86_64_isa_extra -mno-ms-bitfields"
9115 esac
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9120 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9121 # Check whether --enable-objc was given.
9122 if test "${enable_objc+set}" = set; then :
9123 enableval=$enable_objc; objc="$enableval"
9124 else
9125 objc="no"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9129 $as_echo "$objc" >&6; }
9130 if test "x$objc" = "xyes"; then
9131 objc_target="$objc"
9132 else
9133 objc_target="no-objc"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9137 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9138 # Check whether --enable-java was given.
9139 if test "${enable_java+set}" = set; then :
9140 enableval=$enable_java; java="$enableval"
9141 else
9142 java="no"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9146 $as_echo "$java" >&6; }
9147 if test "x$java" != "xno"; then
9148 java_target="$java"
9149 else
9150 java_target="no-java"
9153 spec_obj_format="-m $aros_object_format"
9154 # Now process extra architecture-specific options.
9155 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9156 # as well as floating-point ABI.
9157 case "$aros_target_cpu" in
9158 *x86_64*)
9159 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9160 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9162 arm*)
9163 if test "$gcc_default_cpu" = ""; then
9164 gcc_default_cpu="armv6"
9166 if test "$gcc_default_fpu" = ""; then
9167 gcc_default_fpu="vfp"
9169 if test "$gcc_default_float_abi" = ""; then
9170 if test "$target_cpu" = "armhf"; then
9171 gcc_default_float_abi="hard"
9172 else
9173 gcc_default_float_abi="softfp"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9178 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9180 # Check whether --with-cpu was given.
9181 if test "${with_cpu+set}" = set; then :
9182 withval=$with_cpu; aros_gcc_cpu="$withval"
9183 else
9184 aros_gcc_cpu=$gcc_default_cpu
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9188 $as_echo "$aros_gcc_cpu" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9191 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9193 # Check whether --with-fpu was given.
9194 if test "${with_fpu+set}" = set; then :
9195 withval=$with_fpu; aros_gcc_fpu="$withval"
9196 else
9197 aros_gcc_fpu=$gcc_default_fpu
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9201 $as_echo "$aros_gcc_fpu" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9204 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9206 # Check whether --with-float was given.
9207 if test "${with_float+set}" = set; then :
9208 withval=$with_float; aros_gcc_float_abi="$withval"
9209 else
9210 aros_gcc_float_abi=$gcc_default_float_abi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9214 $as_echo "$aros_gcc_float_abi" >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9217 $as_echo_n "checking Which ARM mode to use... " >&6; }
9218 if test "$aros_target_cpu_mode" = ""; then
9219 aros_target_cpu_mode="arm32"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9221 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9224 $as_echo "$aros_target_cpu_mode" >&6; }
9227 case "$aros_target_cpu_mode" in
9228 arm32)
9229 gcc_default_mode="arm"
9230 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9232 arm64)
9233 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9235 thumb)
9236 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9238 thumb1)
9239 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9241 thumb2)
9242 gcc_default_mode="thumb"
9243 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9244 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9247 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9249 esac
9251 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9252 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9253 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9255 i386)
9256 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9257 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9259 esac
9261 # Some architectures may need custom ELF specs.
9262 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9263 elf_specs_in=config/${aros_object_format}-specs.in
9264 else
9265 elf_specs_in=config/elf-specs.in
9268 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9269 # Since we override specs, we may need to put these defines there
9270 if test "$gcc_target_cpu" != ""; then
9271 gcc_target_cpu="-D__${gcc_target_cpu}__"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9275 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9277 # Check whether --with-portssources was given.
9278 if test "${with_portssources+set}" = set; then :
9279 withval=$with_portssources; with_portssrcdir=$withval
9280 else
9281 with_portssrcdir="default"
9284 if test "$with_portssrcdir" = "default"; then
9285 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9286 else
9287 AROS_PORTSSRCDIR="$with_portssrcdir"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9290 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9293 $as_echo_n "checking which bootloader to use... " >&6; }
9295 # Check whether --with-bootloader was given.
9296 if test "${with_bootloader+set}" = set; then :
9297 withval=$with_bootloader; target_bootloader=$withval
9298 else
9299 target_bootloader=$target_bootloader
9302 if test "$target_bootloader" = "none"; then
9303 aros_target_bootloader=""
9304 else
9305 aros_target_bootloader="$target_bootloader"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9308 $as_echo "$target_bootloader" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9311 $as_echo_n "checking which icon-set to use... " >&6; }
9313 # Check whether --with-iconset was given.
9314 if test "${with_iconset+set}" = set; then :
9315 withval=$with_iconset; target_iconset=$withval
9316 else
9317 target_iconset="default"
9320 if test "$target_iconset" = "default"; then
9321 aros_target_iconset="Gorilla"
9322 target_iconset="default (Gorilla)"
9323 else
9324 aros_target_iconset="$target_iconset"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9327 $as_echo "$target_iconset" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9330 $as_echo_n "checking which GUI Theme to use... " >&6; }
9332 # Check whether --with-theme was given.
9333 if test "${with_theme+set}" = set; then :
9334 withval=$with_theme; target_guitheme=$withval
9335 else
9336 target_guitheme="default"
9339 if test "$target_guitheme" = "default"; then
9340 aros_target_guitheme="Ice"
9341 else
9342 aros_target_guitheme="$target_guitheme"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9345 $as_echo "$aros_target_guitheme" >&6; }
9347 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9348 # for target code)
9349 cross_compiling=no
9351 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9352 cross_compiling=yes
9355 if test "$aros_host_cpu" == "x86_64" ; then
9356 if test "$aros_target_cpu" == "i386" ; then
9357 cross_compiling=no
9361 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9362 if test "$aros_host_arch" != "$aros_target_arch" ; then
9363 cross_compiling=yes
9365 else
9366 if test "$host_cc_elf" = "no" ; then
9367 cross_compiling=yes
9371 if test "$cross_compiling" = "no" ; then
9372 kernel_tool_prefix=""
9373 if test "$host_cc_elf" = "yes" ; then
9374 elf_tool_prefix=""
9378 if test "$kernel_tool_version" != ""; then
9379 kernel_tool_version="-$kernel_tool_version"
9382 #######################################################################
9383 ## Compute what toolchains to use, and their paths ##
9384 #######################################################################
9386 # This takes, as input:
9387 # crosstools {yes,no}
9388 # kernel_tool_version {"",[version]}
9389 # target_tool_version {"",[version]}
9390 # kernel_tool_prefix {none,[some-arch-os-]}
9391 # gnu-toolchain -:
9392 # target_tool_prefix ${aros_target_cpu}-aros-
9393 # aros_tool_prefix ${aros_target_cpu}-aros-
9395 # The output is
9396 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9397 # Where the 'kernel' binaries are located
9398 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9399 # Where the 'target' binaries are located
9400 # (not the symlink farm - that is aros_target_*!)
9402 # The rules are:
9403 # if crosstools then
9404 # if kernel_tools_prefix = "no-kernel-prefix-"
9405 # aros_kernel_* = crosstools cc paths
9406 # aros_kernel_cc = elf cc wrapper around crosstools cc
9407 # else
9408 # VALIDATE(${kernel_tools_prefix}*)
9409 # aros_kernel_* = ${kernel_tools_prefix}*
9410 # if ${kernel_tools_prefix}cc is an AROS gcc
9411 # aros_kernel_cc = ${kernel_tools_prefix}cc
9412 # else
9413 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9414 # fi
9415 # fi
9417 # orig_target_* = aros built crosstools
9418 # orig_target_cc = elf cc wrapper around crosstools cc
9419 # else
9420 # VALIDATE(${kernel_tools_prefix}*)
9422 # orig_target_* = aros_kernel_*
9423 # if aros_kernel_cc is an AROS gcc
9424 # orig_target_cc = aros_kernel_cc
9425 # else
9426 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9427 # fi
9428 # fi
9430 if test "$aros_toolchain" = "gnu" ; then
9431 target_tool_prefix="${aros_target_cpu}-aros-"
9432 elif test "$aros_toolchain" = "llvm" ; then
9433 target_tool_prefix="bin/"
9436 if test "$kernel_tool_prefix" != "" ; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9438 $as_echo_n "checking which kernel tools... " >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9440 $as_echo "$kernel_tool_prefix" >&6; };
9443 if test "$kernel_tool_prefix" = "none" ; then
9444 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9445 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9447 else
9448 # Kernel tools required - find them
9449 # Note that 'normally', aros_kernel_* overrides will be
9450 # empty, unless specified in the per-arch sections above.
9451 if test "x$aros_kernel_cpp" = "x"; then
9452 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9454 if test "${kernel_tool_version}" != ""; then
9455 if test "$aros_kernel_cpp" != ""; then
9456 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9457 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9458 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9462 if test "$aros_kernel_cpp" = ""; then
9463 if test "$cross_compiling" = "yes" ; then
9464 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9465 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 case $aros_kernel_cpp in
9472 [\\/]* | ?:[\\/]*)
9473 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9492 esac
9494 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9495 if test -n "$aros_kernel_cpp"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9497 $as_echo "$aros_kernel_cpp" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9504 else
9505 if test "$GCC" = "yes"; then
9506 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9507 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9508 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 case $aros_kernel_cpp in
9515 [\\/]* | ?:[\\/]*)
9516 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in `dirname $aros_gcc_cpp`
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9535 esac
9537 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9538 if test -n "$aros_kernel_cpp"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9540 $as_echo "$aros_kernel_cpp" >&6; }
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9548 if test "$aros_kernel_cpp" = ""; then
9549 # Extract the first word of "cpp", so it can be a program name with args.
9550 set dummy cpp; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 case $aros_kernel_cpp in
9557 [\\/]* | ?:[\\/]*)
9558 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9572 done
9573 done
9574 IFS=$as_save_IFS
9577 esac
9579 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9580 if test -n "$aros_kernel_cpp"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9582 $as_echo "$aros_kernel_cpp" >&6; }
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9591 else
9592 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9593 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9594 set dummy $aros_kernel_cpp; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 case $aros_kernel_cpp in
9601 [\\/]* | ?:[\\/]*)
9602 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9616 done
9617 done
9618 IFS=$as_save_IFS
9621 esac
9623 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9624 if test -n "$aros_kernel_cpp"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9626 $as_echo "$aros_kernel_cpp" >&6; }
9627 else
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9633 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9636 req_avail=yes
9637 if test "$aros_kernel_cpp" = ""; then
9638 req_avail=no
9640 if test "$aros_kernel_cpp" = "no"; then
9641 req_avail=no
9643 if test "$req_avail" = "no"; then
9644 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9647 if test "x$aros_kernel_cc" = "x"; then
9648 aros_kernel_cc=${kernel_tool_prefix}${CC}
9650 if test "${kernel_tool_version}" != ""; then
9651 if test "$aros_kernel_cc" != ""; then
9652 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9653 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9654 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9658 if test "$aros_kernel_cc" = ""; then
9659 if test "$cross_compiling" = "yes" ; then
9660 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9661 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 case $aros_kernel_cc in
9668 [\\/]* | ?:[\\/]*)
9669 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 break 2
9683 done
9684 done
9685 IFS=$as_save_IFS
9688 esac
9690 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9691 if test -n "$aros_kernel_cc"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9693 $as_echo "$aros_kernel_cc" >&6; }
9694 else
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9700 else
9701 if test "$GCC" = "yes"; then
9702 aros_gcc_cc=`$CC -print-prog-name=cc`
9703 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9704 set dummy `basename $aros_gcc_cc`; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 case $aros_kernel_cc in
9711 [\\/]* | ?:[\\/]*)
9712 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in `dirname $aros_gcc_cc`
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9726 done
9727 done
9728 IFS=$as_save_IFS
9731 esac
9733 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9734 if test -n "$aros_kernel_cc"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9736 $as_echo "$aros_kernel_cc" >&6; }
9737 else
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9744 if test "$aros_kernel_cc" = ""; then
9745 # Extract the first word of "cc", so it can be a program name with args.
9746 set dummy cc; ac_word=$2
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748 $as_echo_n "checking for $ac_word... " >&6; }
9749 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 case $aros_kernel_cc in
9753 [\\/]* | ?:[\\/]*)
9754 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758 for as_dir in $PATH
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9764 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9768 done
9769 done
9770 IFS=$as_save_IFS
9773 esac
9775 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9776 if test -n "$aros_kernel_cc"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9778 $as_echo "$aros_kernel_cc" >&6; }
9779 else
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9787 else
9788 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9789 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9790 set dummy $aros_kernel_cc; ac_word=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 case $aros_kernel_cc in
9797 [\\/]* | ?:[\\/]*)
9798 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9817 esac
9819 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9820 if test -n "$aros_kernel_cc"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9822 $as_echo "$aros_kernel_cc" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9829 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9832 req_avail=yes
9833 if test "$aros_kernel_cc" = ""; then
9834 req_avail=no
9836 if test "$aros_kernel_cc" = "no"; then
9837 req_avail=no
9839 if test "$req_avail" = "no"; then
9840 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9843 if test "x$aros_kernel_cxx" = "x"; then
9844 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9846 if test "${kernel_tool_version}" != ""; then
9847 if test "$aros_kernel_cxx" != ""; then
9848 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9849 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9850 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9854 if test "$aros_kernel_cxx" = ""; then
9855 if test "$cross_compiling" = "yes" ; then
9856 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9857 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 case $aros_kernel_cxx in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9879 done
9880 done
9881 IFS=$as_save_IFS
9884 esac
9886 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9887 if test -n "$aros_kernel_cxx"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9889 $as_echo "$aros_kernel_cxx" >&6; }
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9896 else
9897 if test "$GCC" = "yes"; then
9898 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9899 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9900 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 case $aros_kernel_cxx in
9907 [\\/]* | ?:[\\/]*)
9908 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in `dirname $aros_gcc_cxx`
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9922 done
9923 done
9924 IFS=$as_save_IFS
9927 esac
9929 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9930 if test -n "$aros_kernel_cxx"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9932 $as_echo "$aros_kernel_cxx" >&6; }
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9940 if test "$aros_kernel_cxx" = ""; then
9941 # Extract the first word of "cxx", so it can be a program name with args.
9942 set dummy cxx; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 case $aros_kernel_cxx in
9949 [\\/]* | ?:[\\/]*)
9950 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9964 done
9965 done
9966 IFS=$as_save_IFS
9969 esac
9971 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9972 if test -n "$aros_kernel_cxx"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9974 $as_echo "$aros_kernel_cxx" >&6; }
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9983 else
9984 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9985 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9986 set dummy $aros_kernel_cxx; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 case $aros_kernel_cxx in
9993 [\\/]* | ?:[\\/]*)
9994 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10008 done
10009 done
10010 IFS=$as_save_IFS
10013 esac
10015 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10016 if test -n "$aros_kernel_cxx"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10018 $as_echo "$aros_kernel_cxx" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10028 # If it's set, make sure it's really there
10029 if test "x$aros_kernel_cxx" != "x" ; then
10030 req_avail=yes
10031 if test "$aros_kernel_cxx" = ""; then
10032 req_avail=no
10034 if test "$aros_kernel_cxx" = "no"; then
10035 req_avail=no
10037 if test "$req_avail" = "no"; then
10038 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10042 if test "$aros_kernel_ld" = ""; then
10043 if test "$cross_compiling" = "yes" ; then
10044 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10045 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 case $aros_kernel_ld in
10052 [\\/]* | ?:[\\/]*)
10053 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10059 IFS=$as_save_IFS
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 break 2
10067 done
10068 done
10069 IFS=$as_save_IFS
10072 esac
10074 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10075 if test -n "$aros_kernel_ld"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10077 $as_echo "$aros_kernel_ld" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10084 else
10085 if test "$GCC" = "yes"; then
10086 aros_gcc_ld=`$CC -print-prog-name=ld`
10087 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10088 set dummy `basename $aros_gcc_ld`; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 case $aros_kernel_ld in
10095 [\\/]* | ?:[\\/]*)
10096 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in `dirname $aros_gcc_ld`
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10110 done
10111 done
10112 IFS=$as_save_IFS
10115 esac
10117 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10118 if test -n "$aros_kernel_ld"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10120 $as_echo "$aros_kernel_ld" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10128 if test "$aros_kernel_ld" = ""; then
10129 # Extract the first word of "ld", so it can be a program name with args.
10130 set dummy ld; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $aros_kernel_ld in
10137 [\\/]* | ?:[\\/]*)
10138 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10157 esac
10159 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10160 if test -n "$aros_kernel_ld"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10162 $as_echo "$aros_kernel_ld" >&6; }
10163 else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10171 else
10172 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10173 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10174 set dummy $aros_kernel_ld; ac_word=$2
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 $as_echo_n "checking for $ac_word... " >&6; }
10177 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 case $aros_kernel_ld in
10181 [\\/]* | ?:[\\/]*)
10182 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10196 done
10197 done
10198 IFS=$as_save_IFS
10201 esac
10203 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10204 if test -n "$aros_kernel_ld"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10206 $as_echo "$aros_kernel_ld" >&6; }
10207 else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10213 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10216 req_avail=yes
10217 if test "$aros_kernel_ld" = ""; then
10218 req_avail=no
10220 if test "$aros_kernel_ld" = "no"; then
10221 req_avail=no
10223 if test "$req_avail" = "no"; then
10224 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10227 if test "$aros_kernel_as" = ""; then
10228 if test "$cross_compiling" = "yes" ; then
10229 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10230 set dummy ${kernel_tool_prefix}as; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_as+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $aros_kernel_as in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10257 esac
10259 aros_kernel_as=$ac_cv_path_aros_kernel_as
10260 if test -n "$aros_kernel_as"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10262 $as_echo "$aros_kernel_as" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10269 else
10270 if test "$GCC" = "yes"; then
10271 aros_gcc_as=`$CC -print-prog-name=as`
10272 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10273 set dummy `basename $aros_gcc_as`; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_path_aros_kernel_as+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 case $aros_kernel_as in
10280 [\\/]* | ?:[\\/]*)
10281 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in `dirname $aros_gcc_as`
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10295 done
10296 done
10297 IFS=$as_save_IFS
10300 esac
10302 aros_kernel_as=$ac_cv_path_aros_kernel_as
10303 if test -n "$aros_kernel_as"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10305 $as_echo "$aros_kernel_as" >&6; }
10306 else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10313 if test "$aros_kernel_as" = ""; then
10314 # Extract the first word of "as", so it can be a program name with args.
10315 set dummy as; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if ${ac_cv_path_aros_kernel_as+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 case $aros_kernel_as in
10322 [\\/]* | ?:[\\/]*)
10323 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10337 done
10338 done
10339 IFS=$as_save_IFS
10342 esac
10344 aros_kernel_as=$ac_cv_path_aros_kernel_as
10345 if test -n "$aros_kernel_as"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10347 $as_echo "$aros_kernel_as" >&6; }
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10356 else
10357 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10358 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10359 set dummy $aros_kernel_as; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_aros_kernel_as+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 case $aros_kernel_as in
10366 [\\/]* | ?:[\\/]*)
10367 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10381 done
10382 done
10383 IFS=$as_save_IFS
10386 esac
10388 aros_kernel_as=$ac_cv_path_aros_kernel_as
10389 if test -n "$aros_kernel_as"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10391 $as_echo "$aros_kernel_as" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10398 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10401 req_avail=yes
10402 if test "$aros_kernel_as" = ""; then
10403 req_avail=no
10405 if test "$aros_kernel_as" = "no"; then
10406 req_avail=no
10408 if test "$req_avail" = "no"; then
10409 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10412 if test "$aros_kernel_ar" = ""; then
10413 if test "$cross_compiling" = "yes" ; then
10414 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10415 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 case $aros_kernel_ar in
10422 [\\/]* | ?:[\\/]*)
10423 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 break 2
10437 done
10438 done
10439 IFS=$as_save_IFS
10442 esac
10444 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10445 if test -n "$aros_kernel_ar"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10447 $as_echo "$aros_kernel_ar" >&6; }
10448 else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10454 else
10455 if test "$GCC" = "yes"; then
10456 aros_gcc_ar=`$CC -print-prog-name=ar`
10457 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10458 set dummy `basename $aros_gcc_ar`; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 case $aros_kernel_ar in
10465 [\\/]* | ?:[\\/]*)
10466 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in `dirname $aros_gcc_ar`
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10480 done
10481 done
10482 IFS=$as_save_IFS
10485 esac
10487 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10488 if test -n "$aros_kernel_ar"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10490 $as_echo "$aros_kernel_ar" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10498 if test "$aros_kernel_ar" = ""; then
10499 # Extract the first word of "ar", so it can be a program name with args.
10500 set dummy ar; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 case $aros_kernel_ar in
10507 [\\/]* | ?:[\\/]*)
10508 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10522 done
10523 done
10524 IFS=$as_save_IFS
10527 esac
10529 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10530 if test -n "$aros_kernel_ar"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10532 $as_echo "$aros_kernel_ar" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10541 else
10542 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10543 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10544 set dummy $aros_kernel_ar; ac_word=$2
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 case $aros_kernel_ar in
10551 [\\/]* | ?:[\\/]*)
10552 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10566 done
10567 done
10568 IFS=$as_save_IFS
10571 esac
10573 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10574 if test -n "$aros_kernel_ar"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10576 $as_echo "$aros_kernel_ar" >&6; }
10577 else
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 $as_echo "no" >&6; }
10583 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10586 req_avail=yes
10587 if test "$aros_kernel_ar" = ""; then
10588 req_avail=no
10590 if test "$aros_kernel_ar" = "no"; then
10591 req_avail=no
10593 if test "$req_avail" = "no"; then
10594 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10597 if test "$aros_kernel_ranlib" = ""; then
10598 if test "$cross_compiling" = "yes" ; then
10599 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10600 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 case $aros_kernel_ranlib in
10607 [\\/]* | ?:[\\/]*)
10608 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
10616 for ac_exec_ext in '' $ac_executable_extensions; do
10617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10618 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 break 2
10622 done
10623 done
10624 IFS=$as_save_IFS
10627 esac
10629 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10630 if test -n "$aros_kernel_ranlib"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10632 $as_echo "$aros_kernel_ranlib" >&6; }
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10639 else
10640 if test "$GCC" = "yes"; then
10641 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10642 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10643 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 $as_echo_n "checking for $ac_word... " >&6; }
10646 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 case $aros_kernel_ranlib in
10650 [\\/]* | ?:[\\/]*)
10651 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in `dirname $aros_gcc_ranlib`
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10661 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10665 done
10666 done
10667 IFS=$as_save_IFS
10670 esac
10672 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10673 if test -n "$aros_kernel_ranlib"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10675 $as_echo "$aros_kernel_ranlib" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10683 if test "$aros_kernel_ranlib" = ""; then
10684 # Extract the first word of "ranlib", so it can be a program name with args.
10685 set dummy ranlib; ac_word=$2
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687 $as_echo_n "checking for $ac_word... " >&6; }
10688 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 case $aros_kernel_ranlib in
10692 [\\/]* | ?:[\\/]*)
10693 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10707 done
10708 done
10709 IFS=$as_save_IFS
10712 esac
10714 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10715 if test -n "$aros_kernel_ranlib"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10717 $as_echo "$aros_kernel_ranlib" >&6; }
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10726 else
10727 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10728 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10729 set dummy $aros_kernel_ranlib; ac_word=$2
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10731 $as_echo_n "checking for $ac_word... " >&6; }
10732 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 case $aros_kernel_ranlib in
10736 [\\/]* | ?:[\\/]*)
10737 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10747 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10751 done
10752 done
10753 IFS=$as_save_IFS
10756 esac
10758 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10759 if test -n "$aros_kernel_ranlib"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10761 $as_echo "$aros_kernel_ranlib" >&6; }
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10768 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10771 req_avail=yes
10772 if test "$aros_kernel_ranlib" = ""; then
10773 req_avail=no
10775 if test "$aros_kernel_ranlib" = "no"; then
10776 req_avail=no
10778 if test "$req_avail" = "no"; then
10779 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10782 if test "$aros_kernel_nm" = ""; then
10783 if test "$cross_compiling" = "yes" ; then
10784 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10785 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 case $aros_kernel_nm in
10792 [\\/]* | ?:[\\/]*)
10793 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 break 2
10807 done
10808 done
10809 IFS=$as_save_IFS
10812 esac
10814 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10815 if test -n "$aros_kernel_nm"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10817 $as_echo "$aros_kernel_nm" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10824 else
10825 if test "$GCC" = "yes"; then
10826 aros_gcc_nm=`$CC -print-prog-name=nm`
10827 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10828 set dummy `basename $aros_gcc_nm`; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 case $aros_kernel_nm in
10835 [\\/]* | ?:[\\/]*)
10836 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in `dirname $aros_gcc_nm`
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10855 esac
10857 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10858 if test -n "$aros_kernel_nm"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10860 $as_echo "$aros_kernel_nm" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10868 if test "$aros_kernel_nm" = ""; then
10869 # Extract the first word of "nm", so it can be a program name with args.
10870 set dummy nm; ac_word=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 case $aros_kernel_nm in
10877 [\\/]* | ?:[\\/]*)
10878 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10892 done
10893 done
10894 IFS=$as_save_IFS
10897 esac
10899 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10900 if test -n "$aros_kernel_nm"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10902 $as_echo "$aros_kernel_nm" >&6; }
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10911 else
10912 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10913 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10914 set dummy $aros_kernel_nm; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 case $aros_kernel_nm in
10921 [\\/]* | ?:[\\/]*)
10922 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10936 done
10937 done
10938 IFS=$as_save_IFS
10941 esac
10943 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10944 if test -n "$aros_kernel_nm"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10946 $as_echo "$aros_kernel_nm" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10953 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10956 req_avail=yes
10957 if test "$aros_kernel_nm" = ""; then
10958 req_avail=no
10960 if test "$aros_kernel_nm" = "no"; then
10961 req_avail=no
10963 if test "$req_avail" = "no"; then
10964 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10967 if test "$aros_kernel_strip" = ""; then
10968 if test "$cross_compiling" = "yes" ; then
10969 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10970 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 case $aros_kernel_strip in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10992 done
10993 done
10994 IFS=$as_save_IFS
10997 esac
10999 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11000 if test -n "$aros_kernel_strip"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11002 $as_echo "$aros_kernel_strip" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11009 else
11010 if test "$GCC" = "yes"; then
11011 aros_gcc_strip=`$CC -print-prog-name=strip`
11012 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11013 set dummy `basename $aros_gcc_strip`; ac_word=$2
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015 $as_echo_n "checking for $ac_word... " >&6; }
11016 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 case $aros_kernel_strip in
11020 [\\/]* | ?:[\\/]*)
11021 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in `dirname $aros_gcc_strip`
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11031 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11040 esac
11042 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11043 if test -n "$aros_kernel_strip"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11045 $as_echo "$aros_kernel_strip" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11053 if test "$aros_kernel_strip" = ""; then
11054 # Extract the first word of "strip", so it can be a program name with args.
11055 set dummy strip; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 case $aros_kernel_strip in
11062 [\\/]* | ?:[\\/]*)
11063 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 break 2
11077 done
11078 done
11079 IFS=$as_save_IFS
11082 esac
11084 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11085 if test -n "$aros_kernel_strip"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11087 $as_echo "$aros_kernel_strip" >&6; }
11088 else
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11096 else
11097 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11098 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11099 set dummy $aros_kernel_strip; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 case $aros_kernel_strip in
11106 [\\/]* | ?:[\\/]*)
11107 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11126 esac
11128 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11129 if test -n "$aros_kernel_strip"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11131 $as_echo "$aros_kernel_strip" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11138 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11141 req_avail=yes
11142 if test "$aros_kernel_strip" = ""; then
11143 req_avail=no
11145 if test "$aros_kernel_strip" = "no"; then
11146 req_avail=no
11148 if test "$req_avail" = "no"; then
11149 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11152 # Objcopy and objdump are not required for the kernel
11153 # toolchain on many architectures.
11154 # So we'll look for them, but not make them strictly required.
11156 if test "$aros_kernel_objcopy" = ""; then
11157 if test "$cross_compiling" = "yes" ; then
11158 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11159 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 case $aros_kernel_objcopy in
11166 [\\/]* | ?:[\\/]*)
11167 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11177 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11181 done
11182 done
11183 IFS=$as_save_IFS
11186 esac
11188 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11189 if test -n "$aros_kernel_objcopy"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11191 $as_echo "$aros_kernel_objcopy" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11198 else
11199 if test "$GCC" = "yes"; then
11200 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11201 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11202 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $aros_kernel_objcopy in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in `dirname $aros_gcc_objcopy`
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11224 done
11225 done
11226 IFS=$as_save_IFS
11229 esac
11231 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11232 if test -n "$aros_kernel_objcopy"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11234 $as_echo "$aros_kernel_objcopy" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11242 if test "$aros_kernel_objcopy" = ""; then
11243 # Extract the first word of "objcopy", so it can be a program name with args.
11244 set dummy objcopy; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 case $aros_kernel_objcopy in
11251 [\\/]* | ?:[\\/]*)
11252 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11266 done
11267 done
11268 IFS=$as_save_IFS
11271 esac
11273 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11274 if test -n "$aros_kernel_objcopy"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11276 $as_echo "$aros_kernel_objcopy" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11285 else
11286 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11287 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11288 set dummy $aros_kernel_objcopy; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 case $aros_kernel_objcopy in
11295 [\\/]* | ?:[\\/]*)
11296 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11310 done
11311 done
11312 IFS=$as_save_IFS
11315 esac
11317 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11318 if test -n "$aros_kernel_objcopy"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11320 $as_echo "$aros_kernel_objcopy" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11327 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11331 if test "$aros_kernel_objdump" = ""; then
11332 if test "$cross_compiling" = "yes" ; then
11333 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11334 set dummy ${kernel_tool_prefix}objdump; 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_objdump+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 case $aros_kernel_objdump in
11341 [\\/]* | ?:[\\/]*)
11342 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
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_objdump="$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_objdump=$ac_cv_path_aros_kernel_objdump
11364 if test -n "$aros_kernel_objdump"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11366 $as_echo "$aros_kernel_objdump" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11373 else
11374 if test "$GCC" = "yes"; then
11375 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11376 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11377 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 case $aros_kernel_objdump in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in `dirname $aros_gcc_objdump`
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11399 done
11400 done
11401 IFS=$as_save_IFS
11404 esac
11406 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11407 if test -n "$aros_kernel_objdump"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11409 $as_echo "$aros_kernel_objdump" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11417 if test "$aros_kernel_objdump" = ""; then
11418 # Extract the first word of "objdump", so it can be a program name with args.
11419 set dummy objdump; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 case $aros_kernel_objdump in
11426 [\\/]* | ?:[\\/]*)
11427 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11437 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11446 esac
11448 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11449 if test -n "$aros_kernel_objdump"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11451 $as_echo "$aros_kernel_objdump" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11460 else
11461 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11462 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11463 set dummy $aros_kernel_objdump; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 case $aros_kernel_objdump in
11470 [\\/]* | ?:[\\/]*)
11471 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11485 done
11486 done
11487 IFS=$as_save_IFS
11490 esac
11492 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11493 if test -n "$aros_kernel_objdump"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11495 $as_echo "$aros_kernel_objdump" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11502 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11505 if test "x${crosstools}" != "xyes" ; then
11506 req_avail=yes
11507 if test "$aros_kernel_objcopy" = ""; then
11508 req_avail=no
11510 if test "$aros_kernel_objcopy" = "no"; then
11511 req_avail=no
11513 if test "$req_avail" = "no"; then
11514 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11516 req_avail=yes
11517 if test "$aros_kernel_objdump" = ""; then
11518 req_avail=no
11520 if test "$aros_kernel_objdump" = "no"; then
11521 req_avail=no
11523 if test "$req_avail" = "no"; then
11524 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11530 $as_echo_n "checking which target tools to use... " >&6; }
11531 if test "$aros_target_toolchain" = "yes"; then
11532 if test "$aros_toolchain" = "llvm" ; then
11533 msg_result="llvm"
11534 else
11535 msg_result=$target_tool_prefix
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11538 $as_echo "$msg_result" >&6; }
11539 # We are building AROS crosstools
11540 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11541 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11542 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11543 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11544 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11545 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11546 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11547 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11548 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11549 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11550 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11551 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11552 else
11553 # Determine whether AROS or ELF tools should be used
11554 if test "$aros_tool_prefix" = "none"; then
11555 aros_tool_prefix="${elf_tool_prefix}"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11559 $as_echo "$aros_tool_prefix" >&6; }
11560 # We are *not* building AROS crosstools - use the AROS or ELF tools
11562 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11563 if test "$cross_compiling" = "yes" ; then
11564 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11565 set dummy ${target_tool_prefix}cpp; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if ${ac_cv_path_orig_target_cpp+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 case $orig_target_cpp in
11572 [\\/]* | ?:[\\/]*)
11573 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 break 2
11587 done
11588 done
11589 IFS=$as_save_IFS
11592 esac
11594 orig_target_cpp=$ac_cv_path_orig_target_cpp
11595 if test -n "$orig_target_cpp"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11597 $as_echo "$orig_target_cpp" >&6; }
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11604 else
11605 if test "$GCC" = "yes"; then
11606 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11607 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11608 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if ${ac_cv_path_orig_target_cpp+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 case $orig_target_cpp in
11615 [\\/]* | ?:[\\/]*)
11616 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in `dirname $aros_gcc_cpp`
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11630 done
11631 done
11632 IFS=$as_save_IFS
11635 esac
11637 orig_target_cpp=$ac_cv_path_orig_target_cpp
11638 if test -n "$orig_target_cpp"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11640 $as_echo "$orig_target_cpp" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11648 if test "$orig_target_cpp" = ""; then
11649 # Extract the first word of "cpp", so it can be a program name with args.
11650 set dummy cpp; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_path_orig_target_cpp+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 case $orig_target_cpp in
11657 [\\/]* | ?:[\\/]*)
11658 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11672 done
11673 done
11674 IFS=$as_save_IFS
11677 esac
11679 orig_target_cpp=$ac_cv_path_orig_target_cpp
11680 if test -n "$orig_target_cpp"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11682 $as_echo "$orig_target_cpp" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11691 else
11692 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11693 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11694 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_path_orig_target_cpp+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 case $orig_target_cpp in
11701 [\\/]* | ?:[\\/]*)
11702 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11716 done
11717 done
11718 IFS=$as_save_IFS
11721 esac
11723 orig_target_cpp=$ac_cv_path_orig_target_cpp
11724 if test -n "$orig_target_cpp"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11726 $as_echo "$orig_target_cpp" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11733 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11736 req_avail=yes
11737 if test "$orig_target_cpp" = ""; then
11738 req_avail=no
11740 if test "$orig_target_cpp" = "no"; then
11741 req_avail=no
11743 if test "$req_avail" = "no"; then
11744 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11747 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11748 if test "$cross_compiling" = "yes" ; then
11749 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11750 set dummy ${target_tool_prefix}gcc; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_path_orig_target_cc+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 case $orig_target_cc in
11757 [\\/]* | ?:[\\/]*)
11758 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11768 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11772 done
11773 done
11774 IFS=$as_save_IFS
11777 esac
11779 orig_target_cc=$ac_cv_path_orig_target_cc
11780 if test -n "$orig_target_cc"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11782 $as_echo "$orig_target_cc" >&6; }
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11789 else
11790 if test "$GCC" = "yes"; then
11791 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11792 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11793 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_orig_target_cc+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 case $orig_target_cc in
11800 [\\/]* | ?:[\\/]*)
11801 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in `dirname $aros_gcc_gcc`
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11820 esac
11822 orig_target_cc=$ac_cv_path_orig_target_cc
11823 if test -n "$orig_target_cc"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11825 $as_echo "$orig_target_cc" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11833 if test "$orig_target_cc" = ""; then
11834 # Extract the first word of "gcc", so it can be a program name with args.
11835 set dummy gcc; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_path_orig_target_cc+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 case $orig_target_cc in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11862 esac
11864 orig_target_cc=$ac_cv_path_orig_target_cc
11865 if test -n "$orig_target_cc"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11867 $as_echo "$orig_target_cc" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11876 else
11877 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11878 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11879 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_path_orig_target_cc+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 case $orig_target_cc in
11886 [\\/]* | ?:[\\/]*)
11887 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11901 done
11902 done
11903 IFS=$as_save_IFS
11906 esac
11908 orig_target_cc=$ac_cv_path_orig_target_cc
11909 if test -n "$orig_target_cc"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11911 $as_echo "$orig_target_cc" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11918 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11921 req_avail=yes
11922 if test "$orig_target_cc" = ""; then
11923 req_avail=no
11925 if test "$orig_target_cc" = "no"; then
11926 req_avail=no
11928 if test "$req_avail" = "no"; then
11929 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11932 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11933 if test "$cross_compiling" = "yes" ; then
11934 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11935 set dummy ${target_tool_prefix}g++; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if ${ac_cv_path_orig_target_cxx+:} false; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $orig_target_cxx in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11957 done
11958 done
11959 IFS=$as_save_IFS
11962 esac
11964 orig_target_cxx=$ac_cv_path_orig_target_cxx
11965 if test -n "$orig_target_cxx"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11967 $as_echo "$orig_target_cxx" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11974 else
11975 if test "$GCC" = "yes"; then
11976 aros_gcc_g++=`$CC -print-prog-name=g++`
11977 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11978 set dummy `basename $aros_gcc_g++`; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_orig_target_cxx+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 case $orig_target_cxx in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in `dirname $aros_gcc_g++`
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
12000 done
12001 done
12002 IFS=$as_save_IFS
12005 esac
12007 orig_target_cxx=$ac_cv_path_orig_target_cxx
12008 if test -n "$orig_target_cxx"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12010 $as_echo "$orig_target_cxx" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12018 if test "$orig_target_cxx" = ""; then
12019 # Extract the first word of "g++", so it can be a program name with args.
12020 set dummy g++; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if ${ac_cv_path_orig_target_cxx+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 case $orig_target_cxx in
12027 [\\/]* | ?:[\\/]*)
12028 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12042 done
12043 done
12044 IFS=$as_save_IFS
12047 esac
12049 orig_target_cxx=$ac_cv_path_orig_target_cxx
12050 if test -n "$orig_target_cxx"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12052 $as_echo "$orig_target_cxx" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12061 else
12062 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12063 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12064 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_path_orig_target_cxx+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 case $orig_target_cxx in
12071 [\\/]* | ?:[\\/]*)
12072 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12082 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 break 2
12086 done
12087 done
12088 IFS=$as_save_IFS
12091 esac
12093 orig_target_cxx=$ac_cv_path_orig_target_cxx
12094 if test -n "$orig_target_cxx"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12096 $as_echo "$orig_target_cxx" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12103 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12106 req_avail=yes
12107 if test "$orig_target_cxx" = ""; then
12108 req_avail=no
12110 if test "$orig_target_cxx" = "no"; then
12111 req_avail=no
12113 if test "$req_avail" = "no"; then
12114 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12117 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12118 if test "$cross_compiling" = "yes" ; then
12119 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12120 set dummy ${target_tool_prefix}gcc; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if ${ac_cv_path_orig_target_ld+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 case $orig_target_ld in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12142 done
12143 done
12144 IFS=$as_save_IFS
12147 esac
12149 orig_target_ld=$ac_cv_path_orig_target_ld
12150 if test -n "$orig_target_ld"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12152 $as_echo "$orig_target_ld" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12159 else
12160 if test "$GCC" = "yes"; then
12161 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12162 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12163 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_path_orig_target_ld+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 case $orig_target_ld in
12170 [\\/]* | ?:[\\/]*)
12171 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in `dirname $aros_gcc_gcc`
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12181 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 break 2
12185 done
12186 done
12187 IFS=$as_save_IFS
12190 esac
12192 orig_target_ld=$ac_cv_path_orig_target_ld
12193 if test -n "$orig_target_ld"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12195 $as_echo "$orig_target_ld" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12203 if test "$orig_target_ld" = ""; then
12204 # Extract the first word of "gcc", so it can be a program name with args.
12205 set dummy gcc; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_orig_target_ld+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 case $orig_target_ld in
12212 [\\/]* | ?:[\\/]*)
12213 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12227 done
12228 done
12229 IFS=$as_save_IFS
12232 esac
12234 orig_target_ld=$ac_cv_path_orig_target_ld
12235 if test -n "$orig_target_ld"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12237 $as_echo "$orig_target_ld" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12246 else
12247 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12248 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12249 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if ${ac_cv_path_orig_target_ld+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 case $orig_target_ld in
12256 [\\/]* | ?:[\\/]*)
12257 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12271 done
12272 done
12273 IFS=$as_save_IFS
12276 esac
12278 orig_target_ld=$ac_cv_path_orig_target_ld
12279 if test -n "$orig_target_ld"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12281 $as_echo "$orig_target_ld" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12291 req_avail=yes
12292 if test "$orig_target_ld" = ""; then
12293 req_avail=no
12295 if test "$orig_target_ld" = "no"; then
12296 req_avail=no
12298 if test "$req_avail" = "no"; then
12299 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12302 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12303 if test "$cross_compiling" = "yes" ; then
12304 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12305 set dummy ${target_tool_prefix}as; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_path_orig_target_as+:} false; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 case $orig_target_as in
12312 [\\/]* | ?:[\\/]*)
12313 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 break 2
12327 done
12328 done
12329 IFS=$as_save_IFS
12332 esac
12334 orig_target_as=$ac_cv_path_orig_target_as
12335 if test -n "$orig_target_as"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12337 $as_echo "$orig_target_as" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12344 else
12345 if test "$GCC" = "yes"; then
12346 aros_gcc_as=`$CC -print-prog-name=as`
12347 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12348 set dummy `basename $aros_gcc_as`; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if ${ac_cv_path_orig_target_as+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 case $orig_target_as in
12355 [\\/]* | ?:[\\/]*)
12356 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in `dirname $aros_gcc_as`
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12370 done
12371 done
12372 IFS=$as_save_IFS
12375 esac
12377 orig_target_as=$ac_cv_path_orig_target_as
12378 if test -n "$orig_target_as"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12380 $as_echo "$orig_target_as" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12388 if test "$orig_target_as" = ""; then
12389 # Extract the first word of "as", so it can be a program name with args.
12390 set dummy as; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_orig_target_as+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $orig_target_as in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12408 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12417 esac
12419 orig_target_as=$ac_cv_path_orig_target_as
12420 if test -n "$orig_target_as"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12422 $as_echo "$orig_target_as" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12431 else
12432 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12433 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12434 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_orig_target_as+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $orig_target_as in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12456 done
12457 done
12458 IFS=$as_save_IFS
12461 esac
12463 orig_target_as=$ac_cv_path_orig_target_as
12464 if test -n "$orig_target_as"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12466 $as_echo "$orig_target_as" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12473 orig_target_as="$orig_target_as $ac_tool_optarg"
12476 req_avail=yes
12477 if test "$orig_target_as" = ""; then
12478 req_avail=no
12480 if test "$orig_target_as" = "no"; then
12481 req_avail=no
12483 if test "$req_avail" = "no"; then
12484 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12487 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12488 if test "$cross_compiling" = "yes" ; then
12489 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12490 set dummy ${target_tool_prefix}ar; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_path_orig_target_ar+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 case $orig_target_ar in
12497 [\\/]* | ?:[\\/]*)
12498 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12512 done
12513 done
12514 IFS=$as_save_IFS
12517 esac
12519 orig_target_ar=$ac_cv_path_orig_target_ar
12520 if test -n "$orig_target_ar"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12522 $as_echo "$orig_target_ar" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12529 else
12530 if test "$GCC" = "yes"; then
12531 aros_gcc_ar=`$CC -print-prog-name=ar`
12532 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12533 set dummy `basename $aros_gcc_ar`; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_path_orig_target_ar+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 case $orig_target_ar in
12540 [\\/]* | ?:[\\/]*)
12541 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in `dirname $aros_gcc_ar`
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12555 done
12556 done
12557 IFS=$as_save_IFS
12560 esac
12562 orig_target_ar=$ac_cv_path_orig_target_ar
12563 if test -n "$orig_target_ar"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12565 $as_echo "$orig_target_ar" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12573 if test "$orig_target_ar" = ""; then
12574 # Extract the first word of "ar", so it can be a program name with args.
12575 set dummy ar; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_path_orig_target_ar+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 case $orig_target_ar in
12582 [\\/]* | ?:[\\/]*)
12583 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12597 done
12598 done
12599 IFS=$as_save_IFS
12602 esac
12604 orig_target_ar=$ac_cv_path_orig_target_ar
12605 if test -n "$orig_target_ar"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12607 $as_echo "$orig_target_ar" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12616 else
12617 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12618 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12619 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_path_orig_target_ar+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 case $orig_target_ar in
12626 [\\/]* | ?:[\\/]*)
12627 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12637 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12641 done
12642 done
12643 IFS=$as_save_IFS
12646 esac
12648 orig_target_ar=$ac_cv_path_orig_target_ar
12649 if test -n "$orig_target_ar"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12651 $as_echo "$orig_target_ar" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12658 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12661 req_avail=yes
12662 if test "$orig_target_ar" = ""; then
12663 req_avail=no
12665 if test "$orig_target_ar" = "no"; then
12666 req_avail=no
12668 if test "$req_avail" = "no"; then
12669 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12672 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12673 if test "$cross_compiling" = "yes" ; then
12674 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12675 set dummy ${target_tool_prefix}ar; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $orig_target_ranlib in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12702 esac
12704 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12705 if test -n "$orig_target_ranlib"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12707 $as_echo "$orig_target_ranlib" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12714 else
12715 if test "$GCC" = "yes"; then
12716 aros_gcc_ar=`$CC -print-prog-name=ar`
12717 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12718 set dummy `basename $aros_gcc_ar`; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 case $orig_target_ranlib in
12725 [\\/]* | ?:[\\/]*)
12726 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in `dirname $aros_gcc_ar`
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12740 done
12741 done
12742 IFS=$as_save_IFS
12745 esac
12747 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12748 if test -n "$orig_target_ranlib"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12750 $as_echo "$orig_target_ranlib" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12758 if test "$orig_target_ranlib" = ""; then
12759 # Extract the first word of "ar", so it can be a program name with args.
12760 set dummy ar; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $orig_target_ranlib in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12787 esac
12789 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12790 if test -n "$orig_target_ranlib"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12792 $as_echo "$orig_target_ranlib" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12801 else
12802 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12803 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12804 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 case $orig_target_ranlib in
12811 [\\/]* | ?:[\\/]*)
12812 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12831 esac
12833 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12834 if test -n "$orig_target_ranlib"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12836 $as_echo "$orig_target_ranlib" >&6; }
12837 else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12843 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12846 req_avail=yes
12847 if test "$orig_target_ranlib" = ""; then
12848 req_avail=no
12850 if test "$orig_target_ranlib" = "no"; then
12851 req_avail=no
12853 if test "$req_avail" = "no"; then
12854 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12857 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12858 if test "$cross_compiling" = "yes" ; then
12859 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12860 set dummy ${target_tool_prefix}nm; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if ${ac_cv_path_orig_target_nm+:} false; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 case $orig_target_nm in
12867 [\\/]* | ?:[\\/]*)
12868 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12878 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12882 done
12883 done
12884 IFS=$as_save_IFS
12887 esac
12889 orig_target_nm=$ac_cv_path_orig_target_nm
12890 if test -n "$orig_target_nm"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12892 $as_echo "$orig_target_nm" >&6; }
12893 else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12899 else
12900 if test "$GCC" = "yes"; then
12901 aros_gcc_nm=`$CC -print-prog-name=nm`
12902 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12903 set dummy `basename $aros_gcc_nm`; ac_word=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if ${ac_cv_path_orig_target_nm+:} false; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 case $orig_target_nm in
12910 [\\/]* | ?:[\\/]*)
12911 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in `dirname $aros_gcc_nm`
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12925 done
12926 done
12927 IFS=$as_save_IFS
12930 esac
12932 orig_target_nm=$ac_cv_path_orig_target_nm
12933 if test -n "$orig_target_nm"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12935 $as_echo "$orig_target_nm" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12943 if test "$orig_target_nm" = ""; then
12944 # Extract the first word of "nm", so it can be a program name with args.
12945 set dummy nm; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if ${ac_cv_path_orig_target_nm+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 case $orig_target_nm in
12952 [\\/]* | ?:[\\/]*)
12953 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12967 done
12968 done
12969 IFS=$as_save_IFS
12972 esac
12974 orig_target_nm=$ac_cv_path_orig_target_nm
12975 if test -n "$orig_target_nm"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12977 $as_echo "$orig_target_nm" >&6; }
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12986 else
12987 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12988 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12989 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_orig_target_nm+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 case $orig_target_nm in
12996 [\\/]* | ?:[\\/]*)
12997 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13011 done
13012 done
13013 IFS=$as_save_IFS
13016 esac
13018 orig_target_nm=$ac_cv_path_orig_target_nm
13019 if test -n "$orig_target_nm"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13021 $as_echo "$orig_target_nm" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13028 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13031 req_avail=yes
13032 if test "$orig_target_nm" = ""; then
13033 req_avail=no
13035 if test "$orig_target_nm" = "no"; then
13036 req_avail=no
13038 if test "$req_avail" = "no"; then
13039 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13042 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13043 if test "$cross_compiling" = "yes" ; then
13044 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13045 set dummy ${target_tool_prefix}strip; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_path_orig_target_strip+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 case $orig_target_strip in
13052 [\\/]* | ?:[\\/]*)
13053 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13067 done
13068 done
13069 IFS=$as_save_IFS
13072 esac
13074 orig_target_strip=$ac_cv_path_orig_target_strip
13075 if test -n "$orig_target_strip"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13077 $as_echo "$orig_target_strip" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13084 else
13085 if test "$GCC" = "yes"; then
13086 aros_gcc_strip=`$CC -print-prog-name=strip`
13087 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13088 set dummy `basename $aros_gcc_strip`; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if ${ac_cv_path_orig_target_strip+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 case $orig_target_strip in
13095 [\\/]* | ?:[\\/]*)
13096 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in `dirname $aros_gcc_strip`
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13110 done
13111 done
13112 IFS=$as_save_IFS
13115 esac
13117 orig_target_strip=$ac_cv_path_orig_target_strip
13118 if test -n "$orig_target_strip"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13120 $as_echo "$orig_target_strip" >&6; }
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13128 if test "$orig_target_strip" = ""; then
13129 # Extract the first word of "strip", so it can be a program name with args.
13130 set dummy strip; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_path_orig_target_strip+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 case $orig_target_strip in
13137 [\\/]* | ?:[\\/]*)
13138 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13148 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13152 done
13153 done
13154 IFS=$as_save_IFS
13157 esac
13159 orig_target_strip=$ac_cv_path_orig_target_strip
13160 if test -n "$orig_target_strip"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13162 $as_echo "$orig_target_strip" >&6; }
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13171 else
13172 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13173 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13174 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_orig_target_strip+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 case $orig_target_strip in
13181 [\\/]* | ?:[\\/]*)
13182 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13196 done
13197 done
13198 IFS=$as_save_IFS
13201 esac
13203 orig_target_strip=$ac_cv_path_orig_target_strip
13204 if test -n "$orig_target_strip"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13206 $as_echo "$orig_target_strip" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13213 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13216 req_avail=yes
13217 if test "$orig_target_strip" = ""; then
13218 req_avail=no
13220 if test "$orig_target_strip" = "no"; then
13221 req_avail=no
13223 if test "$req_avail" = "no"; then
13224 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13227 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13228 if test "$cross_compiling" = "yes" ; then
13229 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13230 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 case $orig_target_objcopy in
13237 [\\/]* | ?:[\\/]*)
13238 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13252 done
13253 done
13254 IFS=$as_save_IFS
13257 esac
13259 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13260 if test -n "$orig_target_objcopy"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13262 $as_echo "$orig_target_objcopy" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13269 else
13270 if test "$GCC" = "yes"; then
13271 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13272 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13273 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 case $orig_target_objcopy in
13280 [\\/]* | ?:[\\/]*)
13281 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in `dirname $aros_gcc_objcopy`
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13295 done
13296 done
13297 IFS=$as_save_IFS
13300 esac
13302 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13303 if test -n "$orig_target_objcopy"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13305 $as_echo "$orig_target_objcopy" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13313 if test "$orig_target_objcopy" = ""; then
13314 # Extract the first word of "objcopy", so it can be a program name with args.
13315 set dummy objcopy; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 case $orig_target_objcopy in
13322 [\\/]* | ?:[\\/]*)
13323 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13333 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335 break 2
13337 done
13338 done
13339 IFS=$as_save_IFS
13342 esac
13344 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13345 if test -n "$orig_target_objcopy"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13347 $as_echo "$orig_target_objcopy" >&6; }
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13356 else
13357 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13358 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13359 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 case $orig_target_objcopy in
13366 [\\/]* | ?:[\\/]*)
13367 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13381 done
13382 done
13383 IFS=$as_save_IFS
13386 esac
13388 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13389 if test -n "$orig_target_objcopy"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13391 $as_echo "$orig_target_objcopy" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13398 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13401 req_avail=yes
13402 if test "$orig_target_objcopy" = ""; then
13403 req_avail=no
13405 if test "$orig_target_objcopy" = "no"; then
13406 req_avail=no
13408 if test "$req_avail" = "no"; then
13409 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13412 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13413 if test "$cross_compiling" = "yes" ; then
13414 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13415 set dummy ${target_tool_prefix}objdump; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_path_orig_target_objdump+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 case $orig_target_objdump in
13422 [\\/]* | ?:[\\/]*)
13423 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13437 done
13438 done
13439 IFS=$as_save_IFS
13442 esac
13444 orig_target_objdump=$ac_cv_path_orig_target_objdump
13445 if test -n "$orig_target_objdump"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13447 $as_echo "$orig_target_objdump" >&6; }
13448 else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13454 else
13455 if test "$GCC" = "yes"; then
13456 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13457 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13458 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_path_orig_target_objdump+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 case $orig_target_objdump in
13465 [\\/]* | ?:[\\/]*)
13466 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470 for as_dir in `dirname $aros_gcc_objdump`
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
13474 for ac_exec_ext in '' $ac_executable_extensions; do
13475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13476 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13478 break 2
13480 done
13481 done
13482 IFS=$as_save_IFS
13485 esac
13487 orig_target_objdump=$ac_cv_path_orig_target_objdump
13488 if test -n "$orig_target_objdump"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13490 $as_echo "$orig_target_objdump" >&6; }
13491 else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13498 if test "$orig_target_objdump" = ""; then
13499 # Extract the first word of "objdump", so it can be a program name with args.
13500 set dummy objdump; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_path_orig_target_objdump+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 case $orig_target_objdump in
13507 [\\/]* | ?:[\\/]*)
13508 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13522 done
13523 done
13524 IFS=$as_save_IFS
13527 esac
13529 orig_target_objdump=$ac_cv_path_orig_target_objdump
13530 if test -n "$orig_target_objdump"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13532 $as_echo "$orig_target_objdump" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13541 else
13542 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13543 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13544 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546 $as_echo_n "checking for $ac_word... " >&6; }
13547 if ${ac_cv_path_orig_target_objdump+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 case $orig_target_objdump in
13551 [\\/]* | ?:[\\/]*)
13552 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13566 done
13567 done
13568 IFS=$as_save_IFS
13571 esac
13573 orig_target_objdump=$ac_cv_path_orig_target_objdump
13574 if test -n "$orig_target_objdump"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13576 $as_echo "$orig_target_objdump" >&6; }
13577 else
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13583 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13586 req_avail=yes
13587 if test "$orig_target_objdump" = ""; then
13588 req_avail=no
13590 if test "$orig_target_objdump" = "no"; then
13591 req_avail=no
13593 if test "$req_avail" = "no"; then
13594 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13598 if test "$kernel_tool_prefix" = "none" ; then
13599 # No kernel tools specified
13600 # Assume target tools == kernel tools with ELF wrapper
13601 aros_kernel_cc=$orig_target_cc
13602 aros_kernel_cxx=$orig_target_cxx
13603 aros_kernel_cpp=$orig_target_cpp
13604 aros_kernel_ld=$orig_target_ld
13605 aros_kernel_as=$orig_target_as
13606 aros_kernel_ar=$orig_target_ar
13607 aros_kernel_ranlib=$orig_target_ranlib
13608 aros_kernel_nm=$orig_target_nm
13609 aros_kernel_strip=$orig_target_strip
13610 aros_kernel_objcopy=$orig_target_objcopy
13611 aros_kernel_objdump=$orig_target_objdump
13612 use_kernel_cc_wrapper=yes
13615 # At this point, all aros_kernel_* and aros_target_*
13616 # tools should be set up correctly
13618 CC="$aros_kernel_cc $kernel_tool_flags"
13619 CPP="$aros_kernel_cpp"
13621 #-----------------------------------------------------------------------------
13623 # Find all the tools we need to compile. This could be cross-compiling
13624 # though! If that is the case we use the GNU form of the target and
13625 # simply add this to the front of the binary name. This is rather simple,
13626 # but it should work under most circumstances.
13628 # The default tools are to use the same as the host, but only if the
13629 # host and target CPU are the same. With GCC this is normally enough.
13632 aros_cc_pre=""
13633 aros_shared_ld="$aros_host_ld"
13635 aros_target_mkdep="$aros_host_mkdep"
13637 # The default tools executables to be linked to.
13638 if test "$rescomp" != ""; then
13639 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13640 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 case $aros_kernel_rescomp in
13647 [\\/]* | ?:[\\/]*)
13648 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13662 done
13663 done
13664 IFS=$as_save_IFS
13667 esac
13669 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13670 if test -n "$aros_kernel_rescomp"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13672 $as_echo "$aros_kernel_rescomp" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13679 req_avail=yes
13680 if test "$aros_kernel_rescomp" = ""; then
13681 req_avail=no
13683 if test "$aros_kernel_rescomp" = "no"; then
13684 req_avail=no
13686 if test "$req_avail" = "no"; then
13687 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13691 # Set up the sources for the symlink farm
13692 if test "$crosstools" = "yes"; then
13693 crosstools_target=tools-crosstools
13696 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13697 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13699 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13700 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13701 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13702 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13703 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13704 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13705 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13707 # aros_cc_pre is a variable that is added to the front of the compiler name
13708 # in the generated aros-gcc shell script. We need this to enable the cache
13709 # to work across cleaned builds. Also, support DISTCC using the correct
13710 # environment variable.
13713 if test "x${DISTCC}" != "x" ; then
13714 if test "x${CCACHE}" != "x" ; then
13715 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13716 else
13717 aros_cc_pre="${DISTCC} "
13719 else
13720 if test "x${CCACHE}" != "x" ; then
13721 aros_cc_pre="${CCACHE} "
13725 aros_target_nostdinc_cflags=-nostdinc
13727 aros_target_nostartup_ldflags=-nostartfiles
13729 aros_target_nix_ldflags=-nix
13731 aros_target_detach_ldflags=-detach
13733 aros_target_nostdlib_ldflags=-nostdlib
13736 # Target tools
13738 if test "$aros_target_toolchain" != "yes"; then
13739 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13740 if test "$GCC" = "yes"; then
13741 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13743 else
13744 # We do not know which c compiler version we are going to build and what we need to know
13745 # here is different for different versions so this will be set later during the
13746 # build of crosstools.
13747 if test "$aros_toolchain" = "gnu" ; then
13748 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13749 elif test "$aros_toolchain" = "llvm" ; then
13750 prefix="$AROS_CROSSTOOLSDIR/bin/"
13752 aros_target_cc_path=@aros_target_cc_path@
13754 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13755 aros_target_cc="${prefix}${toolchain_c_compiler}"
13756 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13757 aros_target_as="${prefix}${toolchain_as}"
13758 if test "${use_ld_wrapper}" = "yes"; then
13759 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13760 else
13761 aros_target_ld="${prefix}${toolchain_ld}"
13763 aros_toolchain_ld="${prefix}${toolchain_ld}"
13765 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13766 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13767 aros_target_objdump="${prefix}${toolchain_objdump}"
13768 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13769 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13770 aros_target_strip="${prefix}${toolchain_strip}"
13771 aros_plain_nm="${prefix}${toolchain_nm}"
13772 aros_plain_ar="${prefix}${toolchain_ar}"
13774 # Check whether --enable-includes was given.
13775 if test "${enable_includes+set}" = set; then :
13776 enableval=$enable_includes; aros_target_incl=$enable_includes
13777 else
13778 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13782 if test "$aros_kernel_includes" = ""; then
13783 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13784 aros_kernel_includes="-isystem $aros_target_incl"
13788 if test "$aros_kernel_includes" != "" ; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13790 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13791 if test "$aros_kernel_cc_includes" = "" ; then
13792 # Try to guess where the directory is.
13793 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13794 if test -d $aros_kernel_cc_includes; then
13795 # Check if there is also an include-fixed directory and add it
13796 # to kernel compiler's include path as it may contain some of
13797 # the headers we need.
13798 if test -d "$aros_kernel_cc_includes"-fixed; then
13799 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13801 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13802 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13803 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13805 else
13806 # The directory doesn't exist, we need to do some more work.
13807 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13809 # These are the headers we're looking for.
13810 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13811 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13812 zutil.h stdint.h"
13814 dirs=
13815 for h in $headers; do
13816 # Which other headers are needed by each of the above?
13817 deps=$(echo "#include <$h>" | \
13818 $aros_kernel_cc -E -M - 2>/dev/null | \
13819 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13821 # Copy all the needed headers to a directory beneath gendir.
13822 for d in $deps; do
13823 h=$(basename $d)
13824 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13825 sed -n "s,^.*/include\(/.*\),\1,p")
13826 ! test -d $dir && mkdir -p $dir
13827 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13828 done
13829 done
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13833 $as_echo "$aros_kernel_cc_includes" >&6; }
13834 # Adding -nostdinc to kernel includes as they are always used together.
13835 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13838 if test "$crosstools" != "yes"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13840 $as_echo_n "checking for the target compiler's include path... " >&6; }
13841 if test "$aros_target_cc_includes" = "" ; then
13842 #try to guess where the directory is
13843 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13844 if ! test -d $aros_target_cc_includes; then
13845 #the directory doesn't exist, we need to do some more work
13846 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13848 #these are the headers we're looking for
13849 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13850 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13851 zutil.h"
13853 dirs=
13854 for h in $headers; do
13855 #which other headers each of the above headers needs?
13856 deps=$(echo "#include <$h>" | \
13857 $orig_target_cc -E -M - 2>/dev/null | \
13858 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13860 #copy all the needed headers to a directory beneath gendir
13861 for d in $deps; do
13862 h=$(basename $d)
13863 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13864 sed -n "s,^.*/include\(/.*\),\1,p")
13865 ! test -d $dir && mkdir -p $dir
13866 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13867 done
13868 done
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13872 $as_echo "$aros_target_cc_includes" >&6; }
13873 else
13874 # We do not know which c compiler version we are going to build and what we need to know
13875 # here is different for different versions so this will be set later during the
13876 # build of crosstools.
13877 aros_target_cc_includes=@aros_target_cc_includes@
13881 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13882 # On GCC >= 4.0 -iquote should be used
13885 save_cc="$CC"
13886 save_cflags="$CFLAGS"
13887 CFLAGS="-iquote."
13888 kernel_cflags_iquote=$host_cflags_iquote
13889 kernel_cflags_iquote_end=$host_cflags_iquote_end
13890 if test "x-$cross_compiling" = "x-yes"; then
13891 CC="$aros_kernel_cc"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13893 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13894 if test "x-$crosstools" != "x-yes"; then
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13899 main ()
13903 return 0;
13905 _ACEOF
13906 if ac_fn_c_try_compile "$LINENO"; then :
13907 use_no_stack_protector="yes"
13908 else
13909 use_no_stack_protector="no"
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912 else
13913 # we do know it is supported for the smallest version of gcc we are going to build
13914 # we assume it's also supported by later versions
13915 use_no_stack_protector=yes
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13918 $as_echo "$use_no_stack_protector" >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13920 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13921 if test "x-$crosstools" != "x-yes"; then
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13926 main ()
13930 return 0;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 has_iquote="yes"
13935 else
13936 has_iquote="no"
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 else
13940 # we do know it is supported for the smallest version of gcc we are going to build
13941 # we assume it's also supported by later versions
13942 has_iquote=yes
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13945 $as_echo "$has_iquote" >&6; }
13946 if test "x-$has_iquote" = "x-yes" ; then
13947 kernel_cflags_iquote=-iquote
13948 kernel_cflags_iquote_end=
13949 else
13950 kernel_cflags_iquote=-I
13951 kernel_cflags_iquote_end=-I-
13954 if test "x-$use_no_stack_protector" = "x-yes" ; then
13955 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13958 #-----------------------------------------------------------------------------
13960 # Check if we can explicitly choose older version of symbol hashing
13962 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13963 CC="$aros_kernel_cc"
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13965 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13970 main ()
13974 return 0;
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 use_hash_style="yes"
13979 else
13980 use_hash_style="no"
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13985 $as_echo "$use_hash_style" >&6; }
13986 if test "x-$use_hash_style" = "x-yes" ; then
13987 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13989 CC="$save_cc"
13990 CFLAGS="$save_cflags"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13999 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14001 # Check whether --with-resolution was given.
14002 if test "${with_resolution+set}" = set; then :
14003 withval=$with_resolution; resolution=$withval
14004 else
14005 resolution=none
14008 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14009 if test "$resolution" = "yes" ; then
14010 resolution="none"
14012 if test "$resolution" = "no" ; then
14013 resolution="none"
14015 if test "$resolution" != "none" ; then
14016 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14017 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14018 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14021 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14022 aros_cv_nominal_width=$aros_nominal_width
14023 aros_cv_nominal_height=$aros_nominal_height
14024 aros_cv_nominal_depth=$aros_nominal_depth
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14027 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14029 # Check whether --with-serial-debug was given.
14030 if test "${with_serial_debug+set}" = set; then :
14031 withval=$with_serial_debug; serial_debug=$withval
14032 else
14033 serial_debug=none
14036 if test "$aros_serial_debug" = 0 ; then
14037 serial_debug_forced=""
14038 if test "$serial_debug" = "yes" ; then
14039 serial_debug="1"
14041 if test "$serial_debug" = "no" ; then
14042 serial_debug="none"
14044 else
14045 serial_debug_forced="(forced)"
14046 serial_debug=$aros_serial_debug
14048 if test "$serial_debug" != "none" ; then
14049 aros_serial_debug=$serial_debug
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14051 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14052 else
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14058 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14059 # Check whether --enable-palm_debug_hack was given.
14060 if test "${enable_palm_debug_hack+set}" = set; then :
14061 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14062 else
14063 palm_debug_hack="no"
14066 if test "$palm_debug_hack" = "yes" ; then
14067 aros_palm_debug_hack="1"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14070 $as_echo "$palm_debug_hack" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14073 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14074 # Check whether --enable-usb30_code was given.
14075 if test "${enable_usb30_code+set}" = set; then :
14076 enableval=$enable_usb30_code; usb30_code="yes"
14077 else
14078 usb30_code="no"
14081 if test "$usb30_code" = "yes" ; then
14082 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14083 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14086 $as_echo "$usb30_code" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14089 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14090 # Check whether --enable-nesting_supervisor was given.
14091 if test "${enable_nesting_supervisor+set}" = set; then :
14092 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14093 else
14094 nesting_supervisor="no"
14097 if test "$nesting_supervisor" = "yes" ; then
14098 aros_nesting_supervisor="1"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14101 $as_echo "$nesting_supervisor" >&6; }
14103 if test "$aros_enable_mmu" = "" ; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14105 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14106 # Check whether --enable-mmu was given.
14107 if test "${enable_mmu+set}" = set; then :
14108 enableval=$enable_mmu; aros_enable_mmu=$enableval
14109 else
14110 aros_enable_mmu="yes"
14113 if test "$aros_enable_mmu" = "" ; then
14114 aros_enable_mmu="yes"
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14117 $as_echo "$aros_enable_mmu" >&6; }
14119 if test "$aros_enable_mmu" = "no" ; then
14120 aros_enable_mmu="0"
14121 else
14122 aros_enable_mmu="1"
14126 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14128 if test "x-$need_dlopen" != "x-no" ; then
14129 save_libs="$LIBS"
14130 LIBS=""
14131 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14132 if test "x$ac_cv_func_dlopen" = xyes; then :
14133 have_dl="yes"
14134 else
14135 have_dl="no"
14138 if test "x-$have_dl" = "x-no" ; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14141 if ${ac_cv_lib_dl_dlopen+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-ldl $LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char dlopen ();
14157 main ()
14159 return dlopen ();
14161 return 0;
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_lib_dl_dlopen=yes
14166 else
14167 ac_cv_lib_dl_dlopen=no
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LIBS=$ac_check_lib_save_LIBS
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14175 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14176 have_dl="yes"
14177 aros_host_ldflags="$aros_host_ldflags -ldl"
14178 else
14179 have_dl="no"
14183 if test "x-$have_dl" = "x-no" ; then
14184 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14186 LIBS="$save_libs"
14190 # Check whether --enable-x11_hidd was given.
14191 if test "${enable_x11_hidd+set}" = set; then :
14192 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14193 else
14194 x11_hidd="$need_x11"
14197 case "x-$x11_hidd" in
14198 x-yes|x-no|x-auto) ;;
14199 *) x11_hidd="$need_x11" ;;
14200 esac
14202 ENABLE_X11=0
14204 if test "x-$x11_hidd" != "x-no" ; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14207 $as_echo_n "checking for X... " >&6; }
14210 # Check whether --with-x was given.
14211 if test "${with_x+set}" = set; then :
14212 withval=$with_x;
14215 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14216 if test "x$with_x" = xno; then
14217 # The user explicitly disabled X.
14218 have_x=disabled
14219 else
14220 case $x_includes,$x_libraries in #(
14221 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14222 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 # One or both of the vars are not set, and there is no cached value.
14226 ac_x_includes=no ac_x_libraries=no
14227 rm -f -r conftest.dir
14228 if mkdir conftest.dir; then
14229 cd conftest.dir
14230 cat >Imakefile <<'_ACEOF'
14231 incroot:
14232 @echo incroot='${INCROOT}'
14233 usrlibdir:
14234 @echo usrlibdir='${USRLIBDIR}'
14235 libdir:
14236 @echo libdir='${LIBDIR}'
14237 _ACEOF
14238 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14239 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14240 for ac_var in incroot usrlibdir libdir; do
14241 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14242 done
14243 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14244 for ac_extension in a so sl dylib la dll; do
14245 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14246 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14247 ac_im_usrlibdir=$ac_im_libdir; break
14249 done
14250 # Screen out bogus values from the imake configuration. They are
14251 # bogus both because they are the default anyway, and because
14252 # using them would break gcc on systems where it needs fixed includes.
14253 case $ac_im_incroot in
14254 /usr/include) ac_x_includes= ;;
14255 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14256 esac
14257 case $ac_im_usrlibdir in
14258 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14259 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14260 esac
14262 cd ..
14263 rm -f -r conftest.dir
14266 # Standard set of common directories for X headers.
14267 # Check X11 before X11Rn because it is often a symlink to the current release.
14268 ac_x_header_dirs='
14269 /usr/X11/include
14270 /usr/X11R7/include
14271 /usr/X11R6/include
14272 /usr/X11R5/include
14273 /usr/X11R4/include
14275 /usr/include/X11
14276 /usr/include/X11R7
14277 /usr/include/X11R6
14278 /usr/include/X11R5
14279 /usr/include/X11R4
14281 /usr/local/X11/include
14282 /usr/local/X11R7/include
14283 /usr/local/X11R6/include
14284 /usr/local/X11R5/include
14285 /usr/local/X11R4/include
14287 /usr/local/include/X11
14288 /usr/local/include/X11R7
14289 /usr/local/include/X11R6
14290 /usr/local/include/X11R5
14291 /usr/local/include/X11R4
14293 /usr/X386/include
14294 /usr/x386/include
14295 /usr/XFree86/include/X11
14297 /usr/include
14298 /usr/local/include
14299 /usr/unsupported/include
14300 /usr/athena/include
14301 /usr/local/x11r5/include
14302 /usr/lpp/Xamples/include
14304 /usr/openwin/include
14305 /usr/openwin/share/include'
14307 if test "$ac_x_includes" = no; then
14308 # Guess where to find include files, by looking for Xlib.h.
14309 # First, try using that file with no special directory specified.
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <X11/Xlib.h>
14313 _ACEOF
14314 if ac_fn_c_try_cpp "$LINENO"; then :
14315 # We can compile using X headers with no special include directory.
14316 ac_x_includes=
14317 else
14318 for ac_dir in $ac_x_header_dirs; do
14319 if test -r "$ac_dir/X11/Xlib.h"; then
14320 ac_x_includes=$ac_dir
14321 break
14323 done
14325 rm -f conftest.err conftest.i conftest.$ac_ext
14326 fi # $ac_x_includes = no
14328 if test "$ac_x_libraries" = no; then
14329 # Check for the libraries.
14330 # See if we find them without any special options.
14331 # Don't add to $LIBS permanently.
14332 ac_save_LIBS=$LIBS
14333 LIBS="-lX11 $LIBS"
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #include <X11/Xlib.h>
14338 main ()
14340 XrmInitialize ()
14342 return 0;
14344 _ACEOF
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 LIBS=$ac_save_LIBS
14347 # We can link X programs with no special library path.
14348 ac_x_libraries=
14349 else
14350 LIBS=$ac_save_LIBS
14351 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14353 # Don't even attempt the hair of trying to link an X program!
14354 for ac_extension in a so sl dylib la dll; do
14355 if test -r "$ac_dir/libX11.$ac_extension"; then
14356 ac_x_libraries=$ac_dir
14357 break 2
14359 done
14360 done
14362 rm -f core conftest.err conftest.$ac_objext \
14363 conftest$ac_exeext conftest.$ac_ext
14364 fi # $ac_x_libraries = no
14366 case $ac_x_includes,$ac_x_libraries in #(
14367 no,* | *,no | *\'*)
14368 # Didn't find X, or a directory has "'" in its name.
14369 ac_cv_have_x="have_x=no";; #(
14371 # Record where we found X for the cache.
14372 ac_cv_have_x="have_x=yes\
14373 ac_x_includes='$ac_x_includes'\
14374 ac_x_libraries='$ac_x_libraries'"
14375 esac
14377 ;; #(
14378 *) have_x=yes;;
14379 esac
14380 eval "$ac_cv_have_x"
14381 fi # $with_x != no
14383 if test "$have_x" != yes; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14385 $as_echo "$have_x" >&6; }
14386 no_x=yes
14387 else
14388 # If each of the values was on the command line, it overrides each guess.
14389 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14390 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14391 # Update the cache value to reflect the command line values.
14392 ac_cv_have_x="have_x=yes\
14393 ac_x_includes='$x_includes'\
14394 ac_x_libraries='$x_libraries'"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14396 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14400 if test -n "$x_includes"; then
14401 X_CFLAGS="$X_CFLAGS -I$x_includes"
14404 if test -n "$x_libraries"; then
14405 X_LIBS="$X_LIBS -L$x_libraries"
14408 if test "x-$no_x" = "x-yes" ; then
14410 if test "x-$x11_hidd" != "x-auto" ; then
14411 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14414 else
14415 host_x_gfx=yes
14416 ENABLE_X11=1
14418 aros_host_x11_cflags="$X_CFLAGS"
14419 aros_host_x11_ldflags="$X_LIBS -lX11"
14421 # Check whether --enable-x11_shm was given.
14422 if test "${enable_x11_shm+set}" = set; then :
14423 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14424 else
14425 x11_hidd_shm="auto"
14428 case "x-$x11_hidd_shm" in
14429 x-yes|x-no|x-auto) ;;
14430 *) x11_hidd_shm="auto" ;;
14431 esac
14433 have_xshm=no
14435 if test "x-$x11_hidd_shm" != "x-no" ; then
14437 for ac_header in sys/ipc.h
14438 do :
14439 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14440 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14441 cat >>confdefs.h <<_ACEOF
14442 #define HAVE_SYS_IPC_H 1
14443 _ACEOF
14447 done
14449 for ac_header in sys/shm.h
14450 do :
14451 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14452 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14453 cat >>confdefs.h <<_ACEOF
14454 #define HAVE_SYS_SHM_H 1
14455 _ACEOF
14459 done
14462 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14464 save_cflags="$CFLAGS"
14465 save_ldflags="$LDFLAGS"
14466 CFLAGS="$CFLAGS $X_CFLAGS"
14467 LDFLAGS="$LDFLAGS $X_LIBS"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14469 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14470 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 ac_check_lib_save_LIBS=$LIBS
14474 LIBS="-lXext $LIBS"
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14481 #ifdef __cplusplus
14482 extern "C"
14483 #endif
14484 char XShmQueryExtension ();
14486 main ()
14488 return XShmQueryExtension ();
14490 return 0;
14492 _ACEOF
14493 if ac_fn_c_try_link "$LINENO"; then :
14494 ac_cv_lib_Xext_XShmQueryExtension=yes
14495 else
14496 ac_cv_lib_Xext_XShmQueryExtension=no
14498 rm -f core conftest.err conftest.$ac_objext \
14499 conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14503 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14504 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14505 have_xshm=yes
14508 CFLAGS="$save_cflags"
14509 LDFLAGS="$save_ldflags"
14513 if test "x-$have_xshm" = "x-yes" ; then
14514 DO_XSHM_SUPPORT="1"
14515 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14516 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14517 else
14518 DO_XSHM_SUPPORT="0"
14522 # Check whether --enable-x11_vidmode was given.
14523 if test "${enable_x11_vidmode+set}" = set; then :
14524 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14525 else
14526 x11_hidd_vidmode="auto"
14529 case "x-$x11_hidd_vidmode" in
14530 x-yes|x-no|x-auto) ;;
14531 *) x11_hidd_vidmode="auto" ;;
14532 esac
14534 have_vidmode=no
14536 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14538 save_cflags="$CFLAGS"
14539 save_ldflags="$LDFLAGS"
14540 CFLAGS="$CFLAGS $X_CFLAGS"
14541 LDFLAGS="$LDFLAGS $X_LIBS"
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14543 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14544 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 ac_check_lib_save_LIBS=$LIBS
14548 LIBS="-lXxf86vm $LIBS"
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 char XF86VidModeQueryExtension ();
14560 main ()
14562 return XF86VidModeQueryExtension ();
14564 return 0;
14566 _ACEOF
14567 if ac_fn_c_try_link "$LINENO"; then :
14568 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14569 else
14570 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14577 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14578 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14579 have_vidmode=yes
14582 CFLAGS="$save_cflags"
14583 LDFLAGS="$save_ldflags"
14586 if test "x-$have_vidmode" = "x-yes" ; then
14587 DO_VIDMODE_SUPPORT="1"
14588 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14589 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14590 else
14591 DO_VIDMODE_SUPPORT="0"
14596 # Check whether --enable-sdl_hidd was given.
14597 if test "${enable_sdl_hidd+set}" = set; then :
14598 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14599 else
14600 sdl_hidd="auto"
14603 case "x-$sdl_hidd" in
14604 x-yes|x-no|x-auto) ;;
14605 *) sdl_hidd="auto" ;;
14606 esac
14608 if test "x-$sdl_hidd" != "x-no" ; then
14610 SDL_VERSION=1.2.5
14612 # Check whether --with-sdl-prefix was given.
14613 if test "${with_sdl_prefix+set}" = set; then :
14614 withval=$with_sdl_prefix; sdl_prefix="$withval"
14615 else
14616 sdl_prefix=""
14620 # Check whether --with-sdl-exec-prefix was given.
14621 if test "${with_sdl_exec_prefix+set}" = set; then :
14622 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14623 else
14624 sdl_exec_prefix=""
14627 # Check whether --enable-sdltest was given.
14628 if test "${enable_sdltest+set}" = set; then :
14629 enableval=$enable_sdltest;
14630 else
14631 enable_sdltest=yes
14635 if test x$sdl_exec_prefix != x ; then
14636 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14637 if test x${SDL_CONFIG+set} != xset ; then
14638 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14641 if test x$sdl_prefix != x ; then
14642 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14643 if test x${SDL_CONFIG+set} != xset ; then
14644 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14648 as_save_PATH="$PATH"
14649 if test "x$prefix" != xNONE; then
14650 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14652 # Extract the first word of "sdl-config", so it can be a program name with args.
14653 set dummy sdl-config; ac_word=$2
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 $as_echo_n "checking for $ac_word... " >&6; }
14656 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 case $SDL_CONFIG in
14660 [\\/]* | ?:[\\/]*)
14661 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14667 IFS=$as_save_IFS
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14671 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 break 2
14675 done
14676 done
14677 IFS=$as_save_IFS
14679 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14681 esac
14683 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14684 if test -n "$SDL_CONFIG"; then
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14686 $as_echo "$SDL_CONFIG" >&6; }
14687 else
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14693 PATH="$as_save_PATH"
14694 min_sdl_version=$SDL_VERSION
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14696 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14697 no_sdl=""
14698 if test "$SDL_CONFIG" = "no" ; then
14699 no_sdl=yes
14700 else
14701 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14702 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14704 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14706 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14708 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14710 if test "x$enable_sdltest" = "xyes" ; then
14711 ac_save_CFLAGS="$CFLAGS"
14712 ac_save_CXXFLAGS="$CXXFLAGS"
14713 ac_save_LIBS="$LIBS"
14714 CFLAGS="$CFLAGS $SDL_CFLAGS"
14715 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14716 LIBS="$LIBS $SDL_LIBS"
14717 rm -f conf.sdltest
14718 if test "$cross_compiling" = yes; then :
14719 echo $ac_n "cross compiling; assumed OK... $ac_c"
14720 else
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14724 #include <stdio.h>
14725 #include <stdlib.h>
14726 #include <string.h>
14727 #include "SDL.h"
14729 char*
14730 my_strdup (char *str)
14732 char *new_str;
14734 if (str)
14736 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14737 strcpy (new_str, str);
14739 else
14740 new_str = NULL;
14742 return new_str;
14745 int main (int argc, char *argv[])
14747 int major, minor, micro;
14748 char *tmp_version;
14750 /* This hangs on some systems (?)
14751 system ("touch conf.sdltest");
14753 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14755 /* HP/UX 9 (%@#!) writes to sscanf strings */
14756 tmp_version = my_strdup("$min_sdl_version");
14757 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14758 printf("%s, bad version string\n", "$min_sdl_version");
14759 exit(1);
14762 if (($sdl_major_version > major) ||
14763 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14764 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14766 return 0;
14768 else
14770 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14771 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14772 printf("*** best to upgrade to the required version.\n");
14773 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14774 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14775 printf("*** config.cache before re-running configure\n");
14776 return 1;
14781 _ACEOF
14782 if ac_fn_c_try_run "$LINENO"; then :
14784 else
14785 no_sdl=yes
14787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14788 conftest.$ac_objext conftest.beam conftest.$ac_ext
14791 CFLAGS="$ac_save_CFLAGS"
14792 CXXFLAGS="$ac_save_CXXFLAGS"
14793 LIBS="$ac_save_LIBS"
14796 if test "x$no_sdl" = x ; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14798 $as_echo "yes" >&6; }
14799 have_sdl="yes"
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14803 if test "$SDL_CONFIG" = "no" ; then
14804 echo "*** The sdl-config script installed by SDL could not be found"
14805 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14806 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14807 echo "*** full path to sdl-config."
14808 else
14809 if test -f conf.sdltest ; then
14811 else
14812 echo "*** Could not run SDL test program, checking why..."
14813 CFLAGS="$CFLAGS $SDL_CFLAGS"
14814 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14815 LIBS="$LIBS $SDL_LIBS"
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14819 #include <stdio.h>
14820 #include "SDL.h"
14822 int main(int argc, char *argv[])
14823 { return 0; }
14824 #undef main
14825 #define main K_and_R_C_main
14828 main ()
14830 return 0;
14832 return 0;
14834 _ACEOF
14835 if ac_fn_c_try_link "$LINENO"; then :
14836 echo "*** The test program compiled, but did not run. This usually means"
14837 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14838 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14839 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14840 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14841 echo "*** is required on your system"
14842 echo "***"
14843 echo "*** If you have an old version installed, it is best to remove it, although"
14844 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14845 else
14846 echo "*** The test program failed to compile or link. See the file config.log for the"
14847 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14848 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14849 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14851 rm -f core conftest.err conftest.$ac_objext \
14852 conftest$ac_exeext conftest.$ac_ext
14853 CFLAGS="$ac_save_CFLAGS"
14854 CXXFLAGS="$ac_save_CXXFLAGS"
14855 LIBS="$ac_save_LIBS"
14858 SDL_CFLAGS=""
14859 SDL_LIBS=""
14860 have_sdl="no"
14864 rm -f conf.sdltest
14867 if test "x-$have_sdl" != "x-yes" ; then
14869 if test "x-$sdl_hidd" != "x-auto" ; then
14870 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14873 else
14874 host_sdl_gfx=yes
14875 aros_host_sdl_cflags=$SDL_CFLAGS
14876 aros_host_sdl_libs=$SDL_LIBS
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14884 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14885 # Check whether --enable-dbus was given.
14886 if test "${enable_dbus+set}" = set; then :
14887 enableval=$enable_dbus; dbus="yes"
14888 else
14889 dbus="no"
14892 if test "$dbus" = "yes" ; then
14893 ENABLE_DBUS=1
14894 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14895 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14896 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14897 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14898 else
14899 ENABLE_DBUS=0
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14902 $as_echo "$dbus" >&6; }
14904 if test "$use_kernel_cc_wrapper" = "yes" ; then
14905 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14908 aros_kernel_cppflags=$aros_config_cppflags
14909 aros_optimization_cflags="$optimization_level"
14910 if test "$optimization" = "default"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14912 $as_echo_n "checking default optimization level to use... " >&6; }
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14914 $as_echo "$optimization_level" >&6; }
14918 # Generic
14932 # Compatability with other Amiga-like operation systems
14935 # Host related
14965 # Target Related
15045 # Hosted Graphics Related
15063 # Bootloader related
15066 # Native version related
15071 # Palm native version related
15074 # Unix/Hosted version related
15077 # MMU related
15080 # Apple iOS related
15085 # ARM default GCC target related
15092 # Android related
15097 # DBUS related
15104 #X11 related
15107 # Debug related
15113 # Collect-aros stuff: "-ius" to ignore undefined symbols
15116 # C compiler related
15121 #ObjC compiler related
15124 #Java related
15127 # USB3.0 code
15130 case "$aros_flavour" in
15131 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15132 aros_flavour="emulation" ;;
15133 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15134 aros_flavour="emulation" ;;
15135 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15136 aros_flavour="standalone";;
15137 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15138 aros_flavour="standalone";;
15139 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15140 aros_flavour="native" ;;
15141 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15142 aros_flavour="native" ;;
15143 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15144 aros_flavour="linklib" ;;
15145 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15146 aros_flavour="palmnative" ;;
15147 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15148 aros_flavour="mac68knative" ;;
15149 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15150 aros_flavour="ppcnative" ;;
15151 esac
15153 if test ! -d ${aros_inc_dir} ; then
15154 ${MKDIR} ${aros_inc_dir}
15156 if test ! -d ${aros_geninc_dir} ; then
15157 ${MKDIR} ${aros_geninc_dir}
15159 if test ! -d ${aros_hostcfg_dir} ; then
15160 ${MKDIR} ${aros_hostcfg_dir}
15162 if test ! -d ${aros_targetcfg_dir} ; then
15163 ${MKDIR} ${aros_targetcfg_dir}
15165 if test ! -d ${aros_tools_dir} ; then
15166 ${MKDIR} ${aros_tools_dir}
15168 if test ! -d ${aros_scripts_dir} ; then
15169 ${MKDIR} ${aros_scripts_dir}
15172 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15175 # Generic build tools (metamake, etc)
15176 ac_config_commands="$ac_config_commands genmf-executable-support"
15178 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"
15181 # Binutils
15182 ac_config_commands="$ac_config_commands binutils-support"
15184 if test "${use_ld_wrapper}" = "yes"; then
15185 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"
15188 # Bare Elf support script and spec
15189 if test "${use_kernel_cc_wrapper}" = "yes"; then
15190 ac_config_commands="$ac_config_commands elf-compiler-support"
15192 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"
15196 # Host compiler support scripts and spec
15197 if test "${aros_target_toolchain}" = "no"; then
15198 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15200 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"
15204 # Android support
15205 if test "$aros_target_variant" == "android"; then
15206 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15210 # cmake helper
15211 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15214 cat >confcache <<\_ACEOF
15215 # This file is a shell script that caches the results of configure
15216 # tests run on this system so they can be shared between configure
15217 # scripts and configure runs, see configure's option --config-cache.
15218 # It is not useful on other systems. If it contains results you don't
15219 # want to keep, you may remove or edit it.
15221 # config.status only pays attention to the cache file if you give it
15222 # the --recheck option to rerun configure.
15224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15226 # following values.
15228 _ACEOF
15230 # The following way of writing the cache mishandles newlines in values,
15231 # but we know of no workaround that is simple, portable, and efficient.
15232 # So, we kill variables containing newlines.
15233 # Ultrix sh set writes to stderr and can't be redirected directly,
15234 # and sets the high bit in the cache file unless we assign to the vars.
15236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15237 eval ac_val=\$$ac_var
15238 case $ac_val in #(
15239 *${as_nl}*)
15240 case $ac_var in #(
15241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15243 esac
15244 case $ac_var in #(
15245 _ | IFS | as_nl) ;; #(
15246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15247 *) { eval $ac_var=; unset $ac_var;} ;;
15248 esac ;;
15249 esac
15250 done
15252 (set) 2>&1 |
15253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15254 *${as_nl}ac_space=\ *)
15255 # `set' does not quote correctly, so add quotes: double-quote
15256 # substitution turns \\\\ into \\, and sed turns \\ into \.
15257 sed -n \
15258 "s/'/'\\\\''/g;
15259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15260 ;; #(
15262 # `set' quotes correctly as required by POSIX, so do not add quotes.
15263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15265 esac |
15266 sort
15268 sed '
15269 /^ac_cv_env_/b end
15270 t clear
15271 :clear
15272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15273 t end
15274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15275 :end' >>confcache
15276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15277 if test -w "$cache_file"; then
15278 if test "x$cache_file" != "x/dev/null"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15280 $as_echo "$as_me: updating cache $cache_file" >&6;}
15281 if test ! -f "$cache_file" || test -h "$cache_file"; then
15282 cat confcache >"$cache_file"
15283 else
15284 case $cache_file in #(
15285 */* | ?:*)
15286 mv -f confcache "$cache_file"$$ &&
15287 mv -f "$cache_file"$$ "$cache_file" ;; #(
15289 mv -f confcache "$cache_file" ;;
15290 esac
15293 else
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15298 rm -f confcache
15300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15301 # Let make expand exec_prefix.
15302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15304 DEFS=-DHAVE_CONFIG_H
15306 ac_libobjs=
15307 ac_ltlibobjs=
15309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15310 # 1. Remove the extension, and $U if already installed.
15311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15314 # will be set to the directory where LIBOBJS objects are built.
15315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15317 done
15318 LIBOBJS=$ac_libobjs
15320 LTLIBOBJS=$ac_ltlibobjs
15324 : "${CONFIG_STATUS=./config.status}"
15325 ac_write_fail=0
15326 ac_clean_files_save=$ac_clean_files
15327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15330 as_write_fail=0
15331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15332 #! $SHELL
15333 # Generated by $as_me.
15334 # Run this file to recreate the current configuration.
15335 # Compiler output produced by configure, useful for debugging
15336 # configure, is in config.log if it exists.
15338 debug=false
15339 ac_cs_recheck=false
15340 ac_cs_silent=false
15342 SHELL=\${CONFIG_SHELL-$SHELL}
15343 export SHELL
15344 _ASEOF
15345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15346 ## -------------------- ##
15347 ## M4sh Initialization. ##
15348 ## -------------------- ##
15350 # Be more Bourne compatible
15351 DUALCASE=1; export DUALCASE # for MKS sh
15352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15353 emulate sh
15354 NULLCMD=:
15355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15356 # is contrary to our usage. Disable this feature.
15357 alias -g '${1+"$@"}'='"$@"'
15358 setopt NO_GLOB_SUBST
15359 else
15360 case `(set -o) 2>/dev/null` in #(
15361 *posix*) :
15362 set -o posix ;; #(
15363 *) :
15365 esac
15369 as_nl='
15371 export as_nl
15372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15373 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15376 # Prefer a ksh shell builtin over an external printf program on Solaris,
15377 # but without wasting forks for bash or zsh.
15378 if test -z "$BASH_VERSION$ZSH_VERSION" \
15379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15380 as_echo='print -r --'
15381 as_echo_n='print -rn --'
15382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15383 as_echo='printf %s\n'
15384 as_echo_n='printf %s'
15385 else
15386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15388 as_echo_n='/usr/ucb/echo -n'
15389 else
15390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15391 as_echo_n_body='eval
15392 arg=$1;
15393 case $arg in #(
15394 *"$as_nl"*)
15395 expr "X$arg" : "X\\(.*\\)$as_nl";
15396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15397 esac;
15398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15400 export as_echo_n_body
15401 as_echo_n='sh -c $as_echo_n_body as_echo'
15403 export as_echo_body
15404 as_echo='sh -c $as_echo_body as_echo'
15407 # The user is always right.
15408 if test "${PATH_SEPARATOR+set}" != set; then
15409 PATH_SEPARATOR=:
15410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15412 PATH_SEPARATOR=';'
15417 # IFS
15418 # We need space, tab and new line, in precisely that order. Quoting is
15419 # there to prevent editors from complaining about space-tab.
15420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15421 # splitting by setting IFS to empty value.)
15422 IFS=" "" $as_nl"
15424 # Find who we are. Look in the path if we contain no directory separator.
15425 as_myself=
15426 case $0 in #((
15427 *[\\/]* ) as_myself=$0 ;;
15428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $PATH
15431 IFS=$as_save_IFS
15432 test -z "$as_dir" && as_dir=.
15433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15434 done
15435 IFS=$as_save_IFS
15438 esac
15439 # We did not find ourselves, most probably we were run as `sh COMMAND'
15440 # in which case we are not to be found in the path.
15441 if test "x$as_myself" = x; then
15442 as_myself=$0
15444 if test ! -f "$as_myself"; then
15445 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15446 exit 1
15449 # Unset variables that we do not need and which cause bugs (e.g. in
15450 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15451 # suppresses any "Segmentation fault" message there. '((' could
15452 # trigger a bug in pdksh 5.2.14.
15453 for as_var in BASH_ENV ENV MAIL MAILPATH
15454 do eval test x\${$as_var+set} = xset \
15455 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15456 done
15457 PS1='$ '
15458 PS2='> '
15459 PS4='+ '
15461 # NLS nuisances.
15462 LC_ALL=C
15463 export LC_ALL
15464 LANGUAGE=C
15465 export LANGUAGE
15467 # CDPATH.
15468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15471 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15472 # ----------------------------------------
15473 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15474 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15475 # script with STATUS, using 1 if that was 0.
15476 as_fn_error ()
15478 as_status=$1; test $as_status -eq 0 && as_status=1
15479 if test "$4"; then
15480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15481 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15483 $as_echo "$as_me: error: $2" >&2
15484 as_fn_exit $as_status
15485 } # as_fn_error
15488 # as_fn_set_status STATUS
15489 # -----------------------
15490 # Set $? to STATUS, without forking.
15491 as_fn_set_status ()
15493 return $1
15494 } # as_fn_set_status
15496 # as_fn_exit STATUS
15497 # -----------------
15498 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15499 as_fn_exit ()
15501 set +e
15502 as_fn_set_status $1
15503 exit $1
15504 } # as_fn_exit
15506 # as_fn_unset VAR
15507 # ---------------
15508 # Portably unset VAR.
15509 as_fn_unset ()
15511 { eval $1=; unset $1;}
15513 as_unset=as_fn_unset
15514 # as_fn_append VAR VALUE
15515 # ----------------------
15516 # Append the text in VALUE to the end of the definition contained in VAR. Take
15517 # advantage of any shell optimizations that allow amortized linear growth over
15518 # repeated appends, instead of the typical quadratic growth present in naive
15519 # implementations.
15520 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15521 eval 'as_fn_append ()
15523 eval $1+=\$2
15525 else
15526 as_fn_append ()
15528 eval $1=\$$1\$2
15530 fi # as_fn_append
15532 # as_fn_arith ARG...
15533 # ------------------
15534 # Perform arithmetic evaluation on the ARGs, and store the result in the
15535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15536 # must be portable across $(()) and expr.
15537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15538 eval 'as_fn_arith ()
15540 as_val=$(( $* ))
15542 else
15543 as_fn_arith ()
15545 as_val=`expr "$@" || test $? -eq 1`
15547 fi # as_fn_arith
15550 if expr a : '\(a\)' >/dev/null 2>&1 &&
15551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15552 as_expr=expr
15553 else
15554 as_expr=false
15557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15558 as_basename=basename
15559 else
15560 as_basename=false
15563 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15564 as_dirname=dirname
15565 else
15566 as_dirname=false
15569 as_me=`$as_basename -- "$0" ||
15570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15571 X"$0" : 'X\(//\)$' \| \
15572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15573 $as_echo X/"$0" |
15574 sed '/^.*\/\([^/][^/]*\)\/*$/{
15575 s//\1/
15578 /^X\/\(\/\/\)$/{
15579 s//\1/
15582 /^X\/\(\/\).*/{
15583 s//\1/
15586 s/.*/./; q'`
15588 # Avoid depending upon Character Ranges.
15589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15592 as_cr_digits='0123456789'
15593 as_cr_alnum=$as_cr_Letters$as_cr_digits
15595 ECHO_C= ECHO_N= ECHO_T=
15596 case `echo -n x` in #(((((
15597 -n*)
15598 case `echo 'xy\c'` in
15599 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15600 xy) ECHO_C='\c';;
15601 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15602 ECHO_T=' ';;
15603 esac;;
15605 ECHO_N='-n';;
15606 esac
15608 rm -f conf$$ conf$$.exe conf$$.file
15609 if test -d conf$$.dir; then
15610 rm -f conf$$.dir/conf$$.file
15611 else
15612 rm -f conf$$.dir
15613 mkdir conf$$.dir 2>/dev/null
15615 if (echo >conf$$.file) 2>/dev/null; then
15616 if ln -s conf$$.file conf$$ 2>/dev/null; then
15617 as_ln_s='ln -s'
15618 # ... but there are two gotchas:
15619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15621 # In both cases, we have to default to `cp -pR'.
15622 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15623 as_ln_s='cp -pR'
15624 elif ln conf$$.file conf$$ 2>/dev/null; then
15625 as_ln_s=ln
15626 else
15627 as_ln_s='cp -pR'
15629 else
15630 as_ln_s='cp -pR'
15632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15633 rmdir conf$$.dir 2>/dev/null
15636 # as_fn_mkdir_p
15637 # -------------
15638 # Create "$as_dir" as a directory, including parents if necessary.
15639 as_fn_mkdir_p ()
15642 case $as_dir in #(
15643 -*) as_dir=./$as_dir;;
15644 esac
15645 test -d "$as_dir" || eval $as_mkdir_p || {
15646 as_dirs=
15647 while :; do
15648 case $as_dir in #(
15649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15650 *) as_qdir=$as_dir;;
15651 esac
15652 as_dirs="'$as_qdir' $as_dirs"
15653 as_dir=`$as_dirname -- "$as_dir" ||
15654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15655 X"$as_dir" : 'X\(//\)[^/]' \| \
15656 X"$as_dir" : 'X\(//\)$' \| \
15657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15658 $as_echo X"$as_dir" |
15659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15660 s//\1/
15663 /^X\(\/\/\)[^/].*/{
15664 s//\1/
15667 /^X\(\/\/\)$/{
15668 s//\1/
15671 /^X\(\/\).*/{
15672 s//\1/
15675 s/.*/./; q'`
15676 test -d "$as_dir" && break
15677 done
15678 test -z "$as_dirs" || eval "mkdir $as_dirs"
15679 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15682 } # as_fn_mkdir_p
15683 if mkdir -p . 2>/dev/null; then
15684 as_mkdir_p='mkdir -p "$as_dir"'
15685 else
15686 test -d ./-p && rmdir ./-p
15687 as_mkdir_p=false
15691 # as_fn_executable_p FILE
15692 # -----------------------
15693 # Test if FILE is an executable regular file.
15694 as_fn_executable_p ()
15696 test -f "$1" && test -x "$1"
15697 } # as_fn_executable_p
15698 as_test_x='test -x'
15699 as_executable_p=as_fn_executable_p
15701 # Sed expression to map a string onto a valid CPP name.
15702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15704 # Sed expression to map a string onto a valid variable name.
15705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15708 exec 6>&1
15709 ## ----------------------------------- ##
15710 ## Main body of $CONFIG_STATUS script. ##
15711 ## ----------------------------------- ##
15712 _ASEOF
15713 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716 # Save the log message, to keep $0 and so on meaningful, and to
15717 # report actual input values of CONFIG_FILES etc. instead of their
15718 # values after options handling.
15719 ac_log="
15720 This file was extended by $as_me, which was
15721 generated by GNU Autoconf 2.69. Invocation command line was
15723 CONFIG_FILES = $CONFIG_FILES
15724 CONFIG_HEADERS = $CONFIG_HEADERS
15725 CONFIG_LINKS = $CONFIG_LINKS
15726 CONFIG_COMMANDS = $CONFIG_COMMANDS
15727 $ $0 $@
15729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15732 _ACEOF
15734 case $ac_config_files in *"
15735 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15736 esac
15738 case $ac_config_headers in *"
15739 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15740 esac
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744 # Files that config.status was made for.
15745 config_files="$ac_config_files"
15746 config_headers="$ac_config_headers"
15747 config_commands="$ac_config_commands"
15749 _ACEOF
15751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752 ac_cs_usage="\
15753 \`$as_me' instantiates files and other configuration actions
15754 from templates according to the current configuration. Unless the files
15755 and actions are specified as TAGs, all are instantiated by default.
15757 Usage: $0 [OPTION]... [TAG]...
15759 -h, --help print this help, then exit
15760 -V, --version print version number and configuration settings, then exit
15761 --config print configuration, then exit
15762 -q, --quiet, --silent
15763 do not print progress messages
15764 -d, --debug don't remove temporary files
15765 --recheck update $as_me by reconfiguring in the same conditions
15766 --file=FILE[:TEMPLATE]
15767 instantiate the configuration file FILE
15768 --header=FILE[:TEMPLATE]
15769 instantiate the configuration header FILE
15771 Configuration files:
15772 $config_files
15774 Configuration headers:
15775 $config_headers
15777 Configuration commands:
15778 $config_commands
15780 Report bugs to the package provider."
15782 _ACEOF
15783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15784 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15785 ac_cs_version="\\
15786 config.status
15787 configured by $0, generated by GNU Autoconf 2.69,
15788 with options \\"\$ac_cs_config\\"
15790 Copyright (C) 2012 Free Software Foundation, Inc.
15791 This config.status script is free software; the Free Software Foundation
15792 gives unlimited permission to copy, distribute and modify it."
15794 ac_pwd='$ac_pwd'
15795 srcdir='$srcdir'
15796 test -n "\$AWK" || AWK=awk
15797 _ACEOF
15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15800 # The default lists apply if the user does not specify any file.
15801 ac_need_defaults=:
15802 while test $# != 0
15804 case $1 in
15805 --*=?*)
15806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15808 ac_shift=:
15810 --*=)
15811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15812 ac_optarg=
15813 ac_shift=:
15816 ac_option=$1
15817 ac_optarg=$2
15818 ac_shift=shift
15820 esac
15822 case $ac_option in
15823 # Handling of the options.
15824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15825 ac_cs_recheck=: ;;
15826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15827 $as_echo "$ac_cs_version"; exit ;;
15828 --config | --confi | --conf | --con | --co | --c )
15829 $as_echo "$ac_cs_config"; exit ;;
15830 --debug | --debu | --deb | --de | --d | -d )
15831 debug=: ;;
15832 --file | --fil | --fi | --f )
15833 $ac_shift
15834 case $ac_optarg in
15835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15836 '') as_fn_error $? "missing file argument" ;;
15837 esac
15838 as_fn_append CONFIG_FILES " '$ac_optarg'"
15839 ac_need_defaults=false;;
15840 --header | --heade | --head | --hea )
15841 $ac_shift
15842 case $ac_optarg in
15843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15844 esac
15845 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15846 ac_need_defaults=false;;
15847 --he | --h)
15848 # Conflict between --help and --header
15849 as_fn_error $? "ambiguous option: \`$1'
15850 Try \`$0 --help' for more information.";;
15851 --help | --hel | -h )
15852 $as_echo "$ac_cs_usage"; exit ;;
15853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15854 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15855 ac_cs_silent=: ;;
15857 # This is an error.
15858 -*) as_fn_error $? "unrecognized option: \`$1'
15859 Try \`$0 --help' for more information." ;;
15861 *) as_fn_append ac_config_targets " $1"
15862 ac_need_defaults=false ;;
15864 esac
15865 shift
15866 done
15868 ac_configure_extra_args=
15870 if $ac_cs_silent; then
15871 exec 6>/dev/null
15872 ac_configure_extra_args="$ac_configure_extra_args --silent"
15875 _ACEOF
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 if \$ac_cs_recheck; then
15878 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15879 shift
15880 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15881 CONFIG_SHELL='$SHELL'
15882 export CONFIG_SHELL
15883 exec "\$@"
15886 _ACEOF
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 exec 5>>config.log
15890 echo
15891 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15892 ## Running $as_me. ##
15893 _ASBOX
15894 $as_echo "$ac_log"
15895 } >&5
15897 _ACEOF
15898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900 # INIT-COMMANDS
15903 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15904 aros_tools_dir=${aros_tools_dir}
15908 aros_host_exe_suffix=${aros_host_exe_suffix}
15909 aros_tools_dir=${aros_tools_dir}
15910 aros_target_cpu=${aros_target_cpu}
15911 aros_target_arch=${aros_target_arch}
15912 aros_target_suffix=${aros_target_suffix}
15913 orig_target_nm=${orig_target_nm}
15914 orig_target_as=${orig_target_as}
15915 orig_target_ar=${orig_target_ar}
15916 orig_target_ranlib=${orig_target_ranlib}
15917 orig_target_objdump=${orig_target_objdump}
15918 orig_target_objcopy=${orig_target_objcopy}
15919 orig_target_strip=${orig_target_strip}
15920 aros_kernel_ld=${aros_kernel_ld}
15924 aros_host_exe_suffix=${aros_host_exe_suffix}
15925 aros_tools_dir=${aros_tools_dir}
15926 aros_target_cpu=${aros_target_cpu}
15927 aros_target_arch=${aros_target_arch}
15928 aros_target_suffix=${aros_target_suffix}
15929 aros_kernel_ld=${aros_kernel_ld}
15933 aros_host_exe_suffix=${aros_host_exe_suffix}
15934 aros_tools_dir=${aros_tools_dir}
15935 aros_target_cpu=${aros_target_cpu}
15936 aros_target_arch=${aros_target_arch}
15937 aros_target_suffix=${aros_target_suffix}
15941 _ACEOF
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15945 # Handling of arguments.
15946 for ac_config_target in $ac_config_targets
15948 case $ac_config_target in
15949 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15950 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15952 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15953 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15954 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15955 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15956 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15957 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15958 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15959 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15960 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15961 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15962 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15963 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15964 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15965 "${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" ;;
15966 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15967 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15968 "${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" ;;
15969 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15970 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15971 "${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" ;;
15972 "${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" ;;
15973 "${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" ;;
15974 "${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" ;;
15975 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15977 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15978 esac
15979 done
15982 # If the user did not use the arguments to specify the items to instantiate,
15983 # then the envvar interface is used. Set only those that are not.
15984 # We use the long form for the default assignment because of an extremely
15985 # bizarre bug on SunOS 4.1.3.
15986 if $ac_need_defaults; then
15987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15992 # Have a temporary directory for convenience. Make it in the build tree
15993 # simply because there is no reason against having it here, and in addition,
15994 # creating and moving files from /tmp can sometimes cause problems.
15995 # Hook for its removal unless debugging.
15996 # Note that there is a small window in which the directory will not be cleaned:
15997 # after its creation but before its name has been assigned to `$tmp'.
15998 $debug ||
16000 tmp= ac_tmp=
16001 trap 'exit_status=$?
16002 : "${ac_tmp:=$tmp}"
16003 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16005 trap 'as_fn_exit 1' 1 2 13 15
16007 # Create a (secure) tmp directory for tmp files.
16010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16011 test -d "$tmp"
16012 } ||
16014 tmp=./conf$$-$RANDOM
16015 (umask 077 && mkdir "$tmp")
16016 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16017 ac_tmp=$tmp
16019 # Set up the scripts for CONFIG_FILES section.
16020 # No need to generate them if there are no CONFIG_FILES.
16021 # This happens for instance with `./config.status config.h'.
16022 if test -n "$CONFIG_FILES"; then
16025 ac_cr=`echo X | tr X '\015'`
16026 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16027 # But we know of no other shell where ac_cr would be empty at this
16028 # point, so we can use a bashism as a fallback.
16029 if test "x$ac_cr" = x; then
16030 eval ac_cr=\$\'\\r\'
16032 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16034 ac_cs_awk_cr='\\r'
16035 else
16036 ac_cs_awk_cr=$ac_cr
16039 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16040 _ACEOF
16044 echo "cat >conf$$subs.awk <<_ACEOF" &&
16045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16046 echo "_ACEOF"
16047 } >conf$$subs.sh ||
16048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16049 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16050 ac_delim='%!_!# '
16051 for ac_last_try in false false false false false :; do
16052 . ./conf$$subs.sh ||
16053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16055 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16056 if test $ac_delim_n = $ac_delim_num; then
16057 break
16058 elif $ac_last_try; then
16059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16060 else
16061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16063 done
16064 rm -f conf$$subs.sh
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16068 _ACEOF
16069 sed -n '
16071 s/^/S["/; s/!.*/"]=/
16074 s/^[^!]*!//
16075 :repl
16076 t repl
16077 s/'"$ac_delim"'$//
16078 t delim
16081 s/\(.\{148\}\)..*/\1/
16082 t more1
16083 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16086 b repl
16087 :more1
16088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16091 s/.\{148\}//
16092 t nl
16093 :delim
16095 s/\(.\{148\}\)..*/\1/
16096 t more2
16097 s/["\\]/\\&/g; s/^/"/; s/$/"/
16100 :more2
16101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16104 s/.\{148\}//
16105 t delim
16106 ' <conf$$subs.awk | sed '
16107 /^[^""]/{
16109 s/\n//
16111 ' >>$CONFIG_STATUS || ac_write_fail=1
16112 rm -f conf$$subs.awk
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 _ACAWK
16115 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16116 for (key in S) S_is_set[key] = 1
16117 FS = "\a"
16121 line = $ 0
16122 nfields = split(line, field, "@")
16123 substed = 0
16124 len = length(field[1])
16125 for (i = 2; i < nfields; i++) {
16126 key = field[i]
16127 keylen = length(key)
16128 if (S_is_set[key]) {
16129 value = S[key]
16130 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16131 len += length(value) + length(field[++i])
16132 substed = 1
16133 } else
16134 len += 1 + keylen
16137 print line
16140 _ACAWK
16141 _ACEOF
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16144 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16145 else
16147 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16148 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16149 _ACEOF
16151 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16152 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16153 # trailing colons and then remove the whole line if VPATH becomes empty
16154 # (actually we leave an empty line to preserve line numbers).
16155 if test "x$srcdir" = x.; then
16156 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16158 s///
16159 s/^/:/
16160 s/[ ]*$/:/
16161 s/:\$(srcdir):/:/g
16162 s/:\${srcdir}:/:/g
16163 s/:@srcdir@:/:/g
16164 s/^:*//
16165 s/:*$//
16167 s/\(=[ ]*\).*/\1/
16169 s/\n//
16170 s/^[^=]*=[ ]*$//
16174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16175 fi # test -n "$CONFIG_FILES"
16177 # Set up the scripts for CONFIG_HEADERS section.
16178 # No need to generate them if there are no CONFIG_HEADERS.
16179 # This happens for instance with `./config.status Makefile'.
16180 if test -n "$CONFIG_HEADERS"; then
16181 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16182 BEGIN {
16183 _ACEOF
16185 # Transform confdefs.h into an awk script `defines.awk', embedded as
16186 # here-document in config.status, that substitutes the proper values into
16187 # config.h.in to produce config.h.
16189 # Create a delimiter string that does not exist in confdefs.h, to ease
16190 # handling of long lines.
16191 ac_delim='%!_!# '
16192 for ac_last_try in false false :; do
16193 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16194 if test -z "$ac_tt"; then
16195 break
16196 elif $ac_last_try; then
16197 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16198 else
16199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16201 done
16203 # For the awk script, D is an array of macro values keyed by name,
16204 # likewise P contains macro parameters if any. Preserve backslash
16205 # newline sequences.
16207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16208 sed -n '
16209 s/.\{148\}/&'"$ac_delim"'/g
16210 t rset
16211 :rset
16212 s/^[ ]*#[ ]*define[ ][ ]*/ /
16213 t def
16215 :def
16216 s/\\$//
16217 t bsnl
16218 s/["\\]/\\&/g
16219 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16220 D["\1"]=" \3"/p
16221 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16223 :bsnl
16224 s/["\\]/\\&/g
16225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16226 D["\1"]=" \3\\\\\\n"\\/p
16227 t cont
16228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16229 t cont
16231 :cont
16233 s/.\{148\}/&'"$ac_delim"'/g
16234 t clear
16235 :clear
16236 s/\\$//
16237 t bsnlc
16238 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16240 :bsnlc
16241 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16242 b cont
16243 ' <confdefs.h | sed '
16244 s/'"$ac_delim"'/"\\\
16245 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 for (key in D) D_is_set[key] = 1
16249 FS = "\a"
16251 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16252 line = \$ 0
16253 split(line, arg, " ")
16254 if (arg[1] == "#") {
16255 defundef = arg[2]
16256 mac1 = arg[3]
16257 } else {
16258 defundef = substr(arg[1], 2)
16259 mac1 = arg[2]
16261 split(mac1, mac2, "(") #)
16262 macro = mac2[1]
16263 prefix = substr(line, 1, index(line, defundef) - 1)
16264 if (D_is_set[macro]) {
16265 # Preserve the white space surrounding the "#".
16266 print prefix "define", macro P[macro] D[macro]
16267 next
16268 } else {
16269 # Replace #undef with comments. This is necessary, for example,
16270 # in the case of _POSIX_SOURCE, which is predefined and required
16271 # on some systems where configure will not decide to define it.
16272 if (defundef == "undef") {
16273 print "/*", prefix defundef, macro, "*/"
16274 next
16278 { print }
16279 _ACAWK
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16283 fi # test -n "$CONFIG_HEADERS"
16286 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16287 shift
16288 for ac_tag
16290 case $ac_tag in
16291 :[FHLC]) ac_mode=$ac_tag; continue;;
16292 esac
16293 case $ac_mode$ac_tag in
16294 :[FHL]*:*);;
16295 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16296 :[FH]-) ac_tag=-:-;;
16297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16298 esac
16299 ac_save_IFS=$IFS
16300 IFS=:
16301 set x $ac_tag
16302 IFS=$ac_save_IFS
16303 shift
16304 ac_file=$1
16305 shift
16307 case $ac_mode in
16308 :L) ac_source=$1;;
16309 :[FH])
16310 ac_file_inputs=
16311 for ac_f
16313 case $ac_f in
16314 -) ac_f="$ac_tmp/stdin";;
16315 *) # Look for the file first in the build tree, then in the source tree
16316 # (if the path is not absolute). The absolute path cannot be DOS-style,
16317 # because $ac_f cannot contain `:'.
16318 test -f "$ac_f" ||
16319 case $ac_f in
16320 [\\/$]*) false;;
16321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16322 esac ||
16323 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16324 esac
16325 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16326 as_fn_append ac_file_inputs " '$ac_f'"
16327 done
16329 # Let's still pretend it is `configure' which instantiates (i.e., don't
16330 # use $as_me), people would be surprised to read:
16331 # /* config.h. Generated by config.status. */
16332 configure_input='Generated from '`
16333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16334 `' by configure.'
16335 if test x"$ac_file" != x-; then
16336 configure_input="$ac_file. $configure_input"
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16338 $as_echo "$as_me: creating $ac_file" >&6;}
16340 # Neutralize special characters interpreted by sed in replacement strings.
16341 case $configure_input in #(
16342 *\&* | *\|* | *\\* )
16343 ac_sed_conf_input=`$as_echo "$configure_input" |
16344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16345 *) ac_sed_conf_input=$configure_input;;
16346 esac
16348 case $ac_tag in
16349 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16351 esac
16353 esac
16355 ac_dir=`$as_dirname -- "$ac_file" ||
16356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16357 X"$ac_file" : 'X\(//\)[^/]' \| \
16358 X"$ac_file" : 'X\(//\)$' \| \
16359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16360 $as_echo X"$ac_file" |
16361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16362 s//\1/
16365 /^X\(\/\/\)[^/].*/{
16366 s//\1/
16369 /^X\(\/\/\)$/{
16370 s//\1/
16373 /^X\(\/\).*/{
16374 s//\1/
16377 s/.*/./; q'`
16378 as_dir="$ac_dir"; as_fn_mkdir_p
16379 ac_builddir=.
16381 case "$ac_dir" in
16382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16385 # A ".." for each directory in $ac_dir_suffix.
16386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16387 case $ac_top_builddir_sub in
16388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16390 esac ;;
16391 esac
16392 ac_abs_top_builddir=$ac_pwd
16393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16394 # for backward compatibility:
16395 ac_top_builddir=$ac_top_build_prefix
16397 case $srcdir in
16398 .) # We are building in place.
16399 ac_srcdir=.
16400 ac_top_srcdir=$ac_top_builddir_sub
16401 ac_abs_top_srcdir=$ac_pwd ;;
16402 [\\/]* | ?:[\\/]* ) # Absolute name.
16403 ac_srcdir=$srcdir$ac_dir_suffix;
16404 ac_top_srcdir=$srcdir
16405 ac_abs_top_srcdir=$srcdir ;;
16406 *) # Relative name.
16407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16408 ac_top_srcdir=$ac_top_build_prefix$srcdir
16409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16410 esac
16411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16414 case $ac_mode in
16417 # CONFIG_FILE
16420 _ACEOF
16422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16423 # If the template does not know about datarootdir, expand it.
16424 # FIXME: This hack should be removed a few years after 2.60.
16425 ac_datarootdir_hack=; ac_datarootdir_seen=
16426 ac_sed_dataroot='
16427 /datarootdir/ {
16431 /@datadir@/p
16432 /@docdir@/p
16433 /@infodir@/p
16434 /@localedir@/p
16435 /@mandir@/p'
16436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16437 *datarootdir*) ac_datarootdir_seen=yes;;
16438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16441 _ACEOF
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_datarootdir_hack='
16444 s&@datadir@&$datadir&g
16445 s&@docdir@&$docdir&g
16446 s&@infodir@&$infodir&g
16447 s&@localedir@&$localedir&g
16448 s&@mandir@&$mandir&g
16449 s&\\\${datarootdir}&$datarootdir&g' ;;
16450 esac
16451 _ACEOF
16453 # Neutralize VPATH when `$srcdir' = `.'.
16454 # Shell code in configure.ac might set extrasub.
16455 # FIXME: do we really want to maintain this feature?
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_sed_extra="$ac_vpsub
16458 $extrasub
16459 _ACEOF
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16463 s|@configure_input@|$ac_sed_conf_input|;t t
16464 s&@top_builddir@&$ac_top_builddir_sub&;t t
16465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16466 s&@srcdir@&$ac_srcdir&;t t
16467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16468 s&@top_srcdir@&$ac_top_srcdir&;t t
16469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16470 s&@builddir@&$ac_builddir&;t t
16471 s&@abs_builddir@&$ac_abs_builddir&;t t
16472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16473 $ac_datarootdir_hack
16475 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16476 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16479 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16481 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16483 which seems to be undefined. Please make sure it is defined" >&5
16484 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16485 which seems to be undefined. Please make sure it is defined" >&2;}
16487 rm -f "$ac_tmp/stdin"
16488 case $ac_file in
16489 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16490 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16491 esac \
16492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16496 # CONFIG_HEADER
16498 if test x"$ac_file" != x-; then
16500 $as_echo "/* $configure_input */" \
16501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16502 } >"$ac_tmp/config.h" \
16503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16504 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16506 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16507 else
16508 rm -f "$ac_file"
16509 mv "$ac_tmp/config.h" "$ac_file" \
16510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16512 else
16513 $as_echo "/* $configure_input */" \
16514 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16515 || as_fn_error $? "could not create -" "$LINENO" 5
16519 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16520 $as_echo "$as_me: executing $ac_file commands" >&6;}
16522 esac
16525 case $ac_file$ac_mode in
16526 "genmf-executable-support":C)
16527 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16528 chmod a+x ${aros_tools_dir}/genmf.py
16530 "binutils-support":C)
16531 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16532 mkdir -p $prefix
16533 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16535 chmod a+x ${prefix2}-ld
16537 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16538 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16539 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16540 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16541 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16542 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16543 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16545 "elf-compiler-support":C)
16546 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16547 mkdir -p $prefix
16548 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16550 chmod a+x ${prefix2}-gcc
16552 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16554 "host-compiler-wrapper-support":C)
16555 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16556 mkdir -p $prefix
16557 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16559 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16562 esac
16563 done # for ac_tag
16566 as_fn_exit 0
16567 _ACEOF
16568 ac_clean_files=$ac_clean_files_save
16570 test $ac_write_fail = 0 ||
16571 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16574 # configure is writing to config.log, and then calls config.status.
16575 # config.status does its own redirection, appending to config.log.
16576 # Unfortunately, on DOS this fails, as config.log is still kept open
16577 # by configure, so config.status won't be able to write to it; its
16578 # output is simply discarded. So we exec the FD to /dev/null,
16579 # effectively closing config.log, so it can be properly (re)opened and
16580 # appended to by config.status. When coming back to configure, we
16581 # need to make the FD available again.
16582 if test "$no_create" != yes; then
16583 ac_cs_success=:
16584 ac_config_status_args=
16585 test "$silent" = yes &&
16586 ac_config_status_args="$ac_config_status_args --quiet"
16587 exec 5>/dev/null
16588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16589 exec 5>>config.log
16590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16591 # would make configure fail if this is the last instruction.
16592 $ac_cs_success || as_fn_exit 1
16594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16601 #XXX compatability...
16602 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16604 if test -n "$aros_shared_cflags" ; then
16605 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16606 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg