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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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 :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
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
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
543 test -d .
/-p && rmdir .
/-p
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
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`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
627 aros_host_x11_ldflags
639 target_binutils_version
641 ignore_undefined_symbols
653 gcc_default_float_abi
657 aros_nesting_supervisor
668 crosstools_cxx_target
672 aros_kernel_isa_flags
673 aros_optimization_cflags
676 aros_target_strip_flags
684 aros_kernel_objcflags
710 aros_target_cc_includes
726 aros_target_bootloader
756 host_stat_h__unused_used
757 aros_amigaos_compliance
765 aros_target_toolchain
774 kernel_cflags_iquote_end
776 host_cflags_iquote_end
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
822 arosconfig_use_libpngconfig
910 program_transform_name
923 enable_option_checking
934 with_kernel_gcc_version
937 enable_target_variant
944 enable_amigaos_compliance
945 with_kernel_toolchain_prefix
946 with_elf_toolchain_prefix
949 with_aros_toolchain_install
950 with_binutils_version
964 enable_palm_debug_hack
966 enable_nesting_supervisor
978 ac_precious_vars
='build_alias
994 # Initialize some variables set by options.
996 ac_init_version
=false
997 ac_unrecognized_opts
=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file
=/dev
/null
1008 program_transform_name
=s
,x
,x
,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir
='${exec_prefix}/bin'
1023 sbindir
='${exec_prefix}/sbin'
1024 libexecdir
='${exec_prefix}/libexec'
1025 datarootdir
='${prefix}/share'
1026 datadir
='${datarootdir}'
1027 sysconfdir
='${prefix}/etc'
1028 sharedstatedir
='${prefix}/com'
1029 localstatedir
='${prefix}/var'
1030 runstatedir
='${localstatedir}/run'
1031 includedir
='${prefix}/include'
1032 oldincludedir
='/usr/include'
1033 docdir
='${datarootdir}/doc/${PACKAGE}'
1034 infodir
='${datarootdir}/info'
1039 libdir
='${exec_prefix}/lib'
1040 localedir
='${datarootdir}/locale'
1041 mandir
='${datarootdir}/man'
1047 # If the previous option needs an argument, assign it.
1048 if test -n "$ac_prev"; then
1049 eval $ac_prev=\
$ac_option
1055 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1066 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1068 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1069 bindir
=$ac_optarg ;;
1071 -build |
--build |
--buil |
--bui |
--bu)
1072 ac_prev
=build_alias
;;
1073 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1074 build_alias
=$ac_optarg ;;
1076 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1077 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1078 ac_prev
=cache_file
;;
1079 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1080 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1081 cache_file
=$ac_optarg ;;
1083 --config-cache |
-C)
1084 cache_file
=config.cache
;;
1086 -datadir |
--datadir |
--datadi |
--datad)
1088 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1089 datadir
=$ac_optarg ;;
1091 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1092 |
--dataroo |
--dataro |
--datar)
1093 ac_prev
=datarootdir
;;
1094 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1095 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1096 datarootdir
=$ac_optarg ;;
1098 -disable-* |
--disable-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 as_fn_error $?
"invalid feature name: $ac_useropt"
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_
$ac_useropt"
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval enable_
$ac_useropt=no
;;
1114 -docdir |
--docdir |
--docdi |
--doc |
--do)
1116 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1117 docdir
=$ac_optarg ;;
1119 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1121 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1122 dvidir
=$ac_optarg ;;
1124 -enable-* |
--enable-*)
1125 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1128 as_fn_error $?
"invalid feature name: $ac_useropt"
1129 ac_useropt_orig
=$ac_useropt
1130 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_
$ac_useropt"
1135 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep
=', ';;
1138 eval enable_
$ac_useropt=\
$ac_optarg ;;
1140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1142 |
--exec |
--exe |
--ex)
1143 ac_prev
=exec_prefix
;;
1144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1146 |
--exec=* |
--exe=* |
--ex=*)
1147 exec_prefix
=$ac_optarg ;;
1149 -gas |
--gas |
--ga |
--g)
1150 # Obsolete; use --with-gas.
1153 -help |
--help |
--hel |
--he |
-h)
1154 ac_init_help
=long
;;
1155 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1156 ac_init_help
=recursive
;;
1157 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1158 ac_init_help
=short
;;
1160 -host |
--host |
--hos |
--ho)
1161 ac_prev
=host_alias
;;
1162 -host=* |
--host=* |
--hos=* |
--ho=*)
1163 host_alias
=$ac_optarg ;;
1165 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1167 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1169 htmldir
=$ac_optarg ;;
1171 -includedir |
--includedir |
--includedi |
--included |
--include \
1172 |
--includ |
--inclu |
--incl |
--inc)
1173 ac_prev
=includedir
;;
1174 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1175 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1176 includedir
=$ac_optarg ;;
1178 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1180 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1181 infodir
=$ac_optarg ;;
1183 -libdir |
--libdir |
--libdi |
--libd)
1185 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1186 libdir
=$ac_optarg ;;
1188 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1189 |
--libexe |
--libex |
--libe)
1190 ac_prev
=libexecdir
;;
1191 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1192 |
--libexe=* |
--libex=* |
--libe=*)
1193 libexecdir
=$ac_optarg ;;
1195 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1196 ac_prev
=localedir
;;
1197 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1198 localedir
=$ac_optarg ;;
1200 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1201 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1202 ac_prev
=localstatedir
;;
1203 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1204 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1205 localstatedir
=$ac_optarg ;;
1207 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1209 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1210 mandir
=$ac_optarg ;;
1212 -nfp |
--nfp |
--nf)
1213 # Obsolete; use --without-fp.
1216 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1217 |
--no-cr |
--no-c |
-n)
1220 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1221 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1224 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1225 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1226 |
--oldin |
--oldi |
--old |
--ol |
--o)
1227 ac_prev
=oldincludedir
;;
1228 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1229 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1230 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1231 oldincludedir
=$ac_optarg ;;
1233 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1235 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1236 prefix
=$ac_optarg ;;
1238 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1239 |
--program-pre |
--program-pr |
--program-p)
1240 ac_prev
=program_prefix
;;
1241 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1242 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1243 program_prefix
=$ac_optarg ;;
1245 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1246 |
--program-suf |
--program-su |
--program-s)
1247 ac_prev
=program_suffix
;;
1248 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1249 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1250 program_suffix
=$ac_optarg ;;
1252 -program-transform-name |
--program-transform-name \
1253 |
--program-transform-nam |
--program-transform-na \
1254 |
--program-transform-n |
--program-transform- \
1255 |
--program-transform |
--program-transfor \
1256 |
--program-transfo |
--program-transf \
1257 |
--program-trans |
--program-tran \
1258 |
--progr-tra |
--program-tr |
--program-t)
1259 ac_prev
=program_transform_name
;;
1260 -program-transform-name=* |
--program-transform-name=* \
1261 |
--program-transform-nam=* |
--program-transform-na=* \
1262 |
--program-transform-n=* |
--program-transform-=* \
1263 |
--program-transform=* |
--program-transfor=* \
1264 |
--program-transfo=* |
--program-transf=* \
1265 |
--program-trans=* |
--program-tran=* \
1266 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1267 program_transform_name
=$ac_optarg ;;
1269 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1271 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1272 pdfdir
=$ac_optarg ;;
1274 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1276 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1279 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1280 |
-silent |
--silent |
--silen |
--sile |
--sil)
1283 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1284 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1285 |
--run |
--ru |
--r)
1286 ac_prev
=runstatedir
;;
1287 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1288 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1289 |
--run=* |
--ru=* |
--r=*)
1290 runstatedir
=$ac_optarg ;;
1292 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1294 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1296 sbindir
=$ac_optarg ;;
1298 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1299 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1300 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1302 ac_prev
=sharedstatedir
;;
1303 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1304 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1305 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1307 sharedstatedir
=$ac_optarg ;;
1309 -site |
--site |
--sit)
1311 -site=* |
--site=* |
--sit=*)
1314 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1316 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1317 srcdir
=$ac_optarg ;;
1319 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1320 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1321 ac_prev
=sysconfdir
;;
1322 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1323 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1324 sysconfdir
=$ac_optarg ;;
1326 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1327 ac_prev
=target_alias
;;
1328 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1329 target_alias
=$ac_optarg ;;
1331 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1334 -version |
--version |
--versio |
--versi |
--vers |
-V)
1335 ac_init_version
=: ;;
1338 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1341 as_fn_error $?
"invalid package name: $ac_useropt"
1342 ac_useropt_orig
=$ac_useropt
1343 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1348 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1349 ac_unrecognized_sep
=', ';;
1351 eval with_
$ac_useropt=\
$ac_optarg ;;
1353 -without-* |
--without-*)
1354 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1357 as_fn_error $?
"invalid package name: $ac_useropt"
1358 ac_useropt_orig
=$ac_useropt
1359 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1364 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365 ac_unrecognized_sep
=', ';;
1367 eval with_
$ac_useropt=no
;;
1370 # Obsolete; use --with-x.
1373 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1374 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1375 ac_prev
=x_includes
;;
1376 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1377 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1378 x_includes
=$ac_optarg ;;
1380 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1381 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1382 ac_prev
=x_libraries
;;
1383 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1384 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1385 x_libraries
=$ac_optarg ;;
1387 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1388 Try \`$0 --help' for more information"
1392 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1393 # Reject names that are not valid shell variable names.
1394 case $ac_envvar in #(
1395 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1396 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1398 eval $ac_envvar=\
$ac_optarg
1399 export $ac_envvar ;;
1402 # FIXME: should be removed in autoconf 3.0.
1403 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1405 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1412 if test -n "$ac_prev"; then
1413 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1414 as_fn_error $?
"missing argument to $ac_option"
1417 if test -n "$ac_unrecognized_opts"; then
1418 case $enable_option_checking in
1420 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425 # Check all directory arguments for consistency.
1426 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir runstatedir
1431 eval ac_val
=\$
$ac_var
1432 # Remove trailing slashes.
1435 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\
$ac_val;;
1438 # Be sure to have absolute directory names.
1440 [\\/$
]* | ?
:[\\/]* ) continue;;
1441 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1443 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1451 target
=$target_alias
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x
; then
1455 if test "x$build_alias" = x
; then
1456 cross_compiling
=maybe
1457 elif test "x$build_alias" != "x$host_alias"; then
1463 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1465 test "$silent" = yes && exec 6>/dev
/null
1468 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di
=`ls -di .` &&
1470 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error $?
"working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error $?
"pwd does not report name of working directory"
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted
=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir
=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted
=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1512 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1514 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1526 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 for ac_var
in $ac_precious_vars; do
1529 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1531 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1536 # Report the --help message.
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1542 \`configure' configures this package to adapt to many kinds of systems.
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1549 Defaults for the options are specified in brackets.
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking ...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1573 For better control, use the options below.
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --x-includes=DIR X include files are
in DIR
1602 --x-libraries=DIR X library files are
in DIR
1605 --build=BUILD configure
for building on BUILD
[guessed
]
1606 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1610 if test -n "$ac_init_help"; then
1615 --disable-option-checking ignore unrecognized
--enable/--with options
1616 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1617 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1618 --disable-libpng-config disable libpng-config
test and configuration
1619 --enable-lto=yes|no Enable link
time optimizations
if the target
1620 compiler supports them
(default
=no
)
1621 --enable-coverage=yes|no
1622 Enable coverage instrumentation
if the target
1623 compiler supports it
(default
=no
)
1624 --enable-build-type=TYPE
1625 Select the build
type. Available types are
:
1626 personal
, nightly
, snapshot
, milestone
, release. Do
1627 NOT use this option unless you know what you are
1628 doing
! (default
=personal
)
1629 --enable-debug=list Enable different types of debug. Commas or
1630 whitespaces can be used to separate the items
in the
1631 list. Available types of debug are
: all
, none
,
1632 messages
, stack
, mungwall
, modules
, symbols. If no
1633 list is provided
then "all" is assumed.
1635 --enable-distcc Use distcc as a front end to the compiler
1637 --enable-ccache Use ccache as a front end to the compiler
1639 --enable-target-variant=NAME
1640 Enable a specific target variant
(default
=none
)
1641 --enable-amigaos-compliance=VERSION
1642 Enforce userspace AmigaOS compliance to a specific
1643 KickStart version
(default
=none
).
1644 --disable-crosstools Do not build cross-compiler toolchain
1645 --enable-objc Enable Objectve-C support
(default
=no
)
1646 --enable-java Enable Java support
(default
=no
)
1647 --enable-includes=dir Alternative system include directory
1648 --enable-palm-debug-hack
1649 Enable palm debug output hack
in palm native
1651 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1652 --enable-nesting-supervisor
1653 Enable nesting supervisor support
in unix
1655 --disable-mmu Disable MMU support
(default
=enabled
)
1656 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1657 --enable-x11-shm use X11 shared memory
(default
=auto
)
1658 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1659 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1660 --disable-sdltest Do not try to compile and run a
test SDL program
1661 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1664 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1665 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1666 --with-c-compiler=VERSION
1667 Use specified c compiler
for building AROS
1668 --with-cxx-compiler=VERSION
1669 Use specified c
++ compiler building AROS
1670 --with-toolchain=family Which toolchain family to crosscompile with
1672 --with-kernel-gcc-version=VERSION
1673 Use gcc-VERSION
for building bootstrap
1674 --with-optimization=FLAGS
1675 Use optimization flags FLAGS
(e.g
1676 --with-optimization=-O2).
1677 --with-paranoia=(yes|no|FLAGS
)
1678 Specific compiler warning FLAGS to
enable for
1679 paranoia builds
(default
=-Wall -Werror)
1680 --with-xcode=PATH Specify XCode path
for iOS targets
1681 (default
=/Developer
).
1682 --with-sdk-version=VERSION
1683 Use iOS SDK version VERSION
(default
=4.1).
1684 --with-sdk=PATH Specify Android SDK path
1685 (default
=$default_android_sdk).
1686 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1687 --with-sdk-version=LEVEL
1688 Use Android SDK
for API LEVEL
(default
=12).
1689 --with-ndk-version=LEVEL
1690 Use Android NDK
for API LEVEL
(default
=9).
1691 --with-apk-version=(release|debug
)
1692 Which version of AROSBootstrap.apk to compile.
1693 Release version needs key
for signing
, debug version
1694 will only run
in emulator.
(default
=release
)
1695 --with-kernel-toolchain-prefix=...
1696 Specify crosscompile toolchain prefix
for kernel
1698 --with-elf-toolchain-prefix=...
1699 Specify crosscompile toolchain prefix to wrap
for
1701 --with-aros-toolchain=PREFIX
1702 Specify prebuilt AROS toolchain. Use
yes for default
1704 --with-aros-toolchain-install=DIR
1705 Where to
install or search
for cross tools binaries
1706 --with-binutils-version=VERSION
1707 Use binutils-VERSION
for building AROS
1708 --with-gcc-version=VERSION
1709 Compile gcc-VERSION
for AROS
1710 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1711 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1712 --with-float=<spec
> Specify floating point ABI
1713 (default
=$gcc_default_float_abi).
1714 --with-portssources=DIR Where to download sourcecode
for external ports
1715 --with-bootloader=NAME Use a specific bootloader
1716 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1717 --with-theme=NAME Use a specific GUI Theme
1718 --with-resolution=XRESxYRESxDEPTH
1719 Default resolution of the initial WorkbenchScreen
1720 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1721 --with-x use the X Window System
1722 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1723 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1725 Some influential environment variables
:
1726 CXX C
++ compiler
command
1727 CXXFLAGS C
++ compiler flags
1728 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1729 nonstandard directory
<lib dir
>
1730 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1731 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1732 you have headers
in a nonstandard directory
<include dir
>
1733 CC C compiler
command
1734 CFLAGS C compiler flags
1736 PYTHON the Python interpreter
1737 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1739 Use these variables to override the choices made by
`configure' or to help
1740 it to find libraries and programs with nonstandard names/locations.
1742 Report bugs to the package provider.
1747 if test "$ac_init_help" = "recursive"; then
1748 # If there are subdirs, report their specific --help.
1749 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1750 test -d "$ac_dir" ||
1751 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1759 # A ".." for each directory in $ac_dir_suffix.
1760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1761 case $ac_top_builddir_sub in
1762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766 ac_abs_top_builddir=$ac_pwd
1767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1768 # for backward compatibility:
1769 ac_top_builddir=$ac_top_build_prefix
1772 .) # We are building in place.
1774 ac_top_srcdir=$ac_top_builddir_sub
1775 ac_abs_top_srcdir=$ac_pwd ;;
1776 [\\/]* | ?:[\\/]* ) # Absolute name.
1777 ac_srcdir=$srcdir$ac_dir_suffix;
1778 ac_top_srcdir=$srcdir
1779 ac_abs_top_srcdir=$srcdir ;;
1781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1782 ac_top_srcdir=$ac_top_build_prefix$srcdir
1783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1787 cd "$ac_dir" || { ac_status=$?; continue; }
1788 # Check for guested configure.
1789 if test -f "$ac_srcdir/configure.gnu"; then
1791 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1792 elif test -f "$ac_srcdir/configure"; then
1794 $SHELL "$ac_srcdir/configure" --help=recursive
1796 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1798 cd "$ac_pwd" || { ac_status=$?; break; }
1802 test -n "$ac_init_help" && exit $ac_status
1803 if $ac_init_version; then
1806 generated by GNU Autoconf 2.69
1808 Copyright (C) 2012 Free Software Foundation, Inc.
1809 This configure script is free software; the Free Software Foundation
1810 gives unlimited permission to copy, distribute and modify it.
1815 ## ------------------------ ##
1816 ## Autoconf initialization. ##
1817 ## ------------------------ ##
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1829 *) ac_try_echo
=$ac_try;;
1831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err
; then
1836 grep -v '^ *+' conftest.err
>conftest.er1
1837 cat conftest.er1
>&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.
$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.
$ac_ext >&5
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status
$ac_retval
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_compile LINENO
1858 # --------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_compile
()
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 rm -f conftest.
$ac_objext
1864 if { { ac_try
="$ac_compile"
1866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.$ac_objext; then :
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_compile
1895 # ac_fn_c_try_cpp LINENO
1896 # ----------------------
1897 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { { ac_try="$ac_cpp conftest.$ac_ext"
1903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1904 *) ac_try_echo
=$ac_try;;
1906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1910 if test -s conftest.err
; then
1911 grep -v '^ *+' conftest.err
>conftest.er1
1912 cat conftest.er1
>&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } > conftest.i
&& {
1917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.
$ac_ext >&5
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status
$ac_retval
1932 # ac_fn_c_try_link LINENO
1933 # -----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1938 rm -f conftest.
$ac_objext conftest
$ac_exeext
1939 if { { ac_try
="$ac_link"
1941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 test -x conftest$ac_exeext
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1976 } # ac_fn_c_try_link
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR
1983 ac_fn_c_check_header_mongrel ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 # Is the header compilable?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998 $as_echo_n "checking $2 usability... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_header_compiler=yes
2007 ac_header_compiler=no
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011 $as_echo "$ac_header_compiler" >&6; }
2013 # Is the header present?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015 $as_echo_n "checking $2 presence... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021 ac_header_preproc=yes
2023 ac_header_preproc=no
2025 rm -f conftest.err conftest.i conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027 $as_echo "$ac_header_preproc" >&6; }
2029 # So? What about this header?
2030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2041 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2045 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 eval "$3=\$ac_header_compiler"
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_header_mongrel
2065 # ac_fn_c_try_run LINENO
2066 # ----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2068 # that executables *can* be run.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_link"
2074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2075 *) ac_try_echo
=$ac_try;;
2077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>&5
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2083 { { case "(($ac_try" in
2084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_try") 2>&5
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; }; }; then :
2095 $as_echo "$as_me: program exited with status $ac_status" >&5
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2099 ac_retval=$ac_status
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
2107 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2108 # -------------------------------------------------------
2109 # Tests whether HEADER exists and can be compiled using the include files in
2110 # INCLUDES, setting the cache variable VAR accordingly.
2111 ac_fn_c_check_header_compile ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"; then :
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_header_compile
2138 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2139 # ----------------------------------------------------
2140 # Tries to find if the field MEMBER exists in type AGGR, after including
2141 # INCLUDES, setting cache variable VAR accordingly.
2142 ac_fn_c_check_member ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2146 $as_echo_n "checking for $2.$3... " >&6; }
2147 if eval \${$4+:} false; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2163 if ac_fn_c_try_compile "$LINENO"; then :
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2173 if (sizeof ac_aggr.$3)
2179 if ac_fn_c_try_compile "$LINENO"; then :
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_member
2195 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2196 # ---------------------------------------------
2197 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2199 ac_fn_c_check_decl ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2203 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2205 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 #ifndef $as_decl_name
2217 (void) $as_decl_use;
2219 (void) $as_decl_name;
2227 if ac_fn_c_try_compile "$LINENO"; then :
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_decl
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_check_func LINENO FUNC VAR
2296 # ----------------------------------
2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2298 ac_fn_c_check_func ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \${$3+:} false; then :
2304 $as_echo_n "(cached) " >&6
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2310 #define $2 innocuous_$2
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $2 (); below.
2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2315 <limits.h> exists even on freestanding compilers. */
2318 # include <limits.h>
2320 # include <assert.h>
2325 /* Override any GCC internal prototype to avoid an error.
2326 Use char because int might match the return type of a GCC
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined __stub_$2 || defined __stub___$2
2347 if ac_fn_c_try_link "$LINENO"; then :
2352 rm -f core conftest.err conftest.$ac_objext \
2353 conftest$ac_exeext conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_func
2361 cat >config.log <<_ACEOF
2362 This file contains any messages produced by compilers while
2363 running configure, to aid debugging if configure makes a mistake.
2365 It was created by $as_me, which was
2366 generated by GNU Autoconf 2.69. Invocation command line was
2378 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2379 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2380 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2381 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2382 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2384 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2385 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2387 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2389 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2391 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2392 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2393 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 $as_echo "PATH: $as_dir"
2418 # Keep a trace of the command line.
2419 # Strip out --no-create and --no-recursion so they do not pile up.
2420 # Strip out --silent because we don't want to record it for future runs.
2421 # Also quote any args containing shell meta-characters.
2422 # Make two passes to allow for proper duplicate-argument suppression.
2426 ac_must_keep_next=false
2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434 | -silent | --silent | --silen | --sile | --sil)
2437 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2442 as_fn_append ac_configure_args1 " '$ac_arg'"
2443 if test $ac_must_keep_next = true; then
2444 ac_must_keep_next=false # Got value, back to normal.
2447 *=* | --config-cache | -C | -disable-* | --disable-* \
2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450 | -with-* | --with-* | -without-* | --without-* | --x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455 -* ) ac_must_keep_next=true ;;
2458 as_fn_append ac_configure_args " '$ac_arg'"
2463 { ac_configure_args0=; unset ac_configure_args0;}
2464 { ac_configure_args1=; unset ac_configure_args1;}
2466 # When interrupted or exit'd, cleanup temporary files, and complete
2467 # config.log. We remove comments because anyway the quotes in there
2468 # would cause problems or look ugly.
2469 # WARNING: Use '\'' to represent an apostrophe within the trap.
2470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2471 trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2476 $as_echo "## ---------------- ##
2477 ## Cache variables. ##
2478 ## ---------------- ##"
2480 # The following way of writing the cache mishandles newlines in values,
2482 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2483 eval ac_val=\$$ac_var
2487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491 _ | IFS | as_nl) ;; #(
2492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493 *) { eval $ac_var=; unset $ac_var;} ;;
2498 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
2501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512 $as_echo "## ----------------- ##
2513 ## Output variables. ##
2514 ## ----------------- ##"
2516 for ac_var in $ac_subst_vars
2518 eval ac_val=\$$ac_var
2520 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 $as_echo "$ac_var='\''$ac_val'\''"
2526 if test -n "$ac_subst_files"; then
2527 $as_echo "## ------------------- ##
2528 ## File substitutions. ##
2529 ## ------------------- ##"
2531 for ac_var in $ac_subst_files
2533 eval ac_val=\$$ac_var
2535 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537 $as_echo "$ac_var='\''$ac_val'\''"
2542 if test -s confdefs.h; then
2543 $as_echo "## ----------- ##
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 for ac_signal in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2566 $as_echo "/* confdefs.h */" > confdefs.h
2568 # Predefined preprocessor variables.
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2599 if test -n "$CONFIG_SITE"; then
2600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1=./$CONFIG_SITE;;
2603 */*) ac_site_file1=$CONFIG_SITE;;
2604 *) ac_site_file1=./$CONFIG_SITE;;
2606 elif test "x$prefix" != xNONE; then
2607 ac_site_file1=$prefix/share/config.site
2608 ac_site_file2=$prefix/etc/config.site
2610 ac_site_file1=$ac_default_prefix/share/config.site
2611 ac_site_file2=$ac_default_prefix/etc/config.site
2613 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2615 test "x$ac_site_file" = xNONE && continue
2616 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2619 sed 's/^/| /' "$ac_site_file" >&5
2621 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 as_fn_error $? "failed to load site
script $ac_site_file
2624 See \
`config.log' for more details" "$LINENO" 5; }
2628 if test -r "$cache_file"; then
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 $as_echo "$as_me: loading cache $cache_file" >&6;}
2635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 $as_echo "$as_me: creating cache $cache_file" >&6;}
2645 as_fn_append ac_header_list " stdlib.h"
2646 as_fn_append ac_header_list " unistd.h"
2647 as_fn_append ac_header_list " sys/param.h"
2648 # Check that the precious variables saved in the cache have kept the same
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2659 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2663 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x
$ac_old_val`
2670 ac_new_val_w=`echo x
$ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2674 ac_cache_corrupted=:
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2719 if test -f "$ac_dir/install-sh"; then
2721 ac_install_sh="$ac_aux_dir/install-sh -c"
2723 elif test -f "$ac_dir/install.sh"; then
2725 ac_install_sh="$ac_aux_dir/install.sh -c"
2727 elif test -f "$ac_dir/shtool"; then
2729 ac_install_sh="$ac_aux_dir/shtool install -c"
2733 if test -z "$ac_aux_dir"; then
2734 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2737 # These three variables are undocumented and unsupported,
2738 # and are intended to be withdrawn in a future Autoconf release.
2739 # They can cause serious problems if a builder's source tree is in a directory
2740 # whose full name contains unusual characters.
2741 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2742 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2743 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2747 # Check what host we are running on.
2748 # If a target is not suggested, we use this one.
2749 # Note that what we call a target, Autoconf calls a host.
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2775 ac_save_IFS=$IFS; IFS='-'
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2785 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2808 ac_save_IFS=$IFS; IFS='-'
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2818 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2822 # Default versions for the gnu tools we build
2823 default_toolchain_family=`cat ${srcdir}/config
/toolchain_def
`
2824 default_gcc_version=`cat ${srcdir}/config
/gcc_def
`
2825 exp_gcc_version=`cat ${srcdir}/config
/gcc_exp
`
2826 default_binutils_version=`cat ${srcdir}/config
/binutils_def
`
2827 exp_binutils_version=`cat ${srcdir}/config
/binutils_exp
`
2828 default_grub2_version="2.02"
2829 target_grub2_version=$default_grub2_version
2831 # The AROS target is slightly different to the normal GNU style
2832 # format. We don't have the middle part, and we reverse the order
2833 # of the $(CPU) and $(OS) bits.
2835 # Don't strip the version of the target yet, it might be
2836 # useful on some systems.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2839 $as_echo_n "checking for AROS style target... " >&6; }
2841 if test "$target" = "NONE" ; then
2842 target=$host_os-$host_cpu
2844 if test "$target" = "" ; then
2845 target=$host_os-$host_cpu
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2849 $as_echo "$target" >&6; }
2851 if test "$host_os" = "mingw32" ; then
2855 # Don't know where else to put this...
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2857 $as_echo_n "checking building AROS in... " >&6; }
2858 AROS_BUILDDIR=`${PWDCMD-pwd}`
2859 AROS_BUILDDIR_UNIX=${PWD}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2861 $as_echo "$AROS_BUILDDIR" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2864 $as_echo_n "checking AROS source in... " >&6; }
2865 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2868 $as_echo "$SRCDIR" >&6; }
2870 # Parse the target field into something useful.
2872 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2873 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2876 # Some debug output, to be removed again.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2878 $as_echo_n "checking for target system (debug output)... " >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2880 $as_echo "$target_os" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2882 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2884 $as_echo "$target_cpu" >&6; }
2886 aros_nominal_width=800
2887 aros_nominal_height=600
2888 aros_nominal_depth=4
2897 default_c_compilers="gcc clang cc"
2899 # Check whether --with-c-compiler was given.
2900 if test "${with_c_compiler+set}" = set; then :
2901 withval=$with_c_compiler; use_c_compiler="$withval"
2906 if test "$use_c_compiler" = ""; then
2907 host_c_compilers="$default_c_compilers"
2909 host_c_compilers="$use_c_compiler"
2913 default_cxx_compilers="g++ clang++ c++"
2915 # Check whether --with-cxx-compiler was given.
2916 if test "${with_cxx_compiler+set}" = set; then :
2917 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2922 if test "$use_cxx_compiler" = ""; then
2923 host_cxx_compilers="$default_cxx_compilers"
2925 host_cxx_compilers="$use_cxx_compiler"
2926 CXX=$use_cxx_compiler
2930 # The first step is to find the host binaries.
2931 # Check for a compiler.
2932 # Due to a bug in autoconf check for c++ compiler first.
2933 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2935 ac_cpp='$CXXCPP $CPPFLAGS'
2936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2939 if test -z "$CXX"; then
2940 if test -n "$CCC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in ${host_cxx_compilers}
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_CXX+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 if test -n "$CXX"; then
2954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 if test -n "$CXX"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2976 $as_echo "$CXX" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2983 test -n "$CXX" && break
2986 if test -z "$CXX"; then
2988 for ac_prog in ${host_cxx_compilers}
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$ac_ct_CXX"; then
2998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_ac_ct_CXX="$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3018 if test -n "$ac_ct_CXX"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3020 $as_echo "$ac_ct_CXX" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3027 test -n "$ac_ct_CXX" && break
3030 if test "x$ac_ct_CXX" = x; then
3033 case $cross_compiling:$ac_tool_warned in
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3053 *) ac_try_echo
=$ac_try;;
3055 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059 if test -s conftest.err
; then
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err
>conftest.er1
3063 cat conftest.er1
>&5
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3081 ac_clean_files_save
=$ac_clean_files
3082 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3087 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3088 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 # The possible output files:
3091 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094 for ac_file
in $ac_files
3097 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3098 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3103 if { { ac_try
="$ac_link_default"
3105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3115 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3119 for ac_file in $ac_files ''
3121 test -f "$ac_file" || continue
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 # We found the default executable, but exeext='' is most
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's
/^
/|
/' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C++ compiler cannot create executables
3158 See \`config.log
' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3164 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3188 for ac_file
in conftest.exe conftest conftest.
*; do
3189 test -f "$ac_file" ||
continue
3191 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3192 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 rm -f conftest conftest
$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3207 rm -f conftest.
$ac_ext
3208 EXEEXT
=$ac_cv_exeext
3210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3223 ac_clean_files
="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try
="$ac_link"
3231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3243 *) ac_try_echo
=$ac_try;;
3245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3253 if test "$cross_compiling" = maybe
; then
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $?
"cannot run C++ compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3267 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3268 ac_clean_files
=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false
; then :
3272 $as_echo_n "(cached) " >&6
3274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try
="$ac_compile"
3288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3312 See \
`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3322 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3339 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3349 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3355 ac_test_CXXFLAGS=${CXXFLAGS+set}
3356 ac_save_CXXFLAGS=$CXXFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3358 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3359 if ${ac_cv_prog_cxx_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3363 ac_cxx_werror_flag=yes
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 if ac_fn_cxx_try_compile "$LINENO"; then :
3378 ac_cv_prog_cxx_g=yes
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_cxx_try_compile "$LINENO"; then :
3395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_cxx_try_compile "$LINENO"; then :
3409 ac_cv_prog_cxx_g=yes
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3419 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3420 if test "$ac_test_CXXFLAGS" = set; then
3421 CXXFLAGS=$ac_save_CXXFLAGS
3422 elif test $ac_cv_prog_cxx_g = yes; then
3423 if test "$GXX" = yes; then
3429 if test "$GXX" = yes; then
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 # Extract the first word of "$CXX", so it can be a program name with args.
3443 set dummy $CXX; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_path_CXX+:} false; then :
3447 $as_echo_n "(cached) " >&6
3451 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 if test -n "$CXX"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3475 $as_echo "$CXX" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in ${host_c_compilers}
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CC" && break
3530 if test -z "$CC"; then
3532 for ac_prog in ${host_c_compilers}
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CC" && break
3574 if test "x$ac_ct_CC" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3588 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3591 See \
`config.log' for more details" "$LINENO" 5; }
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597 for ac_option in --version -v -V -qversion; do
3598 { { ac_try="$ac_compiler $ac_option >&5"
3600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3601 *) ac_try_echo
=$ac_try;;
3603 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607 if test -s conftest.err
; then
3609 ... rest of stderr output deleted ...
3610 10q' conftest.err
>conftest.er1
3611 cat conftest.er1
>&5
3613 rm -f conftest.er1 conftest.err
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false
; then :
3621 $as_echo_n "(cached) " >&6
3623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3637 if ac_fn_c_try_compile
"$LINENO"; then :
3642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3653 ac_test_CFLAGS
=${CFLAGS+set}
3654 ac_save_CFLAGS
=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false
; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_save_c_werror_flag
=$ac_c_werror_flag
3661 ac_c_werror_flag
=yes
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile
"$LINENO"; then :
3679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile
"$LINENO"; then :
3693 ac_c_werror_flag
=$ac_save_c_werror_flag
3695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile
"$LINENO"; then :
3709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3714 ac_c_werror_flag
=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS
=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3727 if test "$GCC" = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false
; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_cv_prog_cc_c89
=no
3740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC
="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile
"$LINENO"; then :
3797 ac_cv_prog_cc_c89
=$ac_arg
3799 rm -f core conftest.err conftest.
$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 rm -f conftest.
$ac_ext
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC
="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3824 ac_cpp
='$CPP $CPPFLAGS'
3825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3831 ac_cpp
='$CPP $CPPFLAGS'
3832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3841 if test -z "$CPP"; then
3842 if ${ac_cv_prog_CPP+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 # Double quotes because CPP needs to be expanded
3846 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3849 for ac_c_preproc_warn_flag
in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3860 # include <limits.h>
3862 # include <assert.h>
3866 if ac_fn_c_try_cpp
"$LINENO"; then :
3869 # Broken: fails on valid input.
3872 rm -f conftest.err conftest.i conftest.
$ac_ext
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3880 if ac_fn_c_try_cpp
"$LINENO"; then :
3881 # Broken: success on invalid input.
3884 # Passes both tests.
3888 rm -f conftest.err conftest.i conftest.
$ac_ext
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.i conftest.err conftest.
$ac_ext
3893 if $ac_preproc_ok; then :
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906 $as_echo "$CPP" >&6; }
3908 for ac_c_preproc_warn_flag
in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if ac_fn_c_try_cpp
"$LINENO"; then :
3928 # Broken: fails on valid input.
3931 rm -f conftest.err conftest.i conftest.
$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3939 if ac_fn_c_try_cpp
"$LINENO"; then :
3940 # Broken: success on invalid input.
3943 # Passes both tests.
3947 rm -f conftest.err conftest.i conftest.
$ac_ext
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.i conftest.err conftest.
$ac_ext
3952 if $ac_preproc_ok; then :
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details" "$LINENO" 5; }
3962 ac_cpp
='$CPP $CPPFLAGS'
3963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3968 # Extract the first word of "$CC", so it can be a program name with args.
3969 set dummy
$CC; ac_word
=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_path_CC+:} false
; then :
3973 $as_echo_n "(cached) " >&6
3977 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
3980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir
=.
3985 for ac_exec_ext
in '' $ac_executable_extensions; do
3986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 $as_echo "$CC" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 aros_host_def_cc
="$CC"
4009 case $ac_cv_prog_cc_stdc in #(
4011 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4015 if ${ac_cv_prog_cc_c99+:} false
; then :
4016 $as_echo_n "(cached) " >&6
4018 ac_cv_prog_cc_c99
=no
4020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4023 #include <stdbool.h>
4028 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4029 #define debug(...) fprintf (stderr, __VA_ARGS__)
4030 #define showlist(...) puts (#__VA_ARGS__)
4031 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4033 test_varargs_macros (void)
4038 debug ("X = %d\n", x);
4039 showlist (The first, second, and third items.);
4040 report (x>y, "x is %d but y is %d", x, y);
4043 // Check long long types.
4044 #define BIG64 18446744073709551615ull
4045 #define BIG32 4294967295ul
4046 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4048 your preprocessor is broken;
4052 your preprocessor is broken;
4054 static long long int bignum = -9223372036854775807LL;
4055 static unsigned long long int ubignum = BIG64;
4057 struct incomplete_array
4065 const wchar_t *name;
4069 typedef const char *ccp;
4072 test_restrict (ccp restrict text)
4074 // See if C++-style comments work.
4075 // Iterate through items via the restricted pointer.
4076 // Also check for declarations in for loops.
4077 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4082 // Check varargs and va_copy.
4084 test_varargs (const char *format, ...)
4087 va_start (args, format);
4089 va_copy (args_copy, args);
4100 str = va_arg (args_copy, const char *);
4103 number = va_arg (args_copy, int);
4106 fnumber = va_arg (args_copy, double);
4121 _Bool success = false;
4124 if (test_restrict ("String literal") == 0)
4126 char *restrict newvar = "Another string";
4129 test_varargs ("s, d' f .", "string", 65, 34.234);
4130 test_varargs_macros ();
4132 // Check flexible array members.
4133 struct incomplete_array *ia =
4134 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4136 for (int i = 0; i < ia->datasize; ++i)
4137 ia->data[i] = i * 1.234;
4139 // Check named initializers.
4140 struct named_init ni = {
4142 .name = L"Test wide string",
4143 .average = 543.34343,
4148 int dynamic_array[ni.number];
4149 dynamic_array[ni.number - 1] = 543;
4151 // work around unused variable warnings
4152 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4153 || dynamic_array[ni.number - 1] != 543);
4159 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4161 CC
="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile
"$LINENO"; then :
4163 ac_cv_prog_cc_c99
=$ac_arg
4165 rm -f core conftest.err conftest.
$ac_objext
4166 test "x$ac_cv_prog_cc_c99" != "xno" && break
4168 rm -f conftest.
$ac_ext
4173 case "x$ac_cv_prog_cc_c99" in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4181 CC
="$CC $ac_cv_prog_cc_c99"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4183 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4185 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4186 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4189 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4190 if ${ac_cv_prog_cc_c89+:} false
; then :
4191 $as_echo_n "(cached) " >&6
4193 ac_cv_prog_cc_c89
=no
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201 struct buf { int x; };
4202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203 static char *e (p, i)
4209 static char *f (char * (*g) (char **, int), char **p, ...)
4214 s = g (p, va_arg (v,int));
4219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4220 function prototypes and stuff, but not '\xHH' hex character constants.
4221 These don't provoke an error unfortunately, instead are silently treated
4222 as 'x'. The following induces an error, until -std is added to get
4223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4224 array size at least. It's necessary to write '\x00'==0 to get something
4225 that's true only with -std. */
4226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4229 inside strings and character constants. */
4231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4233 int test (int i, double x);
4234 struct s1 {int (*f) (int a);};
4235 struct s2 {int (*f) (double a);};
4236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4247 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250 CC
="$ac_save_CC $ac_arg"
4251 if ac_fn_c_try_compile
"$LINENO"; then :
4252 ac_cv_prog_cc_c89
=$ac_arg
4254 rm -f core conftest.err conftest.
$ac_objext
4255 test "x$ac_cv_prog_cc_c89" != "xno" && break
4257 rm -f conftest.
$ac_ext
4262 case "x$ac_cv_prog_cc_c89" in
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 $as_echo "none needed" >&6; } ;;
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268 $as_echo "unsupported" >&6; } ;;
4270 CC
="$CC $ac_cv_prog_cc_c89"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4272 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4274 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4275 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4277 ac_cv_prog_cc_stdc
=no
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4284 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4285 if ${ac_cv_prog_cc_stdc+:} false
; then :
4286 $as_echo_n "(cached) " >&6
4289 case $ac_cv_prog_cc_stdc in #(
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 $as_echo "unsupported" >&6; } ;; #(
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4295 $as_echo "none needed" >&6; } ;; #(
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4298 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4302 ac_cpp
='$CPP $CPPFLAGS'
4303 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4308 # On Suns, sometimes $CPP names a directory.
4309 if test -n "$CPP" && test -d "$CPP"; then
4312 if test -z "$CPP"; then
4313 if ${ac_cv_prog_CPP+:} false
; then :
4314 $as_echo_n "(cached) " >&6
4316 # Double quotes because CPP needs to be expanded
4317 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4320 for ac_c_preproc_warn_flag
in '' yes
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4331 # include <limits.h>
4333 # include <assert.h>
4337 if ac_fn_c_try_cpp
"$LINENO"; then :
4340 # Broken: fails on valid input.
4343 rm -f conftest.err conftest.i conftest.
$ac_ext
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <ac_nonexistent.h>
4351 if ac_fn_c_try_cpp
"$LINENO"; then :
4352 # Broken: success on invalid input.
4355 # Passes both tests.
4359 rm -f conftest.err conftest.i conftest.
$ac_ext
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.i conftest.err conftest.
$ac_ext
4364 if $ac_preproc_ok; then :
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4377 $as_echo "$CPP" >&6; }
4379 for ac_c_preproc_warn_flag
in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4390 # include <limits.h>
4392 # include <assert.h>
4396 if ac_fn_c_try_cpp
"$LINENO"; then :
4399 # Broken: fails on valid input.
4402 rm -f conftest.err conftest.i conftest.
$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <ac_nonexistent.h>
4410 if ac_fn_c_try_cpp
"$LINENO"; then :
4411 # Broken: success on invalid input.
4414 # Passes both tests.
4418 rm -f conftest.err conftest.i conftest.
$ac_ext
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.i conftest.err conftest.
$ac_ext
4423 if $ac_preproc_ok; then :
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details" "$LINENO" 5; }
4433 ac_cpp
='$CPP $CPPFLAGS'
4434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4439 # detect the compiler version
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4441 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4442 HOST_COMPILER_VERSION
=`"$CC" --version 2>/dev/null`
4443 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4444 HOST_COMPILER_VERSION
=`"$CC" --qversion 2>/dev/null`
4446 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4447 HOST_COMPILER_VERSION
=`"$CC" -V 2>/dev/null`
4450 IS_SUN_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4451 if test "$IS_SUN_COMPILER" -ne "0"; then
4452 HOST_TOOLCHAIN_PREFIX
=
4453 HOST_TOOLCHAIN_SUFFIX
=
4454 HOST_TOOLCHAIN_FAMILY
=sun
4456 IS_LLVM_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4457 if test "$IS_LLVM_COMPILER" -ne "0"; then
4458 if test "$CC_BASE" != "gcc"; then
4459 HOST_TOOLCHAIN_PREFIX
=llvm-
4460 HOST_TOOLCHAIN_SUFFIX
="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4461 HOST_TOOLCHAIN_FAMILY
=llvm
4466 if test "x$IS_GNU_COMPILER" = "x"; then
4467 IS_GNU_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4469 if test "$IS_GNU_COMPILER" -ne "0"; then
4470 HOST_TOOLCHAIN_PREFIX
=
4471 HOST_TOOLCHAIN_SUFFIX
=
4472 HOST_TOOLCHAIN_FAMILY
=gnu
4474 if test x
"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4475 HOST_TOOLCHAIN_FAMILY
=unknown
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4478 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4480 # Check for a compatible awk
4481 for ac_prog
in gawk nawk
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy
$ac_prog; ac_word
=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_AWK+:} false
; then :
4488 $as_echo_n "(cached) " >&6
4490 if test -n "$AWK"; then
4491 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir
=.
4498 for ac_exec_ext
in '' $ac_executable_extensions; do
4499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_AWK
="$ac_prog"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 if test -n "$AWK"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4513 $as_echo "$AWK" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$AWK" && break
4524 if test "$AWK" = ""; then
4527 if test "$AWK" = "no"; then
4530 if test "$req_avail" = "no"; then
4531 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4533 # Extract the first word of "mmake", so it can be a program name with args.
4534 set dummy mmake
; ac_word
=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_MMAKE+:} false
; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$MMAKE"; then
4541 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 for ac_exec_ext
in '' $ac_executable_extensions; do
4549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_MMAKE
="mmake "
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 MMAKE
=$ac_cv_prog_MMAKE
4561 if test -n "$MMAKE"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4563 $as_echo "$MMAKE" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4571 # Perform some default variable assignments. Note all of these will be
4572 # Regenerated from the script, so there is no need to cache them.
4574 aros_build_host
=$host
4575 aros_host_cpp
="$CPP"
4577 aros_host_cxx
="$CXX"
4578 base_ld_name
=${HOST_TOOLCHAIN_PREFIX}ld
${HOST_TOOLCHAIN_SUFFIX}
4579 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4580 for ac_prog
in $base_ld_name ld.lld
${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy
$ac_prog; ac_word
=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_base_lld_name+:} false
; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -n "$base_lld_name"; then
4590 ac_cv_prog_base_lld_name
="$base_lld_name" # Let the user override the test.
4592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir
=.
4597 for ac_exec_ext
in '' $ac_executable_extensions; do
4598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_base_lld_name
="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 base_lld_name
=$ac_cv_prog_base_lld_name
4610 if test -n "$base_lld_name"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4612 $as_echo "$base_lld_name" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 test -n "$base_lld_name" && break
4622 LD_BASE
=$base_lld_name
4624 # Extract the first word of "$base_ld_name", so it can be a program name with args.
4625 set dummy
$base_ld_name; ac_word
=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_LD_BASE+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$LD_BASE"; then
4632 ac_cv_prog_LD_BASE
="$LD_BASE" # Let the user override the test.
4634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir
=.
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_LD_BASE
=""
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 LD_BASE
=$ac_cv_prog_LD_BASE
4652 if test -n "$LD_BASE"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_BASE" >&5
4654 $as_echo "$LD_BASE" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4663 if test "$LD_BASE" = ""; then
4668 if test "$GCC" = "yes"; then
4669 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
4670 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4671 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_path_aros_host_ld+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 case $aros_host_ld in
4679 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4683 for as_dir
in `dirname $aros_gcc_ld`
4686 test -z "$as_dir" && as_dir
=.
4687 for ac_exec_ext
in '' $ac_executable_extensions; do
4688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 aros_host_ld
=$ac_cv_path_aros_host_ld
4701 if test -n "$aros_host_ld"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4703 $as_echo "$aros_host_ld" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4711 if test "$aros_host_ld" = ""; then
4712 for ac_prog
in $ac_tool_ld
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy
$ac_prog; ac_word
=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_path_aros_host_ld+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 case $aros_host_ld in
4723 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 aros_host_ld
=$ac_cv_path_aros_host_ld
4745 if test -n "$aros_host_ld"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4747 $as_echo "$aros_host_ld" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4754 test -n "$aros_host_ld" && break
4760 if test "$aros_host_ld" = ""; then
4763 if test "$aros_host_ld" = "no"; then
4766 if test "$req_avail" = "no"; then
4767 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4769 aros_host_make
="make"
4770 aros_host_cflags
="$CFLAGS"
4771 aros_host_cxxflags
="$CXXFLAGS"
4772 aros_host_cppflags
="$CPPFLAGS"
4773 aros_host_ldflags
="$LDFLAGS"
4774 aros_host_debug
="-g -O0"
4775 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4776 aros_host_mkargs
="--no-print-directory"
4777 aros_host_exe_suffix
="$EXEEXT"
4778 aros_host_lib_suffix
=""
4780 # Ignore all compliance, AROS ROMs = 0
4781 # KickStart v1.0 = 30
4782 # KickStart v1.3 = 34
4783 # KickStart v2.0 = 37
4784 # KickStart v3.0 = 39
4785 # KickStart v3.1 = 40
4787 aros_amigaos_compliance
=0
4789 for ac_prog
in aclocal aclocal19 aclocal-1.9
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy
$ac_prog; ac_word
=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$aros_host_aclocal"; then
4799 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir
=.
4806 for ac_exec_ext
in '' $ac_executable_extensions; do
4807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4819 if test -n "$aros_host_aclocal"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4821 $as_echo "$aros_host_aclocal" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 test -n "$aros_host_aclocal" && break
4831 for ac_prog
in autoconf autoconf259 autoconf253
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy
$ac_prog; ac_word
=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4838 $as_echo_n "(cached) " >&6
4840 if test -n "$aros_host_autoconf"; then
4841 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir
=.
4848 for ac_exec_ext
in '' $ac_executable_extensions; do
4849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4861 if test -n "$aros_host_autoconf"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4863 $as_echo "$aros_host_autoconf" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$aros_host_autoconf" && break
4873 for ac_prog
in autoheader autoheader259 autoheader253
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy
$ac_prog; ac_word
=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -n "$aros_host_autoheader"; then
4883 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir
=.
4890 for ac_exec_ext
in '' $ac_executable_extensions; do
4891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4903 if test -n "$aros_host_autoheader"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4905 $as_echo "$aros_host_autoheader" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$aros_host_autoheader" && break
4915 for ac_prog
in automake automake19 automake-1.9
4917 # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy
$ac_prog; ac_word
=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4922 $as_echo_n "(cached) " >&6
4924 if test -n "$aros_host_automake"; then
4925 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 for ac_exec_ext
in '' $ac_executable_extensions; do
4933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_aros_host_automake
="$ac_prog"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 aros_host_automake
=$ac_cv_prog_aros_host_automake
4945 if test -n "$aros_host_automake"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4947 $as_echo "$aros_host_automake" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4954 test -n "$aros_host_automake" && break
4959 if test "$aros_host_aclocal" = ""; then
4962 if test "$aros_host_aclocal" = "no"; then
4965 if test "$req_avail" = "no"; then
4966 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4969 if test "$aros_host_automake" = ""; then
4972 if test "$aros_host_automake" = "no"; then
4975 if test "$req_avail" = "no"; then
4976 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4979 case "$aros_host_cc" in
4981 aros_host_cc_pipe
=""
4984 aros_host_cc_pipe
="-pipe"
4987 aros_host_cc_pipe
=""
4990 aros_host_cc_pipe
=""
4994 aros_kernel_cc_includes
=""
4995 aros_target_cc_includes
=""
4998 # ----------------------------------------------------------------------------------------
4999 # Host-specific defaults
5001 # This is the main host configuration section. It is where the host
5002 # can change the values of any variables it needs to change. We do
5003 # not look at anything that compiles to the target yet, we'll get
5008 aros_host_arch
="aros"
5009 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5012 aros_host_cpu
="i386"
5015 aros_host_cpu
="x86_64"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5022 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5023 aros_host_cpu
="$host_cpu"
5029 aros_host_arch
="linux"
5030 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5031 android_build_os
="linux-x86"
5032 android_tool
="android"
5033 default_android_sdk
="/opt/android-sdk-linux_x86"
5036 aros_host_cpu
="i386"
5039 aros_host_cpu
="x86_64"
5042 aros_host_cpu
="m68k"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5052 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5053 aros_host_cpu
="$host_cpu"
5059 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5060 aros_host_make
="gmake"
5061 aros_host_arch
="freebsd"
5062 aros_host_cpu
="i386"
5064 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
5068 aros_object_format
="elf_i386"
5072 aros_object_format
="elf_i386_fbsd"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5080 $as_echo_n "checking for macOS SDK files... " >&6; }
5081 LOC
=$
( xcode-select
-p )
5082 if test $?
!= 0; then :
5083 as_fn_error $?
"XCode incorrectly configured!
5084 please run 'xcode-select --install' before
5085 re-running configure" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5088 $as_echo "$LOC" >&6; }
5089 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5090 aros_host_arch
="darwin"
5092 if [ -z ${SED+x} ]; then SED
="gsed"; fi
5093 android_build_os
="darwin-x86"
5094 android_tool
="android"
5095 default_android_sdk
="/android-sdk-mac_x86"
5098 aros_host_cpu
="i386"
5101 aros_host_cpu
="x86_64"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5108 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5109 aros_host_cpu
="$host_cpu"
5113 aros_host_ldflags
="$aros_host_ldflags -liconv"
5118 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5119 aros_host_make
="gmake"
5120 aros_host_arch
="dragonfly"
5123 aros_host_cpu
="i386"
5126 aros_host_cpu
="x86_64"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5130 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5131 aros_host_cpu
="$host_cpu"
5137 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5138 aros_host_make
="gmake"
5139 aros_host_arch
="netbsd"
5142 aros_host_cpu
="i386"
5145 aros_host_cpu
="m68k"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5149 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5150 aros_host_cpu
="$host_cpu"
5153 aros_host_lib_suffix
=".0.0"
5157 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5158 aros_host_make
="gmake"
5159 aros_host_arch
="openbsd"
5162 aros_host_cpu
="i386"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5166 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5167 aros_host_cpu
="$host_cpu"
5173 aros_host_arch
="solaris"
5174 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5177 aros_host_cpu
="i386"
5180 aros_host_cpu
="sparc"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5184 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5185 aros_host_cpu
="$host_cpu"
5191 aros_host_arch
="morphos"
5197 aros_host_arch
="amiga"
5203 TOUCH
="/gg/bin/touch"
5206 aros_host_cpu
="m68k"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5213 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5214 aros_host_cpu
="$host_cpu"
5220 aros_host_arch
="cygwin"
5221 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5223 android_build_os
="windows"
5224 android_tool
="android.bat"
5225 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
5229 aros_host_cpu
="i386"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5233 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5234 aros_host_cpu
="$host_cpu"
5240 aros_host_arch
="mingw32"
5241 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5243 android_build_os
="windows"
5244 android_tool
="android.bat"
5245 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
5247 libpng_libextra
="-lws2_32"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5253 $as_echo_n "checking for Windows native gcc target... " >&6; }
5254 host_cpu
=`gcc -dumpmachine`
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5256 $as_echo "$host_cpu" >&6; }
5263 aros_host_cpu
="i386"
5267 aros_host_cpu
="i386"
5271 aros_host_cpu
="x86_64"
5272 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5277 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5278 aros_host_cpu
="$host_cpu"
5283 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
5287 base_ar_name
=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5288 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5289 set dummy
$base_ar_name; ac_word
=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_AR_BASE+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 if test -n "$AR_BASE"; then
5296 ac_cv_prog_AR_BASE
="$AR_BASE" # Let the user override the test.
5298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir
=.
5303 for ac_exec_ext
in '' $ac_executable_extensions; do
5304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_AR_BASE
="$base_ar_name "
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 AR_BASE
=$ac_cv_prog_AR_BASE
5316 if test -n "$AR_BASE"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_BASE" >&5
5318 $as_echo "$AR_BASE" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5325 aros_host_ar_flags
="cr"
5326 aros_host_cmd_ar
="$AR_BASE $aros_host_ar_flags"
5327 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5328 set dummy
$aros_host_cmd_ar; ac_word
=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_aros_host_plain_ar+:} false
; then :
5332 $as_echo_n "(cached) " >&6
5334 case $aros_host_plain_ar in
5336 ac_cv_path_aros_host_plain_ar
="$aros_host_plain_ar" # Let the user override the test with a path.
5339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir
=.
5344 for ac_exec_ext
in '' $ac_executable_extensions; do
5345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_path_aros_host_plain_ar
="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar
="$aros_host_cmd_ar "
5358 aros_host_plain_ar
=$ac_cv_path_aros_host_plain_ar
5359 if test -n "$aros_host_plain_ar"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5361 $as_echo "$aros_host_plain_ar" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 aros_host_ar
=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5370 if test "$aros_host_ar" = ""; then
5373 if test "$aros_host_ar" = "no"; then
5376 if test "$req_avail" = "no"; then
5377 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5379 base_ranlib_name
=${HOST_TOOLCHAIN_PREFIX}ranlib
${HOST_TOOLCHAIN_SUFFIX}
5380 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5381 set dummy
$base_ranlib_name; ac_word
=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_RANLIB_BASE+:} false
; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -n "$RANLIB_BASE"; then
5388 ac_cv_prog_RANLIB_BASE
="$RANLIB_BASE" # Let the user override the test.
5390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir
=.
5395 for ac_exec_ext
in '' $ac_executable_extensions; do
5396 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_RANLIB_BASE
="$base_ranlib_name "
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 RANLIB_BASE
=$ac_cv_prog_RANLIB_BASE
5408 if test -n "$RANLIB_BASE"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_BASE" >&5
5410 $as_echo "$RANLIB_BASE" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 # Extract the first word of "$RANLIB_BASE", so it can be a program name with args.
5418 set dummy
$RANLIB_BASE; ac_word
=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_aros_host_ranlib+:} false
; then :
5422 $as_echo_n "(cached) " >&6
5424 case $aros_host_ranlib in
5426 ac_cv_path_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test with a path.
5429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir
=.
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_aros_host_ranlib
="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib
="$RANLIB_BASE "
5448 aros_host_ranlib
=$ac_cv_path_aros_host_ranlib
5449 if test -n "$aros_host_ranlib"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5451 $as_echo "$aros_host_ranlib" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5459 if test "$aros_host_ranlib" = ""; then
5462 if test "$aros_host_ranlib" = "no"; then
5465 if test "$req_avail" = "no"; then
5466 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "strip", so it can be a program name with args.
5469 set dummy strip
; ac_word
=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5473 $as_echo_n "(cached) " >&6
5475 if test -n "$aros_host_strip"; then
5476 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir
=.
5483 for ac_exec_ext
in '' $ac_executable_extensions; do
5484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_aros_host_strip
="strip "
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 aros_host_strip
=$ac_cv_prog_aros_host_strip
5496 if test -n "$aros_host_strip"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5498 $as_echo "$aros_host_strip" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test "$aros_host_strip" = ""; then
5509 if test "$aros_host_strip" = "no"; then
5512 if test "$req_avail" = "no"; then
5513 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5516 # Extract the first word of "rm", so it can be a program name with args.
5517 set dummy
rm; ac_word
=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_RM+:} false
; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$RM"; then
5524 ac_cv_prog_RM
="$RM" # Let the user override the test.
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_RM
="rm -rf"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 if test -n "$RM"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5546 $as_echo "$RM" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test "$RM" = ""; then
5557 if test "$RM" = "no"; then
5560 if test "$req_avail" = "no"; then
5561 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5563 # Extract the first word of "cp", so it can be a program name with args.
5564 set dummy
cp; ac_word
=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_CP+:} false
; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -n "$CP"; then
5571 ac_cv_prog_CP
="$CP" # Let the user override the test.
5573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir
=.
5578 for ac_exec_ext
in '' $ac_executable_extensions; do
5579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 if test -n "$CP"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5593 $as_echo "$CP" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5601 if test "$CP" = ""; then
5604 if test "$CP" = "no"; then
5607 if test "$req_avail" = "no"; then
5608 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5610 # Extract the first word of "mv", so it can be a program name with args.
5611 set dummy
mv; ac_word
=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_MV+:} false
; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$MV"; then
5618 ac_cv_prog_MV
="$MV" # Let the user override the test.
5620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir
=.
5625 for ac_exec_ext
in '' $ac_executable_extensions; do
5626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 if test -n "$MV"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5640 $as_echo "$MV" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test "$MV" = ""; then
5651 if test "$MV" = "no"; then
5654 if test "$req_avail" = "no"; then
5655 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5657 # Extract the first word of "echo", so it can be a program name with args.
5658 set dummy
echo; ac_word
=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ECHO+:} false
; then :
5662 $as_echo_n "(cached) " >&6
5664 if test -n "$ECHO"; then
5665 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir
=.
5672 for ac_exec_ext
in '' $ac_executable_extensions; do
5673 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ECHO
="echo "
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 ECHO
=$ac_cv_prog_ECHO
5685 if test -n "$ECHO"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5687 $as_echo "$ECHO" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5695 if test "$ECHO" = ""; then
5698 if test "$ECHO" = "no"; then
5701 if test "$req_avail" = "no"; then
5702 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5704 # Extract the first word of "mkdir", so it can be a program name with args.
5705 set dummy mkdir
; ac_word
=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_MKDIR+:} false
; then :
5709 $as_echo_n "(cached) " >&6
5711 if test -n "$MKDIR"; then
5712 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir
=.
5719 for ac_exec_ext
in '' $ac_executable_extensions; do
5720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_MKDIR
="mkdir -p"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 MKDIR
=$ac_cv_prog_MKDIR
5732 if test -n "$MKDIR"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5734 $as_echo "$MKDIR" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5742 if test "$MKDIR" = ""; then
5745 if test "$MKDIR" = "no"; then
5748 if test "$req_avail" = "no"; then
5749 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5751 # Extract the first word of "touch", so it can be a program name with args.
5752 set dummy
touch; ac_word
=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_TOUCH+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 if test -n "$TOUCH"; then
5759 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir
=.
5766 for ac_exec_ext
in '' $ac_executable_extensions; do
5767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_TOUCH
="touch "
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 TOUCH
=$ac_cv_prog_TOUCH
5779 if test -n "$TOUCH"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5781 $as_echo "$TOUCH" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5789 if test "$TOUCH" = ""; then
5792 if test "$TOUCH" = "no"; then
5795 if test "$req_avail" = "no"; then
5796 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5798 # Extract the first word of "sort", so it can be a program name with args.
5799 set dummy
sort; ac_word
=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_SORT+:} false
; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$SORT"; then
5806 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir
=.
5813 for ac_exec_ext
in '' $ac_executable_extensions; do
5814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_SORT
="sort "
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 SORT
=$ac_cv_prog_SORT
5826 if test -n "$SORT"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5828 $as_echo "$SORT" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5836 if test "$SORT" = ""; then
5839 if test "$SORT" = "no"; then
5842 if test "$req_avail" = "no"; then
5843 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5845 # Extract the first word of "uniq", so it can be a program name with args.
5846 set dummy
uniq; ac_word
=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_UNIQ+:} false
; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$UNIQ"; then
5853 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir
=.
5860 for ac_exec_ext
in '' $ac_executable_extensions; do
5861 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_UNIQ
="uniq "
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 UNIQ
=$ac_cv_prog_UNIQ
5873 if test -n "$UNIQ"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5875 $as_echo "$UNIQ" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5883 if test "$UNIQ" = ""; then
5886 if test "$UNIQ" = "no"; then
5889 if test "$req_avail" = "no"; then
5890 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5892 # Extract the first word of "true", so it can be a program name with args.
5893 set dummy true
; ac_word
=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_NOP+:} false
; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$NOP"; then
5900 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir
=.
5907 for ac_exec_ext
in '' $ac_executable_extensions; do
5908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_NOP
="true "
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 if test -n "$NOP"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5922 $as_echo "$NOP" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5930 if test "$NOP" = ""; then
5933 if test "$NOP" = "no"; then
5936 if test "$req_avail" = "no"; then
5937 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5939 # Extract the first word of "cat", so it can be a program name with args.
5940 set dummy
cat; ac_word
=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if ${ac_cv_prog_CAT+:} false
; then :
5944 $as_echo_n "(cached) " >&6
5946 if test -n "$CAT"; then
5947 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir
=.
5954 for ac_exec_ext
in '' $ac_executable_extensions; do
5955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5956 ac_cv_prog_CAT
="cat "
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 if test -n "$CAT"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5969 $as_echo "$CAT" >&6; }
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5977 if test "$CAT" = ""; then
5980 if test "$CAT" = "no"; then
5983 if test "$req_avail" = "no"; then
5984 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5986 # Extract the first word of "bison", so it can be a program name with args.
5987 set dummy bison
; ac_word
=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_BISON+:} false
; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$BISON"; then
5994 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir
=.
6001 for ac_exec_ext
in '' $ac_executable_extensions; do
6002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_BISON
="bison "
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 BISON
=$ac_cv_prog_BISON
6014 if test -n "$BISON"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6016 $as_echo "$BISON" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6024 if test "$BISON" = ""; then
6027 if test "$BISON" = "no"; then
6030 if test "$req_avail" = "no"; then
6031 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
6033 # Extract the first word of "flex", so it can be a program name with args.
6034 set dummy flex
; ac_word
=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_FLEX+:} false
; then :
6038 $as_echo_n "(cached) " >&6
6040 if test -n "$FLEX"; then
6041 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
6043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir
=.
6048 for ac_exec_ext
in '' $ac_executable_extensions; do
6049 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_FLEX
="flex "
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 FLEX
=$ac_cv_prog_FLEX
6061 if test -n "$FLEX"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
6063 $as_echo "$FLEX" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6071 if test "$FLEX" = ""; then
6074 if test "$FLEX" = "no"; then
6077 if test "$req_avail" = "no"; then
6078 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6081 $as_echo_n "checking version of $FLEX... " >&6; }
6082 ax_cv_flex_version
="`$FLEX --version | cut -d\" \" -f2`"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6084 $as_echo "$ax_cv_flex_version" >&6; }
6085 # Extract the first word of "pngtopnm", so it can be a program name with args.
6086 set dummy pngtopnm
; ac_word
=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$PNGTOPNM"; then
6093 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
6095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir
=.
6100 for ac_exec_ext
in '' $ac_executable_extensions; do
6101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_PNGTOPNM
="pngtopnm "
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
6113 if test -n "$PNGTOPNM"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6115 $as_echo "$PNGTOPNM" >&6; }
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6123 if test "$PNGTOPNM" = ""; then
6126 if test "$PNGTOPNM" = "no"; then
6129 if test "$req_avail" = "no"; then
6130 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6132 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6133 set dummy ppmtoilbm
; ac_word
=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
6137 $as_echo_n "(cached) " >&6
6139 if test -n "$PPMTOILBM"; then
6140 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
6142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir
=.
6147 for ac_exec_ext
in '' $ac_executable_extensions; do
6148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
6160 if test -n "$PPMTOILBM"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6162 $as_echo "$PPMTOILBM" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6170 if test "$PPMTOILBM" = ""; then
6173 if test "$PPMTOILBM" = "no"; then
6176 if test "$req_avail" = "no"; then
6177 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6179 # Extract the first word of "sed", so it can be a program name with args.
6180 set dummy
sed; ac_word
=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_SED+:} false
; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$SED"; then
6187 ac_cv_prog_SED
="$SED" # Let the user override the test.
6189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir
=.
6194 for ac_exec_ext
in '' $ac_executable_extensions; do
6195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_SED
="sed "
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 if test -n "$SED"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6209 $as_echo "$SED" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6217 if test "$SED" = ""; then
6220 if test "$SED" = "no"; then
6223 if test "$req_avail" = "no"; then
6224 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6226 # Extract the first word of "chmod", so it can be a program name with args.
6227 set dummy
chmod; ac_word
=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_CHMOD+:} false
; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$CHMOD"; then
6234 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
6236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir
=.
6241 for ac_exec_ext
in '' $ac_executable_extensions; do
6242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_CHMOD
="chmod "
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 CHMOD
=$ac_cv_prog_CHMOD
6254 if test -n "$CHMOD"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6256 $as_echo "$CHMOD" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6264 if test "$CHMOD" = ""; then
6267 if test "$CHMOD" = "no"; then
6270 if test "$req_avail" = "no"; then
6271 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6273 # Extract the first word of "patch", so it can be a program name with args.
6274 set dummy
patch; ac_word
=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_PATCH+:} false
; then :
6278 $as_echo_n "(cached) " >&6
6280 if test -n "$PATCH"; then
6281 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
6283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir
=.
6288 for ac_exec_ext
in '' $ac_executable_extensions; do
6289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_PATCH
="patch "
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 PATCH
=$ac_cv_prog_PATCH
6301 if test -n "$PATCH"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6303 $as_echo "$PATCH" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6311 if test "$PATCH" = ""; then
6314 if test "$PATCH" = "no"; then
6317 if test "$req_avail" = "no"; then
6318 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6327 if test -n "$PYTHON"; then
6328 # If the user set $PYTHON, use it and don't search something else.
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6330 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6332 # split strings by '.' and convert to numeric. Append some zeros
6333 # because we need at least 4 digits for the hex conversion.
6334 # map returns an iterator in Python 3.0 and a list in 2.x
6335 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6337 # xrange is not present in Python 3.0 and range returns an iterator
6338 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6339 sys.exit(sys.hexversion < minverhex)"
6340 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6341 ($PYTHON -c "$prog") >&5 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; then :
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
6352 am_display_PYTHON
=$PYTHON
6354 # Otherwise, try each interpreter until we find one that satisfies
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6357 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6358 if ${am_cv_pathless_PYTHON+:} false
; then :
6359 $as_echo_n "(cached) " >&6
6362 for am_cv_pathless_PYTHON
in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 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
6363 test "$am_cv_pathless_PYTHON" = none
&& break
6365 # split strings by '.' and convert to numeric. Append some zeros
6366 # because we need at least 4 digits for the hex conversion.
6367 # map returns an iterator in Python 3.0 and a list in 2.x
6368 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6370 # xrange is not present in Python 3.0 and range returns an iterator
6371 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6372 sys.exit(sys.hexversion < minverhex)"
6373 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6374 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; then :
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6383 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6384 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6385 if test "$am_cv_pathless_PYTHON" = none
; then
6388 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6389 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_path_PYTHON+:} false
; then :
6393 $as_echo_n "(cached) " >&6
6397 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
6400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir
=.
6405 for ac_exec_ext
in '' $ac_executable_extensions; do
6406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 PYTHON
=$ac_cv_path_PYTHON
6419 if test -n "$PYTHON"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6421 $as_echo "$PYTHON" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6429 am_display_PYTHON
=$am_cv_pathless_PYTHON
6433 if test "$PYTHON" = :; then
6434 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6439 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6440 if ${am_cv_python_version+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6443 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6446 $as_echo "$am_cv_python_version" >&6; }
6447 PYTHON_VERSION
=$am_cv_python_version
6451 PYTHON_PREFIX
='${prefix}'
6453 PYTHON_EXEC_PREFIX
='${exec_prefix}'
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6458 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6459 if ${am_cv_python_platform+:} false
; then :
6460 $as_echo_n "(cached) " >&6
6462 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6465 $as_echo "$am_cv_python_platform" >&6; }
6466 PYTHON_PLATFORM
=$am_cv_python_platform
6469 # Just factor out some code duplication.
6470 am_python_setup_sysconfig
="\
6472 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6473 # with python 3.x. See automake bug#10227.
6477 can_use_sysconfig = 0
6479 can_use_sysconfig = 1
6480 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6481 # <https://github.com/pypa/virtualenv/issues/118>
6483 from platform import python_implementation
6484 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6485 can_use_sysconfig = 0
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6491 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6492 if ${am_cv_python_pythondir+:} false
; then :
6493 $as_echo_n "(cached) " >&6
6495 if test "x$prefix" = xNONE
6497 am_py_prefix
=$ac_default_prefix
6499 am_py_prefix
=$prefix
6501 am_cv_python_pythondir
=`$PYTHON -c "
6502 $am_python_setup_sysconfig
6503 if can_use_sysconfig:
6504 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6506 from distutils import sysconfig
6507 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6508 sys.stdout.write(sitedir)"`
6509 case $am_cv_python_pythondir in
6511 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6512 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6515 case $am_py_prefix in
6518 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6526 $as_echo "$am_cv_python_pythondir" >&6; }
6527 pythondir
=$am_cv_python_pythondir
6531 pkgpythondir
=\
${pythondir}/$PACKAGE
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6535 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6536 if ${am_cv_python_pyexecdir+:} false
; then :
6537 $as_echo_n "(cached) " >&6
6539 if test "x$exec_prefix" = xNONE
6541 am_py_exec_prefix
=$am_py_prefix
6543 am_py_exec_prefix
=$exec_prefix
6545 am_cv_python_pyexecdir
=`$PYTHON -c "
6546 $am_python_setup_sysconfig
6547 if can_use_sysconfig:
6548 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6550 from distutils import sysconfig
6551 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6552 sys.stdout.write(sitedir)"`
6553 case $am_cv_python_pyexecdir in
6554 $am_py_exec_prefix*)
6555 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6556 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6559 case $am_py_exec_prefix in
6562 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6570 $as_echo "$am_cv_python_pyexecdir" >&6; }
6571 pyexecdir
=$am_cv_python_pyexecdir
6575 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6583 # Check whether --enable-libpng-config was given.
6584 if test "${enable_libpng_config+set}" = set; then :
6585 enableval
=$enable_libpng_config;
6588 if test "$enable_libpng_config" != "no"; then
6589 # Extract the first word of "libpng-config", so it can be a program name with args.
6590 set dummy libpng-config
; ac_word
=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$arosconfig_use_libpngconfig"; then
6597 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir
=.
6604 for ac_exec_ext
in '' $ac_executable_extensions; do
6605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6617 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6618 if test -n "$arosconfig_use_libpngconfig"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6620 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6628 if test "$arosconfig_use_libpngconfig" = "yes"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6630 $as_echo_n "checking libpng-config library... " >&6; }
6631 libpng_incdir
="`libpng-config --cflags`"
6632 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6633 libpng
="`libpng-config --libs`"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6635 $as_echo "$libpng" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6639 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6640 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6641 $as_echo_n "(cached) " >&6
6643 ac_check_lib_save_LIBS
=$LIBS
6645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6648 /* Override any GCC internal prototype to avoid an error.
6649 Use char because int might match the return type of a GCC
6650 builtin and then its argument prototype would still apply. */
6654 char png_read_png ();
6658 return png_read_png ();
6663 if ac_fn_c_try_link
"$LINENO"; then :
6664 ac_cv_lib_png_png_read_png
=yes
6666 ac_cv_lib_png_png_read_png
=no
6668 rm -f core conftest.err conftest.
$ac_objext \
6669 conftest
$ac_exeext conftest.
$ac_ext
6670 LIBS
=$ac_check_lib_save_LIBS
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6673 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6674 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6680 if test "$libpng_libextra" != ""; then
6681 if test "$libpng" != "no"; then
6682 libpng_libextra
="$libpng_libextra $libpng"
6687 if test "$libpng" = ""; then
6690 if test "$libpng" = "no"; then
6693 if test "$req_avail" = "no"; then
6694 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6710 # Check for some includes for the X11 HIDD and the kernel
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6713 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6714 if ${ac_cv_path_GREP+:} false
; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -z "$GREP"; then
6718 ac_path_GREP_found
=false
6719 # Loop through the user's path and test for each of PROGNAME-LIST
6720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6721 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6724 test -z "$as_dir" && as_dir
=.
6725 for ac_prog
in grep ggrep
; do
6726 for ac_exec_ext
in '' $ac_executable_extensions; do
6727 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6728 as_fn_executable_p
"$ac_path_GREP" ||
continue
6729 # Check for GNU ac_path_GREP and select it if it is found.
6730 # Check for GNU $ac_path_GREP
6731 case `"$ac_path_GREP" --version 2>&1` in
6733 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6736 $as_echo_n 0123456789 >"conftest.in"
6739 cat "conftest.in" "conftest.in" >"conftest.tmp"
6740 mv "conftest.tmp" "conftest.in"
6741 cp "conftest.in" "conftest.nl"
6742 $as_echo 'GREP' >> "conftest.nl"
6743 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6744 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6745 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6746 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6747 # Best one so far, save it but keep looking for a better one
6748 ac_cv_path_GREP
="$ac_path_GREP"
6749 ac_path_GREP_max
=$ac_count
6751 # 10*(2^10) chars as input seems more than enough
6752 test $ac_count -gt 10 && break
6754 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6757 $ac_path_GREP_found && break 3
6762 if test -z "$ac_cv_path_GREP"; then
6763 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6766 ac_cv_path_GREP
=$GREP
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6771 $as_echo "$ac_cv_path_GREP" >&6; }
6772 GREP
="$ac_cv_path_GREP"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6776 $as_echo_n "checking for egrep... " >&6; }
6777 if ${ac_cv_path_EGREP+:} false
; then :
6778 $as_echo_n "(cached) " >&6
6780 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6781 then ac_cv_path_EGREP
="$GREP -E"
6783 if test -z "$EGREP"; then
6784 ac_path_EGREP_found
=false
6785 # Loop through the user's path and test for each of PROGNAME-LIST
6786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6787 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6790 test -z "$as_dir" && as_dir
=.
6791 for ac_prog
in egrep; do
6792 for ac_exec_ext
in '' $ac_executable_extensions; do
6793 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6794 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6795 # Check for GNU ac_path_EGREP and select it if it is found.
6796 # Check for GNU $ac_path_EGREP
6797 case `"$ac_path_EGREP" --version 2>&1` in
6799 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6802 $as_echo_n 0123456789 >"conftest.in"
6805 cat "conftest.in" "conftest.in" >"conftest.tmp"
6806 mv "conftest.tmp" "conftest.in"
6807 cp "conftest.in" "conftest.nl"
6808 $as_echo 'EGREP' >> "conftest.nl"
6809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6810 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6811 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6813 # Best one so far, save it but keep looking for a better one
6814 ac_cv_path_EGREP
="$ac_path_EGREP"
6815 ac_path_EGREP_max
=$ac_count
6817 # 10*(2^10) chars as input seems more than enough
6818 test $ac_count -gt 10 && break
6820 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6823 $ac_path_EGREP_found && break 3
6828 if test -z "$ac_cv_path_EGREP"; then
6829 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6832 ac_cv_path_EGREP
=$EGREP
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6838 $as_echo "$ac_cv_path_EGREP" >&6; }
6839 EGREP
="$ac_cv_path_EGREP"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6843 $as_echo_n "checking for ANSI C header files... " >&6; }
6844 if ${ac_cv_header_stdc+:} false
; then :
6845 $as_echo_n "(cached) " >&6
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6862 if ac_fn_c_try_compile
"$LINENO"; then :
6863 ac_cv_header_stdc
=yes
6865 ac_cv_header_stdc
=no
6867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6869 if test $ac_cv_header_stdc = yes; then
6870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 $EGREP "memchr" >/dev
/null
2>&1; then :
6880 ac_cv_header_stdc
=no
6886 if test $ac_cv_header_stdc = yes; then
6887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "free" >/dev
/null
2>&1; then :
6897 ac_cv_header_stdc
=no
6903 if test $ac_cv_header_stdc = yes; then
6904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905 if test "$cross_compiling" = yes; then :
6908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6912 #if ((' ' & 0x0FF) == 0x020)
6913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6916 # define ISLOWER(c) \
6917 (('a' <= (c) && (c) <= 'i') \
6918 || ('j' <= (c) && (c) <= 'r') \
6919 || ('s' <= (c) && (c) <= 'z'))
6920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6928 for (i = 0; i < 256; i++)
6929 if (XOR (islower (i), ISLOWER (i))
6930 || toupper (i) != TOUPPER (i))
6935 if ac_fn_c_try_run
"$LINENO"; then :
6938 ac_cv_header_stdc
=no
6940 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6941 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6947 $as_echo "$ac_cv_header_stdc" >&6; }
6948 if test $ac_cv_header_stdc = yes; then
6950 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6955 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6956 inttypes.h stdint.h unistd.h
6958 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6959 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6961 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6962 cat >>confdefs.h
<<_ACEOF
6963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6971 for ac_header
in sys
/ipc.h sys
/shm.h \
6972 sys
/mmap.h sys
/mman.h sysexits.h \
6973 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6976 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6977 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6978 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6979 cat >>confdefs.h
<<_ACEOF
6980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 for ac_header
in sys
/mount.h
6990 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6992 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6993 cat >>confdefs.h
<<_ACEOF
6994 #define HAVE_SYS_MOUNT_H 1
7001 for ac_header
in GL
/glx.h
7003 ac_fn_c_check_header_mongrel
"$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7004 if test "x$ac_cv_header_GL_glx_h" = xyes
; then :
7005 cat >>confdefs.h
<<_ACEOF
7006 #define HAVE_GL_GLX_H 1
7008 host_feature_glx
=yes
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
7017 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 #define __unused __attribute__((unused))
7022 #include <sys/stat.h>
7032 if ac_fn_c_try_compile
"$LINENO"; then :
7033 host_stat_h__unused_used
=no
7035 host_stat_h__unused_used
=yes
7037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
7039 $as_echo "$host_stat_h__unused_used" >&6; }
7042 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7043 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7045 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7046 if eval \
${$as_ac_Header+:} false
; then :
7047 $as_echo_n "(cached) " >&6
7049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7063 if ac_fn_c_try_compile
"$LINENO"; then :
7064 eval "$as_ac_Header=yes"
7066 eval "$as_ac_Header=no"
7068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 eval ac_res
=\$
$as_ac_Header
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7078 ac_header_dirent
=$ac_hdr; break
7082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7083 if test $ac_header_dirent = dirent.h
; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7085 $as_echo_n "checking for library containing opendir... " >&6; }
7086 if ${ac_cv_search_opendir+:} false
; then :
7087 $as_echo_n "(cached) " >&6
7089 ac_func_search_save_LIBS
=$LIBS
7090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7093 /* Override any GCC internal prototype to avoid an error.
7094 Use char because int might match the return type of a GCC
7095 builtin and then its argument prototype would still apply. */
7108 for ac_lib
in '' dir
; do
7109 if test -z "$ac_lib"; then
7110 ac_res
="none required"
7113 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7115 if ac_fn_c_try_link
"$LINENO"; then :
7116 ac_cv_search_opendir
=$ac_res
7118 rm -f core conftest.err conftest.
$ac_objext \
7120 if ${ac_cv_search_opendir+:} false
; then :
7124 if ${ac_cv_search_opendir+:} false
; then :
7127 ac_cv_search_opendir
=no
7130 LIBS
=$ac_func_search_save_LIBS
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7133 $as_echo "$ac_cv_search_opendir" >&6; }
7134 ac_res
=$ac_cv_search_opendir
7135 if test "$ac_res" != no
; then :
7136 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7142 $as_echo_n "checking for library containing opendir... " >&6; }
7143 if ${ac_cv_search_opendir+:} false
; then :
7144 $as_echo_n "(cached) " >&6
7146 ac_func_search_save_LIBS
=$LIBS
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7150 /* Override any GCC internal prototype to avoid an error.
7151 Use char because int might match the return type of a GCC
7152 builtin and then its argument prototype would still apply. */
7165 for ac_lib
in '' x
; do
7166 if test -z "$ac_lib"; then
7167 ac_res
="none required"
7170 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7172 if ac_fn_c_try_link
"$LINENO"; then :
7173 ac_cv_search_opendir
=$ac_res
7175 rm -f core conftest.err conftest.
$ac_objext \
7177 if ${ac_cv_search_opendir+:} false
; then :
7181 if ${ac_cv_search_opendir+:} false
; then :
7184 ac_cv_search_opendir
=no
7187 LIBS
=$ac_func_search_save_LIBS
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7190 $as_echo "$ac_cv_search_opendir" >&6; }
7191 ac_res
=$ac_cv_search_opendir
7192 if test "$ac_res" != no
; then :
7193 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7200 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7201 if ${ac_cv_header_stat_broken+:} false
; then :
7202 $as_echo_n "(cached) " >&6
7204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <sys/types.h>
7207 #include <sys/stat.h>
7209 #if defined S_ISBLK && defined S_IFDIR
7210 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7213 #if defined S_ISBLK && defined S_IFCHR
7214 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7217 #if defined S_ISLNK && defined S_IFREG
7218 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7221 #if defined S_ISSOCK && defined S_IFREG
7222 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7226 if ac_fn_c_try_compile
"$LINENO"; then :
7227 ac_cv_header_stat_broken
=no
7229 ac_cv_header_stat_broken
=yes
7231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7234 $as_echo "$ac_cv_header_stat_broken" >&6; }
7235 if test $ac_cv_header_stat_broken = yes; then
7237 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7242 $as_echo_n "checking for ANSI C header files... " >&6; }
7243 if ${ac_cv_header_stdc+:} false
; then :
7244 $as_echo_n "(cached) " >&6
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7261 if ac_fn_c_try_compile
"$LINENO"; then :
7262 ac_cv_header_stdc
=yes
7264 ac_cv_header_stdc
=no
7266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 if test $ac_cv_header_stdc = yes; then
7269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 $EGREP "memchr" >/dev
/null
2>&1; then :
7279 ac_cv_header_stdc
=no
7285 if test $ac_cv_header_stdc = yes; then
7286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "free" >/dev
/null
2>&1; then :
7296 ac_cv_header_stdc
=no
7302 if test $ac_cv_header_stdc = yes; then
7303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7304 if test "$cross_compiling" = yes; then :
7307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 #if ((' ' & 0x0FF) == 0x020)
7312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7315 # define ISLOWER(c) \
7316 (('a' <= (c) && (c) <= 'i') \
7317 || ('j' <= (c) && (c) <= 'r') \
7318 || ('s' <= (c) && (c) <= 'z'))
7319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7327 for (i = 0; i < 256; i++)
7328 if (XOR (islower (i), ISLOWER (i))
7329 || toupper (i) != TOUPPER (i))
7334 if ac_fn_c_try_run
"$LINENO"; then :
7337 ac_cv_header_stdc
=no
7339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7346 $as_echo "$ac_cv_header_stdc" >&6; }
7347 if test $ac_cv_header_stdc = yes; then
7349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7354 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7355 if ${ac_cv_header_sys_wait_h+:} false
; then :
7356 $as_echo_n "(cached) " >&6
7358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <sys/types.h>
7361 #include <sys/wait.h>
7363 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7366 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7374 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7379 if ac_fn_c_try_compile
"$LINENO"; then :
7380 ac_cv_header_sys_wait_h
=yes
7382 ac_cv_header_sys_wait_h
=no
7384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7387 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7388 if test $ac_cv_header_sys_wait_h = yes; then
7390 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7395 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7396 if ${ac_cv_header_time+:} false
; then :
7397 $as_echo_n "(cached) " >&6
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <sys/types.h>
7402 #include <sys/time.h>
7408 if ((struct tm *) 0)
7414 if ac_fn_c_try_compile
"$LINENO"; then :
7415 ac_cv_header_time
=yes
7417 ac_cv_header_time
=no
7419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7422 $as_echo "$ac_cv_header_time" >&6; }
7423 if test $ac_cv_header_time = yes; then
7425 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7429 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7430 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7432 cat >>confdefs.h
<<_ACEOF
7433 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7437 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7442 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7443 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7445 cat >>confdefs.h
<<_ACEOF
7446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7450 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7453 case " $LIBOBJS " in
7454 *" fileblocks.$ac_objext "* ) ;;
7455 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
7462 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7463 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
7465 cat >>confdefs.h
<<_ACEOF
7466 #define HAVE_STRUCT_STAT_ST_RDEV 1
7470 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7476 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7477 if ${ac_cv_struct_tm+:} false
; then :
7478 $as_echo_n "(cached) " >&6
7480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <sys/types.h>
7489 int *p = &tm.tm_sec;
7495 if ac_fn_c_try_compile
"$LINENO"; then :
7496 ac_cv_struct_tm
=time.h
7498 ac_cv_struct_tm
=sys
/time.h
7500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7503 $as_echo "$ac_cv_struct_tm" >&6; }
7504 if test $ac_cv_struct_tm = sys
/time.h
; then
7506 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7510 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7511 #include <$ac_cv_struct_tm>
7514 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7516 cat >>confdefs.h
<<_ACEOF
7517 #define HAVE_STRUCT_TM_TM_ZONE 1
7523 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7525 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7528 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7530 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7536 cat >>confdefs.h
<<_ACEOF
7537 #define HAVE_DECL_TZNAME $ac_have_decl
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7541 $as_echo_n "checking for tzname... " >&6; }
7542 if ${ac_cv_var_tzname+:} false
; then :
7543 $as_echo_n "(cached) " >&6
7545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7548 #if !HAVE_DECL_TZNAME
7549 extern char *tzname[];
7555 return tzname[0][0];
7560 if ac_fn_c_try_link
"$LINENO"; then :
7561 ac_cv_var_tzname
=yes
7565 rm -f core conftest.err conftest.
$ac_objext \
7566 conftest
$ac_exeext conftest.
$ac_ext
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7569 $as_echo "$ac_cv_var_tzname" >&6; }
7570 if test $ac_cv_var_tzname = yes; then
7572 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7577 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7578 if test "x$ac_cv_type_off_t" = xyes
; then :
7582 cat >>confdefs.h
<<_ACEOF
7583 #define off_t long int
7588 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7589 if test "x$ac_cv_type_pid_t" = xyes
; then :
7593 cat >>confdefs.h
<<_ACEOF
7599 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7600 if test "x$ac_cv_type_size_t" = xyes
; then :
7604 cat >>confdefs.h
<<_ACEOF
7605 #define size_t unsigned int
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7611 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7612 if ${ac_cv_type_uid_t+:} false
; then :
7613 $as_echo_n "(cached) " >&6
7615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 #include <sys/types.h>
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "uid_t" >/dev
/null
2>&1; then :
7622 ac_cv_type_uid_t
=yes
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7630 $as_echo "$ac_cv_type_uid_t" >&6; }
7631 if test $ac_cv_type_uid_t = no
; then
7633 $as_echo "#define uid_t int" >>confdefs.h
7636 $as_echo "#define gid_t int" >>confdefs.h
7641 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7642 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7644 cat >>confdefs.h
<<_ACEOF
7645 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7652 # Look for some functions
7653 for ac_func
in getpagesize kqueue statfs statvfs \
7654 clone kse_create rfork_thread thr_create sa_register \
7655 getcontext makecontext setcontext sigaltstack swapcontext
7657 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7658 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7659 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7660 cat >>confdefs.h
<<_ACEOF
7661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7671 for ac_header
in $ac_header_list
7673 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7674 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7676 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7677 cat >>confdefs.h
<<_ACEOF
7678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7692 for ac_func
in getpagesize
7694 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7695 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7696 cat >>confdefs.h
<<_ACEOF
7697 #define HAVE_GETPAGESIZE 1
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7704 $as_echo_n "checking for working mmap... " >&6; }
7705 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7706 $as_echo_n "(cached) " >&6
7708 if test "$cross_compiling" = yes; then :
7709 ac_cv_func_mmap_fixed_mapped
=no
7711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 /* malloc might have been renamed as rpl_malloc. */
7717 /* Thanks to Mike Haertel and Jim Avera for this test.
7718 Here is a matrix of mmap possibilities:
7719 mmap private not fixed
7720 mmap private fixed at somewhere currently unmapped
7721 mmap private fixed at somewhere already mapped
7722 mmap shared not fixed
7723 mmap shared fixed at somewhere currently unmapped
7724 mmap shared fixed at somewhere already mapped
7725 For private mappings, we should verify that changes cannot be read()
7726 back from the file, nor mmap's back from the file at a different
7727 address. (There have been systems where private was not correctly
7728 implemented like the infamous i386 svr4.0, and systems where the
7729 VM page cache was not coherent with the file system buffer cache
7730 like early versions of FreeBSD and possibly contemporary NetBSD.)
7731 For shared mappings, we should conversely verify that changes get
7732 propagated back to all the places they're supposed to be.
7734 Grep wants private fixed already mapped.
7735 The main things grep needs to know about mmap are:
7736 * does it exist and is it safe to write into the mmap'd area
7737 * how to use it (BSD variants) */
7740 #include <sys/mman.h>
7742 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7746 /* This mess was copied from the GNU getpagesize.h. */
7747 #ifndef HAVE_GETPAGESIZE
7748 # ifdef _SC_PAGESIZE
7749 # define getpagesize() sysconf(_SC_PAGESIZE)
7750 # else /* no _SC_PAGESIZE */
7751 # ifdef HAVE_SYS_PARAM_H
7752 # include <sys/param.h>
7753 # ifdef EXEC_PAGESIZE
7754 # define getpagesize() EXEC_PAGESIZE
7755 # else /* no EXEC_PAGESIZE */
7757 # define getpagesize() NBPG * CLSIZE
7760 # endif /* no CLSIZE */
7761 # else /* no NBPG */
7763 # define getpagesize() NBPC
7764 # else /* no NBPC */
7766 # define getpagesize() PAGESIZE
7767 # endif /* PAGESIZE */
7768 # endif /* no NBPC */
7769 # endif /* no NBPG */
7770 # endif /* no EXEC_PAGESIZE */
7771 # else /* no HAVE_SYS_PARAM_H */
7772 # define getpagesize() 8192 /* punt totally */
7773 # endif /* no HAVE_SYS_PARAM_H */
7774 # endif /* no _SC_PAGESIZE */
7776 #endif /* no HAVE_GETPAGESIZE */
7781 char *data, *data2, *data3;
7786 pagesize = getpagesize ();
7788 /* First, make a file with some known garbage in it. */
7789 data = (char *) malloc (pagesize);
7792 for (i = 0; i < pagesize; ++i)
7793 *(data + i) = rand ();
7795 fd = creat ("conftest.mmap", 0600);
7798 if (write (fd, data, pagesize) != pagesize)
7802 /* Next, check that the tail of a page is zero-filled. File must have
7803 non-zero length, otherwise we risk SIGBUS for entire page. */
7804 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7808 if (write (fd2, cdata2, 1) != 1)
7810 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7811 if (data2 == MAP_FAILED)
7813 for (i = 0; i < pagesize; ++i)
7817 if (munmap (data2, pagesize))
7820 /* Next, try to mmap the file at a fixed address which already has
7821 something else allocated at it. If we can, also make sure that
7822 we see the same garbage. */
7823 fd = open ("conftest.mmap", O_RDWR);
7826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7829 for (i = 0; i < pagesize; ++i)
7830 if (*(data + i) != *(data2 + i))
7833 /* Finally, make sure that changes to the mapped area do not
7834 percolate back to the file as seen by read(). (This is a bug on
7835 some variants of i386 svr4.0.) */
7836 for (i = 0; i < pagesize; ++i)
7837 *(data2 + i) = *(data2 + i) + 1;
7838 data3 = (char *) malloc (pagesize);
7841 if (read (fd, data3, pagesize) != pagesize)
7843 for (i = 0; i < pagesize; ++i)
7844 if (*(data + i) != *(data3 + i))
7852 if ac_fn_c_try_run
"$LINENO"; then :
7853 ac_cv_func_mmap_fixed_mapped
=yes
7855 ac_cv_func_mmap_fixed_mapped
=no
7857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7863 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7866 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7869 rm -f conftest.mmap conftest.txt
7872 #-----------------------------------------------------------------------------
7875 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7876 # it switched on by default, and we use the host compiler, so it compiles AROS
7877 # code with this enabled resulting in link failures as we don't have support
7880 # We use two methods to disable it. For the host compiler (used to compile
7881 # some hosted modules), we test to see if the compiler supports stack
7882 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7883 # work on all platforms.
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7887 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7888 save_cflags
="$CFLAGS"
7889 CFLAGS
="$CFLAGS -fno-stack-protector"
7890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7901 if ac_fn_c_try_compile
"$LINENO"; then :
7902 use_no_stack_protector
="yes"
7904 use_no_stack_protector
="no"
7906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7908 $as_echo "$use_no_stack_protector" >&6; }
7909 if test "x-$use_no_stack_protector" = "x-yes" ; then
7910 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7912 CFLAGS
="$save_cflags"
7914 #-----------------------------------------------------------------------------
7916 # Disable pointer-signedness warnings if the compiler recognises the option
7917 # (this only works for the host compiler at the moment)
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7920 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7921 save_cflags
="$CFLAGS"
7922 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7934 if ac_fn_c_try_compile
"$LINENO"; then :
7935 use_no_sign_warning
="yes"
7937 use_no_sign_warning
="no"
7939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7941 $as_echo "$use_no_sign_warning" >&6; }
7942 if test "x-$use_no_sign_warning" = "x-yes" ; then
7943 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7945 CFLAGS
="$save_cflags"
7947 #-----------------------------------------------------------------------------
7949 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7952 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7953 save_cflags
="$CFLAGS"
7954 CFLAGS
="$CFLAGS -fgnu89-inline"
7955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7966 if ac_fn_c_try_compile
"$LINENO"; then :
7967 use_gnu89_inline
="yes"
7969 use_gnu89_inline
="no"
7971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7973 $as_echo "$use_gnu89_inline" >&6; }
7974 if test "x-$use_gnu89_inline" = "x-yes" ; then
7975 gnu89_inline
="-fgnu89-inline"
7977 CFLAGS
="$save_cflags"
7980 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7981 # On GCC >= 4.0 -iquote should be used
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7984 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7985 CFLAGS
="$CFLAGS -iquote."
7986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7997 if ac_fn_c_try_compile
"$LINENO"; then :
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
8004 $as_echo "$has_iquote" >&6; }
8005 if test "x-$has_iquote" = "x-yes" ; then
8006 host_cflags_iquote
=-iquote
8007 host_cflags_iquote_end
=
8009 host_cflags_iquote
=-I
8010 host_cflags_iquote_end
=-I-
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
8014 $as_echo "$as_me: Performing target configuration..." >&6;}
8019 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
8027 aros_kernel_isaflags
=
8028 aros_config_cppflags
=
8030 aros_config_cxxflags
=
8031 aros_config_aflags
="$""(WARN_ALL) -x assembler-with-cpp -c"
8032 aros_config_ldflags
=""
8034 aros_shared_default
=yes
8036 aros_shared_cflags
="-fPIC"
8037 aros_shared_aflags
=""
8038 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8039 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8041 aros_kernel_ar_flags
="cr"
8042 aros_target_ar_flags
="cr"
8043 aros_target_nm_flags
="-C -ul"
8044 aros_target_strip_flags
="--strip-unneeded -R.comment"
8049 aros_target_genmap
="-Wl,-Map -Xlinker"
8051 # Native flavour stuff
8052 aros_serial_debug
="0"
8054 # Palm native flavour stuff
8055 aros_palm_debug_hack
="0"
8057 # Unix flavour stuff
8058 aros_nesting_supervisor
="0"
8060 # Collect-aros stuff: "-ius" to ignore undefined symbols
8061 ignore_undefined_symbols
=""
8063 # Check for X11 by default
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
8067 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
8069 # Check whether --with-toolchain was given.
8070 if test "${with_toolchain+set}" = set; then :
8071 withval
=$with_toolchain; aros_toolchain
="$withval"
8073 aros_toolchain
="$default_toolchain_family"
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
8077 $as_echo "$aros_toolchain" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8081 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8082 # Check whether --enable-lto was given.
8083 if test "${enable_lto+set}" = set; then :
8084 enableval
=$enable_lto; aros_config_lto
="$enableval"
8086 aros_config_lto
="no"
8089 if test "$aros_config_lto" != "no"; then
8090 aros_config_lto
="yes"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8093 $as_echo "$aros_config_lto" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8096 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8097 # Check whether --enable-coverage was given.
8098 if test "${enable_coverage+set}" = set; then :
8099 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
8101 aros_config_coverage
="no"
8104 if test "$aros_config_coverage" != "no"; then
8105 aros_config_coverage
="yes"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8108 $as_echo "$aros_config_coverage" >&6; }
8112 case "$aros_toolchain" in
8114 toolchain_c_compiler
="clang"
8115 toolchain_cxx_compiler
="clang++"
8116 toolchain_cpp_preprocessor
="clang"
8117 toolchain_cpp_opts
=" -E"
8118 toolchain_ld
="ld.lld"
8120 toolchain_as
="llvm-as"
8121 toolchain_ar
="llvm-ar"
8122 toolchain_ranlib
="llvm-ranlib"
8123 toolchain_nm
="llvm-nm"
8124 toolchain_strip
="true"
8125 toolchain_objcopy
="llvm-objcopy"
8126 toolchain_objdump
="llvm-objdump"
8128 toolchain_def_opt_lvl
="-O2"
8129 toolchain_debug_opt_lvl
="-O0"
8130 toolchain_size_opt_lvl
="-Os"
8133 toolchain_c_compiler
="gcc"
8134 toolchain_cxx_compiler
="g++"
8135 toolchain_cpp_preprocessor
="gcc"
8136 toolchain_cpp_opts
=" -E"
8139 if test "$aros_config_lto" != "yes"; then
8142 toolchain_ranlib
="ranlib"
8145 toolchain_ld
="ld.bfd"
8146 toolchain_ar
="gcc-ar"
8147 toolchain_ranlib
="gcc-ranlib"
8148 toolchain_nm
="gcc-nm"
8150 toolchain_strip
="strip"
8151 toolchain_objcopy
="objcopy"
8152 toolchain_objdump
="objdump"
8154 toolchain_def_opt_lvl
="-O2"
8155 toolchain_debug_opt_lvl
="-O0"
8156 toolchain_size_opt_lvl
="-Os"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8160 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8161 toolchain_c_compiler
="cc"
8162 toolchain_cxx_compiler
="c++"
8163 toolchain_cpp_preprocessor
="cpp"
8169 toolchain_ranlib
="ranlib"
8171 toolchain_strip
="strip"
8172 toolchain_objcopy
="objcopy"
8173 toolchain_objdump
="objdump"
8177 #-----------------------------------------------------------------------------
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8180 $as_echo_n "checking which type of build to do... " >&6; }
8181 # Check whether --enable-build_type was given.
8182 if test "${enable_build_type+set}" = set; then :
8183 enableval
=$enable_build_type; build_type
=$enableval
8185 build_type
="personal"
8189 if test "$build_type" = "nightly"; then
8190 build_type_string
="NIGHTLY"
8191 elif test "$build_type" = "snapshot"; then
8192 build_type_string
="SNAPSHOT"
8193 elif test "$build_type" = "milestone"; then
8194 build_type_string
="MILESTONE"
8195 elif test "$build_type" = "release"; then
8196 build_type_string
="RELEASE"
8198 build_type_string
="PERSONAL"
8199 build_type
="personal"
8202 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8205 $as_echo "$build_type" >&6; }
8207 #-----------------------------------------------------------------------------
8208 all_debug_types
="messages stack modules mungwall symbols"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8211 $as_echo_n "checking which debug types to enable... " >&6; }
8212 # Check whether --enable-debug was given.
8213 if test "${enable_debug+set}" = set; then :
8214 enableval
=$enable_debug; debug
="$enableval"
8220 if test "$debug" = "" -o "$debug" = "no"; then
8222 elif test "$debug" = "yes"; then
8226 if test "$debug" = "all" ; then
8227 debug
="messages stack modules symbols"
8228 for d
in $all_debug_types; do
8229 export aros_
${d}_debug
="1"
8232 for d
in $all_debug_types; do
8233 export aros_
${d}_debug
="0"
8237 if test "$debug" != "none"; then
8238 debug
=`echo $debug | sed s/,/\ /g`
8241 for d2
in $all_debug_types; do
8242 if test "$d2" = "$d"; then
8247 if test "$found" = "0"; then
8248 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8250 export aros_
${d}_debug
="1"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8255 $as_echo "$debug" >&6; }
8257 if test "$aros_messages_debug" = "1"; then
8258 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
8260 aros_messages_debug
=""
8262 if test "$aros_symbols_debug" = "1"; then
8263 aros_symbols_debug
="-g"
8265 aros_symbols_debug
=""
8268 # These are the flags to pass when compiling debugged programs
8269 aros_debug_cppflags
="$aros_messages_debug"
8270 aros_debug_cflags
="$aros_symbols_debug"
8271 aros_debug_cxxflags
=
8272 aros_debug_aflags
=""
8273 aros_debug_ldflags
="$aros_symbols_debug"
8275 #-----------------------------------------------------------------------------
8276 # Checking for distcc and ccache.
8278 # Always apply the transforms in this particular order. Basically you should
8279 # always run 'ccache distcc compiler' in that order for the best performance.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8282 $as_echo_n "checking whether to enable distcc... " >&6; }
8283 # Check whether --enable-distcc was given.
8284 if test "${enable_distcc+set}" = set; then :
8285 enableval
=$enable_distcc; distcc
="$enableval"
8290 if test "$distcc" != "" -a "$distcc" != "no"; then
8291 # AC_CHECK_PROG will print out the result in this case
8292 # Extract the first word of "distcc", so it can be a program name with args.
8293 set dummy distcc
; ac_word
=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_path_DISTCC+:} false
; then :
8297 $as_echo_n "(cached) " >&6
8301 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir
=.
8309 for ac_exec_ext
in '' $ac_executable_extensions; do
8310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8323 DISTCC
=$ac_cv_path_DISTCC
8324 if test -n "$DISTCC"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8326 $as_echo "$DISTCC" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8339 $as_echo_n "checking whether to enable ccache... " >&6; }
8340 # Check whether --enable-ccache was given.
8341 if test "${enable_ccache+set}" = set; then :
8342 enableval
=$enable_ccache; ccache
="$enableval"
8347 if test "$ccache" != "" -a "$ccache" != "no"; then
8348 # AC_CHECK_PROG will print out the result in this case
8349 # Extract the first word of "ccache", so it can be a program name with args.
8350 set dummy ccache
; ac_word
=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_CCACHE+:} false
; then :
8354 $as_echo_n "(cached) " >&6
8356 if test -n "$CCACHE"; then
8357 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir
=.
8364 for ac_exec_ext
in '' $ac_executable_extensions; do
8365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_CCACHE
="ccache"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 CCACHE
=$ac_cv_prog_CCACHE
8377 if test -n "$CCACHE"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8379 $as_echo "$CCACHE" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 #-----------------------------------------------------------------------------
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8393 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8395 # Check whether --with-kernel-gcc-version was given.
8396 if test "${with_kernel_gcc_version+set}" = set; then :
8397 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
8399 kernel_tool_version
=""
8402 if test "$kernel_tool_version" != "" ; then
8403 msg_result
=$kernel_tool_version
8405 msg_result
="default"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8408 $as_echo "$msg_result" >&6; }
8410 #-----------------------------------------------------------------------------
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8412 $as_echo_n "checking what optimization flags to use... " >&6; }
8414 # Check whether --with-optimization was given.
8415 if test "${with_optimization+set}" = set; then :
8416 withval
=$with_optimization; optimization_level
="$withval"
8418 optimization_level
="unknown"
8421 if test "$optimization_level" = "unknown"; then
8422 optimization
="default"
8423 if test "$debug" != "none"; then
8424 optimization_level
=$toolchain_debug_opt_lvl
8426 optimization_level
=$toolchain_def_opt_lvl
8429 optimization
="$optimization_level"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8432 $as_echo "$optimization" >&6; }
8434 paranoia_default
=yes
8435 #-----------------------------------------------------------------------------
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8437 $as_echo_n "checking which paranoia flags to use... " >&6; }
8439 # Check whether --with-paranoia was given.
8440 if test "${with_paranoia+set}" = set; then :
8441 withval
=$with_paranoia; paranoia_flags
="$withval"
8443 paranoia_flags
="$paranoia_default"
8446 if test "$paranoia_flags" = "no"; then
8447 paranoia_flags
="$""(WARN_ALL) -Werror-implicit-function-declaration"
8450 if test "$paranoia_flags" = "yes"; then
8451 paranoia_flags
="$""(WARN_ALL) $""(WARN_ERROR)"
8453 msg_result
="$paranoia_flags"
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8456 $as_echo "$msg_result" >&6; }
8457 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
8459 #-----------------------------------------------------------------------------
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8461 $as_echo_n "checking what target variant to enable... " >&6; }
8462 # Check whether --enable-target_variant was given.
8463 if test "${enable_target_variant+set}" = set; then :
8464 enableval
=$enable_target_variant; target_variant
=$enableval
8469 if test "$target_variant" = ""; then
8470 aros_target_variant
=""
8471 aros_target_suffix
=""
8474 aros_target_variant
="$target_variant"
8475 aros_target_suffix
="-$target_variant"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8478 $as_echo "$enableval" >&6; }
8480 #-----------------------------------------------------------------------------
8481 # Target-specific defaults. You can override then on a per-target basis.
8483 # Bootloader name. Currently used by PC target.
8484 target_bootloader
="none"
8488 #-----------------------------------------------------------------------------
8489 # Additional options for some specific targets
8491 case "$aros_target_variant" in
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8494 $as_echo_n "checking XCode path... " >&6; }
8496 # Check whether --with-xcode was given.
8497 if test "${with_xcode+set}" = set; then :
8498 withval
=$with_xcode; aros_xcode_path
="$withval"
8500 aros_xcode_path
="/Developer"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8504 $as_echo "$aros_xcode_path" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8507 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8509 # Check whether --with-sdk-version was given.
8510 if test "${with_sdk_version+set}" = set; then :
8511 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8513 aros_sdk_version
="4.1"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8517 $as_echo "$aros_sdk_version" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8523 $as_echo_n "checking Android SDK path... " >&6; }
8525 # Check whether --with-sdk was given.
8526 if test "${with_sdk+set}" = set; then :
8527 withval
=$with_sdk; aros_android_sdk
="$withval"
8529 aros_android_sdk
=$default_android_sdk
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8533 $as_echo "$aros_android_sdk" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8536 $as_echo_n "checking Android NDK path... " >&6; }
8538 # Check whether --with-ndk was given.
8539 if test "${with_ndk+set}" = set; then :
8540 withval
=$with_ndk; aros_android_ndk
="$withval"
8542 aros_android_ndk
="none"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8546 $as_echo "$aros_android_ndk" >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8549 $as_echo_n "checking what Android SDK version to use... " >&6; }
8551 # Check whether --with-sdk-version was given.
8552 if test "${with_sdk_version+set}" = set; then :
8553 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8555 aros_sdk_version
="12"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8559 $as_echo "$aros_sdk_version" >&6; }
8561 aros_android_level
=android-
$aros_sdk_version
8562 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8563 echo "Platform $aros_android_level is not installed in your SDK"
8564 echo "Use --with-sdk-version=<API level number> to select another platform version"
8565 echo "You can check what plaform versions are installed in your SDK"
8566 echo "by examining contents of $aros_android_sdk/platforms directory"
8567 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8570 export PATH
="$aros_android_sdk/tools:$PATH"
8571 # Extract the first word of "$android_tool", so it can be a program name with args.
8572 set dummy
$android_tool; ac_word
=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_path_android_tool+:} false
; then :
8576 $as_echo_n "(cached) " >&6
8578 case $android_tool in
8580 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8587 test -z "$as_dir" && as_dir
=.
8588 for ac_exec_ext
in '' $ac_executable_extensions; do
8589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8590 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 android_tool
=$ac_cv_path_android_tool
8602 if test -n "$android_tool"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8604 $as_echo "$android_tool" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8612 if test "$android_tool" = ""; then
8615 if test "$android_tool" = "no"; then
8618 if test "$req_avail" = "no"; then
8619 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8622 if test "$aros_android_ndk" != "none"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8624 $as_echo_n "checking what Android NDK version to use... " >&6; }
8626 # Check whether --with-ndk-version was given.
8627 if test "${with_ndk_version+set}" = set; then :
8628 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8630 aros_ndk_version
="9"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8634 $as_echo "$aros_ndk_version" >&6; }
8637 # Extract the first word of "ant", so it can be a program name with args.
8638 set dummy ant
; ac_word
=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_path_ant+:} false
; then :
8642 $as_echo_n "(cached) " >&6
8646 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8653 test -z "$as_dir" && as_dir
=.
8654 for ac_exec_ext
in '' $ac_executable_extensions; do
8655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8656 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 if test -n "$ant"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8670 $as_echo "$ant" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8677 if test "$ant" = ""; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8679 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8683 $as_echo_n "checking Build debug or release apk... " >&6; }
8685 # Check whether --with-apk-version was given.
8686 if test "${with_apk_version+set}" = set; then :
8687 withval
=$with_apk_version; aros_android_antapk
=$withval
8689 aros_android_antapk
=release
8692 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8693 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8696 $as_echo "$aros_android_antapk" >&6; }
8698 target_extra_cfg
+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8699 host_extra_cfg
+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8700 aros_target_options
+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8702 if test "$host_os" = "mingw32"; then
8703 android_tool
="cmd //c $android_tool"
8711 #-----------------------------------------------------------------------------
8712 # External toolchains
8713 kernel_tool_prefix
="none"
8714 aros_tool_prefix
="none"
8715 elf_tool_prefix
="${target_cpu}-elf-"
8717 # Base target cpu ISA configuration switch.
8718 case "$target_cpu" in
8724 m68k_isa_extra
="ISA_MC68000_FLAGS = -march=68000"
8725 m68k_020_isa_extra
="ISA_MC68020_FLAGS = -march=68020"
8726 m68k_030_isa_extra
="ISA_MC68030_FLAGS = -march=68030"
8727 m68k_040_isa_extra
="ISA_MC68040_FLAGS = -march=68040"
8728 m68k_060_isa_extra
="ISA_MC68060_FLAGS = -march=68060"
8729 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS = -march=68040"
8730 m68k_020_ext
="ISA_MC68020_EXT :=020"
8731 m68k_030_ext
="ISA_MC68030_EXT :=030"
8732 m68k_040_ext
="ISA_MC68040_EXT :=040"
8733 m68k_060_ext
="ISA_MC68060_EXT :=060"
8734 m68k_020_cflags
="ISA_MC68020_CFLAGS ="
8735 m68k_030_cflags
="ISA_MC68030_CFLAGS ="
8736 m68k_040_cflags
="ISA_MC68040_CFLAGS ="
8737 m68k_060_cflags
="ISA_MC68060_CFLAGS ="
8738 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS ="
8739 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS ="
8740 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS ="
8741 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS ="
8742 m68k_020_ldflags
="ISA_MC68020_LDFLAGS ="
8743 m68k_030_ldflags
="ISA_MC68030_LDFLAGS ="
8744 m68k_040_ldflags
="ISA_MC68040_LDFLAGS ="
8745 m68k_060_ldflags
="ISA_MC68060_LDFLAGS ="
8748 x86_isa_extra
="ISA_X86_FLAGS = -m32 -march=i486"
8749 x86_64_isa_extra
="ISA_X8664_FLAGS = -mcmodel=large"
8755 # This is the target configuration switch.
8756 case "$target_os" in
8762 HOST_WANTS_DLOPEN
=yes
8763 aros_target_arch
="linux"
8764 aros_target_family
="unix"
8765 case "$target_cpu" in
8767 aros_target_cpu
="m68k"
8768 aros_object_format
="m68kelf"
8769 aros_flavour
="emulcompat"
8770 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8771 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8772 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8773 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8774 gcc_target_cpu
="mc68000"
8777 aros_target_cpu
="i386"
8778 aros_object_format
="elf_i386"
8779 aros_flavour
="emulation"
8780 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8781 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8782 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8783 aros_kernel_ldflags
="-Wl,-melf_i386"
8784 aros_nominal_depth
=8
8785 gcc_target_cpu
="i386"
8786 pci_hidd_target
="hidd-pci-linux"
8787 android_tool_dir_prefix
="x86"
8788 android_tool_prefix
="i686-android-linux"
8789 android_ndk_arch
="x86"
8792 aros_target_cpu
="x86_64"
8793 aros_object_format
="elf_x86_64"
8794 aros_flavour
="emulation"
8795 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8796 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8797 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8798 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8799 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8800 aros_nominal_depth
=8
8801 pci_hidd_target
="hidd-pci-linux"
8804 aros_target_cpu
="ppc"
8805 aros_object_format
="elf32ppc"
8806 aros_flavour
="emulation"
8807 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8808 aros_nominal_depth
=8
8809 gcc_target_cpu
="ppc"
8812 # Same as powerpc, but I need this for the nightly build to work again.
8813 # Actually, the nightly should be made working with powerpc target.
8814 # That just was too much work for the moment, another week or two.
8816 aros_target_cpu
="ppc"
8817 aros_object_format
="elf32ppc"
8818 aros_flavour
="emulation"
8819 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8820 aros_nominal_depth
=8
8821 gcc_target_cpu
="ppc"
8824 aros_target_cpu
="aarch64"
8825 target_cpu
="aarch64"
8826 aros_object_format
="aarch64elf_aros"
8827 aros_flavour
="emulation"
8828 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8829 gcc_target_cpu
="aarch64"
8830 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8831 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8832 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8833 aros_c_libs
="$aros_c_libs -laeabi"
8834 gcc_default_float_abi
="hard"
8835 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8838 aros_target_cpu
="arm"
8840 aros_object_format
="armelf_aros"
8841 aros_flavour
="emulation"
8842 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8843 gcc_target_cpu
="arm"
8844 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8845 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8846 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8847 aros_c_libs
="$aros_c_libs -laeabi"
8848 gcc_default_float_abi
="hard"
8849 android_tool_dir_prefix
="arm-linux-androideabi"
8850 android_tool_prefix
="arm-linux-androideabi"
8851 android_ndk_arch
="arm"
8852 kernel_tool_prefix
="arm-linux-gnueabihf-"
8855 aros_target_cpu
="arm"
8856 aros_object_format
="armelf_aros"
8857 aros_flavour
="emulation"
8858 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8859 gcc_target_cpu
="arm"
8860 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8861 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8862 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8863 aros_c_libs
="$aros_c_libs -laeabi"
8864 android_tool_dir_prefix
="arm-linux-androideabi"
8865 android_tool_prefix
="arm-linux-androideabi"
8866 android_ndk_arch
="arm"
8867 kernel_tool_prefix
="arm-linux-gnueabi-"
8870 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8873 case "$aros_target_variant" in
8876 if test "$android_ndk_arch" = ""; then
8877 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8880 aros_nominal_width
=320
8881 aros_nominal_height
=480
8882 if test "$aros_android_ndk" = "none"; then
8883 aros_kernel_cflags
="-mandroid"
8884 aros_kernel_ldflags
="-mandroid"
8887 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8888 kernel_tool_version
=""
8889 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8890 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8891 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8892 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8893 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8896 # Disable implicit PIC mode
8897 aros_config_cflags
="$aros_config_cflags -fno-pic"
8898 kernel_tool_prefix
="$android_tool_prefix-"
8904 aros_target_arch
="pc"
8905 aros_shared_default
="no"
8906 target_bootloader
="grub2"
8907 case "$target_cpu" in
8909 aros_target_cpu
="i386"
8912 if test "$aros_object_format" = "" ; then
8913 aros_object_format
="elf_i386"
8915 aros_flavour
="standalone"
8916 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8917 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8918 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8919 aros_kernel_ldflags
="-Wl,-melf_i386"
8920 aros_nominal_width
=640
8921 aros_nominal_height
=480
8922 gcc_target_cpu
="i386"
8925 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8926 aros_target_cpu
="x86_64"
8928 if test "$aros_object_format" = "" ; then
8929 aros_object_format
="elf_x86_64"
8931 aros_flavour
="standalone"
8932 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8933 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8934 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8935 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8936 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8937 aros_kernel_ldflags
=""
8938 aros_nominal_width
=640
8939 aros_nominal_height
=480
8940 case "$aros_target_variant" in
8942 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8947 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8953 aros_target_arch
="prep"
8954 aros_shared_default
="no"
8955 aros_target_cpu
="ppc"
8956 aros_object_format
="elf32ppc"
8957 aros_flavour
="ppcnative"
8958 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8959 aros_kernel_ldflags
=""
8960 aros_nominal_width
=640
8961 aros_nominal_height
=480
8962 gcc_target_cpu
="ppc"
8970 HOST_WANTS_DLOPEN
=yes
8971 aros_target_arch
="freebsd"
8972 aros_target_family
="unix"
8973 aros_target_cpu
="i386"
8974 aros_flavour
="emulation"
8975 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8976 gcc_target_cpu
="i386"
8978 aros_target_strip_flags
="-x"
8986 HOST_WANTS_DLOPEN
=yes
8987 aros_target_arch
="darwin"
8988 aros_target_family
="unix"
8989 aros_flavour
="emulation"
8990 case "$target_cpu" in
8992 aros_ios_platform
="iPhoneSimulator"
8993 aros_target_cpu
="i386"
8994 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8995 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8996 aros_kernel_ldflags
=""
8997 aros_macosx_version
="10.4"
8998 aros_nominal_depth
=8
8999 gcc_target_cpu
="i386"
9000 aros_object_format
="elf_i386"
9001 aros_kernel_ar_flags
="-cr"
9002 aros_target_strip_flags
="-x"
9003 kernel_tool_flags
="-m32"
9006 aros_target_cpu
="x86_64"
9007 aros_object_format
="elf_x86_64"
9008 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9009 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9010 aros_macosx_version
="10.6"
9011 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9012 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9013 aros_kernel_cflags
="-m64"
9014 aros_kernel_ldflags
="-m64"
9015 aros_nominal_depth
=8
9016 aros_kernel_rs
="$toolchain_ar"
9017 aros_kernel_ar_flags
="-cr"
9018 aros_kernel_ld
="$toolchain_ld"
9019 aros_kernel_as
="$toolchain_as"
9020 aros_kernel_ranlib
="$toolchain_ranlib"
9021 aros_kernel_nm
="$toolchain_nm"
9022 aros_kernel_strip
="strip"
9023 kernel_tool_prefix
="i686-apple-darwin10-"
9026 aros_target_cpu
="ppc"
9027 aros_object_format
="elf32ppc"
9028 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9029 aros_kernel_ldflags
=""
9030 aros_macosx_version
="10.0"
9031 aros_nominal_depth
=8
9032 gcc_target_cpu
="ppc"
9033 aros_kernel_rs
="$toolchain_ar"
9034 aros_kernel_ar_flags
="-cr"
9035 aros_kernel_ld
="$toolchain_ld -arch ppc"
9036 aros_kernel_as
="$toolchain_as -arch ppc"
9037 aros_kernel_ranlib
="$toolchain_ranlib -arch ppc"
9038 aros_kernel_nm
="$toolchain_nm -arch ppc"
9039 aros_kernel_strip
="strip -arch ppc"
9040 kernel_tool_prefix
="powerpc-apple-darwin10-"
9043 aros_ios_platform
="iPhoneOS"
9044 aros_target_cpu
="arm"
9045 aros_object_format
="armelf_aros"
9046 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9047 aros_c_libs
="$aros_c_libs -laeabi"
9048 aros_nominal_depth
=8
9049 gcc_target_cpu
="arm"
9050 aros_kernel_rs
="$toolchain_ar"
9051 aros_kernel_ar_flags
="-cr"
9052 aros_kernel_ld
="$toolchain_ld -arch arm"
9053 aros_kernel_ranlib
="$toolchain_ranlib -arch arm"
9054 kernel_tool_prefix
="arm-apple-darwin10-"
9055 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
9058 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
9061 case "$aros_target_variant" in
9063 make_extra_targetcfg
="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
9064 aros_ios_version
="3.0"
9065 aros_nominal_width
=320
9066 aros_nominal_height
=480
9067 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
9068 target_extra_cfg
+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
9069 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
9070 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
9072 # This is here because it may depend on iOS or SDK version
9073 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
9074 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
9075 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
9078 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9079 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9089 HOST_WANTS_DLOPEN
=yes
9090 aros_target_arch
="dragonfly"
9091 aros_target_family
="unix"
9092 aros_flavour
="emulation"
9093 case "$target_cpu" in
9095 aros_target_cpu
="i386"
9096 aros_object_format
="elf_i386"
9097 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9098 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9101 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9102 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9103 aros_target_cpu
="x86_64"
9104 aros_object_format
="elf_x86_64"
9105 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9106 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9109 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9119 HOST_WANTS_DLOPEN
=yes
9120 aros_target_arch
="netbsd"
9121 aros_target_family
="unix"
9122 case "$target_cpu" in
9124 aros_target_cpu
="m68k"
9125 aros_object_format
="m68kelf"
9126 aros_flavour
="emulcompat"
9127 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9128 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9129 gcc_target_cpu
="mc68000"
9132 aros_target_cpu
="i386"
9133 aros_object_format
="elf_i386"
9134 aros_flavour
="emulation"
9135 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9136 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9137 aros_nominal_depth
=8
9138 gcc_target_cpu
="i386"
9141 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9144 aros_target_genmap
="-Wl,-M -Xlinker >"
9145 aros_flavour
="emulation"
9146 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9154 HOST_WANTS_DLOPEN
=yes
9155 aros_target_arch
="openbsd"
9156 aros_target_family
="unix"
9157 case "$target_cpu" in
9159 aros_target_cpu
="i386"
9160 aros_object_format
="elf_i386"
9161 aros_flavour
="emulation"
9162 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9163 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9164 gcc_target_cpu
="i386"
9167 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9170 aros_target_genmap
="-Wl,-M -Xlinker >"
9171 aros_target_nm_flags
="-u"
9172 aros_flavour
="emulation"
9176 aros_target_arch
="solaris"
9177 aros_target_family
="unix"
9178 case "$target_cpu" in
9180 aros_target_cpu
="i386"
9181 aros_object_format
="elf_i386"
9182 aros_flavour
="emulation"
9183 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9184 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9185 aros_nominal_depth
=8
9186 gcc_target_cpu
="i386"
9189 aros_target_cpu
="sparc"
9190 aros_object_format
="elf_sparc"
9191 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9192 gcc_target_cpu
="sparc"
9195 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9198 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
9199 aros_flavour
="emulation"
9203 aros_target_arch
="morphos"
9204 aros_shared_default
="no"
9205 aros_target_cpu
="ppc"
9206 aros_object_format
="elf_ppc"
9207 aros_flavour
="nativecompat"
9208 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9209 gcc_target_cpu
="ppc"
9213 aros_target_arch
="sam440"
9214 aros_shared_default
="no"
9215 aros_target_cpu
="ppc"
9216 aros_object_format
="elf32ppc"
9217 aros_flavour
="ppcnative"
9218 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9219 aros_kernel_ldflags
=""
9220 aros_nominal_width
=1024
9221 aros_nominal_height
=768
9222 aros_nominal_depth
=24
9223 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
9224 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9225 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9226 gcc_target_cpu
="powerpc"
9230 aros_target_arch
="efika"
9231 aros_shared_default
="no"
9232 aros_target_cpu
="arm"
9233 aros_object_format
="armelf_aros"
9234 aros_flavour
="standalone"
9235 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9236 aros_kernel_ldflags
=""
9237 aros_nominal_width
=1024
9238 aros_nominal_height
=600
9239 aros_c_libs
="$aros_c_libs -laeabi"
9240 gcc_default_cpu
="armv7-a"
9241 gcc_default_fpu
="vfpv3"
9242 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
9243 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9244 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9245 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9246 if test "$optimization" = "default"; then
9247 optimization_level
=$toolchain_size_opt_lvl
9249 case "$target_cpu" in
9251 gcc_default_float_abi
="hard"
9256 gcc_default_float_abi
="softfp"
9259 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9265 aros_target_arch
="chrp"
9266 aros_shared_default
="no"
9267 aros_target_cpu
="ppc"
9268 aros_object_format
="elf32ppc"
9269 aros_flavour
="ppcnative"
9270 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9271 aros_kernel_ldflags
=""
9272 aros_nominal_width
=640
9273 aros_nominal_height
=480
9274 aros_isa_flags
="$aros_isa_flags -mno-toc"
9275 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9276 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9277 gcc_target_cpu
="powerpc"
9278 case "$aros_target_variant" in
9280 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
9281 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9287 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
9288 aros_flavour
="standalone"
9289 aros_target_arch
="raspi"
9291 aros_shared_default
="no"
9293 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
9295 case "$target_cpu" in
9297 aros_target_cpu
="aarch64"
9298 gcc_default_cpu
="aarch64"
9299 aros_object_format
="aarch64elf_aros"
9302 aros_target_cpu
="arm"
9303 gcc_default_cpu
="armv6zk"
9304 gcc_default_cpu_tune
="arm1176jzf-s"
9305 aros_object_format
="armelf_aros"
9306 aros_isa_flags
="$aros_isa_flags -marm"
9307 aros_config_cflags
="$aros_config_cflags"
9308 aros_config_cxxflags
="$aros_config_cxxflags"
9309 aros_config_aflags
="$aros_config_aflags -marm"
9310 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9311 aros_target_mkdep
="$aros_target_mkdep -Darm"
9312 aros_c_libs
="$aros_c_libs -laeabi"
9315 aros_flavour
="standcompat"
9316 aros_target_cpu
="armeb"
9317 gcc_default_float_abi
="hard"
9318 gcc_default_cpu
="armv7ve"
9319 gcc_default_cpu_tune
="cortex-a7"
9320 aros_object_format
="armelfb_aros"
9321 aros_isa_flags
="$aros_isa_flags -marm"
9322 aros_config_cflags
="$aros_config_cflags"
9323 aros_config_cxxflags
="$aros_config_cxxflags"
9324 aros_config_aflags
="$aros_config_aflags -marm"
9325 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9326 aros_target_mkdep
="$aros_target_mkdep -Darm"
9327 aros_c_libs
="$aros_c_libs -laeabi"
9330 aros_target_cpu
="arm"
9331 gcc_default_cpu
="armv6zk"
9332 gcc_default_cpu_tune
="arm1176jzf-s"
9333 aros_object_format
="armelf_aros"
9334 aros_isa_flags
="$aros_isa_flags -marm"
9335 aros_config_cflags
="$aros_config_cflags"
9336 aros_config_cxxflags
="$aros_config_cxxflags"
9337 aros_config_aflags
="$aros_config_aflags -marm"
9338 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9339 aros_target_mkdep
="$aros_target_mkdep -Darm"
9340 aros_c_libs
="$aros_c_libs -laeabi"
9343 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9347 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9348 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9349 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9350 aros_kernel_cflags
="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9352 case "$aros_target_variant" in
9354 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
9360 aros_flavour
="standalone"
9361 aros_target_arch
="stm32f7_discovery"
9362 aros_target_cpu
="arm"
9363 aros_target_cpu_mode
="thumb2"
9364 aros_object_format
="armelf_aros"
9365 aros_shared_default
="no"
9367 gcc_default_cpu
="armv7e-m"
9368 gcc_default_cpu_tune
="cortex-m7"
9369 gcc_default_fpu
="fpv5-sp-d16"
9370 gcc_default_float_abi
="hard"
9372 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
9376 aros_elf_translate
="$""(ELF2HUNK)"
9377 make_extra_commands
="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9378 aros_target_arch
="amiga"
9379 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9380 aros_shared_default
="no"
9382 case "$target_cpu" in
9384 # Check whether --enable-amigaos_compliance was given.
9385 if test "${enable_amigaos_compliance+set}" = set; then :
9386 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
9390 aros_target_cpu
="m68k"
9391 aros_object_format
="m68kelf"
9392 aros_flavour
="standcompat"
9393 gcc_target_cpu
="m68000"
9394 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9395 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9396 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
9397 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9398 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9399 if test "$optimization" = "default"; then
9400 optimization_level
=$toolchain_size_opt_lvl
9402 aros_config_aflags
="$aros_config_aflags"
9403 aros_target_strip_flags
="-R.comment --strip-debug"
9404 aros_nominal_width
=640
9405 aros_nominal_height
=256
9406 aros_nominal_depth
=2
9410 aros_flavour
="native"
9411 gcc_target_cpu
="ppc"
9414 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9420 aros_target_arch
="mingw32"
9421 aros_shared_default
="no"
9422 aros_flavour
="emulation"
9423 aros_shared_cflags
=""
9424 need_crosstools
="yes"
9427 case "$target_cpu" in
9429 aros_target_cpu
="i386"
9430 aros_object_format
="elf_i386"
9431 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9432 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9433 aros_nominal_depth
=8
9434 gcc_target_cpu
="i386"
9436 kernel_tool_prefix
="i386-mingw32-"
9439 aros_target_cpu
="x86_64"
9440 aros_object_format
="elf_x86_64"
9441 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9442 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9443 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9444 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9445 aros_nominal_depth
=8
9446 kernel_tool_prefix
="x86_64-w64-mingw32-"
9449 aros_target_cpu
="arm"
9450 aros_object_format
="armelf_aros"
9451 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9452 aros_c_libs
="$aros_c_libs -laeabi"
9453 aros_nominal_depth
=8
9454 gcc_target_cpu
="arm"
9455 gcc_default_float_abi
="soft"
9456 kernel_tool_prefix
="arm-mingw32ce-"
9457 aros_nominal_width
=160
9458 aros_nominal_height
=160
9461 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9464 if test $host_os = "cygwin"; then
9465 aros_kernel_cflags
="-mno-cygwin"
9469 aros_target_arch
="pp"
9470 aros_shared_default
="no"
9471 case "$target_cpu" in
9473 aros_target_cpu
="m68k"
9474 aros_object_format
="m68kelf"
9475 aros_flavour
="palmnative"
9476 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9477 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9478 aros_nominal_width
=160
9479 aros_nominal_height
=160
9480 aros_nominal_depth
=1
9481 aros_target_ar_flags
="cru"
9482 aros_c_libs
="$aros_c_libs -lgcc1"
9483 aros_shared_default
=no
9484 aros_shared_cflags
="-fpic"
9485 aros_shared_aflags
=""
9486 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9487 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9488 aros_debug_cppflags
="$aros_messages_debug"
9489 aros_debug_cflags
="$aros_symbols_debug"
9490 aros_debug_aflags
=""
9491 aros_debug_ldflags
="$aros_symbols_debug"
9492 aros_mungwall_debug
="0"
9493 aros_modules_debug
="0"
9494 gcc_target_cpu
="mc68000"
9495 ignore_undefined_symbols
="-ius"
9498 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9504 aros_target_arch
="mac"
9505 aros_shared_default
="no"
9506 case "$target_cpu" in
9508 aros_target_cpu
="m68k"
9509 aros_object_format
="m68kelf"
9510 aros_flavour
="mac68knative"
9511 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9512 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9513 aros_nominal_width
=512
9514 aros_nominal_height
=384
9515 aros_nominal_depth
=8
9516 aros_target_ar_flags
="cru"
9517 aros_c_libs
="$aros_c_libs -lgcc1"
9518 aros_shared_default
=no
9519 aros_shared_cflags
="-fpic"
9520 aros_shared_aflags
=""
9521 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9522 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9523 aros_debug_cppflags
="$aros_messages_debug"
9524 aros_debug_cflags
="$aros_symbols_debug"
9525 aros_debug_aflags
=""
9526 aros_debug_ldflags
="$aros_symbols_debug"
9527 aros_mungwall_debug
="0"
9528 aros_modules_debug
="0"
9529 gcc_target_cpu
="mc68000"
9530 ignore_undefined_symbols
="-ius"
9533 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9539 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
9543 #-----------------------------------------------------------------------------
9544 crosstools_guess
="yes"
9545 aros_target_toolchain
="no"
9546 aros_kernel_sysroot
=""
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9549 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9551 # Check whether --with-kernel-toolchain-prefix was given.
9552 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9553 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9557 $as_echo "$kernel_tool_prefix" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9560 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9562 # Check whether --with-elf-toolchain-prefix was given.
9563 if test "${with_elf_toolchain_prefix+set}" = set; then :
9564 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9565 crosstools_guess
="no"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9569 $as_echo "$elf_tool_prefix" >&6; }
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9572 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9574 # Check whether --with-aros-toolchain was given.
9575 if test "${with_aros_toolchain+set}" = set; then :
9576 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9577 crosstools_guess
="no"
9580 if test "$aros_tool_prefix" = "yes" ; then
9581 aros_tool_prefix
=$aros_target_cpu-aros-
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9584 $as_echo "$aros_tool_prefix" >&6; }
9586 #-----------------------------------------------------------------------------
9587 # Checking if we should build crosstools..
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9589 $as_echo_n "checking whether to build crosstools... " >&6; }
9590 # Check whether --enable-crosstools was given.
9591 if test "${enable_crosstools+set}" = set; then :
9592 enableval
=$enable_crosstools; crosstools
="$enableval"
9594 crosstools
="$crosstools_guess"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9598 $as_echo "$crosstools" >&6; }
9600 if test "${crosstools}" = "yes"; then
9601 if test "${crosstools_guess}" = "no"; then
9602 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9606 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9607 aros_target_toolchain
="yes"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9611 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9613 # Check whether --with-aros-toolchain-install was given.
9614 if test "${with_aros_toolchain_install+set}" = set; then :
9615 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9618 if test "x$aros_toolchain_install" = "x"; then
9619 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9621 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9622 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9623 if test "$crosstools_guess" = "no" ; then
9624 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9625 aros_kernel_sysroot
="$""(TARGET_SYSROOT)"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9630 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9632 #-----------------------------------------------------------------------------
9633 if test "$aros_toolchain" = "gnu" ; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9635 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9638 # Check whether --with-binutils-version was given.
9639 if test "${with_binutils_version+set}" = set; then :
9640 withval
=$with_binutils_version; use_binutils_version
="$withval"
9642 use_binutils_version
=""
9645 if test "$use_binutils_version" = ""; then
9646 target_binutils_version
="$default_binutils_version"
9648 target_binutils_version
="$use_binutils_version"
9650 if test "$aros_toolchain" = "gnu" ; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9652 $as_echo "$target_binutils_version" >&6; }
9656 # Helper to identify gcc version
9659 #-----------------------------------------------------------------------------
9660 if test "$aros_toolchain" = "gnu" ; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9662 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9665 # Check whether --with-gcc-version was given.
9666 if test "${with_gcc_version+set}" = set; then :
9667 withval
=$with_gcc_version; use_gcc_version
="$withval"
9672 if test "$use_gcc_version" = ""; then
9673 if test "${crosstools}" = "no"; then
9674 if test "x$aros_toolchain_install" != "x"; then
9676 target_gcc_version
=""
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9678 $as_echo_n "checking gcc version... " >&6; }
9679 if ${ax_cv_gcc_version+:} false
; then :
9680 $as_echo_n "(cached) " >&6
9683 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9684 if test "x$ax_cv_gcc_version" = "x"; then :
9686 ax_cv_gcc_version
=""
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9692 $as_echo "$ax_cv_gcc_version" >&6; }
9693 target_gcc_version
=$ax_cv_gcc_version
9698 if test "$use_gcc_version" = ""; then
9699 target_gcc_version
="$default_gcc_version"
9702 target_gcc_version
="$use_gcc_version"
9704 if test "$aros_toolchain" = "gnu" ; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9706 $as_echo "$target_gcc_version" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9709 $as_echo_n "checking version string style... " >&6; }
9710 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9712 $as_echo "snapshot" >&6; }
9713 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'-' -f1)
9714 GCC_VERSION_MINOR
=-1
9715 GCC_VERSION_PATCH
=-1
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9718 $as_echo "release" >&6; }
9719 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9720 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9721 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9724 gcc_fix_bitfields
="false"
9725 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9726 gcc_fix_bitfields
="true"
9728 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9729 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9730 gcc_fix_bitfields
="true"
9735 if test "$gcc_fix_bitfields" = "true" ; then
9736 case "$aros_target_cpu" in
9738 x86_isa_extra
="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9739 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9746 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9747 # Check whether --enable-objc was given.
9748 if test "${enable_objc+set}" = set; then :
9749 enableval
=$enable_objc; objc
="$enableval"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9755 $as_echo "$objc" >&6; }
9756 if test "x$objc" = "xyes"; then
9759 objc_target
="no-objc"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9763 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9764 # Check whether --enable-java was given.
9765 if test "${enable_java+set}" = set; then :
9766 enableval
=$enable_java; java
="$enableval"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9772 $as_echo "$java" >&6; }
9773 if test "x$java" != "xno"; then
9776 java_target
="no-java"
9779 spec_obj_format
="-m $aros_object_format"
9780 # Now process extra architecture-specific options.
9781 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9782 # as well as floating-point ABI.
9783 case "$aros_target_cpu" in
9785 aros_isa_targets
="M68K_ISA_TARGETS :=MC68020 MC68040"
9786 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9787 aros_isa_extra
="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9788 aros_isa_extra
="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9789 aros_isa_extra
="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9790 aros_isa_extra
="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9791 aros_isa_extra
="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9794 aros_isa_extra
="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9795 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9798 if test "$gcc_default_cpu" = ""; then
9799 gcc_default_cpu
="armv6"
9801 if test "$gcc_default_fpu" = ""; then
9802 gcc_default_fpu
="vfp"
9804 if test "$gcc_default_endian" = ""; then
9805 if test "$target_cpu" = "armeb"; then
9806 gcc_default_endian
="big-endian"
9808 gcc_default_endian
="little-endian"
9811 if test "$gcc_default_float_abi" = ""; then
9812 if test "$target_cpu" = "armhf"; then
9813 gcc_default_float_abi
="hard"
9815 gcc_default_float_abi
="softfp"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9820 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9822 # Check whether --with-cpu was given.
9823 if test "${with_cpu+set}" = set; then :
9824 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9826 aros_gcc_cpu
=$gcc_default_cpu
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9830 $as_echo "$aros_gcc_cpu" >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9833 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9835 # Check whether --with-fpu was given.
9836 if test "${with_fpu+set}" = set; then :
9837 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9839 aros_gcc_fpu
=$gcc_default_fpu
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9843 $as_echo "$aros_gcc_fpu" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9846 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9848 # Check whether --with-float was given.
9849 if test "${with_float+set}" = set; then :
9850 withval
=$with_float; aros_gcc_float_abi
="$withval"
9852 aros_gcc_float_abi
=$gcc_default_float_abi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9856 $as_echo "$aros_gcc_float_abi" >&6; }
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9859 $as_echo_n "checking Which ARM mode to use... " >&6; }
9860 if test "$aros_target_cpu_mode" = ""; then
9861 aros_target_cpu_mode
="arm32"
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9863 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9866 $as_echo "$aros_target_cpu_mode" >&6; }
9869 case "$aros_target_cpu_mode" in
9871 gcc_default_mode
="arm"
9872 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9875 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9878 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9881 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9884 gcc_default_mode
="thumb"
9885 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9886 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9889 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9893 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9894 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9895 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9898 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9899 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9903 # Some architectures may need custom ELF specs.
9904 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9905 elf_specs_in
=config
/${aros_object_format}-specs.
in
9907 elf_specs_in
=config
/elf-specs.
in
9910 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9911 # Since we override specs, we may need to put these defines there
9912 if test "$gcc_target_cpu" != ""; then
9913 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9917 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9919 # Check whether --with-portssources was given.
9920 if test "${with_portssources+set}" = set; then :
9921 withval
=$with_portssources; with_portssrcdir
=$withval
9923 with_portssrcdir
="default"
9926 if test "$with_portssrcdir" = "default"; then
9927 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9929 AROS_PORTSSRCDIR
="$with_portssrcdir"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9932 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9935 $as_echo_n "checking which bootloader to use... " >&6; }
9937 # Check whether --with-bootloader was given.
9938 if test "${with_bootloader+set}" = set; then :
9939 withval
=$with_bootloader; target_bootloader
=$withval
9941 target_bootloader
=$target_bootloader
9944 if test "$target_bootloader" = "none"; then
9945 aros_target_bootloader
=""
9947 aros_target_bootloader
="$target_bootloader"
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9950 $as_echo "$target_bootloader" >&6; }
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9953 $as_echo_n "checking which icon-set to use... " >&6; }
9955 # Check whether --with-iconset was given.
9956 if test "${with_iconset+set}" = set; then :
9957 withval
=$with_iconset; target_iconset
=$withval
9959 target_iconset
="default"
9962 if test "$target_iconset" = "default"; then
9963 aros_target_iconset
="Gorilla"
9964 target_iconset
="default (Gorilla)"
9966 aros_target_iconset
="$target_iconset"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9969 $as_echo "$target_iconset" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9972 $as_echo_n "checking which GUI Theme to use... " >&6; }
9974 # Check whether --with-theme was given.
9975 if test "${with_theme+set}" = set; then :
9976 withval
=$with_theme; target_guitheme
=$withval
9978 target_guitheme
="default"
9981 if test "$target_guitheme" = "default"; then
9982 aros_target_guitheme
="Ice"
9984 aros_target_guitheme
="$target_guitheme"
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9987 $as_echo "$aros_target_guitheme" >&6; }
9989 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9993 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9997 if test "$aros_host_cpu" == "x86_64" ; then
9998 if test "$aros_target_cpu" == "i386" ; then
10003 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10004 if test "$aros_host_arch" != "$aros_target_arch" ; then
10005 cross_compiling
=yes
10008 cross_compiling
=yes
10011 if test "$cross_compiling" = "no" ; then
10012 kernel_tool_prefix
=""
10013 if test "$host_cc_elf" = "yes" ; then
10018 if test "$kernel_tool_version" != ""; then
10019 kernel_tool_version
="-$kernel_tool_version"
10022 #######################################################################
10023 ## Compute what toolchains to use, and their paths ##
10024 #######################################################################
10026 # This takes, as input:
10027 # crosstools {yes,no}
10028 # kernel_tool_version {"",[version]}
10029 # target_tool_version {"",[version]}
10030 # kernel_tool_prefix {none,[some-arch-os-]}
10032 # target_tool_prefix ${aros_target_cpu}-aros-
10033 # aros_tool_prefix ${aros_target_cpu}-aros-
10036 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10037 # Where the 'kernel' binaries are located
10038 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10039 # Where the 'target' binaries are located
10040 # (not the symlink farm - that is aros_target_*!)
10043 # if crosstools then
10044 # if kernel_tools_prefix = "no-kernel-prefix-"
10045 # aros_kernel_* = crosstools cc paths
10046 # aros_kernel_cc = elf cc wrapper around crosstools cc
10048 # VALIDATE(${kernel_tools_prefix}*)
10049 # aros_kernel_* = ${kernel_tools_prefix}*
10050 # if ${kernel_tools_prefix}cc is an AROS gcc
10051 # aros_kernel_cc = ${kernel_tools_prefix}cc
10053 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
10057 # orig_target_* = aros built crosstools
10058 # orig_target_cc = elf cc wrapper around crosstools cc
10060 # VALIDATE(${kernel_tools_prefix}*)
10062 # orig_target_* = aros_kernel_*
10063 # if aros_kernel_cc is an AROS gcc
10064 # orig_target_cc = aros_kernel_cc
10066 # orig_target_cc = aros cc wrapper around aros_kernel_cc
10070 if test "$aros_toolchain" = "gnu" ; then
10071 target_tool_prefix
="${aros_target_cpu}-aros-"
10072 elif test "$aros_toolchain" = "llvm" ; then
10073 target_tool_prefix
="bin/"
10076 if test "$kernel_tool_prefix" != "" ; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
10078 $as_echo_n "checking which kernel tools... " >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10080 $as_echo "$kernel_tool_prefix" >&6; };
10083 if test "$kernel_tool_prefix" = "none" ; then
10084 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10085 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10088 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10089 # Kernel tools required - find them
10090 # Note that 'normally', aros_kernel_* overrides will be
10091 # empty, unless specified in the per-arch sections above.
10093 if test "x$aros_kernel_cpp" = "x"; then
10094 aros_kernel_cpp
=${kernel_tool_prefix}${CPP_BASE}
10096 if test "${kernel_tool_version}" != ""; then
10097 if test "$aros_kernel_cpp" != ""; then
10098 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10099 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
10100 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10104 if test "$aros_kernel_cpp" = ""; then
10105 if test "$cross_compiling" = "yes" ; then
10106 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10107 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10111 $as_echo_n "(cached) " >&6
10113 case $aros_kernel_cpp in
10115 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10119 for as_dir
in $PATH
10122 test -z "$as_dir" && as_dir
=.
10123 for ac_exec_ext
in '' $ac_executable_extensions; do
10124 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10137 if test -n "$aros_kernel_cpp"; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10139 $as_echo "$aros_kernel_cpp" >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10148 if test "" = ""; then
10153 if test "$GCC" = "yes"; then
10154 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
10155 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10156 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10160 $as_echo_n "(cached) " >&6
10162 case $aros_kernel_cpp in
10164 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10168 for as_dir
in `dirname $aros_gcc_cpp`
10171 test -z "$as_dir" && as_dir
=.
10172 for ac_exec_ext
in '' $ac_executable_extensions; do
10173 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10186 if test -n "$aros_kernel_cpp"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10188 $as_echo "$aros_kernel_cpp" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10196 if test "$aros_kernel_cpp" = ""; then
10197 for ac_prog
in $ac_tool_cpp
10199 # Extract the first word of "$ac_prog", so it can be a program name with args.
10200 set dummy
$ac_prog; ac_word
=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10204 $as_echo_n "(cached) " >&6
10206 case $aros_kernel_cpp in
10208 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10212 for as_dir
in $PATH
10215 test -z "$as_dir" && as_dir
=.
10216 for ac_exec_ext
in '' $ac_executable_extensions; do
10217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10218 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10230 if test -n "$aros_kernel_cpp"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10232 $as_echo "$aros_kernel_cpp" >&6; }
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10239 test -n "$aros_kernel_cpp" && break
10246 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10247 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10248 set dummy
$aros_kernel_cpp; ac_word
=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10252 $as_echo_n "(cached) " >&6
10254 case $aros_kernel_cpp in
10256 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10260 for as_dir
in $PATH
10263 test -z "$as_dir" && as_dir
=.
10264 for ac_exec_ext
in '' $ac_executable_extensions; do
10265 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10266 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10278 if test -n "$aros_kernel_cpp"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10280 $as_echo "$aros_kernel_cpp" >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10287 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
10291 if test "$aros_kernel_cpp" = ""; then
10294 if test "$aros_kernel_cpp" = "no"; then
10297 if test "$req_avail" = "no"; then
10298 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10301 if test "x$aros_kernel_cc" = "x"; then
10302 aros_kernel_cc
=${kernel_tool_prefix}${CC_BASE}
10304 if test "${kernel_tool_version}" != ""; then
10305 if test "$aros_kernel_cc" != ""; then
10306 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10307 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
10308 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10312 if test "$aros_kernel_cc" = ""; then
10313 if test "$cross_compiling" = "yes" ; then
10314 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10315 set dummy
${kernel_tool_prefix}cc
; 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_cc+:} false
; then :
10319 $as_echo_n "(cached) " >&6
10321 case $aros_kernel_cc in
10323 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10327 for as_dir
in $PATH
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_cc
="$as_dir/$ac_word$ac_exec_ext"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10345 if test -n "$aros_kernel_cc"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10347 $as_echo "$aros_kernel_cc" >&6; }
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10356 if test "" = ""; then
10361 if test "$GCC" = "yes"; then
10362 aros_gcc_cc
=`$CC -print-prog-name=$ac_tool_cc`
10363 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10364 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10368 $as_echo_n "(cached) " >&6
10370 case $aros_kernel_cc in
10372 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10376 for as_dir
in `dirname $aros_gcc_cc`
10379 test -z "$as_dir" && as_dir
=.
10380 for ac_exec_ext
in '' $ac_executable_extensions; do
10381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10394 if test -n "$aros_kernel_cc"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10396 $as_echo "$aros_kernel_cc" >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10404 if test "$aros_kernel_cc" = ""; then
10405 for ac_prog
in $ac_tool_cc
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408 set dummy
$ac_prog; ac_word
=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10412 $as_echo_n "(cached) " >&6
10414 case $aros_kernel_cc in
10416 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10420 for as_dir
in $PATH
10423 test -z "$as_dir" && as_dir
=.
10424 for ac_exec_ext
in '' $ac_executable_extensions; do
10425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10438 if test -n "$aros_kernel_cc"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10440 $as_echo "$aros_kernel_cc" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10447 test -n "$aros_kernel_cc" && break
10454 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10455 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10456 set dummy
$aros_kernel_cc; ac_word
=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10460 $as_echo_n "(cached) " >&6
10462 case $aros_kernel_cc in
10464 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10468 for as_dir
in $PATH
10471 test -z "$as_dir" && as_dir
=.
10472 for ac_exec_ext
in '' $ac_executable_extensions; do
10473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10486 if test -n "$aros_kernel_cc"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10488 $as_echo "$aros_kernel_cc" >&6; }
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10495 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
10499 if test "$aros_kernel_cc" = ""; then
10502 if test "$aros_kernel_cc" = "no"; then
10505 if test "$req_avail" = "no"; then
10506 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10509 if test "x$aros_kernel_cxx" = "x"; then
10510 aros_kernel_cxx
=${kernel_tool_prefix}${CXX_BASE}
10512 if test "${kernel_tool_version}" != ""; then
10513 if test "$aros_kernel_cxx" != ""; then
10514 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10515 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
10516 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10520 if test "$aros_kernel_cxx" = ""; then
10521 if test "$cross_compiling" = "yes" ; then
10522 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10523 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10527 $as_echo_n "(cached) " >&6
10529 case $aros_kernel_cxx in
10531 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10535 for as_dir
in $PATH
10538 test -z "$as_dir" && as_dir
=.
10539 for ac_exec_ext
in '' $ac_executable_extensions; do
10540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10541 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10553 if test -n "$aros_kernel_cxx"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10555 $as_echo "$aros_kernel_cxx" >&6; }
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10564 if test "" = ""; then
10569 if test "$GCC" = "yes"; then
10570 aros_gcc_cxx
=`$CC -print-prog-name=$ac_tool_cxx`
10571 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10572 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10576 $as_echo_n "(cached) " >&6
10578 case $aros_kernel_cxx in
10580 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10584 for as_dir
in `dirname $aros_gcc_cxx`
10587 test -z "$as_dir" && as_dir
=.
10588 for ac_exec_ext
in '' $ac_executable_extensions; do
10589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10590 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10602 if test -n "$aros_kernel_cxx"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10604 $as_echo "$aros_kernel_cxx" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10612 if test "$aros_kernel_cxx" = ""; then
10613 for ac_prog
in $ac_tool_cxx
10615 # Extract the first word of "$ac_prog", so it can be a program name with args.
10616 set dummy
$ac_prog; ac_word
=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10620 $as_echo_n "(cached) " >&6
10622 case $aros_kernel_cxx in
10624 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10628 for as_dir
in $PATH
10631 test -z "$as_dir" && as_dir
=.
10632 for ac_exec_ext
in '' $ac_executable_extensions; do
10633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10646 if test -n "$aros_kernel_cxx"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10648 $as_echo "$aros_kernel_cxx" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10655 test -n "$aros_kernel_cxx" && break
10662 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10663 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10664 set dummy
$aros_kernel_cxx; ac_word
=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10668 $as_echo_n "(cached) " >&6
10670 case $aros_kernel_cxx in
10672 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10676 for as_dir
in $PATH
10679 test -z "$as_dir" && as_dir
=.
10680 for ac_exec_ext
in '' $ac_executable_extensions; do
10681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10682 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10694 if test -n "$aros_kernel_cxx"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10696 $as_echo "$aros_kernel_cxx" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10703 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10706 # If it's set, make sure it's really there
10707 if test "x$aros_kernel_cxx" != "x" ; then
10709 if test "$aros_kernel_cxx" = ""; then
10712 if test "$aros_kernel_cxx" = "no"; then
10715 if test "$req_avail" = "no"; then
10716 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10719 if test "x$aros_kernel_ld" = "x"; then
10720 aros_kernel_ld
=${kernel_tool_prefix}${LD_BASE}
10723 if test "$aros_kernel_ld" = ""; then
10724 if test "$cross_compiling" = "yes" ; then
10725 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10726 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 case $aros_kernel_ld in
10734 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10738 for as_dir
in $PATH
10741 test -z "$as_dir" && as_dir
=.
10742 for ac_exec_ext
in '' $ac_executable_extensions; do
10743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10756 if test -n "$aros_kernel_ld"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10758 $as_echo "$aros_kernel_ld" >&6; }
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10767 if test "" = ""; then
10772 if test "$GCC" = "yes"; then
10773 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
10774 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10775 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10779 $as_echo_n "(cached) " >&6
10781 case $aros_kernel_ld in
10783 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10787 for as_dir
in `dirname $aros_gcc_ld`
10790 test -z "$as_dir" && as_dir
=.
10791 for ac_exec_ext
in '' $ac_executable_extensions; do
10792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10805 if test -n "$aros_kernel_ld"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10807 $as_echo "$aros_kernel_ld" >&6; }
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10815 if test "$aros_kernel_ld" = ""; then
10816 for ac_prog
in $ac_tool_ld
10818 # Extract the first word of "$ac_prog", so it can be a program name with args.
10819 set dummy
$ac_prog; ac_word
=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10823 $as_echo_n "(cached) " >&6
10825 case $aros_kernel_ld in
10827 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10831 for as_dir
in $PATH
10834 test -z "$as_dir" && as_dir
=.
10835 for ac_exec_ext
in '' $ac_executable_extensions; do
10836 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10837 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10849 if test -n "$aros_kernel_ld"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10851 $as_echo "$aros_kernel_ld" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10858 test -n "$aros_kernel_ld" && break
10865 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10866 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10867 set dummy
$aros_kernel_ld; ac_word
=$2
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 $as_echo_n "checking for $ac_word... " >&6; }
10870 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10871 $as_echo_n "(cached) " >&6
10873 case $aros_kernel_ld in
10875 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10879 for as_dir
in $PATH
10882 test -z "$as_dir" && as_dir
=.
10883 for ac_exec_ext
in '' $ac_executable_extensions; do
10884 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10897 if test -n "$aros_kernel_ld"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10899 $as_echo "$aros_kernel_ld" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10906 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10910 if test "$aros_kernel_ld" = ""; then
10913 if test "$aros_kernel_ld" = "no"; then
10916 if test "$req_avail" = "no"; then
10917 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10919 if test "x$aros_kernel_as" = "x"; then
10920 aros_kernel_as
=$aros_host_as
10921 if test "x$aros_kernel_as" = "x"; then
10922 aros_kernel_as
=${HOST_TOOLCHAIN_PREFIX}as
${HOST_TOOLCHAIN_SUFFIX}
10926 if test "$aros_kernel_as" = ""; then
10927 if test "$cross_compiling" = "yes" ; then
10928 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10929 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10933 $as_echo_n "(cached) " >&6
10935 case $aros_kernel_as in
10937 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10941 for as_dir
in $PATH
10944 test -z "$as_dir" && as_dir
=.
10945 for ac_exec_ext
in '' $ac_executable_extensions; do
10946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10959 if test -n "$aros_kernel_as"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10961 $as_echo "$aros_kernel_as" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10970 if test "" = ""; then
10975 if test "$GCC" = "yes"; then
10976 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
10977 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10978 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10982 $as_echo_n "(cached) " >&6
10984 case $aros_kernel_as in
10986 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10990 for as_dir
in `dirname $aros_gcc_as`
10993 test -z "$as_dir" && as_dir
=.
10994 for ac_exec_ext
in '' $ac_executable_extensions; do
10995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11008 if test -n "$aros_kernel_as"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11010 $as_echo "$aros_kernel_as" >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11018 if test "$aros_kernel_as" = ""; then
11019 for ac_prog
in $ac_tool_as
11021 # Extract the first word of "$ac_prog", so it can be a program name with args.
11022 set dummy
$ac_prog; ac_word
=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_path_aros_kernel_as+:} false
; then :
11026 $as_echo_n "(cached) " >&6
11028 case $aros_kernel_as in
11030 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11034 for as_dir
in $PATH
11037 test -z "$as_dir" && as_dir
=.
11038 for ac_exec_ext
in '' $ac_executable_extensions; do
11039 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11052 if test -n "$aros_kernel_as"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11054 $as_echo "$aros_kernel_as" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11061 test -n "$aros_kernel_as" && break
11068 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
11069 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
11070 set dummy
$aros_kernel_as; ac_word
=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_aros_kernel_as+:} false
; then :
11074 $as_echo_n "(cached) " >&6
11076 case $aros_kernel_as in
11078 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11082 for as_dir
in $PATH
11085 test -z "$as_dir" && as_dir
=.
11086 for ac_exec_ext
in '' $ac_executable_extensions; do
11087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11100 if test -n "$aros_kernel_as"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11102 $as_echo "$aros_kernel_as" >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11109 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
11113 if test "$aros_kernel_as" = ""; then
11116 if test "$aros_kernel_as" = "no"; then
11119 if test "$req_avail" = "no"; then
11120 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
11123 if test "x$aros_kernel_ar" = "x"; then
11124 aros_kernel_ar
="${kernel_tool_prefix}${AR_BASE} ${aros_kernel_ar_flags}"
11126 if test "${kernel_tool_version}" != ""; then
11127 if test "$aros_kernel_ar" != ""; then
11128 ac_prog_args
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11129 ac_prog_cmd
=`expr "X$aros_kernel_ar" : '^\S*'`
11130 aros_kernel_ar
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11134 if test "$aros_kernel_ar" = ""; then
11135 if test "$cross_compiling" = "yes" ; then
11136 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11137 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11141 $as_echo_n "(cached) " >&6
11143 case $aros_kernel_ar in
11145 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11149 for as_dir
in $PATH
11152 test -z "$as_dir" && as_dir
=.
11153 for ac_exec_ext
in '' $ac_executable_extensions; do
11154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11167 if test -n "$aros_kernel_ar"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11169 $as_echo "$aros_kernel_ar" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11178 if test "" = ""; then
11183 if test "$GCC" = "yes"; then
11184 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
11185 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11186 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11190 $as_echo_n "(cached) " >&6
11192 case $aros_kernel_ar in
11194 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11198 for as_dir
in `dirname $aros_gcc_ar`
11201 test -z "$as_dir" && as_dir
=.
11202 for ac_exec_ext
in '' $ac_executable_extensions; do
11203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11216 if test -n "$aros_kernel_ar"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11218 $as_echo "$aros_kernel_ar" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11226 if test "$aros_kernel_ar" = ""; then
11227 for ac_prog
in $ac_tool_ar
11229 # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy
$ac_prog; ac_word
=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11234 $as_echo_n "(cached) " >&6
11236 case $aros_kernel_ar in
11238 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11242 for as_dir
in $PATH
11245 test -z "$as_dir" && as_dir
=.
11246 for ac_exec_ext
in '' $ac_executable_extensions; do
11247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11260 if test -n "$aros_kernel_ar"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11262 $as_echo "$aros_kernel_ar" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11269 test -n "$aros_kernel_ar" && break
11276 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11277 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11278 set dummy
$aros_kernel_ar; ac_word
=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11282 $as_echo_n "(cached) " >&6
11284 case $aros_kernel_ar in
11286 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11290 for as_dir
in $PATH
11293 test -z "$as_dir" && as_dir
=.
11294 for ac_exec_ext
in '' $ac_executable_extensions; do
11295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11308 if test -n "$aros_kernel_ar"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11310 $as_echo "$aros_kernel_ar" >&6; }
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11317 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
11321 if test "$aros_kernel_ar" = ""; then
11324 if test "$aros_kernel_ar" = "no"; then
11327 if test "$req_avail" = "no"; then
11328 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11330 if test "x$aros_kernel_ranlib" = "x"; then
11331 aros_kernel_ranlib
=${kernel_tool_prefix}${RANLIB_BASE}
11333 if test "${kernel_tool_version}" != ""; then
11334 if test "$aros_kernel_ranlib" != ""; then
11335 ac_prog_args
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11336 ac_prog_cmd
=`expr "X$aros_kernel_ranlib" : '^\S*'`
11337 aros_kernel_ranlib
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11341 if test "$aros_kernel_ranlib" = ""; then
11342 if test "$cross_compiling" = "yes" ; then
11343 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11344 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11348 $as_echo_n "(cached) " >&6
11350 case $aros_kernel_ranlib in
11352 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11356 for as_dir
in $PATH
11359 test -z "$as_dir" && as_dir
=.
11360 for ac_exec_ext
in '' $ac_executable_extensions; do
11361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11374 if test -n "$aros_kernel_ranlib"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11376 $as_echo "$aros_kernel_ranlib" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11385 if test "" = ""; then
11386 ac_tool_ranlib
=ranlib
11390 if test "$GCC" = "yes"; then
11391 aros_gcc_ranlib
=`$CC -print-prog-name=$ac_tool_ranlib`
11392 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11393 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11397 $as_echo_n "(cached) " >&6
11399 case $aros_kernel_ranlib in
11401 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11405 for as_dir
in `dirname $aros_gcc_ranlib`
11408 test -z "$as_dir" && as_dir
=.
11409 for ac_exec_ext
in '' $ac_executable_extensions; do
11410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11423 if test -n "$aros_kernel_ranlib"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11425 $as_echo "$aros_kernel_ranlib" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test "$aros_kernel_ranlib" = ""; then
11434 for ac_prog
in $ac_tool_ranlib
11436 # Extract the first word of "$ac_prog", so it can be a program name with args.
11437 set dummy
$ac_prog; ac_word
=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11441 $as_echo_n "(cached) " >&6
11443 case $aros_kernel_ranlib in
11445 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11449 for as_dir
in $PATH
11452 test -z "$as_dir" && as_dir
=.
11453 for ac_exec_ext
in '' $ac_executable_extensions; do
11454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11467 if test -n "$aros_kernel_ranlib"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11469 $as_echo "$aros_kernel_ranlib" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11476 test -n "$aros_kernel_ranlib" && break
11483 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11484 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11485 set dummy
$aros_kernel_ranlib; ac_word
=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11489 $as_echo_n "(cached) " >&6
11491 case $aros_kernel_ranlib in
11493 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11497 for as_dir
in $PATH
11500 test -z "$as_dir" && as_dir
=.
11501 for ac_exec_ext
in '' $ac_executable_extensions; do
11502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11515 if test -n "$aros_kernel_ranlib"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11517 $as_echo "$aros_kernel_ranlib" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11524 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
11528 if test "$aros_kernel_ranlib" = ""; then
11531 if test "$aros_kernel_ranlib" = "no"; then
11534 if test "$req_avail" = "no"; then
11535 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11537 if test "x$aros_kernel_nm" = "x"; then
11538 aros_kernel_nm
=$aros_host_nm
11539 if test "x$aros_kernel_nm" = "x"; then
11540 aros_kernel_nm
=${HOST_TOOLCHAIN_PREFIX}nm
${HOST_TOOLCHAIN_SUFFIX}
11544 if test "$aros_kernel_nm" = ""; then
11545 if test "$cross_compiling" = "yes" ; then
11546 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11547 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11551 $as_echo_n "(cached) " >&6
11553 case $aros_kernel_nm in
11555 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11559 for as_dir
in $PATH
11562 test -z "$as_dir" && as_dir
=.
11563 for ac_exec_ext
in '' $ac_executable_extensions; do
11564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11577 if test -n "$aros_kernel_nm"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11579 $as_echo "$aros_kernel_nm" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11588 if test "" = ""; then
11593 if test "$GCC" = "yes"; then
11594 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
11595 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11596 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11600 $as_echo_n "(cached) " >&6
11602 case $aros_kernel_nm in
11604 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11608 for as_dir
in `dirname $aros_gcc_nm`
11611 test -z "$as_dir" && as_dir
=.
11612 for ac_exec_ext
in '' $ac_executable_extensions; do
11613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11626 if test -n "$aros_kernel_nm"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11628 $as_echo "$aros_kernel_nm" >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11636 if test "$aros_kernel_nm" = ""; then
11637 for ac_prog
in $ac_tool_nm
11639 # Extract the first word of "$ac_prog", so it can be a program name with args.
11640 set dummy
$ac_prog; ac_word
=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11644 $as_echo_n "(cached) " >&6
11646 case $aros_kernel_nm in
11648 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11652 for as_dir
in $PATH
11655 test -z "$as_dir" && as_dir
=.
11656 for ac_exec_ext
in '' $ac_executable_extensions; do
11657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11670 if test -n "$aros_kernel_nm"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11672 $as_echo "$aros_kernel_nm" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11679 test -n "$aros_kernel_nm" && break
11686 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11687 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11688 set dummy
$aros_kernel_nm; ac_word
=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11692 $as_echo_n "(cached) " >&6
11694 case $aros_kernel_nm in
11696 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11700 for as_dir
in $PATH
11703 test -z "$as_dir" && as_dir
=.
11704 for ac_exec_ext
in '' $ac_executable_extensions; do
11705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11718 if test -n "$aros_kernel_nm"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11720 $as_echo "$aros_kernel_nm" >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11731 if test "$aros_kernel_nm" = ""; then
11734 if test "$aros_kernel_nm" = "no"; then
11737 if test "$req_avail" = "no"; then
11738 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11741 if test "$aros_kernel_strip" = ""; then
11742 if test "$cross_compiling" = "yes" ; then
11743 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11744 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11748 $as_echo_n "(cached) " >&6
11750 case $aros_kernel_strip in
11752 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11756 for as_dir
in $PATH
11759 test -z "$as_dir" && as_dir
=.
11760 for ac_exec_ext
in '' $ac_executable_extensions; do
11761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11774 if test -n "$aros_kernel_strip"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11776 $as_echo "$aros_kernel_strip" >&6; }
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11785 if test "" = ""; then
11786 ac_tool_strip
=strip
11790 if test "$GCC" = "yes"; then
11791 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
11792 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11793 set dummy
`basename $aros_gcc_strip`; 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_aros_kernel_strip+:} false
; then :
11797 $as_echo_n "(cached) " >&6
11799 case $aros_kernel_strip in
11801 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # 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_strip`
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_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11823 if test -n "$aros_kernel_strip"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11825 $as_echo "$aros_kernel_strip" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11833 if test "$aros_kernel_strip" = ""; then
11834 for ac_prog
in $ac_tool_strip
11836 # Extract the first word of "$ac_prog", so it can be a program name with args.
11837 set dummy
$ac_prog; ac_word
=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11841 $as_echo_n "(cached) " >&6
11843 case $aros_kernel_strip in
11845 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11849 for as_dir
in $PATH
11852 test -z "$as_dir" && as_dir
=.
11853 for ac_exec_ext
in '' $ac_executable_extensions; do
11854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11867 if test -n "$aros_kernel_strip"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11869 $as_echo "$aros_kernel_strip" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 test -n "$aros_kernel_strip" && break
11883 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11884 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11885 set dummy
$aros_kernel_strip; ac_word
=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11889 $as_echo_n "(cached) " >&6
11891 case $aros_kernel_strip in
11893 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11897 for as_dir
in $PATH
11900 test -z "$as_dir" && as_dir
=.
11901 for ac_exec_ext
in '' $ac_executable_extensions; do
11902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11903 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11915 if test -n "$aros_kernel_strip"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11917 $as_echo "$aros_kernel_strip" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11924 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11928 if test "$aros_kernel_strip" = ""; then
11931 if test "$aros_kernel_strip" = "no"; then
11934 if test "$req_avail" = "no"; then
11935 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11938 # Objcopy and objdump are not required for the kernel
11939 # toolchain on many architectures.
11940 # So we'll look for them, but not make them strictly required.
11941 if test "x$aros_kernel_objcopy" = "x"; then
11942 aros_kernel_objcopy
=$aros_host_objcopy
11943 if test "x$aros_kernel_objcopy" = "x"; then
11944 aros_kernel_objcopy
=${HOST_TOOLCHAIN_PREFIX}objcopy
${HOST_TOOLCHAIN_SUFFIX}
11948 if test "$aros_kernel_objcopy" = ""; then
11949 if test "$cross_compiling" = "yes" ; then
11950 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11951 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11955 $as_echo_n "(cached) " >&6
11957 case $aros_kernel_objcopy in
11959 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11963 for as_dir
in $PATH
11966 test -z "$as_dir" && as_dir
=.
11967 for ac_exec_ext
in '' $ac_executable_extensions; do
11968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11981 if test -n "$aros_kernel_objcopy"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11983 $as_echo "$aros_kernel_objcopy" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11992 if test "" = ""; then
11993 ac_tool_objcopy
=objcopy
11997 if test "$GCC" = "yes"; then
11998 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
11999 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12000 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12004 $as_echo_n "(cached) " >&6
12006 case $aros_kernel_objcopy in
12008 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12012 for as_dir
in `dirname $aros_gcc_objcopy`
12015 test -z "$as_dir" && as_dir
=.
12016 for ac_exec_ext
in '' $ac_executable_extensions; do
12017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12030 if test -n "$aros_kernel_objcopy"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12032 $as_echo "$aros_kernel_objcopy" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12040 if test "$aros_kernel_objcopy" = ""; then
12041 for ac_prog
in $ac_tool_objcopy
12043 # Extract the first word of "$ac_prog", so it can be a program name with args.
12044 set dummy
$ac_prog; ac_word
=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12048 $as_echo_n "(cached) " >&6
12050 case $aros_kernel_objcopy in
12052 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12056 for as_dir
in $PATH
12059 test -z "$as_dir" && as_dir
=.
12060 for ac_exec_ext
in '' $ac_executable_extensions; do
12061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12074 if test -n "$aros_kernel_objcopy"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12076 $as_echo "$aros_kernel_objcopy" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12083 test -n "$aros_kernel_objcopy" && break
12090 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
12091 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
12092 set dummy
$aros_kernel_objcopy; ac_word
=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12096 $as_echo_n "(cached) " >&6
12098 case $aros_kernel_objcopy in
12100 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12104 for as_dir
in $PATH
12107 test -z "$as_dir" && as_dir
=.
12108 for ac_exec_ext
in '' $ac_executable_extensions; do
12109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12122 if test -n "$aros_kernel_objcopy"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12124 $as_echo "$aros_kernel_objcopy" >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12131 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
12134 if test "x$aros_kernel_objdump" = "x"; then
12135 aros_kernel_objdump
=$aros_host_objdump
12136 if test "x$aros_kernel_objdump" = "x"; then
12137 aros_kernel_objdump
=${HOST_TOOLCHAIN_PREFIX}objdump
${HOST_TOOLCHAIN_SUFFIX}
12141 if test "$aros_kernel_objdump" = ""; then
12142 if test "$cross_compiling" = "yes" ; then
12143 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12144 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12150 case $aros_kernel_objdump in
12152 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12156 for as_dir
in $PATH
12159 test -z "$as_dir" && as_dir
=.
12160 for ac_exec_ext
in '' $ac_executable_extensions; do
12161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12174 if test -n "$aros_kernel_objdump"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12176 $as_echo "$aros_kernel_objdump" >&6; }
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12185 if test "" = ""; then
12186 ac_tool_objdump
=objdump
12190 if test "$GCC" = "yes"; then
12191 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
12192 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12193 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12197 $as_echo_n "(cached) " >&6
12199 case $aros_kernel_objdump in
12201 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12205 for as_dir
in `dirname $aros_gcc_objdump`
12208 test -z "$as_dir" && as_dir
=.
12209 for ac_exec_ext
in '' $ac_executable_extensions; do
12210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12223 if test -n "$aros_kernel_objdump"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12225 $as_echo "$aros_kernel_objdump" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12233 if test "$aros_kernel_objdump" = ""; then
12234 for ac_prog
in $ac_tool_objdump
12236 # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy
$ac_prog; ac_word
=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12241 $as_echo_n "(cached) " >&6
12243 case $aros_kernel_objdump in
12245 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12249 for as_dir
in $PATH
12252 test -z "$as_dir" && as_dir
=.
12253 for ac_exec_ext
in '' $ac_executable_extensions; do
12254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12267 if test -n "$aros_kernel_objdump"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12269 $as_echo "$aros_kernel_objdump" >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12276 test -n "$aros_kernel_objdump" && break
12283 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12284 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12285 set dummy
$aros_kernel_objdump; ac_word
=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12289 $as_echo_n "(cached) " >&6
12291 case $aros_kernel_objdump in
12293 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12297 for as_dir
in $PATH
12300 test -z "$as_dir" && as_dir
=.
12301 for ac_exec_ext
in '' $ac_executable_extensions; do
12302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12315 if test -n "$aros_kernel_objdump"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12317 $as_echo "$aros_kernel_objdump" >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12324 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
12327 if test "x${crosstools}" != "xyes" ; then
12329 if test "$aros_kernel_objcopy" = ""; then
12332 if test "$aros_kernel_objcopy" = "no"; then
12335 if test "$req_avail" = "no"; then
12336 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12339 if test "$aros_kernel_objdump" = ""; then
12342 if test "$aros_kernel_objdump" = "no"; then
12345 if test "$req_avail" = "no"; then
12346 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12353 $as_echo_n "checking which target tools to use... " >&6; }
12354 if test "$aros_target_toolchain" = "yes"; then
12355 if test "$aros_toolchain" = "llvm" ; then
12358 msg_result
=$target_tool_prefix
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12361 $as_echo "$msg_result" >&6; }
12362 # We are building AROS crosstools
12363 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12364 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12365 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12366 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12367 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
12368 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
12369 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
12370 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
12371 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
12372 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
12373 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
12374 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
12376 # Determine whether AROS or ELF tools should be used
12377 if test "$aros_tool_prefix" = "none"; then
12378 aros_tool_prefix
="${elf_tool_prefix}"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12382 $as_echo "$aros_tool_prefix" >&6; }
12383 # We are *not* building AROS crosstools - use the AROS or ELF tools
12385 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12386 if test "$cross_compiling" = "yes" ; then
12387 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12388 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12392 $as_echo_n "(cached) " >&6
12394 case $orig_target_cpp in
12396 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12400 for as_dir
in $PATH
12403 test -z "$as_dir" && as_dir
=.
12404 for ac_exec_ext
in '' $ac_executable_extensions; do
12405 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12418 if test -n "$orig_target_cpp"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12420 $as_echo "$orig_target_cpp" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12429 if test "" = ""; then
12434 if test "$GCC" = "yes"; then
12435 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
12436 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12437 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12441 $as_echo_n "(cached) " >&6
12443 case $orig_target_cpp in
12445 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12449 for as_dir
in `dirname $aros_gcc_cpp`
12452 test -z "$as_dir" && as_dir
=.
12453 for ac_exec_ext
in '' $ac_executable_extensions; do
12454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12467 if test -n "$orig_target_cpp"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12469 $as_echo "$orig_target_cpp" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12477 if test "$orig_target_cpp" = ""; then
12478 for ac_prog
in $ac_tool_cpp
12480 # Extract the first word of "$ac_prog", so it can be a program name with args.
12481 set dummy
$ac_prog; ac_word
=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12485 $as_echo_n "(cached) " >&6
12487 case $orig_target_cpp in
12489 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12493 for as_dir
in $PATH
12496 test -z "$as_dir" && as_dir
=.
12497 for ac_exec_ext
in '' $ac_executable_extensions; do
12498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12511 if test -n "$orig_target_cpp"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12513 $as_echo "$orig_target_cpp" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12520 test -n "$orig_target_cpp" && break
12527 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12528 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}", so it can be a program name with args.
12529 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word
=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12533 $as_echo_n "(cached) " >&6
12535 case $orig_target_cpp in
12537 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12541 for as_dir
in $PATH
12544 test -z "$as_dir" && as_dir
=.
12545 for ac_exec_ext
in '' $ac_executable_extensions; do
12546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12559 if test -n "$orig_target_cpp"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12561 $as_echo "$orig_target_cpp" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
12572 if test "$orig_target_cpp" = ""; then
12575 if test "$orig_target_cpp" = "no"; then
12578 if test "$req_avail" = "no"; then
12579 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12582 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12583 if test "$cross_compiling" = "yes" ; then
12584 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12585 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if ${ac_cv_path_orig_target_cc+:} false
; then :
12589 $as_echo_n "(cached) " >&6
12591 case $orig_target_cc in
12593 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12597 for as_dir
in $PATH
12600 test -z "$as_dir" && as_dir
=.
12601 for ac_exec_ext
in '' $ac_executable_extensions; do
12602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 orig_target_cc
=$ac_cv_path_orig_target_cc
12615 if test -n "$orig_target_cc"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12617 $as_echo "$orig_target_cc" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12626 if test "" = ""; then
12631 if test "$GCC" = "yes"; then
12632 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12633 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12634 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_orig_target_cc+:} false
; then :
12638 $as_echo_n "(cached) " >&6
12640 case $orig_target_cc in
12642 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12646 for as_dir
in `dirname $aros_gcc_gcc`
12649 test -z "$as_dir" && as_dir
=.
12650 for ac_exec_ext
in '' $ac_executable_extensions; do
12651 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 orig_target_cc
=$ac_cv_path_orig_target_cc
12664 if test -n "$orig_target_cc"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12666 $as_echo "$orig_target_cc" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12674 if test "$orig_target_cc" = ""; then
12675 for ac_prog
in $ac_tool_gcc
12677 # Extract the first word of "$ac_prog", so it can be a program name with args.
12678 set dummy
$ac_prog; ac_word
=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680 $as_echo_n "checking for $ac_word... " >&6; }
12681 if ${ac_cv_path_orig_target_cc+:} false
; then :
12682 $as_echo_n "(cached) " >&6
12684 case $orig_target_cc in
12686 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12690 for as_dir
in $PATH
12693 test -z "$as_dir" && as_dir
=.
12694 for ac_exec_ext
in '' $ac_executable_extensions; do
12695 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12696 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 orig_target_cc
=$ac_cv_path_orig_target_cc
12708 if test -n "$orig_target_cc"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12710 $as_echo "$orig_target_cc" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12717 test -n "$orig_target_cc" && break
12724 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12725 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12726 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_orig_target_cc+:} false
; then :
12730 $as_echo_n "(cached) " >&6
12732 case $orig_target_cc in
12734 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12738 for as_dir
in $PATH
12741 test -z "$as_dir" && as_dir
=.
12742 for ac_exec_ext
in '' $ac_executable_extensions; do
12743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 orig_target_cc
=$ac_cv_path_orig_target_cc
12756 if test -n "$orig_target_cc"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12758 $as_echo "$orig_target_cc" >&6; }
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12765 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12769 if test "$orig_target_cc" = ""; then
12772 if test "$orig_target_cc" = "no"; then
12775 if test "$req_avail" = "no"; then
12776 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12779 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12780 if test "$cross_compiling" = "yes" ; then
12781 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12782 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12786 $as_echo_n "(cached) " >&6
12788 case $orig_target_cxx in
12790 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12794 for as_dir
in $PATH
12797 test -z "$as_dir" && as_dir
=.
12798 for ac_exec_ext
in '' $ac_executable_extensions; do
12799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12812 if test -n "$orig_target_cxx"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12814 $as_echo "$orig_target_cxx" >&6; }
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12823 if test "" = ""; then
12828 if test "$GCC" = "yes"; then
12829 aros_gcc_g
++=`$CC -print-prog-name=$ac_tool_g++`
12830 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12831 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12835 $as_echo_n "(cached) " >&6
12837 case $orig_target_cxx in
12839 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12843 for as_dir
in `dirname $aros_gcc_g++`
12846 test -z "$as_dir" && as_dir
=.
12847 for ac_exec_ext
in '' $ac_executable_extensions; do
12848 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12849 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12861 if test -n "$orig_target_cxx"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12863 $as_echo "$orig_target_cxx" >&6; }
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12871 if test "$orig_target_cxx" = ""; then
12872 for ac_prog
in $ac_tool_g++
12874 # Extract the first word of "$ac_prog", so it can be a program name with args.
12875 set dummy
$ac_prog; ac_word
=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12879 $as_echo_n "(cached) " >&6
12881 case $orig_target_cxx in
12883 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12887 for as_dir
in $PATH
12890 test -z "$as_dir" && as_dir
=.
12891 for ac_exec_ext
in '' $ac_executable_extensions; do
12892 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12905 if test -n "$orig_target_cxx"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12907 $as_echo "$orig_target_cxx" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12914 test -n "$orig_target_cxx" && break
12921 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12922 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12923 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12927 $as_echo_n "(cached) " >&6
12929 case $orig_target_cxx in
12931 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12935 for as_dir
in $PATH
12938 test -z "$as_dir" && as_dir
=.
12939 for ac_exec_ext
in '' $ac_executable_extensions; do
12940 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12953 if test -n "$orig_target_cxx"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12955 $as_echo "$orig_target_cxx" >&6; }
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12962 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12966 if test "$orig_target_cxx" = ""; then
12969 if test "$orig_target_cxx" = "no"; then
12972 if test "$req_avail" = "no"; then
12973 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12976 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12977 if test "$cross_compiling" = "yes" ; then
12978 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12979 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_path_orig_target_ld+:} false
; then :
12983 $as_echo_n "(cached) " >&6
12985 case $orig_target_ld in
12987 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12991 for as_dir
in $PATH
12994 test -z "$as_dir" && as_dir
=.
12995 for ac_exec_ext
in '' $ac_executable_extensions; do
12996 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 orig_target_ld
=$ac_cv_path_orig_target_ld
13009 if test -n "$orig_target_ld"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13011 $as_echo "$orig_target_ld" >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13020 if test "" = ""; then
13025 if test "$GCC" = "yes"; then
13026 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
13027 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
13028 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if ${ac_cv_path_orig_target_ld+:} false
; then :
13032 $as_echo_n "(cached) " >&6
13034 case $orig_target_ld in
13036 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13040 for as_dir
in `dirname $aros_gcc_gcc`
13043 test -z "$as_dir" && as_dir
=.
13044 for ac_exec_ext
in '' $ac_executable_extensions; do
13045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13046 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 orig_target_ld
=$ac_cv_path_orig_target_ld
13058 if test -n "$orig_target_ld"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13060 $as_echo "$orig_target_ld" >&6; }
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13068 if test "$orig_target_ld" = ""; then
13069 for ac_prog
in $ac_tool_gcc
13071 # Extract the first word of "$ac_prog", so it can be a program name with args.
13072 set dummy
$ac_prog; ac_word
=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074 $as_echo_n "checking for $ac_word... " >&6; }
13075 if ${ac_cv_path_orig_target_ld+:} false
; then :
13076 $as_echo_n "(cached) " >&6
13078 case $orig_target_ld in
13080 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13084 for as_dir
in $PATH
13087 test -z "$as_dir" && as_dir
=.
13088 for ac_exec_ext
in '' $ac_executable_extensions; do
13089 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101 orig_target_ld
=$ac_cv_path_orig_target_ld
13102 if test -n "$orig_target_ld"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13104 $as_echo "$orig_target_ld" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13111 test -n "$orig_target_ld" && break
13118 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13119 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13120 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if ${ac_cv_path_orig_target_ld+:} false
; then :
13124 $as_echo_n "(cached) " >&6
13126 case $orig_target_ld in
13128 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13132 for as_dir
in $PATH
13135 test -z "$as_dir" && as_dir
=.
13136 for ac_exec_ext
in '' $ac_executable_extensions; do
13137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13138 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 orig_target_ld
=$ac_cv_path_orig_target_ld
13150 if test -n "$orig_target_ld"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13152 $as_echo "$orig_target_ld" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13159 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
13163 if test "$orig_target_ld" = ""; then
13166 if test "$orig_target_ld" = "no"; then
13169 if test "$req_avail" = "no"; then
13170 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13173 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13174 if test "$cross_compiling" = "yes" ; then
13175 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13176 set dummy
${target_tool_prefix}as
; ac_word
=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_path_orig_target_as+:} false
; then :
13180 $as_echo_n "(cached) " >&6
13182 case $orig_target_as in
13184 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13188 for as_dir
in $PATH
13191 test -z "$as_dir" && as_dir
=.
13192 for ac_exec_ext
in '' $ac_executable_extensions; do
13193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 orig_target_as
=$ac_cv_path_orig_target_as
13206 if test -n "$orig_target_as"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13208 $as_echo "$orig_target_as" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13217 if test "" = ""; then
13222 if test "$GCC" = "yes"; then
13223 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
13224 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13225 set dummy
`basename $aros_gcc_as`; ac_word
=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if ${ac_cv_path_orig_target_as+:} false
; then :
13229 $as_echo_n "(cached) " >&6
13231 case $orig_target_as in
13233 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13237 for as_dir
in `dirname $aros_gcc_as`
13240 test -z "$as_dir" && as_dir
=.
13241 for ac_exec_ext
in '' $ac_executable_extensions; do
13242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13243 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 orig_target_as
=$ac_cv_path_orig_target_as
13255 if test -n "$orig_target_as"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13257 $as_echo "$orig_target_as" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13265 if test "$orig_target_as" = ""; then
13266 for ac_prog
in $ac_tool_as
13268 # Extract the first word of "$ac_prog", so it can be a program name with args.
13269 set dummy
$ac_prog; ac_word
=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_path_orig_target_as+:} false
; then :
13273 $as_echo_n "(cached) " >&6
13275 case $orig_target_as in
13277 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13281 for as_dir
in $PATH
13284 test -z "$as_dir" && as_dir
=.
13285 for ac_exec_ext
in '' $ac_executable_extensions; do
13286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13287 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 orig_target_as
=$ac_cv_path_orig_target_as
13299 if test -n "$orig_target_as"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13301 $as_echo "$orig_target_as" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13308 test -n "$orig_target_as" && break
13315 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13316 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13317 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if ${ac_cv_path_orig_target_as+:} false
; then :
13321 $as_echo_n "(cached) " >&6
13323 case $orig_target_as in
13325 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13329 for as_dir
in $PATH
13332 test -z "$as_dir" && as_dir
=.
13333 for ac_exec_ext
in '' $ac_executable_extensions; do
13334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13335 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 orig_target_as
=$ac_cv_path_orig_target_as
13347 if test -n "$orig_target_as"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13349 $as_echo "$orig_target_as" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13356 orig_target_as
="$orig_target_as $ac_tool_optarg"
13360 if test "$orig_target_as" = ""; then
13363 if test "$orig_target_as" = "no"; then
13366 if test "$req_avail" = "no"; then
13367 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
13370 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13371 if test "$cross_compiling" = "yes" ; then
13372 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13373 set dummy
${target_tool_prefix}ar; ac_word
=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_orig_target_ar+:} false
; then :
13377 $as_echo_n "(cached) " >&6
13379 case $orig_target_ar in
13381 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13385 for as_dir
in $PATH
13388 test -z "$as_dir" && as_dir
=.
13389 for ac_exec_ext
in '' $ac_executable_extensions; do
13390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 orig_target_ar
=$ac_cv_path_orig_target_ar
13403 if test -n "$orig_target_ar"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13405 $as_echo "$orig_target_ar" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13414 if test "" = ""; then
13419 if test "$GCC" = "yes"; then
13420 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13421 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13422 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_path_orig_target_ar+:} false
; then :
13426 $as_echo_n "(cached) " >&6
13428 case $orig_target_ar in
13430 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13434 for as_dir
in `dirname $aros_gcc_ar`
13437 test -z "$as_dir" && as_dir
=.
13438 for ac_exec_ext
in '' $ac_executable_extensions; do
13439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 orig_target_ar
=$ac_cv_path_orig_target_ar
13452 if test -n "$orig_target_ar"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13454 $as_echo "$orig_target_ar" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13462 if test "$orig_target_ar" = ""; then
13463 for ac_prog
in $ac_tool_ar
13465 # Extract the first word of "$ac_prog", so it can be a program name with args.
13466 set dummy
$ac_prog; ac_word
=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if ${ac_cv_path_orig_target_ar+:} false
; then :
13470 $as_echo_n "(cached) " >&6
13472 case $orig_target_ar in
13474 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13478 for as_dir
in $PATH
13481 test -z "$as_dir" && as_dir
=.
13482 for ac_exec_ext
in '' $ac_executable_extensions; do
13483 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13484 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 orig_target_ar
=$ac_cv_path_orig_target_ar
13496 if test -n "$orig_target_ar"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13498 $as_echo "$orig_target_ar" >&6; }
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13505 test -n "$orig_target_ar" && break
13512 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13513 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13514 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_orig_target_ar+:} false
; then :
13518 $as_echo_n "(cached) " >&6
13520 case $orig_target_ar in
13522 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13526 for as_dir
in $PATH
13529 test -z "$as_dir" && as_dir
=.
13530 for ac_exec_ext
in '' $ac_executable_extensions; do
13531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 orig_target_ar
=$ac_cv_path_orig_target_ar
13544 if test -n "$orig_target_ar"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13546 $as_echo "$orig_target_ar" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13553 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
13557 if test "$orig_target_ar" = ""; then
13560 if test "$orig_target_ar" = "no"; then
13563 if test "$req_avail" = "no"; then
13564 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13567 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13568 if test "$cross_compiling" = "yes" ; then
13569 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13570 set dummy
${target_tool_prefix}ar; ac_word
=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13574 $as_echo_n "(cached) " >&6
13576 case $orig_target_ranlib in
13578 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13582 for as_dir
in $PATH
13585 test -z "$as_dir" && as_dir
=.
13586 for ac_exec_ext
in '' $ac_executable_extensions; do
13587 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13588 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13600 if test -n "$orig_target_ranlib"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13602 $as_echo "$orig_target_ranlib" >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13611 if test "" = ""; then
13616 if test "$GCC" = "yes"; then
13617 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13618 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13619 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13623 $as_echo_n "(cached) " >&6
13625 case $orig_target_ranlib in
13627 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13631 for as_dir
in `dirname $aros_gcc_ar`
13634 test -z "$as_dir" && as_dir
=.
13635 for ac_exec_ext
in '' $ac_executable_extensions; do
13636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13649 if test -n "$orig_target_ranlib"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13651 $as_echo "$orig_target_ranlib" >&6; }
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13659 if test "$orig_target_ranlib" = ""; then
13660 for ac_prog
in $ac_tool_ar
13662 # Extract the first word of "$ac_prog", so it can be a program name with args.
13663 set dummy
$ac_prog; ac_word
=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13667 $as_echo_n "(cached) " >&6
13669 case $orig_target_ranlib in
13671 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13675 for as_dir
in $PATH
13678 test -z "$as_dir" && as_dir
=.
13679 for ac_exec_ext
in '' $ac_executable_extensions; do
13680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13693 if test -n "$orig_target_ranlib"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13695 $as_echo "$orig_target_ranlib" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13702 test -n "$orig_target_ranlib" && break
13709 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13710 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13711 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13715 $as_echo_n "(cached) " >&6
13717 case $orig_target_ranlib in
13719 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13723 for as_dir
in $PATH
13726 test -z "$as_dir" && as_dir
=.
13727 for ac_exec_ext
in '' $ac_executable_extensions; do
13728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13741 if test -n "$orig_target_ranlib"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13743 $as_echo "$orig_target_ranlib" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13750 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
13754 if test "$orig_target_ranlib" = ""; then
13757 if test "$orig_target_ranlib" = "no"; then
13760 if test "$req_avail" = "no"; then
13761 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13764 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13765 if test "$cross_compiling" = "yes" ; then
13766 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13767 set dummy
${target_tool_prefix}nm
; ac_word
=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_path_orig_target_nm+:} false
; then :
13771 $as_echo_n "(cached) " >&6
13773 case $orig_target_nm in
13775 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13779 for as_dir
in $PATH
13782 test -z "$as_dir" && as_dir
=.
13783 for ac_exec_ext
in '' $ac_executable_extensions; do
13784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13785 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 orig_target_nm
=$ac_cv_path_orig_target_nm
13797 if test -n "$orig_target_nm"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13799 $as_echo "$orig_target_nm" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13808 if test "" = ""; then
13813 if test "$GCC" = "yes"; then
13814 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
13815 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13816 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_orig_target_nm+:} false
; then :
13820 $as_echo_n "(cached) " >&6
13822 case $orig_target_nm in
13824 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13828 for as_dir
in `dirname $aros_gcc_nm`
13831 test -z "$as_dir" && as_dir
=.
13832 for ac_exec_ext
in '' $ac_executable_extensions; do
13833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 orig_target_nm
=$ac_cv_path_orig_target_nm
13846 if test -n "$orig_target_nm"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13848 $as_echo "$orig_target_nm" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13856 if test "$orig_target_nm" = ""; then
13857 for ac_prog
in $ac_tool_nm
13859 # Extract the first word of "$ac_prog", so it can be a program name with args.
13860 set dummy
$ac_prog; ac_word
=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if ${ac_cv_path_orig_target_nm+:} false
; then :
13864 $as_echo_n "(cached) " >&6
13866 case $orig_target_nm in
13868 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13872 for as_dir
in $PATH
13875 test -z "$as_dir" && as_dir
=.
13876 for ac_exec_ext
in '' $ac_executable_extensions; do
13877 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13878 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 orig_target_nm
=$ac_cv_path_orig_target_nm
13890 if test -n "$orig_target_nm"; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13892 $as_echo "$orig_target_nm" >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13899 test -n "$orig_target_nm" && break
13906 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13907 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13908 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13910 $as_echo_n "checking for $ac_word... " >&6; }
13911 if ${ac_cv_path_orig_target_nm+:} false
; then :
13912 $as_echo_n "(cached) " >&6
13914 case $orig_target_nm in
13916 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13920 for as_dir
in $PATH
13923 test -z "$as_dir" && as_dir
=.
13924 for ac_exec_ext
in '' $ac_executable_extensions; do
13925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 orig_target_nm
=$ac_cv_path_orig_target_nm
13938 if test -n "$orig_target_nm"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13940 $as_echo "$orig_target_nm" >&6; }
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13947 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13951 if test "$orig_target_nm" = ""; then
13954 if test "$orig_target_nm" = "no"; then
13957 if test "$req_avail" = "no"; then
13958 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13961 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13962 if test "$cross_compiling" = "yes" ; then
13963 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13964 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_path_orig_target_strip+:} false
; then :
13968 $as_echo_n "(cached) " >&6
13970 case $orig_target_strip in
13972 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13976 for as_dir
in $PATH
13979 test -z "$as_dir" && as_dir
=.
13980 for ac_exec_ext
in '' $ac_executable_extensions; do
13981 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 orig_target_strip
=$ac_cv_path_orig_target_strip
13994 if test -n "$orig_target_strip"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13996 $as_echo "$orig_target_strip" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14005 if test "" = ""; then
14006 ac_tool_strip
=strip
14010 if test "$GCC" = "yes"; then
14011 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
14012 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
14013 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14015 $as_echo_n "checking for $ac_word... " >&6; }
14016 if ${ac_cv_path_orig_target_strip+:} false
; then :
14017 $as_echo_n "(cached) " >&6
14019 case $orig_target_strip in
14021 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14025 for as_dir
in `dirname $aros_gcc_strip`
14028 test -z "$as_dir" && as_dir
=.
14029 for ac_exec_ext
in '' $ac_executable_extensions; do
14030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 orig_target_strip
=$ac_cv_path_orig_target_strip
14043 if test -n "$orig_target_strip"; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14045 $as_echo "$orig_target_strip" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048 $as_echo "no" >&6; }
14053 if test "$orig_target_strip" = ""; then
14054 for ac_prog
in $ac_tool_strip
14056 # Extract the first word of "$ac_prog", so it can be a program name with args.
14057 set dummy
$ac_prog; ac_word
=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if ${ac_cv_path_orig_target_strip+:} false
; then :
14061 $as_echo_n "(cached) " >&6
14063 case $orig_target_strip in
14065 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14069 for as_dir
in $PATH
14072 test -z "$as_dir" && as_dir
=.
14073 for ac_exec_ext
in '' $ac_executable_extensions; do
14074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 orig_target_strip
=$ac_cv_path_orig_target_strip
14087 if test -n "$orig_target_strip"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14089 $as_echo "$orig_target_strip" >&6; }
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14096 test -n "$orig_target_strip" && break
14103 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14104 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14105 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if ${ac_cv_path_orig_target_strip+:} false
; then :
14109 $as_echo_n "(cached) " >&6
14111 case $orig_target_strip in
14113 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14117 for as_dir
in $PATH
14120 test -z "$as_dir" && as_dir
=.
14121 for ac_exec_ext
in '' $ac_executable_extensions; do
14122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 orig_target_strip
=$ac_cv_path_orig_target_strip
14135 if test -n "$orig_target_strip"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14137 $as_echo "$orig_target_strip" >&6; }
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14144 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
14148 if test "$orig_target_strip" = ""; then
14151 if test "$orig_target_strip" = "no"; then
14154 if test "$req_avail" = "no"; then
14155 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14158 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14159 if test "$cross_compiling" = "yes" ; then
14160 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14161 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14165 $as_echo_n "(cached) " >&6
14167 case $orig_target_objcopy in
14169 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14173 for as_dir
in $PATH
14176 test -z "$as_dir" && as_dir
=.
14177 for ac_exec_ext
in '' $ac_executable_extensions; do
14178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14179 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14191 if test -n "$orig_target_objcopy"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14193 $as_echo "$orig_target_objcopy" >&6; }
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14202 if test "" = ""; then
14203 ac_tool_objcopy
=objcopy
14207 if test "$GCC" = "yes"; then
14208 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
14209 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14210 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212 $as_echo_n "checking for $ac_word... " >&6; }
14213 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14214 $as_echo_n "(cached) " >&6
14216 case $orig_target_objcopy in
14218 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14222 for as_dir
in `dirname $aros_gcc_objcopy`
14225 test -z "$as_dir" && as_dir
=.
14226 for ac_exec_ext
in '' $ac_executable_extensions; do
14227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14240 if test -n "$orig_target_objcopy"; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14242 $as_echo "$orig_target_objcopy" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14250 if test "$orig_target_objcopy" = ""; then
14251 for ac_prog
in $ac_tool_objcopy
14253 # Extract the first word of "$ac_prog", so it can be a program name with args.
14254 set dummy
$ac_prog; ac_word
=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14258 $as_echo_n "(cached) " >&6
14260 case $orig_target_objcopy in
14262 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14266 for as_dir
in $PATH
14269 test -z "$as_dir" && as_dir
=.
14270 for ac_exec_ext
in '' $ac_executable_extensions; do
14271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14272 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14284 if test -n "$orig_target_objcopy"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14286 $as_echo "$orig_target_objcopy" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289 $as_echo "no" >&6; }
14293 test -n "$orig_target_objcopy" && break
14300 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14301 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14302 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14306 $as_echo_n "(cached) " >&6
14308 case $orig_target_objcopy in
14310 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14314 for as_dir
in $PATH
14317 test -z "$as_dir" && as_dir
=.
14318 for ac_exec_ext
in '' $ac_executable_extensions; do
14319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14320 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14332 if test -n "$orig_target_objcopy"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14334 $as_echo "$orig_target_objcopy" >&6; }
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14341 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
14345 if test "$orig_target_objcopy" = ""; then
14348 if test "$orig_target_objcopy" = "no"; then
14351 if test "$req_avail" = "no"; then
14352 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14355 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14356 if test "$cross_compiling" = "yes" ; then
14357 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14358 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14362 $as_echo_n "(cached) " >&6
14364 case $orig_target_objdump in
14366 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14370 for as_dir
in $PATH
14373 test -z "$as_dir" && as_dir
=.
14374 for ac_exec_ext
in '' $ac_executable_extensions; do
14375 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14376 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14388 if test -n "$orig_target_objdump"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14390 $as_echo "$orig_target_objdump" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14399 if test "" = ""; then
14400 ac_tool_objdump
=objdump
14404 if test "$GCC" = "yes"; then
14405 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
14406 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14407 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14411 $as_echo_n "(cached) " >&6
14413 case $orig_target_objdump in
14415 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14419 for as_dir
in `dirname $aros_gcc_objdump`
14422 test -z "$as_dir" && as_dir
=.
14423 for ac_exec_ext
in '' $ac_executable_extensions; do
14424 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14437 if test -n "$orig_target_objdump"; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14439 $as_echo "$orig_target_objdump" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14447 if test "$orig_target_objdump" = ""; then
14448 for ac_prog
in $ac_tool_objdump
14450 # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy
$ac_prog; ac_word
=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 case $orig_target_objdump in
14459 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14463 for as_dir
in $PATH
14466 test -z "$as_dir" && as_dir
=.
14467 for ac_exec_ext
in '' $ac_executable_extensions; do
14468 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14469 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14480 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14481 if test -n "$orig_target_objdump"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14483 $as_echo "$orig_target_objdump" >&6; }
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14490 test -n "$orig_target_objdump" && break
14497 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14498 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14499 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14501 $as_echo_n "checking for $ac_word... " >&6; }
14502 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14503 $as_echo_n "(cached) " >&6
14505 case $orig_target_objdump in
14507 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14511 for as_dir
in $PATH
14514 test -z "$as_dir" && as_dir
=.
14515 for ac_exec_ext
in '' $ac_executable_extensions; do
14516 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14517 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14529 if test -n "$orig_target_objdump"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14531 $as_echo "$orig_target_objdump" >&6; }
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14538 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
14542 if test "$orig_target_objdump" = ""; then
14545 if test "$orig_target_objdump" = "no"; then
14548 if test "$req_avail" = "no"; then
14549 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14553 if test "$kernel_tool_prefix" = "none" ; then
14554 # No kernel tools specified
14555 # Assume kernel tools == target tools with ELF wrapper
14556 aros_kernel_cc
=$orig_target_cc
14557 aros_kernel_cxx
=$orig_target_cxx
14558 aros_kernel_cpp
="$orig_target_cpp"
14559 aros_kernel_ld
=$orig_target_ld
14560 aros_kernel_as
=$orig_target_as
14561 aros_kernel_ar
=$orig_target_ar
14562 aros_kernel_ranlib
=$orig_target_ranlib
14563 aros_kernel_nm
=$orig_target_nm
14564 aros_kernel_strip
=$orig_target_strip
14565 aros_kernel_objcopy
=$orig_target_objcopy
14566 aros_kernel_objdump
=$orig_target_objdump
14567 aros_kernel_isa_flags
=$aros_isa_flags
14568 use_kernel_cc_wrapper
=yes
14571 # At this point, all aros_kernel_* and aros_target_*
14572 # tools should be set up correctly
14574 CC
="$aros_kernel_cc $kernel_tool_flags"
14575 CPP
="$aros_kernel_cpp"
14577 #-----------------------------------------------------------------------------
14579 # Find all the tools we need to compile. This could be cross-compiling
14580 # though! If that is the case we use the GNU form of the target and
14581 # simply add this to the front of the binary name. This is rather simple,
14582 # but it should work under most circumstances.
14584 # The default tools are to use the same as the host, but only if the
14585 # host and target CPU are the same. With GCC this is normally enough.
14589 aros_shared_ld
="$aros_host_ld"
14591 aros_target_mkdep
="$aros_host_mkdep"
14593 # The default tools executables to be linked to.
14594 if test "$rescomp" != ""; then
14595 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14596 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 $as_echo_n "checking for $ac_word... " >&6; }
14599 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
14600 $as_echo_n "(cached) " >&6
14602 case $aros_kernel_rescomp in
14604 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
14607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14608 for as_dir
in $PATH
14611 test -z "$as_dir" && as_dir
=.
14612 for ac_exec_ext
in '' $ac_executable_extensions; do
14613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
14626 if test -n "$aros_kernel_rescomp"; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14628 $as_echo "$aros_kernel_rescomp" >&6; }
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14636 if test "$aros_kernel_rescomp" = ""; then
14639 if test "$aros_kernel_rescomp" = "no"; then
14642 if test "$req_avail" = "no"; then
14643 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14647 # Set up the sources for the symlink farm
14648 if test "$crosstools" = "yes"; then
14649 crosstools_target
=tools-crosstools
14652 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
14653 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
14655 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14656 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14657 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14658 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14659 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14660 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14661 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14663 # aros_cc_pre is a variable that is added to the front of the compiler name
14664 # in the generated aros-gcc shell script. We need this to enable the cache
14665 # to work across cleaned builds. Also, support DISTCC using the correct
14666 # environment variable.
14669 if test "x${DISTCC}" != "x" ; then
14670 if test "x${CCACHE}" != "x" ; then
14671 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14673 aros_cc_pre
="${DISTCC} "
14676 if test "x${CCACHE}" != "x" ; then
14677 aros_cc_pre
="${CCACHE} "
14681 aros_target_nostdinc_cflags
=-nostdinc
14683 aros_target_nostartup_ldflags
=-nostartfiles
14685 aros_target_nix_ldflags
=-nix
14687 aros_target_detach_ldflags
=-detach
14689 aros_target_nostdlib_ldflags
=-nostdlib
14692 aros_target_cc_path
=
14696 if test "$aros_target_toolchain" != "yes"; then
14697 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14698 if test "$GCC" = "yes"; then
14699 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14702 # We do not know which c compiler version we are going to build and what we need to know
14703 # here is different for different versions so this will be set later during the
14704 # build of crosstools.
14705 if test "$aros_toolchain" = "gnu" ; then
14706 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14707 elif test "$aros_toolchain" = "llvm" ; then
14708 prefix
="$AROS_CROSSTOOLSDIR/bin/"
14710 aros_target_cc_path
=@aros_target_cc_path@
14712 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14713 aros_target_cc
="${prefix}${toolchain_c_compiler}"
14714 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
14715 aros_target_as
="${prefix}${toolchain_as}"
14716 if test "${use_ld_wrapper}" = "yes"; then
14717 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14719 aros_target_ld
="${prefix}${toolchain_ld}"
14721 aros_toolchain_ld
="${prefix}${toolchain_ld}"
14723 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
14724 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
14725 aros_target_objdump
="${prefix}${toolchain_objdump}"
14726 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14727 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
14728 aros_target_strip
="${prefix}${toolchain_strip}"
14729 aros_plain_nm
="${prefix}${toolchain_nm}"
14730 aros_plain_ar
="${prefix}${toolchain_ar}"
14732 # Check whether --enable-includes was given.
14733 if test "${enable_includes+set}" = set; then :
14734 enableval
=$enable_includes; aros_target_incl
=$enable_includes
14736 aros_target_incl
=no
14740 if test "x$aros_target_incl" = "xno"; then
14741 if test "x$test_kernel_cc" != "xno"; then
14742 aros_target_incl
=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14748 if test "x$aros_kernel_includes" = "x"; then
14749 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14750 if test "x$aros_target_incl" != "x"; then
14751 aros_kernel_includes
="-isystem $aros_target_incl"
14756 if test "x$test_kernel_cc" != "xno"; then
14757 if test "$aros_kernel_includes" != "" ; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14759 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14760 if test "$aros_kernel_cc_includes" = "" ; then
14761 # Try to guess where the directory is.
14762 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
14763 if test -d $aros_kernel_cc_includes; then
14764 # Check if there is also an include-fixed directory and add it
14765 # to kernel compiler's include path as it may contain some of
14766 # the headers we need.
14767 if test -d "$aros_kernel_cc_includes"-fixed; then
14768 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
14770 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14771 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14772 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14775 # The directory doesn't exist, we need to do some more work.
14776 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
14778 # These are the headers we're looking for.
14779 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14780 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14784 for h
in $headers; do
14785 # Which other headers are needed by each of the above?
14786 deps
=$
(echo "#include <$h>" | \
14787 $aros_kernel_cc -E -M - 2>/dev
/null | \
14788 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14790 # Copy all the needed headers to a directory beneath gendir.
14793 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
14794 sed -n "s,^.*/include\(/.*\),\1,p")
14795 ! test -d $dir && mkdir
-p $dir
14796 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14802 $as_echo "$aros_kernel_cc_includes" >&6; }
14803 # Adding -nostdinc to kernel includes as they are always used together.
14804 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14808 if test "$crosstools" != "yes"; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14810 $as_echo_n "checking for the target compiler's include path... " >&6; }
14811 if test "$aros_target_cc_includes" = "" ; then
14812 #try to guess where the directory is
14813 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
14814 if ! test -d $aros_target_cc_includes; then
14815 #the directory doesn't exist, we need to do some more work
14816 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
14818 #these are the headers we're looking for
14819 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14820 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14824 for h
in $headers; do
14825 #which other headers each of the above headers needs?
14826 deps
=$
(echo "#include <$h>" | \
14827 $orig_target_cc -E -M - 2>/dev
/null | \
14828 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14830 #copy all the needed headers to a directory beneath gendir
14833 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
14834 sed -n "s,^.*/include\(/.*\),\1,p")
14835 ! test -d $dir && mkdir
-p $dir
14836 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14842 $as_echo "$aros_target_cc_includes" >&6; }
14844 # We do not know which c compiler version we are going to build and what we need to know
14845 # here is different for different versions so this will be set later during the
14846 # build of crosstools.
14847 aros_target_cc_includes
=@aros_target_cc_includes@
14851 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14852 # On GCC >= 4.0 -iquote should be used
14856 save_cflags
="$CFLAGS"
14857 if test "x$test_kernel_cc" != "xno"; then
14859 kernel_cflags_iquote
=$host_cflags_iquote
14860 kernel_cflags_iquote_end
=$host_cflags_iquote_end
14861 if test "x-$cross_compiling" = "x-yes"; then
14862 CC
="$aros_kernel_cc"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14864 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14865 if test "x-$crosstools" != "x-yes"; then
14866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14877 if ac_fn_c_try_compile
"$LINENO"; then :
14878 use_no_stack_protector
="yes"
14880 use_no_stack_protector
="no"
14882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14884 # we do know it is supported for the smallest version of gcc we are going to build
14885 # we assume it's also supported by later versions
14886 use_no_stack_protector
=yes
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14889 $as_echo "$use_no_stack_protector" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14891 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14892 if test "x-$crosstools" != "x-yes"; then
14893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14904 if ac_fn_c_try_compile
"$LINENO"; then :
14909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14911 # we do know it is supported for the smallest version of gcc we are going to build
14912 # we assume it's also supported by later versions
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14916 $as_echo "$has_iquote" >&6; }
14917 if test "x-$has_iquote" = "x-yes" ; then
14918 kernel_cflags_iquote
=-iquote
14919 kernel_cflags_iquote_end
=
14921 kernel_cflags_iquote
=-I
14922 kernel_cflags_iquote_end
=-I-
14925 if test "x-$use_no_stack_protector" = "x-yes" ; then
14926 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14929 #-----------------------------------------------------------------------------
14931 # Check if we can explicitly choose older version of symbol hashing
14933 CFLAGS
="$save_cflags -Wl,--hash-style=sysv"
14934 CC
="$aros_kernel_cc"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14936 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14948 if ac_fn_c_try_link
"$LINENO"; then :
14949 use_hash_style
="yes"
14951 use_hash_style
="no"
14953 rm -f core conftest.err conftest.
$ac_objext \
14954 conftest
$ac_exeext conftest.
$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14956 $as_echo "$use_hash_style" >&6; }
14957 if test "x-$use_hash_style" = "x-yes" ; then
14958 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14961 kernel_cflags_iquote
="$""(CFLAGS_IQUOTE)"
14962 kernel_cflags_iquote_end
="$""(CFLAGS_IQUOTE_END)"
14965 CFLAGS
="$save_cflags"
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14974 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14976 # Check whether --with-resolution was given.
14977 if test "${with_resolution+set}" = set; then :
14978 withval
=$with_resolution; resolution
=$withval
14983 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14984 if test "$resolution" = "yes" ; then
14987 if test "$resolution" = "no" ; then
14990 if test "$resolution" != "none" ; then
14991 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14992 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14993 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14996 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14997 aros_cv_nominal_width
=$aros_nominal_width
14998 aros_cv_nominal_height
=$aros_nominal_height
14999 aros_cv_nominal_depth
=$aros_nominal_depth
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
15002 $as_echo_n "checking whether serial debug is enabled... " >&6; }
15004 # Check whether --with-serial-debug was given.
15005 if test "${with_serial_debug+set}" = set; then :
15006 withval
=$with_serial_debug; serial_debug
=$withval
15011 if test "$aros_serial_debug" = 0 ; then
15012 serial_debug_forced
=""
15013 if test "$serial_debug" = "yes" ; then
15016 if test "$serial_debug" = "no" ; then
15017 serial_debug
="none"
15020 serial_debug_forced
="(forced)"
15021 serial_debug
=$aros_serial_debug
15023 if test "$serial_debug" != "none" ; then
15024 aros_serial_debug
=$serial_debug
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
15026 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
15033 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
15034 # Check whether --enable-palm_debug_hack was given.
15035 if test "${enable_palm_debug_hack+set}" = set; then :
15036 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
15038 palm_debug_hack
="no"
15041 if test "$palm_debug_hack" = "yes" ; then
15042 aros_palm_debug_hack
="1"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
15045 $as_echo "$palm_debug_hack" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
15048 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
15049 # Check whether --enable-usb30_code was given.
15050 if test "${enable_usb30_code+set}" = set; then :
15051 enableval
=$enable_usb30_code; usb30_code
="yes"
15056 if test "$usb30_code" = "yes" ; then
15057 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
15058 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
15061 $as_echo "$usb30_code" >&6; }
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
15064 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
15065 # Check whether --enable-nesting_supervisor was given.
15066 if test "${enable_nesting_supervisor+set}" = set; then :
15067 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
15069 nesting_supervisor
="no"
15072 if test "$nesting_supervisor" = "yes" ; then
15073 aros_nesting_supervisor
="1"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
15076 $as_echo "$nesting_supervisor" >&6; }
15078 if test "$aros_enable_mmu" = "" ; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
15080 $as_echo_n "checking whether MMU support is enabled... " >&6; }
15081 # Check whether --enable-mmu was given.
15082 if test "${enable_mmu+set}" = set; then :
15083 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
15085 aros_enable_mmu
="yes"
15088 if test "$aros_enable_mmu" = "" ; then
15089 aros_enable_mmu
="yes"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
15092 $as_echo "$aros_enable_mmu" >&6; }
15094 if test "$aros_enable_mmu" = "no" ; then
15095 aros_enable_mmu
="0"
15097 aros_enable_mmu
="1"
15101 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15103 if test "x-$need_dlopen" != "x-no" ; then
15106 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15107 if test "x$ac_cv_func_dlopen" = xyes
; then :
15113 if test "x-$have_dl" = "x-no" ; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15116 if ${ac_cv_lib_dl_dlopen+:} false
; then :
15117 $as_echo_n "(cached) " >&6
15119 ac_check_lib_save_LIBS
=$LIBS
15121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15124 /* Override any GCC internal prototype to avoid an error.
15125 Use char because int might match the return type of a GCC
15126 builtin and then its argument prototype would still apply. */
15139 if ac_fn_c_try_link
"$LINENO"; then :
15140 ac_cv_lib_dl_dlopen
=yes
15142 ac_cv_lib_dl_dlopen
=no
15144 rm -f core conftest.err conftest.
$ac_objext \
15145 conftest
$ac_exeext conftest.
$ac_ext
15146 LIBS
=$ac_check_lib_save_LIBS
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15150 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
15152 aros_host_ldflags
="$aros_host_ldflags -ldl"
15158 if test "x-$have_dl" = "x-no" ; then
15159 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
15165 # Check whether --enable-x11_hidd was given.
15166 if test "${enable_x11_hidd+set}" = set; then :
15167 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
15169 x11_hidd
="$need_x11"
15172 case "x-$x11_hidd" in
15173 x-yes|x-no|x-auto
) ;;
15174 *) x11_hidd
="$need_x11" ;;
15179 if test "x-$x11_hidd" != "x-no" ; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15182 $as_echo_n "checking for X... " >&6; }
15185 # Check whether --with-x was given.
15186 if test "${with_x+set}" = set; then :
15190 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15191 if test "x$with_x" = xno
; then
15192 # The user explicitly disabled X.
15195 case $x_includes,$x_libraries in #(
15196 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
15197 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
15198 $as_echo_n "(cached) " >&6
15200 # One or both of the vars are not set, and there is no cached value.
15201 ac_x_includes
=no ac_x_libraries
=no
15202 rm -f -r conftest.dir
15203 if mkdir conftest.dir
; then
15205 cat >Imakefile
<<'_ACEOF'
15207 @echo incroot='${INCROOT}'
15209 @echo usrlibdir='${USRLIBDIR}'
15211 @echo libdir='${LIBDIR}'
15213 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15214 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15215 for ac_var
in incroot usrlibdir libdir
; do
15216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15219 for ac_extension
in a so sl dylib la dll
; do
15220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15222 ac_im_usrlibdir
=$ac_im_libdir; break
15225 # Screen out bogus values from the imake configuration. They are
15226 # bogus both because they are the default anyway, and because
15227 # using them would break gcc on systems where it needs fixed includes.
15228 case $ac_im_incroot in
15229 /usr
/include
) ac_x_includes
= ;;
15230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15232 case $ac_im_usrlibdir in
15233 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15238 rm -f -r conftest.dir
15241 # Standard set of common directories for X headers.
15242 # Check X11 before X11Rn because it is often a symlink to the current release.
15256 /usr/local/X11/include
15257 /usr/local/X11R7/include
15258 /usr/local/X11R6/include
15259 /usr/local/X11R5/include
15260 /usr/local/X11R4/include
15262 /usr/local/include/X11
15263 /usr/local/include/X11R7
15264 /usr/local/include/X11R6
15265 /usr/local/include/X11R5
15266 /usr/local/include/X11R4
15270 /usr/XFree86/include/X11
15274 /usr/unsupported/include
15275 /usr/athena/include
15276 /usr/local/x11r5/include
15277 /usr/lpp/Xamples/include
15279 /usr/openwin/include
15280 /usr/openwin/share/include'
15282 if test "$ac_x_includes" = no
; then
15283 # Guess where to find include files, by looking for Xlib.h.
15284 # First, try using that file with no special directory specified.
15285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 #include <X11/Xlib.h>
15289 if ac_fn_c_try_cpp
"$LINENO"; then :
15290 # We can compile using X headers with no special include directory.
15293 for ac_dir
in $ac_x_header_dirs; do
15294 if test -r "$ac_dir/X11/Xlib.h"; then
15295 ac_x_includes
=$ac_dir
15300 rm -f conftest.err conftest.i conftest.
$ac_ext
15301 fi # $ac_x_includes = no
15303 if test "$ac_x_libraries" = no
; then
15304 # Check for the libraries.
15305 # See if we find them without any special options.
15306 # Don't add to $LIBS permanently.
15309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include <X11/Xlib.h>
15320 if ac_fn_c_try_link
"$LINENO"; then :
15322 # We can link X programs with no special library path.
15326 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15328 # Don't even attempt the hair of trying to link an X program!
15329 for ac_extension
in a so sl dylib la dll
; do
15330 if test -r "$ac_dir/libX11.$ac_extension"; then
15331 ac_x_libraries
=$ac_dir
15337 rm -f core conftest.err conftest.
$ac_objext \
15338 conftest
$ac_exeext conftest.
$ac_ext
15339 fi # $ac_x_libraries = no
15341 case $ac_x_includes,$ac_x_libraries in #(
15342 no
,* |
*,no |
*\'*)
15343 # Didn't find X, or a directory has "'" in its name.
15344 ac_cv_have_x
="have_x=no";; #(
15346 # Record where we found X for the cache.
15347 ac_cv_have_x
="have_x=yes\
15348 ac_x_includes='$ac_x_includes'\
15349 ac_x_libraries='$ac_x_libraries'"
15355 eval "$ac_cv_have_x"
15358 if test "$have_x" != yes; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15360 $as_echo "$have_x" >&6; }
15363 # If each of the values was on the command line, it overrides each guess.
15364 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15365 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15366 # Update the cache value to reflect the command line values.
15367 ac_cv_have_x
="have_x=yes\
15368 ac_x_includes='$x_includes'\
15369 ac_x_libraries='$x_libraries'"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15371 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15375 if test -n "$x_includes"; then
15376 X_CFLAGS
="$X_CFLAGS -I$x_includes"
15379 if test -n "$x_libraries"; then
15380 X_LIBS
="$X_LIBS -L$x_libraries"
15383 if test "x-$no_x" = "x-yes" ; then
15385 if test "x-$x11_hidd" != "x-auto" ; then
15386 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15390 aros_target_options
+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15391 if test "x-$host_feature_glx" != "x-no" ; then
15392 aros_target_options
+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15396 aros_host_x11_cflags
="$X_CFLAGS"
15397 aros_host_x11_ldflags
="$X_LIBS -lX11"
15399 # Check whether --enable-x11_shm was given.
15400 if test "${enable_x11_shm+set}" = set; then :
15401 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
15403 x11_hidd_shm
="auto"
15406 case "x-$x11_hidd_shm" in
15407 x-yes|x-no|x-auto
) ;;
15408 *) x11_hidd_shm
="auto" ;;
15413 if test "x-$x11_hidd_shm" != "x-no" ; then
15415 for ac_header
in sys
/ipc.h
15417 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15418 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
15419 cat >>confdefs.h
<<_ACEOF
15420 #define HAVE_SYS_IPC_H 1
15427 for ac_header
in sys
/shm.h
15429 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15430 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
15431 cat >>confdefs.h
<<_ACEOF
15432 #define HAVE_SYS_SHM_H 1
15440 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15442 save_cflags
="$CFLAGS"
15443 save_ldflags
="$LDFLAGS"
15444 CFLAGS
="$CFLAGS $X_CFLAGS"
15445 LDFLAGS
="$LDFLAGS $X_LIBS"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15447 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15448 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
15449 $as_echo_n "(cached) " >&6
15451 ac_check_lib_save_LIBS
=$LIBS
15452 LIBS
="-lXext $LIBS"
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15456 /* Override any GCC internal prototype to avoid an error.
15457 Use char because int might match the return type of a GCC
15458 builtin and then its argument prototype would still apply. */
15462 char XShmQueryExtension ();
15466 return XShmQueryExtension ();
15471 if ac_fn_c_try_link
"$LINENO"; then :
15472 ac_cv_lib_Xext_XShmQueryExtension
=yes
15474 ac_cv_lib_Xext_XShmQueryExtension
=no
15476 rm -f core conftest.err conftest.
$ac_objext \
15477 conftest
$ac_exeext conftest.
$ac_ext
15478 LIBS
=$ac_check_lib_save_LIBS
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15481 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15482 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
15486 CFLAGS
="$save_cflags"
15487 LDFLAGS
="$save_ldflags"
15491 if test "x-$have_xshm" = "x-yes" ; then
15492 DO_XSHM_SUPPORT
="1"
15493 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15494 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15496 DO_XSHM_SUPPORT
="0"
15500 # Check whether --enable-x11_vidmode was given.
15501 if test "${enable_x11_vidmode+set}" = set; then :
15502 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
15504 x11_hidd_vidmode
="auto"
15507 case "x-$x11_hidd_vidmode" in
15508 x-yes|x-no|x-auto
) ;;
15509 *) x11_hidd_vidmode
="auto" ;;
15514 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15516 save_cflags
="$CFLAGS"
15517 save_ldflags
="$LDFLAGS"
15518 CFLAGS
="$CFLAGS $X_CFLAGS"
15519 LDFLAGS
="$LDFLAGS $X_LIBS"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15521 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15522 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
15523 $as_echo_n "(cached) " >&6
15525 ac_check_lib_save_LIBS
=$LIBS
15526 LIBS
="-lXxf86vm $LIBS"
15527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15536 char XF86VidModeQueryExtension ();
15540 return XF86VidModeQueryExtension ();
15545 if ac_fn_c_try_link
"$LINENO"; then :
15546 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
15548 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
15550 rm -f core conftest.err conftest.
$ac_objext \
15551 conftest
$ac_exeext conftest.
$ac_ext
15552 LIBS
=$ac_check_lib_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15555 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15556 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
15560 CFLAGS
="$save_cflags"
15561 LDFLAGS
="$save_ldflags"
15564 if test "x-$have_vidmode" = "x-yes" ; then
15565 DO_VIDMODE_SUPPORT
="1"
15566 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15567 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15569 DO_VIDMODE_SUPPORT
="0"
15574 # Check whether --enable-sdl_hidd was given.
15575 if test "${enable_sdl_hidd+set}" = set; then :
15576 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
15581 case "x-$sdl_hidd" in
15582 x-yes|x-no|x-auto
) ;;
15583 *) sdl_hidd
="auto" ;;
15586 if test "x-$sdl_hidd" != "x-no" ; then
15590 # Check whether --with-sdl-prefix was given.
15591 if test "${with_sdl_prefix+set}" = set; then :
15592 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
15598 # Check whether --with-sdl-exec-prefix was given.
15599 if test "${with_sdl_exec_prefix+set}" = set; then :
15600 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
15605 # Check whether --enable-sdltest was given.
15606 if test "${enable_sdltest+set}" = set; then :
15607 enableval
=$enable_sdltest;
15613 if test x
$sdl_exec_prefix != x
; then
15614 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15615 if test x
${SDL_CONFIG+set} != xset
; then
15616 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
15619 if test x
$sdl_prefix != x
; then
15620 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
15621 if test x
${SDL_CONFIG+set} != xset
; then
15622 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
15626 as_save_PATH
="$PATH"
15627 if test "x$prefix" != xNONE
; then
15628 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
15630 # Extract the first word of "sdl-config", so it can be a program name with args.
15631 set dummy sdl-config
; ac_word
=$2
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633 $as_echo_n "checking for $ac_word... " >&6; }
15634 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
15635 $as_echo_n "(cached) " >&6
15637 case $SDL_CONFIG in
15639 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
15642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15643 for as_dir
in $PATH
15646 test -z "$as_dir" && as_dir
=.
15647 for ac_exec_ext
in '' $ac_executable_extensions; do
15648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15649 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
15661 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
15662 if test -n "$SDL_CONFIG"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15664 $as_echo "$SDL_CONFIG" >&6; }
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15671 PATH
="$as_save_PATH"
15672 min_sdl_version
=$SDL_VERSION
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15674 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15676 if test "$SDL_CONFIG" = "no" ; then
15679 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
15680 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
15682 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
15683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15684 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
15685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15686 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15688 if test "x$enable_sdltest" = "xyes" ; then
15689 ac_save_CFLAGS
="$CFLAGS"
15690 ac_save_CXXFLAGS
="$CXXFLAGS"
15691 ac_save_LIBS
="$LIBS"
15692 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15693 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15694 LIBS
="$LIBS $SDL_LIBS"
15696 if test "$cross_compiling" = yes; then :
15697 echo $ac_n "cross compiling; assumed OK... $ac_c"
15699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15703 #include <stdlib.h>
15704 #include <string.h>
15708 my_strdup (char *str)
15714 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15715 strcpy (new_str, str);
15723 int main (int argc, char *argv[])
15725 int major, minor, micro;
15728 /* This hangs on some systems (?)
15729 system ("touch conf.sdltest");
15731 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15733 /* HP/UX 9 (%@#!) writes to sscanf strings */
15734 tmp_version = my_strdup("$min_sdl_version");
15735 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15736 printf("%s, bad version string\n", "$min_sdl_version");
15740 if (($sdl_major_version > major) ||
15741 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15742 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15748 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15749 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15750 printf("*** best to upgrade to the required version.\n");
15751 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15752 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15753 printf("*** config.cache before re-running configure\n");
15760 if ac_fn_c_try_run
"$LINENO"; then :
15765 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15766 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15769 CFLAGS
="$ac_save_CFLAGS"
15770 CXXFLAGS
="$ac_save_CXXFLAGS"
15771 LIBS
="$ac_save_LIBS"
15774 if test "x$no_sdl" = x
; then
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776 $as_echo "yes" >&6; }
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15781 if test "$SDL_CONFIG" = "no" ; then
15782 echo "*** The sdl-config script installed by SDL could not be found"
15783 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15784 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15785 echo "*** full path to sdl-config."
15787 if test -f conf.sdltest
; then
15790 echo "*** Could not run SDL test program, checking why..."
15791 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15792 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15793 LIBS
="$LIBS $SDL_LIBS"
15794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15800 int main(int argc, char *argv[])
15803 #define main K_and_R_C_main
15813 if ac_fn_c_try_link
"$LINENO"; then :
15814 echo "*** The test program compiled, but did not run. This usually means"
15815 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15816 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15817 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15818 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15819 echo "*** is required on your system"
15821 echo "*** If you have an old version installed, it is best to remove it, although"
15822 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15824 echo "*** The test program failed to compile or link. See the file config.log for the"
15825 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15826 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15827 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15829 rm -f core conftest.err conftest.
$ac_objext \
15830 conftest
$ac_exeext conftest.
$ac_ext
15831 CFLAGS
="$ac_save_CFLAGS"
15832 CXXFLAGS
="$ac_save_CXXFLAGS"
15833 LIBS
="$ac_save_LIBS"
15845 if test "x-$have_sdl" != "x-yes" ; then
15847 if test "x-$sdl_hidd" != "x-auto" ; then
15848 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15852 aros_target_options
+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15853 aros_host_sdl_cflags
=$SDL_CFLAGS
15854 aros_host_sdl_libs
=$SDL_LIBS
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15862 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15863 # Check whether --enable-dbus was given.
15864 if test "${enable_dbus+set}" = set; then :
15865 enableval
=$enable_dbus; dbus
="yes"
15870 if test "$dbus" = "yes" ; then
15872 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15873 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15874 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15875 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15880 $as_echo "$dbus" >&6; }
15882 if test "$use_kernel_cc_wrapper" = "yes" ; then
15883 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15886 aros_kernel_cppflags
=$aros_config_cppflags
15887 aros_optimization_cflags
="$optimization_level"
15888 if test "$optimization" = "default"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15890 $as_echo_n "checking default optimization level to use... " >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15892 $as_echo "$optimization_level" >&6; }
15895 if ! test "$gcc_default_cpu" = "" ; then
15896 target_extra_cfg
+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15899 if test "$use_libatomic" = "yes" ; then
15900 aros_cxx_libs
="$aros_cxx_libs -latomic"
15903 aros_target_options
+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15920 # Compatability with other Amiga-like operating systems
15923 # Host Related ###########################
15955 # Target Related #########################
16049 # Native version related
16057 # Bootloader related
16060 # Unix/Hosted version related
16063 # ARM default GCC target related
16070 # Palm native version related
16073 # Apple iOS related
16090 # Collect-aros stuff: "-ius" to ignore undefined symbols
16093 # C compiler related
16098 #ObjC compiler related
16126 case "$aros_flavour" in
16127 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
16128 aros_flavour
="emulation" ;;
16129 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16130 aros_flavour
="emulation" ;;
16131 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
16132 aros_flavour
="standalone";;
16133 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16134 aros_flavour
="standalone";;
16135 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
16136 aros_flavour
="native" ;;
16137 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16138 aros_flavour
="native" ;;
16139 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
16140 aros_flavour
="linklib" ;;
16141 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16142 aros_flavour
="palmnative" ;;
16143 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16144 aros_flavour
="mac68knative" ;;
16145 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16146 aros_flavour
="ppcnative" ;;
16149 if test ! -d ${aros_inc_dir} ; then
16150 ${MKDIR} ${aros_inc_dir}
16152 if test ! -d ${aros_geninc_dir} ; then
16153 ${MKDIR} ${aros_geninc_dir}
16155 if test ! -d ${aros_hostcfg_dir} ; then
16156 ${MKDIR} ${aros_hostcfg_dir}
16158 if test ! -d ${aros_targetcfg_dir} ; then
16159 ${MKDIR} ${aros_targetcfg_dir}
16161 if test ! -d ${aros_tools_dir} ; then
16162 ${MKDIR} ${aros_tools_dir}
16164 if test ! -d ${aros_scripts_dir} ; then
16165 ${MKDIR} ${aros_scripts_dir}
16168 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16171 # Generic build tools (metamake, etc)
16172 ac_config_commands
="$ac_config_commands genmf-executable-support"
16174 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"
16178 ac_config_commands
="$ac_config_commands binutils-support"
16180 if test "${use_ld_wrapper}" = "yes"; then
16181 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"
16184 # Bare Elf support script and spec
16185 if test "${use_kernel_cc_wrapper}" = "yes"; then
16186 ac_config_commands
="$ac_config_commands elf-compiler-support"
16188 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"
16192 # Host compiler support scripts and spec
16193 if test "${aros_target_toolchain}" = "no"; then
16194 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
16196 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"
16201 if test "$aros_target_variant" == "android"; then
16202 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16207 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16210 cat >confcache
<<\_ACEOF
16211 # This file is a shell script that caches the results of configure
16212 # tests run on this system so they can be shared between configure
16213 # scripts and configure runs, see configure's option --config-cache.
16214 # It is not useful on other systems. If it contains results you don't
16215 # want to keep, you may remove or edit it.
16217 # config.status only pays attention to the cache file if you give it
16218 # the --recheck option to rerun configure.
16220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16222 # following values.
16226 # The following way of writing the cache mishandles newlines in values,
16227 # but we know of no workaround that is simple, portable, and efficient.
16228 # So, we kill variables containing newlines.
16229 # Ultrix sh set writes to stderr and can't be redirected directly,
16230 # and sets the high bit in the cache file unless we assign to the vars.
16232 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16233 eval ac_val
=\$
$ac_var
16237 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16241 _ | IFS | as_nl
) ;; #(
16242 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16243 *) { eval $ac_var=; unset $ac_var;} ;;
16249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16250 *${as_nl}ac_space
=\
*)
16251 # `set' does not quote correctly, so add quotes: double-quote
16252 # substitution turns \\\\ into \\, and sed turns \\ into \.
16255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16258 # `set' quotes correctly as required by POSIX, so do not add quotes.
16259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16272 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16273 if test -w "$cache_file"; then
16274 if test "x$cache_file" != "x/dev/null"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16276 $as_echo "$as_me: updating cache $cache_file" >&6;}
16277 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16278 cat confcache
>"$cache_file"
16280 case $cache_file in #(
16282 mv -f confcache
"$cache_file"$$
&&
16283 mv -f "$cache_file"$$
"$cache_file" ;; #(
16285 mv -f confcache
"$cache_file" ;;
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16296 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16297 # Let make expand exec_prefix.
16298 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16300 DEFS
=-DHAVE_CONFIG_H
16305 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16306 # 1. Remove the extension, and $U if already installed.
16307 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16308 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16310 # will be set to the directory where LIBOBJS objects are built.
16311 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16312 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16314 LIBOBJS
=$ac_libobjs
16316 LTLIBOBJS
=$ac_ltlibobjs
16320 : "${CONFIG_STATUS=./config.status}"
16322 ac_clean_files_save
=$ac_clean_files
16323 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16329 # Generated by $as_me.
16330 # Run this file to recreate the current configuration.
16331 # Compiler output produced by configure, useful for debugging
16332 # configure, is in config.log if it exists.
16335 ac_cs_recheck=false
16338 SHELL=\${CONFIG_SHELL-$SHELL}
16341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16342 ## -------------------- ##
16343 ## M4sh Initialization. ##
16344 ## -------------------- ##
16346 # Be more Bourne compatible
16347 DUALCASE
=1; export DUALCASE
# for MKS sh
16348 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16352 # is contrary to our usage. Disable this feature.
16353 alias -g '${1+"$@"}'='"$@"'
16354 setopt NO_GLOB_SUBST
16356 case `(set -o) 2>/dev/null` in #(
16368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16369 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16372 # Prefer a ksh shell builtin over an external printf program on Solaris,
16373 # but without wasting forks for bash or zsh.
16374 if test -z "$BASH_VERSION$ZSH_VERSION" \
16375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='print
-r --'
16377 as_echo_n='print
-rn --'
16378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16379 as_echo='printf %s
\n'
16380 as_echo_n='printf %s
'
16382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16383 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16384 as_echo_n='/usr
/ucb
/echo -n'
16386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16387 as_echo_n_body='eval
16391 expr "X$arg" : "X\\(.*\\)$as_nl";
16392 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16394 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16396 export as_echo_n_body
16397 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16399 export as_echo_body
16400 as_echo='sh
-c $as_echo_body as_echo
'
16403 # The user is always right.
16404 if test "${PATH_SEPARATOR+set}" != set; then
16406 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16407 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16414 # We need space, tab and new line, in precisely that order. Quoting is
16415 # there to prevent editors from complaining about space-tab.
16416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16417 # splitting by setting IFS to empty value.)
16420 # Find who we are. Look in the path if we contain no directory separator.
16423 *[\\/]* ) as_myself=$0 ;;
16424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16425 for as_dir in $PATH
16428 test -z "$as_dir" && as_dir=.
16429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16435 # We did not find ourselves, most probably we were run as `sh COMMAND'
16436 # in which case we are not to be found in the path.
16437 if test "x$as_myself" = x
; then
16440 if test ! -f "$as_myself"; then
16441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16445 # Unset variables that we do not need and which cause bugs (e.g. in
16446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16447 # suppresses any "Segmentation fault" message there. '((' could
16448 # trigger a bug in pdksh 5.2.14.
16449 for as_var
in BASH_ENV ENV MAIL MAILPATH
16450 do eval test x\
${$as_var+set} = xset \
16451 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16464 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16468 # ----------------------------------------
16469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16471 # script with STATUS, using 1 if that was 0.
16474 as_status
=$1; test $as_status -eq 0 && as_status
=1
16476 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16479 $as_echo "$as_me: error: $2" >&2
16480 as_fn_exit
$as_status
16484 # as_fn_set_status STATUS
16485 # -----------------------
16486 # Set $? to STATUS, without forking.
16487 as_fn_set_status
()
16490 } # as_fn_set_status
16492 # as_fn_exit STATUS
16493 # -----------------
16494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16498 as_fn_set_status
$1
16504 # Portably unset VAR.
16507 { eval $1=; unset $1;}
16509 as_unset
=as_fn_unset
16510 # as_fn_append VAR VALUE
16511 # ----------------------
16512 # Append the text in VALUE to the end of the definition contained in VAR. Take
16513 # advantage of any shell optimizations that allow amortized linear growth over
16514 # repeated appends, instead of the typical quadratic growth present in naive
16516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16517 eval 'as_fn_append ()
16528 # as_fn_arith ARG...
16529 # ------------------
16530 # Perform arithmetic evaluation on the ARGs, and store the result in the
16531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16532 # must be portable across $(()) and expr.
16533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16534 eval 'as_fn_arith ()
16541 as_val
=`expr "$@" || test $? -eq 1`
16546 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16547 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16553 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16554 as_basename
=basename
16559 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16565 as_me
=`$as_basename -- "$0" ||
16566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16567 X"$0" : 'X\(//\)$' \| \
16568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16570 sed '/^.*\/\([^/][^/]*\)\/*$/{
16584 # Avoid depending upon Character Ranges.
16585 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16586 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16587 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16588 as_cr_digits
='0123456789'
16589 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16591 ECHO_C
= ECHO_N
= ECHO_T
=
16592 case `echo -n x` in #(((((
16594 case `echo 'xy\c'` in
16595 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16597 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16604 rm -f conf$$ conf$$.exe conf$$.
file
16605 if test -d conf$$.dir
; then
16606 rm -f conf$$.dir
/conf$$.
file
16609 mkdir conf$$.dir
2>/dev
/null
16611 if (echo >conf$$.
file) 2>/dev
/null
; then
16612 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16614 # ... but there are two gotchas:
16615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16617 # In both cases, we have to default to `cp -pR'.
16618 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16620 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16628 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16629 rmdir conf$$.dir
2>/dev
/null
16634 # Create "$as_dir" as a directory, including parents if necessary.
16639 -*) as_dir
=.
/$as_dir;;
16641 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16645 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16646 *) as_qdir
=$as_dir;;
16648 as_dirs
="'$as_qdir' $as_dirs"
16649 as_dir
=`$as_dirname -- "$as_dir" ||
16650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16651 X"$as_dir" : 'X\(//\)[^/]' \| \
16652 X"$as_dir" : 'X\(//\)$' \| \
16653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16654 $as_echo X"$as_dir" |
16655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16659 /^X\(\/\/\)[^/].*/{
16672 test -d "$as_dir" && break
16674 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16675 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16679 if mkdir
-p .
2>/dev
/null
; then
16680 as_mkdir_p
='mkdir -p "$as_dir"'
16682 test -d .
/-p && rmdir .
/-p
16687 # as_fn_executable_p FILE
16688 # -----------------------
16689 # Test if FILE is an executable regular file.
16690 as_fn_executable_p
()
16692 test -f "$1" && test -x "$1"
16693 } # as_fn_executable_p
16694 as_test_x
='test -x'
16695 as_executable_p
=as_fn_executable_p
16697 # Sed expression to map a string onto a valid CPP name.
16698 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16700 # Sed expression to map a string onto a valid variable name.
16701 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16705 ## ----------------------------------- ##
16706 ## Main body of $CONFIG_STATUS script. ##
16707 ## ----------------------------------- ##
16709 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16712 # Save the log message, to keep $0 and so on meaningful, and to
16713 # report actual input values of CONFIG_FILES etc. instead of their
16714 # values after options handling.
16716 This file was extended by $as_me, which was
16717 generated by GNU Autoconf 2.69. Invocation command line was
16719 CONFIG_FILES = $CONFIG_FILES
16720 CONFIG_HEADERS = $CONFIG_HEADERS
16721 CONFIG_LINKS = $CONFIG_LINKS
16722 CONFIG_COMMANDS = $CONFIG_COMMANDS
16725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16730 case $ac_config_files in *"
16731 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16734 case $ac_config_headers in *"
16735 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16740 # Files that config.status was made for.
16741 config_files="$ac_config_files"
16742 config_headers="$ac_config_headers"
16743 config_commands="$ac_config_commands"
16747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16749 \`$as_me' instantiates files and other configuration actions
16750 from templates according to the current configuration. Unless the files
16751 and actions are specified as TAGs, all are instantiated by default.
16753 Usage: $0 [OPTION]... [TAG]...
16755 -h, --help print this help, then exit
16756 -V, --version print version number and configuration settings, then exit
16757 --config print configuration, then exit
16758 -q, --quiet, --silent
16759 do not print progress messages
16760 -d, --debug don't remove temporary files
16761 --recheck update $as_me by reconfiguring in the same conditions
16762 --file=FILE[:TEMPLATE]
16763 instantiate the configuration file FILE
16764 --header=FILE[:TEMPLATE]
16765 instantiate the configuration header FILE
16767 Configuration files:
16770 Configuration headers:
16773 Configuration commands:
16776 Report bugs to the package provider."
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16783 configured by $0, generated by GNU Autoconf 2.69,
16784 with options \\"\$ac_cs_config\\"
16786 Copyright (C) 2012 Free Software Foundation, Inc.
16787 This config.status script is free software; the Free Software Foundation
16788 gives unlimited permission to copy, distribute and modify it."
16792 test -n "\$AWK" || AWK=awk
16795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16796 # The default lists apply if the user does not specify any file.
16802 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16803 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16807 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16819 # Handling of the options.
16820 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16822 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16823 $as_echo "$ac_cs_version"; exit ;;
16824 --config |
--confi |
--conf |
--con |
--co |
--c )
16825 $as_echo "$ac_cs_config"; exit ;;
16826 --debug |
--debu |
--deb |
--de |
--d |
-d )
16828 --file |
--fil |
--fi |
--f )
16831 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16832 '') as_fn_error $?
"missing file argument" ;;
16834 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16835 ac_need_defaults
=false
;;
16836 --header |
--heade |
--head |
--hea )
16839 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16841 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16842 ac_need_defaults
=false
;;
16844 # Conflict between --help and --header
16845 as_fn_error $?
"ambiguous option: \`$1'
16846 Try \`$0 --help' for more information.";;
16847 --help |
--hel |
-h )
16848 $as_echo "$ac_cs_usage"; exit ;;
16849 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16850 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16853 # This is an error.
16854 -*) as_fn_error $?
"unrecognized option: \`$1'
16855 Try \`$0 --help' for more information." ;;
16857 *) as_fn_append ac_config_targets
" $1"
16858 ac_need_defaults
=false
;;
16864 ac_configure_extra_args
=
16866 if $ac_cs_silent; then
16868 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 if \$ac_cs_recheck; then
16874 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16877 CONFIG_SHELL='$SHELL'
16878 export CONFIG_SHELL
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16888 ## Running $as_me. ##
16894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16900 aros_tools_dir=${aros_tools_dir}
16904 aros_host_exe_suffix=${aros_host_exe_suffix}
16905 aros_tools_dir=${aros_tools_dir}
16906 aros_target_cpu=${aros_target_cpu}
16907 aros_target_arch=${aros_target_arch}
16908 aros_target_suffix=${aros_target_suffix}
16909 orig_target_nm=${orig_target_nm}
16910 orig_target_as=${orig_target_as}
16911 orig_target_ar=${orig_target_ar}
16912 orig_target_ranlib=${orig_target_ranlib}
16913 orig_target_objdump=${orig_target_objdump}
16914 orig_target_objcopy=${orig_target_objcopy}
16915 orig_target_strip=${orig_target_strip}
16916 aros_kernel_ld=${aros_kernel_ld}
16920 aros_host_exe_suffix=${aros_host_exe_suffix}
16921 aros_tools_dir=${aros_tools_dir}
16922 aros_target_cpu=${aros_target_cpu}
16923 aros_target_arch=${aros_target_arch}
16924 aros_target_suffix=${aros_target_suffix}
16925 aros_kernel_ld=${aros_kernel_ld}
16929 aros_host_exe_suffix=${aros_host_exe_suffix}
16930 aros_tools_dir=${aros_tools_dir}
16931 aros_target_cpu=${aros_target_cpu}
16932 aros_target_arch=${aros_target_arch}
16933 aros_target_suffix=${aros_target_suffix}
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16941 # Handling of arguments.
16942 for ac_config_target
in $ac_config_targets
16944 case $ac_config_target in
16945 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16946 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16947 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16948 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16949 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16950 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16951 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16952 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16953 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16954 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16955 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16956 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16957 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16958 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16959 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16960 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16961 "${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" ;;
16962 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16963 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16964 "${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" ;;
16965 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16966 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16967 "${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" ;;
16968 "${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" ;;
16969 "${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" ;;
16970 "${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" ;;
16971 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16973 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16978 # If the user did not use the arguments to specify the items to instantiate,
16979 # then the envvar interface is used. Set only those that are not.
16980 # We use the long form for the default assignment because of an extremely
16981 # bizarre bug on SunOS 4.1.3.
16982 if $ac_need_defaults; then
16983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16988 # Have a temporary directory for convenience. Make it in the build tree
16989 # simply because there is no reason against having it here, and in addition,
16990 # creating and moving files from /tmp can sometimes cause problems.
16991 # Hook for its removal unless debugging.
16992 # Note that there is a small window in which the directory will not be cleaned:
16993 # after its creation but before its name has been assigned to `$tmp'.
16997 trap 'exit_status=$?
16998 : "${ac_tmp:=$tmp}"
16999 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17001 trap 'as_fn_exit 1' 1 2 13 15
17003 # Create a (secure) tmp directory for tmp files.
17006 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17010 tmp
=.
/conf$$
-$RANDOM
17011 (umask 077 && mkdir
"$tmp")
17012 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17015 # Set up the scripts for CONFIG_FILES section.
17016 # No need to generate them if there are no CONFIG_FILES.
17017 # This happens for instance with `./config.status config.h'.
17018 if test -n "$CONFIG_FILES"; then
17021 ac_cr
=`echo X | tr X '\015'`
17022 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17023 # But we know of no other shell where ac_cr would be empty at this
17024 # point, so we can use a bashism as a fallback.
17025 if test "x$ac_cr" = x
; then
17026 eval ac_cr
=\$
\'\\r
\'
17028 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17029 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17032 ac_cs_awk_cr
=$ac_cr
17035 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17040 echo "cat >conf$$subs.awk <<_ACEOF" &&
17041 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17043 } >conf$$subs.sh ||
17044 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17045 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17047 for ac_last_try in false false false false false :; do
17048 . ./conf$$subs.sh ||
17049 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17051 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17052 if test $ac_delim_n = $ac_delim_num; then
17054 elif $ac_last_try; then
17055 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17057 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17060 rm -f conf$$subs.sh
17062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17067 s/^/S["/; s
/!.
*/"]=/
17077 s/\(.\{148\}\)..*/\1/
17079 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17084 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17091 s/\(.\{148\}\)..*/\1/
17093 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17097 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17102 ' <conf$$subs.awk | sed '
17107 ' >>$CONFIG_STATUS || ac_write_fail=1
17108 rm -f conf$$subs.awk
17109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17111 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17112 for (key in S) S_is_set[key] = 1
17118 nfields = split(line, field, "@
")
17120 len = length(field[1])
17121 for (i = 2; i < nfields; i++) {
17123 keylen = length(key)
17124 if (S_is_set[key]) {
17126 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17127 len += length(value) + length(field[++i])
17138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17140 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17143 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17144 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17147 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17148 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17149 # trailing colons and then remove the whole line if VPATH becomes empty
17150 # (actually we leave an empty line to preserve line numbers).
17151 if test "x
$srcdir" = x.; then
17152 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171 fi # test -n "$CONFIG_FILES"
17173 # Set up the scripts for CONFIG_HEADERS section.
17174 # No need to generate them if there are no CONFIG_HEADERS.
17175 # This happens for instance with `./config.status Makefile'.
17176 if test -n "$CONFIG_HEADERS"; then
17177 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17181 # Transform confdefs.h into an awk script `defines.awk', embedded as
17182 # here-document in config.status, that substitutes the proper values into
17183 # config.h.in to produce config.h.
17185 # Create a delimiter string that does not exist in confdefs.h, to ease
17186 # handling of long lines.
17188 for ac_last_try in false false :; do
17189 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17190 if test -z "$ac_tt"; then
17192 elif $ac_last_try; then
17193 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17195 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17199 # For the awk script, D is an array of macro values keyed by name,
17200 # likewise P contains macro parameters if any. Preserve backslash
17201 # newline sequences.
17203 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17205 s/.\{148\}/&'"$ac_delim"'/g
17208 s/^[ ]*#[ ]*define[ ][ ]*/ /
17215 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17217 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17222 D["\
1"]=" \
3\\\\\\n
"\\/p
17224 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17229 s/.\{148\}/&'"$ac_delim"'/g
17234 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17237 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17239 ' <confdefs.h | sed '
17240 s/'"$ac_delim"'/"\\\
17241 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17244 for (key in D) D_is_set[key] = 1
17247 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17249 split(line, arg, " ")
17250 if (arg[1] == "#") {
17254 defundef
= substr
(arg
[1], 2)
17257 split(mac1
, mac2
, "(") #)
17259 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17260 if (D_is_set
[macro
]) {
17261 # Preserve the white space surrounding the "#".
17262 print prefix
"define", macro P
[macro
] D
[macro
]
17265 # Replace #undef with comments. This is necessary, for example,
17266 # in the case of _POSIX_SOURCE, which is predefined and required
17267 # on some systems where configure will not decide to define it.
17268 if (defundef
== "undef") {
17269 print
"/*", prefix defundef
, macro
, "*/"
17277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17278 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17279 fi # test -n "$CONFIG_HEADERS"
17282 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17287 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17289 case $ac_mode$ac_tag in
17291 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17292 :[FH
]-) ac_tag
=-:-;;
17293 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17310 -) ac_f
="$ac_tmp/stdin";;
17311 *) # Look for the file first in the build tree, then in the source tree
17312 # (if the path is not absolute). The absolute path cannot be DOS-style,
17313 # because $ac_f cannot contain `:'.
17317 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17319 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17321 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17322 as_fn_append ac_file_inputs
" '$ac_f'"
17325 # Let's still pretend it is `configure' which instantiates (i.e., don't
17326 # use $as_me), people would be surprised to read:
17327 # /* config.h. Generated by config.status. */
17328 configure_input
='Generated from '`
17329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17331 if test x
"$ac_file" != x-
; then
17332 configure_input
="$ac_file. $configure_input"
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17334 $as_echo "$as_me: creating $ac_file" >&6;}
17336 # Neutralize special characters interpreted by sed in replacement strings.
17337 case $configure_input in #(
17338 *\
&* |
*\|
* |
*\\* )
17339 ac_sed_conf_input
=`$as_echo "$configure_input" |
17340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17341 *) ac_sed_conf_input
=$configure_input;;
17345 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17346 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17351 ac_dir
=`$as_dirname -- "$ac_file" ||
17352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17353 X"$ac_file" : 'X\(//\)[^/]' \| \
17354 X"$ac_file" : 'X\(//\)$' \| \
17355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17356 $as_echo X"$ac_file" |
17357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17361 /^X\(\/\/\)[^/].*/{
17374 as_dir
="$ac_dir"; as_fn_mkdir_p
17378 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17380 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17381 # A ".." for each directory in $ac_dir_suffix.
17382 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17383 case $ac_top_builddir_sub in
17384 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17385 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17388 ac_abs_top_builddir
=$ac_pwd
17389 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17390 # for backward compatibility:
17391 ac_top_builddir
=$ac_top_build_prefix
17394 .
) # We are building in place.
17396 ac_top_srcdir
=$ac_top_builddir_sub
17397 ac_abs_top_srcdir
=$ac_pwd ;;
17398 [\\/]* | ?
:[\\/]* ) # Absolute name.
17399 ac_srcdir
=$srcdir$ac_dir_suffix;
17400 ac_top_srcdir
=$srcdir
17401 ac_abs_top_srcdir
=$srcdir ;;
17402 *) # Relative name.
17403 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17404 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17405 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17407 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17419 # If the template does not know about datarootdir, expand it.
17420 # FIXME: This hack should be removed a few years after 2.60.
17421 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17433 *datarootdir
*) ac_datarootdir_seen
=yes;;
17434 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 ac_datarootdir_hack='
17440 s&@datadir@&$datadir&g
17441 s&@docdir@&$docdir&g
17442 s&@infodir@&$infodir&g
17443 s&@localedir@&$localedir&g
17444 s&@mandir@&$mandir&g
17445 s&\\\${datarootdir}&$datarootdir&g' ;;
17449 # Neutralize VPATH when `$srcdir' = `.'.
17450 # Shell code in configure.ac might set extrasub.
17451 # FIXME: do we really want to maintain this feature?
17452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17453 ac_sed_extra="$ac_vpsub
17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17458 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17459 s|@configure_input@|
$ac_sed_conf_input|
;t t
17460 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17461 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17462 s
&@srcdir@
&$ac_srcdir&;t t
17463 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17464 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17465 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17466 s
&@builddir@
&$ac_builddir&;t t
17467 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17468 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17469 $ac_datarootdir_hack
17471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17472 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17475 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17477 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17479 which seems to be undefined. Please make sure it is defined" >&5
17480 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17481 which seems to be undefined. Please make sure it is defined" >&2;}
17483 rm -f "$ac_tmp/stdin"
17485 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17486 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17494 if test x"$ac_file" != x-; then
17496 $as_echo "/* $configure_input */" \
17497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17498 } >"$ac_tmp/config.h" \
17499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17500 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17502 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17505 mv "$ac_tmp/config.h" "$ac_file" \
17506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17509 $as_echo "/* $configure_input */" \
17510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17511 || as_fn_error $? "could not create -" "$LINENO" 5
17515 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17516 $as_echo "$as_me: executing $ac_file commands" >&6;}
17521 case $ac_file$ac_mode in
17522 "genmf-executable-support":C)
17523 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17524 chmod a+x ${aros_tools_dir}/genmf.py
17526 "binutils-support":C)
17527 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17529 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17531 chmod a+x ${prefix2}-ld
17533 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17534 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17535 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17536 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17537 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17538 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17539 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17541 "elf-compiler-support":C)
17542 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17544 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17546 chmod a+x ${prefix2}-gcc
17548 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17550 "host-compiler-wrapper-support":C)
17551 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17553 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17555 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17564 ac_clean_files=$ac_clean_files_save
17566 test $ac_write_fail = 0 ||
17567 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17570 # configure is writing to config.log, and then calls config.status.
17571 # config.status does its own redirection, appending to config.log.
17572 # Unfortunately, on DOS this fails, as config.log is still kept open
17573 # by configure, so config.status won't be able to
write to it
; its
17574 # output is simply discarded. So we exec the FD to /dev/null,
17575 # effectively closing config.log, so it can be properly (re)opened and
17576 # appended to by config.status. When coming back to configure, we
17577 # need to make the FD available again.
17578 if test "$no_create" != yes; then
17580 ac_config_status_args
=
17581 test "$silent" = yes &&
17582 ac_config_status_args
="$ac_config_status_args --quiet"
17584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17587 # would make configure fail if this is the last instruction.
17588 $ac_cs_success || as_fn_exit
1
17590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17597 #XXX compatability...
17598 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
17600 if test -n "$aros_shared_cflags" ; then
17601 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17602 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg