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 target_binutils_version
629 ignore_undefined_symbols
643 gcc_default_float_abi
651 aros_nesting_supervisor
659 aros_host_x11_ldflags
670 crosstools_cxx_target
674 aros_optimization_cflags
677 aros_target_strip_flags
685 aros_kernel_objcflags
712 aros_target_cc_includes
728 aros_target_bootloader
750 aros_amigaos_compliance
758 aros_target_toolchain
767 kernel_cflags_iquote_end
769 host_cflags_iquote_end
772 aros_target_nostdlib_ldflags
773 aros_target_detach_ldflags
774 aros_target_nix_ldflags
775 aros_target_nostartup_ldflags
776 aros_target_nostdinc_cflags
815 arosconfig_use_libpngconfig
899 program_transform_name
912 enable_option_checking
923 with_kernel_gcc_version
926 enable_target_variant
933 enable_amigaos_compliance
934 with_kernel_toolchain_prefix
935 with_elf_toolchain_prefix
938 with_aros_toolchain_install
939 with_binutils_version
953 enable_palm_debug_hack
955 enable_nesting_supervisor
967 ac_precious_vars
='build_alias
983 # Initialize some variables set by options.
985 ac_init_version
=false
986 ac_unrecognized_opts
=
988 # The variables have the same names as the options, with
989 # dashes changed to underlines.
997 program_transform_name
=s
,x
,x
,
1005 # Installation directory options.
1006 # These are left unexpanded so users can "make install exec_prefix=/foo"
1007 # and all the variables that are supposed to be based on exec_prefix
1008 # by default will actually change.
1009 # Use braces instead of parens because sh, perl, etc. also accept them.
1010 # (The list follows the same order as the GNU Coding Standards.)
1011 bindir
='${exec_prefix}/bin'
1012 sbindir
='${exec_prefix}/sbin'
1013 libexecdir
='${exec_prefix}/libexec'
1014 datarootdir
='${prefix}/share'
1015 datadir
='${datarootdir}'
1016 sysconfdir
='${prefix}/etc'
1017 sharedstatedir
='${prefix}/com'
1018 localstatedir
='${prefix}/var'
1019 runstatedir
='${localstatedir}/run'
1020 includedir
='${prefix}/include'
1021 oldincludedir
='/usr/include'
1022 docdir
='${datarootdir}/doc/${PACKAGE}'
1023 infodir
='${datarootdir}/info'
1028 libdir
='${exec_prefix}/lib'
1029 localedir
='${datarootdir}/locale'
1030 mandir
='${datarootdir}/man'
1036 # If the previous option needs an argument, assign it.
1037 if test -n "$ac_prev"; then
1038 eval $ac_prev=\
$ac_option
1044 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1055 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1057 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1058 bindir
=$ac_optarg ;;
1060 -build |
--build |
--buil |
--bui |
--bu)
1061 ac_prev
=build_alias
;;
1062 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1063 build_alias
=$ac_optarg ;;
1065 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1066 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1067 ac_prev
=cache_file
;;
1068 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1069 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1070 cache_file
=$ac_optarg ;;
1072 --config-cache |
-C)
1073 cache_file
=config.cache
;;
1075 -datadir |
--datadir |
--datadi |
--datad)
1077 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1078 datadir
=$ac_optarg ;;
1080 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1081 |
--dataroo |
--dataro |
--datar)
1082 ac_prev
=datarootdir
;;
1083 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1084 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1085 datarootdir
=$ac_optarg ;;
1087 -disable-* |
--disable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error $?
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=no
;;
1103 -docdir |
--docdir |
--docdi |
--doc |
--do)
1105 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1106 docdir
=$ac_optarg ;;
1108 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1110 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1111 dvidir
=$ac_optarg ;;
1113 -enable-* |
--enable-*)
1114 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error $?
"invalid feature name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_
$ac_useropt"
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval enable_
$ac_useropt=\
$ac_optarg ;;
1129 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1130 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1131 |
--exec |
--exe |
--ex)
1132 ac_prev
=exec_prefix
;;
1133 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1134 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1135 |
--exec=* |
--exe=* |
--ex=*)
1136 exec_prefix
=$ac_optarg ;;
1138 -gas |
--gas |
--ga |
--g)
1139 # Obsolete; use --with-gas.
1142 -help |
--help |
--hel |
--he |
-h)
1143 ac_init_help
=long
;;
1144 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1145 ac_init_help
=recursive
;;
1146 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1147 ac_init_help
=short
;;
1149 -host |
--host |
--hos |
--ho)
1150 ac_prev
=host_alias
;;
1151 -host=* |
--host=* |
--hos=* |
--ho=*)
1152 host_alias
=$ac_optarg ;;
1154 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1156 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1158 htmldir
=$ac_optarg ;;
1160 -includedir |
--includedir |
--includedi |
--included |
--include \
1161 |
--includ |
--inclu |
--incl |
--inc)
1162 ac_prev
=includedir
;;
1163 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1164 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1165 includedir
=$ac_optarg ;;
1167 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1169 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1170 infodir
=$ac_optarg ;;
1172 -libdir |
--libdir |
--libdi |
--libd)
1174 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1175 libdir
=$ac_optarg ;;
1177 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1178 |
--libexe |
--libex |
--libe)
1179 ac_prev
=libexecdir
;;
1180 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1181 |
--libexe=* |
--libex=* |
--libe=*)
1182 libexecdir
=$ac_optarg ;;
1184 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1185 ac_prev
=localedir
;;
1186 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1187 localedir
=$ac_optarg ;;
1189 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1190 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1191 ac_prev
=localstatedir
;;
1192 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1193 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1194 localstatedir
=$ac_optarg ;;
1196 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1198 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1199 mandir
=$ac_optarg ;;
1201 -nfp |
--nfp |
--nf)
1202 # Obsolete; use --without-fp.
1205 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1206 |
--no-cr |
--no-c |
-n)
1209 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1210 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1213 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1214 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1215 |
--oldin |
--oldi |
--old |
--ol |
--o)
1216 ac_prev
=oldincludedir
;;
1217 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1218 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1219 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1220 oldincludedir
=$ac_optarg ;;
1222 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1224 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1225 prefix
=$ac_optarg ;;
1227 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1228 |
--program-pre |
--program-pr |
--program-p)
1229 ac_prev
=program_prefix
;;
1230 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1231 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1232 program_prefix
=$ac_optarg ;;
1234 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1235 |
--program-suf |
--program-su |
--program-s)
1236 ac_prev
=program_suffix
;;
1237 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1238 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1239 program_suffix
=$ac_optarg ;;
1241 -program-transform-name |
--program-transform-name \
1242 |
--program-transform-nam |
--program-transform-na \
1243 |
--program-transform-n |
--program-transform- \
1244 |
--program-transform |
--program-transfor \
1245 |
--program-transfo |
--program-transf \
1246 |
--program-trans |
--program-tran \
1247 |
--progr-tra |
--program-tr |
--program-t)
1248 ac_prev
=program_transform_name
;;
1249 -program-transform-name=* |
--program-transform-name=* \
1250 |
--program-transform-nam=* |
--program-transform-na=* \
1251 |
--program-transform-n=* |
--program-transform-=* \
1252 |
--program-transform=* |
--program-transfor=* \
1253 |
--program-transfo=* |
--program-transf=* \
1254 |
--program-trans=* |
--program-tran=* \
1255 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1256 program_transform_name
=$ac_optarg ;;
1258 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1260 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1261 pdfdir
=$ac_optarg ;;
1263 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1265 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1268 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1269 |
-silent |
--silent |
--silen |
--sile |
--sil)
1272 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1273 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1274 |
--run |
--ru |
--r)
1275 ac_prev
=runstatedir
;;
1276 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1277 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1278 |
--run=* |
--ru=* |
--r=*)
1279 runstatedir
=$ac_optarg ;;
1281 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1283 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1285 sbindir
=$ac_optarg ;;
1287 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1288 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1289 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1291 ac_prev
=sharedstatedir
;;
1292 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1293 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1294 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1296 sharedstatedir
=$ac_optarg ;;
1298 -site |
--site |
--sit)
1300 -site=* |
--site=* |
--sit=*)
1303 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1305 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1306 srcdir
=$ac_optarg ;;
1308 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1309 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1310 ac_prev
=sysconfdir
;;
1311 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1312 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1313 sysconfdir
=$ac_optarg ;;
1315 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1316 ac_prev
=target_alias
;;
1317 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1318 target_alias
=$ac_optarg ;;
1320 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1323 -version |
--version |
--versio |
--versi |
--vers |
-V)
1324 ac_init_version
=: ;;
1327 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1330 as_fn_error $?
"invalid package name: $ac_useropt"
1331 ac_useropt_orig
=$ac_useropt
1332 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1337 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep
=', ';;
1340 eval with_
$ac_useropt=\
$ac_optarg ;;
1342 -without-* |
--without-*)
1343 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1346 as_fn_error $?
"invalid package name: $ac_useropt"
1347 ac_useropt_orig
=$ac_useropt
1348 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1353 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep
=', ';;
1356 eval with_
$ac_useropt=no
;;
1359 # Obsolete; use --with-x.
1362 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1363 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1364 ac_prev
=x_includes
;;
1365 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1366 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1367 x_includes
=$ac_optarg ;;
1369 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1370 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1371 ac_prev
=x_libraries
;;
1372 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1373 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1374 x_libraries
=$ac_optarg ;;
1376 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information"
1381 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1382 # Reject names that are not valid shell variable names.
1383 case $ac_envvar in #(
1384 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1385 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1387 eval $ac_envvar=\
$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1401 if test -n "$ac_prev"; then
1402 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1403 as_fn_error $?
"missing argument to $ac_option"
1406 if test -n "$ac_unrecognized_opts"; then
1407 case $enable_option_checking in
1409 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 # Check all directory arguments for consistency.
1415 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir runstatedir
1420 eval ac_val
=\$
$ac_var
1421 # Remove trailing slashes.
1424 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\
$ac_val;;
1427 # Be sure to have absolute directory names.
1429 [\\/$
]* | ?
:[\\/]* ) continue;;
1430 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1432 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1440 target
=$target_alias
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x
; then
1444 if test "x$build_alias" = x
; then
1445 cross_compiling
=maybe
1446 elif test "x$build_alias" != "x$host_alias"; then
1452 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1454 test "$silent" = yes && exec 6>/dev
/null
1457 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1458 ac_ls_di
=`ls -di .` &&
1459 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1460 as_fn_error $?
"working directory cannot be determined"
1461 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 as_fn_error $?
"pwd does not report name of working directory"
1465 # Find the source files, if location was not specified.
1466 if test -z "$srcdir"; then
1467 ac_srcdir_defaulted
=yes
1468 # Try the directory containing this script, then the parent directory.
1469 ac_confdir
=`$as_dirname -- "$as_myself" ||
1470 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471 X"$as_myself" : 'X\(//\)[^/]' \| \
1472 X"$as_myself" : 'X\(//\)$' \| \
1473 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474 $as_echo X"$as_myself" |
1475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1497 ac_srcdir_defaulted
=no
1499 if test ! -r "$srcdir/$ac_unique_file"; then
1500 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1501 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1503 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 # When building in place, set srcdir=.
1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
1511 # Remove unnecessary trailing slashes from srcdir.
1512 # Double slashes in file names in object file debugging info
1513 # mess up M-x gdb in Emacs.
1515 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 for ac_var
in $ac_precious_vars; do
1518 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1519 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1520 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1521 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1525 # Report the --help message.
1527 if test "$ac_init_help" = "long"; then
1528 # Omit some internal or obsolete options to make the list less imposing.
1529 # This message is too long to be a string in the A/UX 3.1 sh.
1531 \`configure' configures this package to adapt to many kinds of systems.
1533 Usage: $0 [OPTION]... [VAR=VALUE]...
1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536 VAR=VALUE. See below for descriptions of some of the useful variables.
1538 Defaults for the options are specified in brackets.
1541 -h, --help display this help and exit
1542 --help=short display options specific to this package
1543 --help=recursive display the short help of all the included packages
1544 -V, --version display version information and exit
1545 -q, --quiet, --silent do not print \`checking ...' messages
1546 --cache-file=FILE cache test results in FILE [disabled]
1547 -C, --config-cache alias for \`--cache-file=config.cache'
1548 -n, --no-create do not create output files
1549 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551 Installation directories:
1552 --prefix=PREFIX install architecture-independent files in PREFIX
1553 [$ac_default_prefix]
1554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1557 By default, \`make install' will install all the files in
1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560 for instance \`--prefix=\$HOME'.
1562 For better control, use the options below.
1564 Fine tuning of the installation directories:
1565 --bindir=DIR user executables [EPREFIX/bin]
1566 --sbindir=DIR system admin executables [EPREFIX/sbin]
1567 --libexecdir=DIR program executables [EPREFIX/libexec]
1568 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1569 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1570 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1571 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1590 --x-includes=DIR X include files are
in DIR
1591 --x-libraries=DIR X library files are
in DIR
1594 --build=BUILD configure
for building on BUILD
[guessed
]
1595 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1599 if test -n "$ac_init_help"; then
1604 --disable-option-checking ignore unrecognized
--enable/--with options
1605 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1606 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1607 --disable-libpng-config disable libpng-config
test and configuration
1608 --enable-lto=yes|no Enable link
time optimizations
if the target
1609 compiler supports them
(default
=no
)
1610 --enable-coverage=yes|no
1611 Enable coverage instrumentation
if the target
1612 compiler supports it
(default
=no
)
1613 --enable-build-type=TYPE
1614 Select the build
type. Available types are
:
1615 personal
, nightly
, snapshot
, milestone
, release. Do
1616 NOT use this option unless you know what you are
1617 doing
! (default
=personal
)
1618 --enable-debug=list Enable different types of debug. Commas or
1619 whitespaces can be used to separate the items
in the
1620 list. Available types of debug are
: all
, none
,
1621 messages
, stack
, mungwall
, modules
, symbols. If no
1622 list is provided
then "all" is assumed.
1624 --enable-distcc Use distcc as a front end to the compiler
1626 --enable-ccache Use ccache as a front end to the compiler
1628 --enable-target-variant=NAME
1629 Enable a specific target variant
(default
=none
)
1630 --enable-amigaos-compliance=VERSION
1631 Enforce userspace AmigaOS compliance to a specific
1632 KickStart version
(default
=none
).
1633 --disable-crosstools Do not build cross-compiler toolchain
1634 --enable-objc Enable Objectve-C support
(default
=no
)
1635 --enable-java Enable Java support
(default
=no
)
1636 --enable-includes=dir Alternative system include directory
1637 --enable-palm-debug-hack
1638 Enable palm debug output hack
in palm native
1640 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1641 --enable-nesting-supervisor
1642 Enable nesting supervisor support
in unix
1644 --disable-mmu Disable MMU support
(default
=enabled
)
1645 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1646 --enable-x11-shm use X11 shared memory
(default
=auto
)
1647 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1648 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1649 --disable-sdltest Do not try to compile and run a
test SDL program
1650 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1653 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1654 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1655 --with-c-compiler=VERSION
1656 Use specified c compiler
for building AROS
1657 --with-cxx-compiler=VERSION
1658 Use specified c
++ compiler building AROS
1659 --with-toolchain=family Which toolchain family to crosscompile with
1661 --with-kernel-gcc-version=VERSION
1662 Use gcc-VERSION
for building bootstrap
1663 --with-optimization=FLAGS
1664 Use optimization flags FLAGS
(e.g
1665 --with-optimization=-O2).
1666 --with-paranoia=(yes|no|FLAGS
)
1667 Specific compiler warning FLAGS to
enable for
1668 paranoia builds
(default
=-Wall -Werror)
1669 --with-xcode=PATH Specify XCode path
for iOS targets
1670 (default
=/Developer
).
1671 --with-sdk-version=VERSION
1672 Use iOS SDK version VERSION
(default
=4.1).
1673 --with-sdk=PATH Specify Android SDK path
1674 (default
=$default_android_sdk).
1675 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1676 --with-sdk-version=LEVEL
1677 Use Android SDK
for API LEVEL
(default
=12).
1678 --with-ndk-version=LEVEL
1679 Use Android NDK
for API LEVEL
(default
=9).
1680 --with-apk-version=(release|debug
)
1681 Which version of AROSBootstrap.apk to compile.
1682 Release version needs key
for signing
, debug version
1683 will only run
in emulator.
(default
=release
)
1684 --with-kernel-toolchain-prefix=...
1685 Specify crosscompile toolchain prefix
for kernel
1687 --with-elf-toolchain-prefix=...
1688 Specify crosscompile toolchain prefix to wrap
for
1690 --with-aros-toolchain=PREFIX
1691 Specify prebuilt AROS toolchain. Use
yes for default
1693 --with-aros-toolchain-install=DIR
1694 Where to
install or search
for cross tools binaries
1695 --with-binutils-version=VERSION
1696 Use binutils-VERSION
for building AROS
1697 --with-gcc-version=VERSION
1698 Compile gcc-VERSION
for AROS
1699 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1700 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1701 --with-float=<spec
> Specify floating point ABI
1702 (default
=$gcc_default_float_abi).
1703 --with-portssources=DIR Where to download sourcecode
for external ports
1704 --with-bootloader=NAME Use a specific bootloader
1705 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1706 --with-theme=NAME Use a specific GUI Theme
1707 --with-resolution=XRESxYRESxDEPTH
1708 Default resolution of the initial WorkbenchScreen
1709 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1710 --with-x use the X Window System
1711 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1712 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1714 Some influential environment variables
:
1715 CXX C
++ compiler
command
1716 CXXFLAGS C
++ compiler flags
1717 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1718 nonstandard directory
<lib dir
>
1719 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1720 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1721 you have headers
in a nonstandard directory
<include dir
>
1722 CC C compiler
command
1723 CFLAGS C compiler flags
1725 PYTHON the Python interpreter
1726 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1728 Use these variables to override the choices made by
`configure' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1731 Report bugs to the package provider.
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1761 .) # We are building in place.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1795 generated by GNU Autoconf 2.69
1797 Copyright (C) 2012 Free Software Foundation, Inc.
1798 This configure script is free software; the Free Software Foundation
1799 gives unlimited permission to copy, distribute and modify it.
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1824 if test -s conftest.err
; then
1825 grep -v '^ *+' conftest.err
>conftest.er1
1826 cat conftest.er1
>&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.
$ac_objext; then :
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.
$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status
$ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_c_try_compile LINENO
1847 # --------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_compile
()
1851 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1852 rm -f conftest.
$ac_objext
1853 if { { ac_try
="$ac_compile"
1855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_compile
1884 # ac_fn_c_try_cpp LINENO
1885 # ----------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1893 *) ac_try_echo
=$ac_try;;
1895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 if test -s conftest.err
; then
1900 grep -v '^ *+' conftest.err
>conftest.er1
1901 cat conftest.er1
>&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } > conftest.i
&& {
1906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.
$ac_ext >&5
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status
$ac_retval
1921 # ac_fn_c_try_link LINENO
1922 # -----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 rm -f conftest.
$ac_objext conftest
$ac_exeext
1928 if { { ac_try
="$ac_link"
1930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest$ac_exeext
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_c_try_link
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1972 ac_fn_c_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2064 *) ac_try_echo
=$ac_try;;
2066 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 ac_retval=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_header_compile
2127 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2128 # ----------------------------------------------------
2129 # Tries to find if the field MEMBER exists in type AGGR, after including
2130 # INCLUDES, setting cache variable VAR accordingly.
2131 ac_fn_c_check_member ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2135 $as_echo_n "checking for $2.$3... " >&6; }
2136 if eval \${$4+:} false; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2162 if (sizeof ac_aggr.$3)
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_member
2184 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2185 # ---------------------------------------------
2186 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2188 ac_fn_c_check_decl ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2192 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195 if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 #ifndef $as_decl_name
2206 (void) $as_decl_use;
2208 (void) $as_decl_name;
2216 if ac_fn_c_try_compile "$LINENO"; then :
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_decl
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2268 if ac_fn_c_try_compile "$LINENO"; then :
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_c_check_type
2284 # ac_fn_c_check_func LINENO FUNC VAR
2285 # ----------------------------------
2286 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2287 ac_fn_c_check_func ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval \${$3+:} false; then :
2293 $as_echo_n "(cached) " >&6
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2299 #define $2 innocuous_$2
2301 /* System header to define __stub macros and hopefully few prototypes,
2302 which can conflict with char $2 (); below.
2303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2304 <limits.h> exists even on freestanding compilers. */
2307 # include <limits.h>
2309 # include <assert.h>
2314 /* Override any GCC internal prototype to avoid an error.
2315 Use char because int might match the return type of a GCC
2316 builtin and then its argument prototype would still apply. */
2321 /* The GNU C library defines this for functions which it implements
2322 to always fail with ENOSYS. Some functions are actually named
2323 something starting with __ and the normal name is an alias. */
2324 #if defined __stub_$2 || defined __stub___$2
2336 if ac_fn_c_try_link "$LINENO"; then :
2341 rm -f core conftest.err conftest.$ac_objext \
2342 conftest$ac_exeext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349 } # ac_fn_c_check_func
2350 cat >config.log <<_ACEOF
2351 This file contains any messages produced by compilers while
2352 running configure, to aid debugging if configure makes a mistake.
2354 It was created by $as_me, which was
2355 generated by GNU Autoconf 2.69. Invocation command line was
2367 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2368 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2369 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2370 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2371 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2373 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2374 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2376 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2377 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2378 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2379 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2380 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2381 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2382 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 $as_echo "PATH: $as_dir"
2407 # Keep a trace of the command line.
2408 # Strip out --no-create and --no-recursion so they do not pile up.
2409 # Strip out --silent because we don't want to record it for future runs.
2410 # Also quote any args containing shell meta-characters.
2411 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_must_keep_next=false
2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423 | -silent | --silent | --silen | --sile | --sil)
2426 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2431 as_fn_append ac_configure_args1 " '$ac_arg'"
2432 if test $ac_must_keep_next = true; then
2433 ac_must_keep_next=false # Got value, back to normal.
2436 *=* | --config-cache | -C | -disable-* | --disable-* \
2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439 | -with-* | --with-* | -without-* | --without-* | --x)
2440 case "$ac_configure_args0 " in
2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2444 -* ) ac_must_keep_next=true ;;
2447 as_fn_append ac_configure_args " '$ac_arg'"
2452 { ac_configure_args0=; unset ac_configure_args0;}
2453 { ac_configure_args1=; unset ac_configure_args1;}
2455 # When interrupted or exit'd, cleanup temporary files, and complete
2456 # config.log. We remove comments because anyway the quotes in there
2457 # would cause problems or look ugly.
2458 # WARNING: Use '\'' to represent an apostrophe within the trap.
2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460 trap 'exit_status=$?
2461 # Save into config.log some information that might help in debugging.
2465 $as_echo "## ---------------- ##
2466 ## Cache variables. ##
2467 ## ---------------- ##"
2469 # The following way of writing the cache mishandles newlines in values,
2471 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2472 eval ac_val=\$$ac_var
2476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2480 _ | IFS | as_nl) ;; #(
2481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482 *) { eval $ac_var=; unset $ac_var;} ;;
2487 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2488 *${as_nl}ac_space=\ *)
2490 "s/'\''/'\''\\\\'\'''\''/g;
2491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501 $as_echo "## ----------------- ##
2502 ## Output variables. ##
2503 ## ----------------- ##"
2505 for ac_var in $ac_subst_vars
2507 eval ac_val=\$$ac_var
2509 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 $as_echo "$ac_var='\''$ac_val'\''"
2515 if test -n "$ac_subst_files"; then
2516 $as_echo "## ------------------- ##
2517 ## File substitutions. ##
2518 ## ------------------- ##"
2520 for ac_var in $ac_subst_files
2522 eval ac_val=\$$ac_var
2524 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526 $as_echo "$ac_var='\''$ac_val'\''"
2531 if test -s confdefs.h; then
2532 $as_echo "## ----------- ##
2539 test "$ac_signal" != 0 &&
2540 $as_echo "$as_me: caught signal $ac_signal"
2541 $as_echo "$as_me: exit $exit_status"
2543 rm -f core *.core core.conftest.* &&
2544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547 for ac_signal in 1 2 13 15; do
2548 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2555 $as_echo "/* confdefs.h */" > confdefs.h
2557 # Predefined preprocessor variables.
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2588 if test -n "$CONFIG_SITE"; then
2589 # We do not want a PATH search for config.site.
2590 case $CONFIG_SITE in #((
2591 -*) ac_site_file1=./$CONFIG_SITE;;
2592 */*) ac_site_file1=$CONFIG_SITE;;
2593 *) ac_site_file1=./$CONFIG_SITE;;
2595 elif test "x$prefix" != xNONE; then
2596 ac_site_file1=$prefix/share/config.site
2597 ac_site_file2=$prefix/etc/config.site
2599 ac_site_file1=$ac_default_prefix/share/config.site
2600 ac_site_file2=$ac_default_prefix/etc/config.site
2602 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2604 test "x$ac_site_file" = xNONE && continue
2605 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2607 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2608 sed 's/^/| /' "$ac_site_file" >&5
2610 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 as_fn_error $? "failed to load site
script $ac_site_file
2613 See \
`config.log' for more details" "$LINENO" 5; }
2617 if test -r "$cache_file"; then
2618 # Some versions of bash will fail to source /dev/null (special files
2619 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2620 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2624 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625 *) . "./$cache_file";;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634 as_fn_append ac_header_list " stdlib.h"
2635 as_fn_append ac_header_list " unistd.h"
2636 as_fn_append ac_header_list " sys/param.h"
2637 # Check that the precious variables saved in the cache have kept the same
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
2643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2648 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2652 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x
$ac_old_val`
2659 ac_new_val_w=`echo x
$ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2663 ac_cache_corrupted=:
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2679 *) ac_arg=$ac_var=$ac_new_val ;;
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2708 if test -f "$ac_dir/install-sh"; then
2710 ac_install_sh="$ac_aux_dir/install-sh -c"
2712 elif test -f "$ac_dir/install.sh"; then
2714 ac_install_sh="$ac_aux_dir/install.sh -c"
2716 elif test -f "$ac_dir/shtool"; then
2718 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736 # Check what host we are running on.
2737 # If a target is not suggested, we use this one.
2738 # Note that what we call a target, Autoconf calls a host.
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS=$IFS; IFS='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS=$IFS; IFS='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2811 # Default versions for the gnu tools we build
2812 default_gcc_version="6.5.0"
2813 default_binutils_version="2.32"
2814 default_grub2_version="2.02"
2815 target_grub2_version=$default_grub2_version
2817 # The AROS target is slightly different to the normal GNU style
2818 # format. We don't have the middle part, and we reverse the order
2819 # of the $(CPU) and $(OS) bits.
2821 # Don't strip the version of the target yet, it might be
2822 # useful on some systems.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2825 $as_echo_n "checking for AROS style target... " >&6; }
2827 if test "$target" = "NONE" ; then
2828 target=$host_os-$host_cpu
2830 if test "$target" = "" ; then
2831 target=$host_os-$host_cpu
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2835 $as_echo "$target" >&6; }
2837 if test "$host_os" = "mingw32" ; then
2841 # Don't know where else to put this...
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2843 $as_echo_n "checking building AROS in... " >&6; }
2844 AROS_BUILDDIR=`${PWDCMD-pwd}`
2845 AROS_BUILDDIR_UNIX=${PWD}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2847 $as_echo "$AROS_BUILDDIR" >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2850 $as_echo_n "checking AROS source in... " >&6; }
2851 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2854 $as_echo "$SRCDIR" >&6; }
2856 # Parse the target field into something useful.
2858 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2859 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2862 # Some debug output, to be removed again.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2864 $as_echo_n "checking for target system (debug output)... " >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2866 $as_echo "$target_os" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2868 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2870 $as_echo "$target_cpu" >&6; }
2872 aros_nominal_width=800
2873 aros_nominal_height=600
2874 aros_nominal_depth=4
2877 default_c_compilers="gcc clang cc"
2879 # Check whether --with-c-compiler was given.
2880 if test "${with_c_compiler+set}" = set; then :
2881 withval=$with_c_compiler; use_c_compiler="$withval"
2886 if test "$use_c_compiler" = ""; then
2887 host_c_compilers="$default_c_compilers"
2889 host_c_compilers="$use_c_compiler"
2892 default_cxx_compilers="g++ clang++ c++"
2894 # Check whether --with-cxx-compiler was given.
2895 if test "${with_cxx_compiler+set}" = set; then :
2896 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2901 if test "$use_cxx_compiler" = ""; then
2902 host_cxx_compilers="$default_cxx_compilers"
2904 host_cxx_compilers="$use_cxx_compiler"
2908 # The first step is to find the host binaries.
2909 # Check for a compiler.
2910 # Due to a bug in autoconf check for c++ compiler first.
2911 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2913 ac_cpp='$CXXCPP $CPPFLAGS'
2914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2917 if test -z "$CXX"; then
2918 if test -n "$CCC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in ${host_cxx_compilers}
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CXX+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$CXX"; then
2932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 if test -n "$CXX"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2954 $as_echo "$CXX" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2961 test -n "$CXX" && break
2964 if test -z "$CXX"; then
2966 for ac_prog in ${host_cxx_compilers}
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$ac_ct_CXX"; then
2976 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CXX="$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2996 if test -n "$ac_ct_CXX"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2998 $as_echo "$ac_ct_CXX" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3005 test -n "$ac_ct_CXX" && break
3008 if test "x$ac_ct_CXX" = x; then
3011 case $cross_compiling:$ac_tool_warned in
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3027 for ac_option in --version -v -V -qversion; do
3028 { { ac_try="$ac_compiler $ac_option >&5"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3037 if test -s conftest.err
; then
3039 ... rest of stderr output deleted ...
3040 10q' conftest.err
>conftest.er1
3041 cat conftest.er1
>&5
3043 rm -f conftest.er1 conftest.err
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3059 ac_clean_files_save
=$ac_clean_files
3060 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3061 # Try to create an executable without -o first, disregard a.out.
3062 # It will help us diagnose broken compilers, and finding out an intuition
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3065 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3066 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068 # The possible output files:
3069 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3072 for ac_file
in $ac_files
3075 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3076 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3081 if { { ac_try
="$ac_link_default"
3083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_link_default") 2>&5
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }; then :
3092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3093 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3094 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3095 # so that the user can short-circuit this test for compilers unknown to
3097 for ac_file in $ac_files ''
3099 test -f "$ac_file" || continue
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3104 # We found the default executable, but exeext='' is most
3108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112 # We set ac_cv_exeext here because the later test for it is not
3113 # safe: cross compilers may not add the suffix if given an `-o'
3114 # argument, so we may need to know it at that point already.
3115 # Even if this section looks crufty: it has the advantage of
3122 test "$ac_cv_exeext" = no && ac_cv_exeext=
3127 if test -z "$ac_file"; then :
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's
/^
/|
/' conftest.$ac_ext >&5
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3135 as_fn_error 77 "C++ compiler cannot create executables
3136 See \`config.log
' for more details" "$LINENO" 5; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3142 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144 $as_echo "$ac_file" >&6; }
3145 ac_exeext=$ac_cv_exeext
3147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3148 ac_clean_files=$ac_clean_files_save
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150 $as_echo_n "checking for suffix of executables... " >&6; }
3151 if { { ac_try="$ac_link"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3166 for ac_file
in conftest.exe conftest conftest.
*; do
3167 test -f "$ac_file" ||
continue
3169 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3170 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 rm -f conftest conftest
$ac_cv_exeext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 $as_echo "$ac_cv_exeext" >&6; }
3185 rm -f conftest.
$ac_ext
3186 EXEEXT
=$ac_cv_exeext
3188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3194 FILE *f = fopen ("conftest.out", "w");
3195 return ferror (f) || fclose (f) != 0;
3201 ac_clean_files
="$ac_clean_files conftest.out"
3202 # Check that the compiler produces executables we can run. If not, either
3203 # the compiler is broken, or we cross compile.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205 $as_echo_n "checking whether we are cross compiling... " >&6; }
3206 if test "$cross_compiling" != yes; then
3207 { { ac_try
="$ac_link"
3209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218 if { ac_try='./conftest$ac_cv_exeext'
3219 { { case "(($ac_try" in
3220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3221 *) ac_try_echo
=$ac_try;;
3223 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_try") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; }; then
3231 if test "$cross_compiling" = maybe
; then
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $?
"cannot run C++ compiled programs.
3237 If you meant to cross compile, use \`--host'.
3238 See \`config.log' for more details" "$LINENO" 5; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243 $as_echo "$cross_compiling" >&6; }
3245 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3246 ac_clean_files
=$ac_clean_files_save
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248 $as_echo_n "checking for suffix of object files... " >&6; }
3249 if ${ac_cv_objext+:} false
; then :
3250 $as_echo_n "(cached) " >&6
3252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 rm -f conftest.o conftest.obj
3264 if { { ac_try
="$ac_compile"
3266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compile") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 for ac_file in conftest.o conftest.obj conftest.*; do
3276 test -f "$ac_file" || continue;
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3290 See \
`config.log' for more details" "$LINENO" 5; }
3292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3295 $as_echo "$ac_cv_objext" >&6; }
3296 OBJEXT=$ac_cv_objext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3300 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3317 if ac_fn_cxx_try_compile "$LINENO"; then :
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3328 if test $ac_compiler_gnu = yes; then
3333 ac_test_CXXFLAGS=${CXXFLAGS+set}
3334 ac_save_CXXFLAGS=$CXXFLAGS
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3337 if ${ac_cv_prog_cxx_g+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3341 ac_cxx_werror_flag=yes
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3355 if ac_fn_cxx_try_compile "$LINENO"; then :
3356 ac_cv_prog_cxx_g=yes
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3370 if ac_fn_cxx_try_compile "$LINENO"; then :
3373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3386 if ac_fn_cxx_try_compile "$LINENO"; then :
3387 ac_cv_prog_cxx_g=yes
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3398 if test "$ac_test_CXXFLAGS" = set; then
3399 CXXFLAGS=$ac_save_CXXFLAGS
3400 elif test $ac_cv_prog_cxx_g = yes; then
3401 if test "$GXX" = yes; then
3407 if test "$GXX" = yes; then
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog in ${host_c_compilers}
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$CC" && break
3467 if test -z "$CC"; then
3469 for ac_prog in ${host_c_compilers}
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_CC="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3508 test -n "$ac_ct_CC" && break
3511 if test "x$ac_ct_CC" = x; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3528 See \
`config.log' for more details" "$LINENO" 5; }
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3538 *) ac_try_echo
=$ac_try;;
3540 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544 if test -s conftest.err
; then
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err
>conftest.er1
3548 cat conftest.er1
>&5
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557 if ${ac_cv_c_compiler_gnu+:} false
; then :
3558 $as_echo_n "(cached) " >&6
3560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3574 if ac_fn_c_try_compile
"$LINENO"; then :
3579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3580 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585 if test $ac_compiler_gnu = yes; then
3590 ac_test_CFLAGS
=${CFLAGS+set}
3591 ac_save_CFLAGS
=$CFLAGS
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3594 if ${ac_cv_prog_cc_g+:} false
; then :
3595 $as_echo_n "(cached) " >&6
3597 ac_save_c_werror_flag
=$ac_c_werror_flag
3598 ac_c_werror_flag
=yes
3601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile
"$LINENO"; then :
3616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3627 if ac_fn_c_try_compile
"$LINENO"; then :
3630 ac_c_werror_flag
=$ac_save_c_werror_flag
3632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3643 if ac_fn_c_try_compile
"$LINENO"; then :
3646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3651 ac_c_werror_flag
=$ac_save_c_werror_flag
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS
=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3664 if test "$GCC" = yes; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672 if ${ac_cv_prog_cc_c89+:} false
; then :
3673 $as_echo_n "(cached) " >&6
3675 ac_cv_prog_cc_c89
=no
3677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3696 s = g (p, va_arg (v,int));
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC
="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile
"$LINENO"; then :
3734 ac_cv_prog_cc_c89
=$ac_arg
3736 rm -f core conftest.err conftest.
$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 rm -f conftest.
$ac_ext
3744 case "x$ac_cv_prog_cc_c89" in
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3752 CC
="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3761 ac_cpp
='$CPP $CPPFLAGS'
3762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3766 aros_host_def_cc
="$CC"
3767 case $ac_cv_prog_cc_stdc in #(
3769 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3773 if ${ac_cv_prog_cc_c99+:} false
; then :
3774 $as_echo_n "(cached) " >&6
3776 ac_cv_prog_cc_c99
=no
3778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3781 #include <stdbool.h>
3786 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3787 #define debug(...) fprintf (stderr, __VA_ARGS__)
3788 #define showlist(...) puts (#__VA_ARGS__)
3789 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3791 test_varargs_macros (void)
3796 debug ("X = %d\n", x);
3797 showlist (The first, second, and third items.);
3798 report (x>y, "x is %d but y is %d", x, y);
3801 // Check long long types.
3802 #define BIG64 18446744073709551615ull
3803 #define BIG32 4294967295ul
3804 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3806 your preprocessor is broken;
3810 your preprocessor is broken;
3812 static long long int bignum = -9223372036854775807LL;
3813 static unsigned long long int ubignum = BIG64;
3815 struct incomplete_array
3823 const wchar_t *name;
3827 typedef const char *ccp;
3830 test_restrict (ccp restrict text)
3832 // See if C++-style comments work.
3833 // Iterate through items via the restricted pointer.
3834 // Also check for declarations in for loops.
3835 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3840 // Check varargs and va_copy.
3842 test_varargs (const char *format, ...)
3845 va_start (args, format);
3847 va_copy (args_copy, args);
3858 str = va_arg (args_copy, const char *);
3861 number = va_arg (args_copy, int);
3864 fnumber = va_arg (args_copy, double);
3879 _Bool success = false;
3882 if (test_restrict ("String literal") == 0)
3884 char *restrict newvar = "Another string";
3887 test_varargs ("s, d' f .", "string", 65, 34.234);
3888 test_varargs_macros ();
3890 // Check flexible array members.
3891 struct incomplete_array *ia =
3892 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3894 for (int i = 0; i < ia->datasize; ++i)
3895 ia->data[i] = i * 1.234;
3897 // Check named initializers.
3898 struct named_init ni = {
3900 .name = L"Test wide string",
3901 .average = 543.34343,
3906 int dynamic_array[ni.number];
3907 dynamic_array[ni.number - 1] = 543;
3909 // work around unused variable warnings
3910 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3911 || dynamic_array[ni.number - 1] != 543);
3917 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3919 CC
="$ac_save_CC $ac_arg"
3920 if ac_fn_c_try_compile
"$LINENO"; then :
3921 ac_cv_prog_cc_c99
=$ac_arg
3923 rm -f core conftest.err conftest.
$ac_objext
3924 test "x$ac_cv_prog_cc_c99" != "xno" && break
3926 rm -f conftest.
$ac_ext
3931 case "x$ac_cv_prog_cc_c99" in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3934 $as_echo "none needed" >&6; } ;;
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3937 $as_echo "unsupported" >&6; } ;;
3939 CC
="$CC $ac_cv_prog_cc_c99"
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3941 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3943 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3944 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948 if ${ac_cv_prog_cc_c89+:} false
; then :
3949 $as_echo_n "(cached) " >&6
3951 ac_cv_prog_cc_c89
=no
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3959 struct buf { int x; };
3960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961 static char *e (p, i)
3967 static char *f (char * (*g) (char **, int), char **p, ...)
3972 s = g (p, va_arg (v,int));
3977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3978 function prototypes and stuff, but not '\xHH' hex character constants.
3979 These don't provoke an error unfortunately, instead are silently treated
3980 as 'x'. The following induces an error, until -std is added to get
3981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3982 array size at least. It's necessary to write '\x00'==0 to get something
3983 that's true only with -std. */
3984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987 inside strings and character constants. */
3989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991 int test (int i, double x);
3992 struct s1 {int (*f) (int a);};
3993 struct s2 {int (*f) (double a);};
3994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4005 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 CC
="$ac_save_CC $ac_arg"
4009 if ac_fn_c_try_compile
"$LINENO"; then :
4010 ac_cv_prog_cc_c89
=$ac_arg
4012 rm -f core conftest.err conftest.
$ac_objext
4013 test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 rm -f conftest.
$ac_ext
4020 case "x$ac_cv_prog_cc_c89" in
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;;
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026 $as_echo "unsupported" >&6; } ;;
4028 CC
="$CC $ac_cv_prog_cc_c89"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4033 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4035 ac_cv_prog_cc_stdc
=no
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4042 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4043 if ${ac_cv_prog_cc_stdc+:} false
; then :
4044 $as_echo_n "(cached) " >&6
4047 case $ac_cv_prog_cc_stdc in #(
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4050 $as_echo "unsupported" >&6; } ;; #(
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;; #(
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4056 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4060 ac_cpp
='$CPP $CPPFLAGS'
4061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4070 if test -z "$CPP"; then
4071 if ${ac_cv_prog_CPP+:} false
; then :
4072 $as_echo_n "(cached) " >&6
4074 # Double quotes because CPP needs to be expanded
4075 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078 for ac_c_preproc_warn_flag
in '' yes
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4089 # include <limits.h>
4091 # include <assert.h>
4095 if ac_fn_c_try_cpp
"$LINENO"; then :
4098 # Broken: fails on valid input.
4101 rm -f conftest.err conftest.i conftest.
$ac_ext
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ac_nonexistent.h>
4109 if ac_fn_c_try_cpp
"$LINENO"; then :
4110 # Broken: success on invalid input.
4113 # Passes both tests.
4117 rm -f conftest.err conftest.i conftest.
$ac_ext
4120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121 rm -f conftest.i conftest.err conftest.
$ac_ext
4122 if $ac_preproc_ok; then :
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4135 $as_echo "$CPP" >&6; }
4137 for ac_c_preproc_warn_flag
in '' yes
4139 # Use a header file that comes with gcc, so configuring glibc
4140 # with a fresh cross-compiler works.
4141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 # <limits.h> exists even on freestanding compilers.
4143 # On the NeXT, cc -E runs the code through the compiler's parser,
4144 # not just through cpp. "Syntax error" is here to catch this case.
4145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4148 # include <limits.h>
4150 # include <assert.h>
4154 if ac_fn_c_try_cpp
"$LINENO"; then :
4157 # Broken: fails on valid input.
4160 rm -f conftest.err conftest.i conftest.
$ac_ext
4162 # OK, works on sane cases. Now check whether nonexistent headers
4163 # can be detected and how.
4164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <ac_nonexistent.h>
4168 if ac_fn_c_try_cpp
"$LINENO"; then :
4169 # Broken: success on invalid input.
4172 # Passes both tests.
4176 rm -f conftest.err conftest.i conftest.
$ac_ext
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.i conftest.err conftest.
$ac_ext
4181 if $ac_preproc_ok; then :
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details" "$LINENO" 5; }
4191 ac_cpp
='$CPP $CPPFLAGS'
4192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4197 # Check for a compatible awk
4198 for ac_prog
in gawk nawk
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy
$ac_prog; ac_word
=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_AWK+:} false
; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$AWK"; then
4208 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir
=.
4215 for ac_exec_ext
in '' $ac_executable_extensions; do
4216 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_AWK
="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 if test -n "$AWK"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4230 $as_echo "$AWK" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$AWK" && break
4241 if test "$AWK" = ""; then
4244 if test "$AWK" = "no"; then
4247 if test "$req_avail" = "no"; then
4248 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4250 # Extract the first word of "mmake", so it can be a program name with args.
4251 set dummy mmake
; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_MMAKE+:} false
; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$MMAKE"; then
4258 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_MMAKE
="mmake "
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 MMAKE
=$ac_cv_prog_MMAKE
4278 if test -n "$MMAKE"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4280 $as_echo "$MMAKE" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4288 # Perform some default variable assignments. Note all of these will be
4289 # Regenerated from the script, so there is no need to cache them.
4291 aros_build_host
=$host
4292 aros_host_cpp
="$CPP"
4294 aros_host_cxx
="$CXX"
4295 if test "$GCC" = "yes"; then
4296 aros_gcc_ld
=`$CC -print-prog-name=ld`
4297 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4298 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_path_aros_host_ld+:} false
; then :
4302 $as_echo_n "(cached) " >&6
4304 case $aros_host_ld in
4306 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4310 for as_dir
in `dirname $aros_gcc_ld`
4313 test -z "$as_dir" && as_dir
=.
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 aros_host_ld
=$ac_cv_path_aros_host_ld
4328 if test -n "$aros_host_ld"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4330 $as_echo "$aros_host_ld" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4338 if test "$aros_host_ld" = ""; then
4339 # Extract the first word of "ld", so it can be a program name with args.
4340 set dummy ld
; ac_word
=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_path_aros_host_ld+:} false
; then :
4344 $as_echo_n "(cached) " >&6
4346 case $aros_host_ld in
4348 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir
=.
4356 for ac_exec_ext
in '' $ac_executable_extensions; do
4357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 aros_host_ld
=$ac_cv_path_aros_host_ld
4370 if test -n "$aros_host_ld"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4372 $as_echo "$aros_host_ld" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4381 if test "$aros_host_ld" = ""; then
4384 if test "$aros_host_ld" = "no"; then
4387 if test "$req_avail" = "no"; then
4388 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4390 aros_host_make
="make"
4391 aros_host_cflags
="$CFLAGS"
4392 aros_host_cxxflags
="$CXXFLAGS"
4393 aros_host_cppflags
="$CPPFLAGS"
4394 aros_host_ldflags
="$LDFLAGS"
4395 aros_host_debug
="-g -O0"
4396 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4397 aros_host_mkargs
="--no-print-directory"
4398 aros_host_exe_suffix
="$EXEEXT"
4399 aros_host_lib_suffix
=""
4401 # Ignore all compliance, AROS ROMs = 0
4402 # KickStart v1.0 = 30
4403 # KickStart v1.3 = 34
4404 # KickStart v2.0 = 37
4405 # KickStart v3.0 = 39
4406 # KickStart v3.1 = 40
4408 aros_amigaos_compliance
=0
4410 for ac_prog
in aclocal aclocal19 aclocal-1.9
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy
$ac_prog; ac_word
=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4417 $as_echo_n "(cached) " >&6
4419 if test -n "$aros_host_aclocal"; then
4420 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_exec_ext
in '' $ac_executable_extensions; do
4428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4440 if test -n "$aros_host_aclocal"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4442 $as_echo "$aros_host_aclocal" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4449 test -n "$aros_host_aclocal" && break
4452 for ac_prog
in autoconf autoconf259 autoconf253
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy
$ac_prog; ac_word
=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$aros_host_autoconf"; then
4462 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4482 if test -n "$aros_host_autoconf"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4484 $as_echo "$aros_host_autoconf" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$aros_host_autoconf" && break
4494 for ac_prog
in autoheader autoheader259 autoheader253
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy
$ac_prog; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$aros_host_autoheader"; then
4504 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4524 if test -n "$aros_host_autoheader"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4526 $as_echo "$aros_host_autoheader" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_autoheader" && break
4536 for ac_prog
in automake automake19 automake-1.9
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy
$ac_prog; ac_word
=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$aros_host_automake"; then
4546 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_aros_host_automake
="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 aros_host_automake
=$ac_cv_prog_aros_host_automake
4566 if test -n "$aros_host_automake"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4568 $as_echo "$aros_host_automake" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_automake" && break
4580 if test "$aros_host_aclocal" = ""; then
4583 if test "$aros_host_aclocal" = "no"; then
4586 if test "$req_avail" = "no"; then
4587 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4590 if test "$aros_host_automake" = ""; then
4593 if test "$aros_host_automake" = "no"; then
4596 if test "$req_avail" = "no"; then
4597 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4600 case "$aros_host_cc" in
4602 aros_host_cc_pipe
=""
4605 aros_host_cc_pipe
="-pipe"
4608 aros_host_cc_pipe
=""
4611 aros_host_cc_pipe
=""
4615 aros_kernel_cc_includes
=""
4616 aros_target_cc_includes
=""
4619 # ----------------------------------------------------------------------------------------
4620 # Host-specific defaults
4622 # This is the main host configuration section. It is where the host
4623 # can change the values of any variables it needs to change. We do
4624 # not look at anything that compiles to the target yet, we'll get
4629 aros_host_arch
="aros"
4630 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4633 aros_host_cpu
="i386"
4636 aros_host_cpu
="x86_64"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4643 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4644 aros_host_cpu
="$host_cpu"
4650 aros_host_arch
="linux"
4651 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4652 android_build_os
="linux-x86"
4653 android_tool
="android"
4654 default_android_sdk
="/opt/android-sdk-linux_x86"
4657 aros_host_cpu
="i386"
4660 aros_host_cpu
="x86_64"
4663 aros_host_cpu
="m68k"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4673 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4674 aros_host_cpu
="$host_cpu"
4680 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4681 aros_host_make
="gmake"
4682 aros_host_arch
="freebsd"
4683 aros_host_cpu
="i386"
4685 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4689 aros_object_format
="elf_i386"
4693 aros_object_format
="elf_i386_fbsd"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4701 $as_echo_n "checking for macOS SDK files... " >&6; }
4702 LOC
=$
( xcode-select
-p )
4703 if test $?
!= 0; then :
4704 as_fn_error $?
"XCode incorrectly configured!
4705 please run 'xcode-select --install' before
4706 re-running configure" "$LINENO" 5
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4709 $as_echo "$LOC" >&6; }
4710 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4711 aros_host_arch
="darwin"
4713 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4714 android_build_os
="darwin-x86"
4715 android_tool
="android"
4716 default_android_sdk
="/android-sdk-mac_x86"
4719 aros_host_cpu
="i386"
4722 aros_host_cpu
="x86_64"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4729 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4730 aros_host_cpu
="$host_cpu"
4734 aros_host_ldflags
="$aros_host_ldflags -liconv"
4739 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4740 aros_host_make
="gmake"
4741 aros_host_arch
="dragonfly"
4744 aros_host_cpu
="i386"
4747 aros_host_cpu
="x86_64"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4751 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4752 aros_host_cpu
="$host_cpu"
4758 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4759 aros_host_make
="gmake"
4760 aros_host_arch
="netbsd"
4763 aros_host_cpu
="i386"
4766 aros_host_cpu
="m68k"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4770 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4771 aros_host_cpu
="$host_cpu"
4774 aros_host_lib_suffix
=".0.0"
4778 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4779 aros_host_make
="gmake"
4780 aros_host_arch
="openbsd"
4783 aros_host_cpu
="i386"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4787 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4788 aros_host_cpu
="$host_cpu"
4794 aros_host_arch
="solaris"
4795 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4798 aros_host_cpu
="i386"
4801 aros_host_cpu
="sparc"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4806 aros_host_cpu
="$host_cpu"
4812 aros_host_arch
="morphos"
4818 aros_host_arch
="amiga"
4824 TOUCH
="/gg/bin/touch"
4827 aros_host_cpu
="m68k"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4834 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4835 aros_host_cpu
="$host_cpu"
4841 aros_host_arch
="cygwin"
4842 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4844 android_build_os
="windows"
4845 android_tool
="android.bat"
4846 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4850 aros_host_cpu
="i386"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu
="$host_cpu"
4861 aros_host_arch
="mingw32"
4862 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4864 android_build_os
="windows"
4865 android_tool
="android.bat"
4866 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4868 libpng_libextra
="-lws2_32"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4874 $as_echo_n "checking for Windows native gcc target... " >&6; }
4875 host_cpu
=`gcc -dumpmachine`
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4877 $as_echo "$host_cpu" >&6; }
4884 aros_host_cpu
="i386"
4888 aros_host_cpu
="i386"
4892 aros_host_cpu
="x86_64"
4893 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4898 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4899 aros_host_cpu
="$host_cpu"
4904 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4908 # Extract the first word of "ar", so it can be a program name with args.
4909 set dummy
ar; ac_word
=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4913 $as_echo_n "(cached) " >&6
4915 if test -n "$aros_host_ar"; then
4916 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir
=.
4923 for ac_exec_ext
in '' $ac_executable_extensions; do
4924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_aros_host_ar
="ar cr"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 aros_host_ar
=$ac_cv_prog_aros_host_ar
4936 if test -n "$aros_host_ar"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4938 $as_echo "$aros_host_ar" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test "$aros_host_ar" = ""; then
4949 if test "$aros_host_ar" = "no"; then
4952 if test "$req_avail" = "no"; then
4953 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4955 # Extract the first word of "ranlib", so it can be a program name with args.
4956 set dummy ranlib
; ac_word
=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$aros_host_ranlib"; then
4963 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir
=.
4970 for ac_exec_ext
in '' $ac_executable_extensions; do
4971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_aros_host_ranlib
="ranlib "
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4983 if test -n "$aros_host_ranlib"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4985 $as_echo "$aros_host_ranlib" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4993 if test "$aros_host_ranlib" = ""; then
4996 if test "$aros_host_ranlib" = "no"; then
4999 if test "$req_avail" = "no"; then
5000 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "strip", so it can be a program name with args.
5003 set dummy strip
; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$aros_host_strip"; then
5010 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_aros_host_strip
="strip "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 aros_host_strip
=$ac_cv_prog_aros_host_strip
5030 if test -n "$aros_host_strip"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5032 $as_echo "$aros_host_strip" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test "$aros_host_strip" = ""; then
5043 if test "$aros_host_strip" = "no"; then
5046 if test "$req_avail" = "no"; then
5047 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5050 # Extract the first word of "rm", so it can be a program name with args.
5051 set dummy
rm; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_RM+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$RM"; then
5058 ac_cv_prog_RM
="$RM" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_RM
="rm -rf"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 if test -n "$RM"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5080 $as_echo "$RM" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test "$RM" = ""; then
5091 if test "$RM" = "no"; then
5094 if test "$req_avail" = "no"; then
5095 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5097 # Extract the first word of "cp", so it can be a program name with args.
5098 set dummy
cp; ac_word
=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_CP+:} false
; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -n "$CP"; then
5105 ac_cv_prog_CP
="$CP" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 if test -n "$CP"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5127 $as_echo "$CP" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test "$CP" = ""; then
5138 if test "$CP" = "no"; then
5141 if test "$req_avail" = "no"; then
5142 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5144 # Extract the first word of "mv", so it can be a program name with args.
5145 set dummy
mv; ac_word
=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_MV+:} false
; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$MV"; then
5152 ac_cv_prog_MV
="$MV" # Let the user override the test.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 if test -n "$MV"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5174 $as_echo "$MV" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5182 if test "$MV" = ""; then
5185 if test "$MV" = "no"; then
5188 if test "$req_avail" = "no"; then
5189 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5191 # Extract the first word of "echo", so it can be a program name with args.
5192 set dummy
echo; ac_word
=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_ECHO+:} false
; then :
5196 $as_echo_n "(cached) " >&6
5198 if test -n "$ECHO"; then
5199 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir
=.
5206 for ac_exec_ext
in '' $ac_executable_extensions; do
5207 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ECHO
="echo "
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 ECHO
=$ac_cv_prog_ECHO
5219 if test -n "$ECHO"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5221 $as_echo "$ECHO" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5229 if test "$ECHO" = ""; then
5232 if test "$ECHO" = "no"; then
5235 if test "$req_avail" = "no"; then
5236 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5238 # Extract the first word of "mkdir", so it can be a program name with args.
5239 set dummy mkdir
; ac_word
=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_MKDIR+:} false
; then :
5243 $as_echo_n "(cached) " >&6
5245 if test -n "$MKDIR"; then
5246 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir
=.
5253 for ac_exec_ext
in '' $ac_executable_extensions; do
5254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_MKDIR
="mkdir -p"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 MKDIR
=$ac_cv_prog_MKDIR
5266 if test -n "$MKDIR"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5268 $as_echo "$MKDIR" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5276 if test "$MKDIR" = ""; then
5279 if test "$MKDIR" = "no"; then
5282 if test "$req_avail" = "no"; then
5283 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5285 # Extract the first word of "touch", so it can be a program name with args.
5286 set dummy
touch; ac_word
=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_TOUCH+:} false
; then :
5290 $as_echo_n "(cached) " >&6
5292 if test -n "$TOUCH"; then
5293 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir
=.
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_TOUCH
="touch "
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 TOUCH
=$ac_cv_prog_TOUCH
5313 if test -n "$TOUCH"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5315 $as_echo "$TOUCH" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5323 if test "$TOUCH" = ""; then
5326 if test "$TOUCH" = "no"; then
5329 if test "$req_avail" = "no"; then
5330 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5332 # Extract the first word of "sort", so it can be a program name with args.
5333 set dummy
sort; ac_word
=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_SORT+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 if test -n "$SORT"; then
5340 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir
=.
5347 for ac_exec_ext
in '' $ac_executable_extensions; do
5348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_SORT
="sort "
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 SORT
=$ac_cv_prog_SORT
5360 if test -n "$SORT"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5362 $as_echo "$SORT" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5370 if test "$SORT" = ""; then
5373 if test "$SORT" = "no"; then
5376 if test "$req_avail" = "no"; then
5377 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5379 # Extract the first word of "uniq", so it can be a program name with args.
5380 set dummy
uniq; ac_word
=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_UNIQ+:} false
; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$UNIQ"; then
5387 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_UNIQ
="uniq "
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 UNIQ
=$ac_cv_prog_UNIQ
5407 if test -n "$UNIQ"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5409 $as_echo "$UNIQ" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5417 if test "$UNIQ" = ""; then
5420 if test "$UNIQ" = "no"; then
5423 if test "$req_avail" = "no"; then
5424 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5426 # Extract the first word of "true", so it can be a program name with args.
5427 set dummy true
; ac_word
=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_NOP+:} false
; then :
5431 $as_echo_n "(cached) " >&6
5433 if test -n "$NOP"; then
5434 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir
=.
5441 for ac_exec_ext
in '' $ac_executable_extensions; do
5442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_NOP
="true "
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 if test -n "$NOP"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5456 $as_echo "$NOP" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5464 if test "$NOP" = ""; then
5467 if test "$NOP" = "no"; then
5470 if test "$req_avail" = "no"; then
5471 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5473 # Extract the first word of "cat", so it can be a program name with args.
5474 set dummy
cat; ac_word
=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_CAT+:} false
; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$CAT"; then
5481 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir
=.
5488 for ac_exec_ext
in '' $ac_executable_extensions; do
5489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_CAT
="cat "
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 if test -n "$CAT"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5503 $as_echo "$CAT" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test "$CAT" = ""; then
5514 if test "$CAT" = "no"; then
5517 if test "$req_avail" = "no"; then
5518 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5520 # Extract the first word of "bison", so it can be a program name with args.
5521 set dummy bison
; ac_word
=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_BISON+:} false
; then :
5525 $as_echo_n "(cached) " >&6
5527 if test -n "$BISON"; then
5528 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir
=.
5535 for ac_exec_ext
in '' $ac_executable_extensions; do
5536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_BISON
="bison "
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 BISON
=$ac_cv_prog_BISON
5548 if test -n "$BISON"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5550 $as_echo "$BISON" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5558 if test "$BISON" = ""; then
5561 if test "$BISON" = "no"; then
5564 if test "$req_avail" = "no"; then
5565 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5567 # Extract the first word of "flex", so it can be a program name with args.
5568 set dummy flex
; ac_word
=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_FLEX+:} false
; then :
5572 $as_echo_n "(cached) " >&6
5574 if test -n "$FLEX"; then
5575 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir
=.
5582 for ac_exec_ext
in '' $ac_executable_extensions; do
5583 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_FLEX
="flex "
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 FLEX
=$ac_cv_prog_FLEX
5595 if test -n "$FLEX"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5597 $as_echo "$FLEX" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5605 if test "$FLEX" = ""; then
5608 if test "$FLEX" = "no"; then
5611 if test "$req_avail" = "no"; then
5612 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5614 # Extract the first word of "pngtopnm", so it can be a program name with args.
5615 set dummy pngtopnm
; ac_word
=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5619 $as_echo_n "(cached) " >&6
5621 if test -n "$PNGTOPNM"; then
5622 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir
=.
5629 for ac_exec_ext
in '' $ac_executable_extensions; do
5630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_PNGTOPNM
="pngtopnm "
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5642 if test -n "$PNGTOPNM"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5644 $as_echo "$PNGTOPNM" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5652 if test "$PNGTOPNM" = ""; then
5655 if test "$PNGTOPNM" = "no"; then
5658 if test "$req_avail" = "no"; then
5659 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5661 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5662 set dummy ppmtoilbm
; ac_word
=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5666 $as_echo_n "(cached) " >&6
5668 if test -n "$PPMTOILBM"; then
5669 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir
=.
5676 for ac_exec_ext
in '' $ac_executable_extensions; do
5677 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5689 if test -n "$PPMTOILBM"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5691 $as_echo "$PPMTOILBM" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5699 if test "$PPMTOILBM" = ""; then
5702 if test "$PPMTOILBM" = "no"; then
5705 if test "$req_avail" = "no"; then
5706 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5708 # Extract the first word of "sed", so it can be a program name with args.
5709 set dummy
sed; ac_word
=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_SED+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$SED"; then
5716 ac_cv_prog_SED
="$SED" # Let the user override the test.
5718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir
=.
5723 for ac_exec_ext
in '' $ac_executable_extensions; do
5724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_SED
="sed "
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 if test -n "$SED"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5738 $as_echo "$SED" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 if test "$SED" = ""; then
5749 if test "$SED" = "no"; then
5752 if test "$req_avail" = "no"; then
5753 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5755 # Extract the first word of "chmod", so it can be a program name with args.
5756 set dummy
chmod; ac_word
=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_CHMOD+:} false
; then :
5760 $as_echo_n "(cached) " >&6
5762 if test -n "$CHMOD"; then
5763 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir
=.
5770 for ac_exec_ext
in '' $ac_executable_extensions; do
5771 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_CHMOD
="chmod "
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 CHMOD
=$ac_cv_prog_CHMOD
5783 if test -n "$CHMOD"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5785 $as_echo "$CHMOD" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5793 if test "$CHMOD" = ""; then
5796 if test "$CHMOD" = "no"; then
5799 if test "$req_avail" = "no"; then
5800 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5802 # Extract the first word of "patch", so it can be a program name with args.
5803 set dummy
patch; ac_word
=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_PATCH+:} false
; then :
5807 $as_echo_n "(cached) " >&6
5809 if test -n "$PATCH"; then
5810 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir
=.
5817 for ac_exec_ext
in '' $ac_executable_extensions; do
5818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_PATCH
="patch "
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 PATCH
=$ac_cv_prog_PATCH
5830 if test -n "$PATCH"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5832 $as_echo "$PATCH" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5840 if test "$PATCH" = ""; then
5843 if test "$PATCH" = "no"; then
5846 if test "$req_avail" = "no"; then
5847 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5856 if test -n "$PYTHON"; then
5857 # If the user set $PYTHON, use it and don't search something else.
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5859 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5861 # split strings by '.' and convert to numeric. Append some zeros
5862 # because we need at least 4 digits for the hex conversion.
5863 # map returns an iterator in Python 3.0 and a list in 2.x
5864 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5866 # xrange is not present in Python 3.0 and range returns an iterator
5867 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5868 sys.exit(sys.hexversion < minverhex)"
5869 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5870 ($PYTHON -c "$prog") >&5 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; then :
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875 $as_echo "yes" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5881 am_display_PYTHON
=$PYTHON
5883 # Otherwise, try each interpreter until we find one that satisfies
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5886 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5887 if ${am_cv_pathless_PYTHON+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5891 for am_cv_pathless_PYTHON
in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none
; do
5892 test "$am_cv_pathless_PYTHON" = none
&& break
5894 # split strings by '.' and convert to numeric. Append some zeros
5895 # because we need at least 4 digits for the hex conversion.
5896 # map returns an iterator in Python 3.0 and a list in 2.x
5897 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5899 # xrange is not present in Python 3.0 and range returns an iterator
5900 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5901 sys.exit(sys.hexversion < minverhex)"
5902 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5903 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; then :
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5912 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5913 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5914 if test "$am_cv_pathless_PYTHON" = none
; then
5917 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5918 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_path_PYTHON+:} false
; then :
5922 $as_echo_n "(cached) " >&6
5926 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir
=.
5934 for ac_exec_ext
in '' $ac_executable_extensions; do
5935 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 PYTHON
=$ac_cv_path_PYTHON
5948 if test -n "$PYTHON"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5950 $as_echo "$PYTHON" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5958 am_display_PYTHON
=$am_cv_pathless_PYTHON
5962 if test "$PYTHON" = :; then
5963 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5968 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5969 if ${am_cv_python_version+:} false
; then :
5970 $as_echo_n "(cached) " >&6
5972 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5975 $as_echo "$am_cv_python_version" >&6; }
5976 PYTHON_VERSION
=$am_cv_python_version
5980 PYTHON_PREFIX
='${prefix}'
5982 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5987 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5988 if ${am_cv_python_platform+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5994 $as_echo "$am_cv_python_platform" >&6; }
5995 PYTHON_PLATFORM
=$am_cv_python_platform
5998 # Just factor out some code duplication.
5999 am_python_setup_sysconfig
="\
6001 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6002 # with python 3.x. See automake bug#10227.
6006 can_use_sysconfig = 0
6008 can_use_sysconfig = 1
6009 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6010 # <https://github.com/pypa/virtualenv/issues/118>
6012 from platform import python_implementation
6013 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6014 can_use_sysconfig = 0
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6020 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6021 if ${am_cv_python_pythondir+:} false
; then :
6022 $as_echo_n "(cached) " >&6
6024 if test "x$prefix" = xNONE
6026 am_py_prefix
=$ac_default_prefix
6028 am_py_prefix
=$prefix
6030 am_cv_python_pythondir
=`$PYTHON -c "
6031 $am_python_setup_sysconfig
6032 if can_use_sysconfig:
6033 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6035 from distutils import sysconfig
6036 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6037 sys.stdout.write(sitedir)"`
6038 case $am_cv_python_pythondir in
6040 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6041 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6044 case $am_py_prefix in
6047 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6055 $as_echo "$am_cv_python_pythondir" >&6; }
6056 pythondir
=$am_cv_python_pythondir
6060 pkgpythondir
=\
${pythondir}/$PACKAGE
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6064 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6065 if ${am_cv_python_pyexecdir+:} false
; then :
6066 $as_echo_n "(cached) " >&6
6068 if test "x$exec_prefix" = xNONE
6070 am_py_exec_prefix
=$am_py_prefix
6072 am_py_exec_prefix
=$exec_prefix
6074 am_cv_python_pyexecdir
=`$PYTHON -c "
6075 $am_python_setup_sysconfig
6076 if can_use_sysconfig:
6077 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6079 from distutils import sysconfig
6080 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6081 sys.stdout.write(sitedir)"`
6082 case $am_cv_python_pyexecdir in
6083 $am_py_exec_prefix*)
6084 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6085 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6088 case $am_py_exec_prefix in
6091 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6099 $as_echo "$am_cv_python_pyexecdir" >&6; }
6100 pyexecdir
=$am_cv_python_pyexecdir
6104 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6112 # Check whether --enable-libpng-config was given.
6113 if test "${enable_libpng_config+set}" = set; then :
6114 enableval
=$enable_libpng_config;
6117 if test "$enable_libpng_config" != "no"; then
6118 # Extract the first word of "libpng-config", so it can be a program name with args.
6119 set dummy libpng-config
; ac_word
=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$arosconfig_use_libpngconfig"; then
6126 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir
=.
6133 for ac_exec_ext
in '' $ac_executable_extensions; do
6134 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6146 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6147 if test -n "$arosconfig_use_libpngconfig"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6149 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test "$arosconfig_use_libpngconfig" = "yes"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6159 $as_echo_n "checking libpng-config library... " >&6; }
6160 libpng_incdir
="`libpng-config --cflags`"
6161 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6162 libpng
="`libpng-config --libs`"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6164 $as_echo "$libpng" >&6; }
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6168 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6169 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6170 $as_echo_n "(cached) " >&6
6172 ac_check_lib_save_LIBS
=$LIBS
6174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6183 char png_read_png ();
6187 return png_read_png ();
6192 if ac_fn_c_try_link
"$LINENO"; then :
6193 ac_cv_lib_png_png_read_png
=yes
6195 ac_cv_lib_png_png_read_png
=no
6197 rm -f core conftest.err conftest.
$ac_objext \
6198 conftest
$ac_exeext conftest.
$ac_ext
6199 LIBS
=$ac_check_lib_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6202 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6203 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6209 if test "$libpng_libextra" != ""; then
6210 if test "$libpng" != "no"; then
6211 libpng_libextra
="$libpng_libextra $libpng"
6216 if test "$libpng" = ""; then
6219 if test "$libpng" = "no"; then
6222 if test "$req_avail" = "no"; then
6223 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6239 # Check for some includes for the X11 HIDD and the kernel
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6243 if ${ac_cv_path_GREP+:} false
; then :
6244 $as_echo_n "(cached) " >&6
6246 if test -z "$GREP"; then
6247 ac_path_GREP_found
=false
6248 # Loop through the user's path and test for each of PROGNAME-LIST
6249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6250 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6253 test -z "$as_dir" && as_dir
=.
6254 for ac_prog
in grep ggrep
; do
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6257 as_fn_executable_p
"$ac_path_GREP" ||
continue
6258 # Check for GNU ac_path_GREP and select it if it is found.
6259 # Check for GNU $ac_path_GREP
6260 case `"$ac_path_GREP" --version 2>&1` in
6262 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6265 $as_echo_n 0123456789 >"conftest.in"
6268 cat "conftest.in" "conftest.in" >"conftest.tmp"
6269 mv "conftest.tmp" "conftest.in"
6270 cp "conftest.in" "conftest.nl"
6271 $as_echo 'GREP' >> "conftest.nl"
6272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6273 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6274 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6276 # Best one so far, save it but keep looking for a better one
6277 ac_cv_path_GREP
="$ac_path_GREP"
6278 ac_path_GREP_max
=$ac_count
6280 # 10*(2^10) chars as input seems more than enough
6281 test $ac_count -gt 10 && break
6283 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6286 $ac_path_GREP_found && break 3
6291 if test -z "$ac_cv_path_GREP"; then
6292 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6295 ac_cv_path_GREP
=$GREP
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6300 $as_echo "$ac_cv_path_GREP" >&6; }
6301 GREP
="$ac_cv_path_GREP"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6305 $as_echo_n "checking for egrep... " >&6; }
6306 if ${ac_cv_path_EGREP+:} false
; then :
6307 $as_echo_n "(cached) " >&6
6309 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6310 then ac_cv_path_EGREP
="$GREP -E"
6312 if test -z "$EGREP"; then
6313 ac_path_EGREP_found
=false
6314 # Loop through the user's path and test for each of PROGNAME-LIST
6315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6319 test -z "$as_dir" && as_dir
=.
6320 for ac_prog
in egrep; do
6321 for ac_exec_ext
in '' $ac_executable_extensions; do
6322 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6323 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6324 # Check for GNU ac_path_EGREP and select it if it is found.
6325 # Check for GNU $ac_path_EGREP
6326 case `"$ac_path_EGREP" --version 2>&1` in
6328 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6331 $as_echo_n 0123456789 >"conftest.in"
6334 cat "conftest.in" "conftest.in" >"conftest.tmp"
6335 mv "conftest.tmp" "conftest.in"
6336 cp "conftest.in" "conftest.nl"
6337 $as_echo 'EGREP' >> "conftest.nl"
6338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6339 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6340 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6342 # Best one so far, save it but keep looking for a better one
6343 ac_cv_path_EGREP
="$ac_path_EGREP"
6344 ac_path_EGREP_max
=$ac_count
6346 # 10*(2^10) chars as input seems more than enough
6347 test $ac_count -gt 10 && break
6349 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6352 $ac_path_EGREP_found && break 3
6357 if test -z "$ac_cv_path_EGREP"; then
6358 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6361 ac_cv_path_EGREP
=$EGREP
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6367 $as_echo "$ac_cv_path_EGREP" >&6; }
6368 EGREP
="$ac_cv_path_EGREP"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6372 $as_echo_n "checking for ANSI C header files... " >&6; }
6373 if ${ac_cv_header_stdc+:} false
; then :
6374 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6391 if ac_fn_c_try_compile
"$LINENO"; then :
6392 ac_cv_header_stdc
=yes
6394 ac_cv_header_stdc
=no
6396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 if test $ac_cv_header_stdc = yes; then
6399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "memchr" >/dev
/null
2>&1; then :
6409 ac_cv_header_stdc
=no
6415 if test $ac_cv_header_stdc = yes; then
6416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "free" >/dev
/null
2>&1; then :
6426 ac_cv_header_stdc
=no
6432 if test $ac_cv_header_stdc = yes; then
6433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6434 if test "$cross_compiling" = yes; then :
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6441 #if ((' ' & 0x0FF) == 0x020)
6442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6445 # define ISLOWER(c) \
6446 (('a' <= (c) && (c) <= 'i') \
6447 || ('j' <= (c) && (c) <= 'r') \
6448 || ('s' <= (c) && (c) <= 'z'))
6449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6457 for (i = 0; i < 256; i++)
6458 if (XOR (islower (i), ISLOWER (i))
6459 || toupper (i) != TOUPPER (i))
6464 if ac_fn_c_try_run
"$LINENO"; then :
6467 ac_cv_header_stdc
=no
6469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6476 $as_echo "$ac_cv_header_stdc" >&6; }
6477 if test $ac_cv_header_stdc = yes; then
6479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6484 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6485 inttypes.h stdint.h unistd.h
6487 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6490 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6491 cat >>confdefs.h
<<_ACEOF
6492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 for ac_header
in sys
/ipc.h sys
/shm.h \
6501 sys
/mmap.h sys
/mman.h sysexits.h \
6502 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6507 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6508 cat >>confdefs.h
<<_ACEOF
6509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 for ac_header
in sys
/mount.h
6519 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6521 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6522 cat >>confdefs.h
<<_ACEOF
6523 #define HAVE_SYS_MOUNT_H 1
6532 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6533 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6535 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6536 if eval \
${$as_ac_Header+:} false
; then :
6537 $as_echo_n "(cached) " >&6
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <sys/types.h>
6553 if ac_fn_c_try_compile
"$LINENO"; then :
6554 eval "$as_ac_Header=yes"
6556 eval "$as_ac_Header=no"
6558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 eval ac_res
=\$
$as_ac_Header
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6562 $as_echo "$ac_res" >&6; }
6563 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6564 cat >>confdefs.h
<<_ACEOF
6565 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6568 ac_header_dirent
=$ac_hdr; break
6572 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6573 if test $ac_header_dirent = dirent.h
; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6575 $as_echo_n "checking for library containing opendir... " >&6; }
6576 if ${ac_cv_search_opendir+:} false
; then :
6577 $as_echo_n "(cached) " >&6
6579 ac_func_search_save_LIBS
=$LIBS
6580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6583 /* Override any GCC internal prototype to avoid an error.
6584 Use char because int might match the return type of a GCC
6585 builtin and then its argument prototype would still apply. */
6598 for ac_lib
in '' dir
; do
6599 if test -z "$ac_lib"; then
6600 ac_res
="none required"
6603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6605 if ac_fn_c_try_link
"$LINENO"; then :
6606 ac_cv_search_opendir
=$ac_res
6608 rm -f core conftest.err conftest.
$ac_objext \
6610 if ${ac_cv_search_opendir+:} false
; then :
6614 if ${ac_cv_search_opendir+:} false
; then :
6617 ac_cv_search_opendir
=no
6620 LIBS
=$ac_func_search_save_LIBS
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6623 $as_echo "$ac_cv_search_opendir" >&6; }
6624 ac_res
=$ac_cv_search_opendir
6625 if test "$ac_res" != no
; then :
6626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6632 $as_echo_n "checking for library containing opendir... " >&6; }
6633 if ${ac_cv_search_opendir+:} false
; then :
6634 $as_echo_n "(cached) " >&6
6636 ac_func_search_save_LIBS
=$LIBS
6637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6640 /* Override any GCC internal prototype to avoid an error.
6641 Use char because int might match the return type of a GCC
6642 builtin and then its argument prototype would still apply. */
6655 for ac_lib
in '' x
; do
6656 if test -z "$ac_lib"; then
6657 ac_res
="none required"
6660 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6662 if ac_fn_c_try_link
"$LINENO"; then :
6663 ac_cv_search_opendir
=$ac_res
6665 rm -f core conftest.err conftest.
$ac_objext \
6667 if ${ac_cv_search_opendir+:} false
; then :
6671 if ${ac_cv_search_opendir+:} false
; then :
6674 ac_cv_search_opendir
=no
6677 LIBS
=$ac_func_search_save_LIBS
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6680 $as_echo "$ac_cv_search_opendir" >&6; }
6681 ac_res
=$ac_cv_search_opendir
6682 if test "$ac_res" != no
; then :
6683 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6690 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6691 if ${ac_cv_header_stat_broken+:} false
; then :
6692 $as_echo_n "(cached) " >&6
6694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <sys/types.h>
6697 #include <sys/stat.h>
6699 #if defined S_ISBLK && defined S_IFDIR
6700 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6703 #if defined S_ISBLK && defined S_IFCHR
6704 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6707 #if defined S_ISLNK && defined S_IFREG
6708 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6711 #if defined S_ISSOCK && defined S_IFREG
6712 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6716 if ac_fn_c_try_compile
"$LINENO"; then :
6717 ac_cv_header_stat_broken
=no
6719 ac_cv_header_stat_broken
=yes
6721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6724 $as_echo "$ac_cv_header_stat_broken" >&6; }
6725 if test $ac_cv_header_stat_broken = yes; then
6727 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6732 $as_echo_n "checking for ANSI C header files... " >&6; }
6733 if ${ac_cv_header_stdc+:} false
; then :
6734 $as_echo_n "(cached) " >&6
6736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6751 if ac_fn_c_try_compile
"$LINENO"; then :
6752 ac_cv_header_stdc
=yes
6754 ac_cv_header_stdc
=no
6756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 if test $ac_cv_header_stdc = yes; then
6759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "memchr" >/dev
/null
2>&1; then :
6769 ac_cv_header_stdc
=no
6775 if test $ac_cv_header_stdc = yes; then
6776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783 $EGREP "free" >/dev
/null
2>&1; then :
6786 ac_cv_header_stdc
=no
6792 if test $ac_cv_header_stdc = yes; then
6793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6794 if test "$cross_compiling" = yes; then :
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6801 #if ((' ' & 0x0FF) == 0x020)
6802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6805 # define ISLOWER(c) \
6806 (('a' <= (c) && (c) <= 'i') \
6807 || ('j' <= (c) && (c) <= 'r') \
6808 || ('s' <= (c) && (c) <= 'z'))
6809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6817 for (i = 0; i < 256; i++)
6818 if (XOR (islower (i), ISLOWER (i))
6819 || toupper (i) != TOUPPER (i))
6824 if ac_fn_c_try_run
"$LINENO"; then :
6827 ac_cv_header_stdc
=no
6829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6836 $as_echo "$ac_cv_header_stdc" >&6; }
6837 if test $ac_cv_header_stdc = yes; then
6839 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6844 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6845 if ${ac_cv_header_sys_wait_h+:} false
; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <sys/types.h>
6851 #include <sys/wait.h>
6853 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6856 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6864 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6869 if ac_fn_c_try_compile
"$LINENO"; then :
6870 ac_cv_header_sys_wait_h
=yes
6872 ac_cv_header_sys_wait_h
=no
6874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6877 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6878 if test $ac_cv_header_sys_wait_h = yes; then
6880 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6885 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6886 if ${ac_cv_header_time+:} false
; then :
6887 $as_echo_n "(cached) " >&6
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <sys/types.h>
6892 #include <sys/time.h>
6898 if ((struct tm *) 0)
6904 if ac_fn_c_try_compile
"$LINENO"; then :
6905 ac_cv_header_time
=yes
6907 ac_cv_header_time
=no
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6912 $as_echo "$ac_cv_header_time" >&6; }
6913 if test $ac_cv_header_time = yes; then
6915 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6919 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6920 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6922 cat >>confdefs.h
<<_ACEOF
6923 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6927 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6932 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6933 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6935 cat >>confdefs.h
<<_ACEOF
6936 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6940 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6943 case " $LIBOBJS " in
6944 *" fileblocks.$ac_objext "* ) ;;
6945 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6952 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6953 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6955 cat >>confdefs.h
<<_ACEOF
6956 #define HAVE_STRUCT_STAT_ST_RDEV 1
6960 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6966 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6967 if ${ac_cv_struct_tm+:} false
; then :
6968 $as_echo_n "(cached) " >&6
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6979 int *p = &tm.tm_sec;
6985 if ac_fn_c_try_compile
"$LINENO"; then :
6986 ac_cv_struct_tm
=time.h
6988 ac_cv_struct_tm
=sys
/time.h
6990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6993 $as_echo "$ac_cv_struct_tm" >&6; }
6994 if test $ac_cv_struct_tm = sys
/time.h
; then
6996 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7000 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7001 #include <$ac_cv_struct_tm>
7004 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7006 cat >>confdefs.h
<<_ACEOF
7007 #define HAVE_STRUCT_TM_TM_ZONE 1
7013 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7015 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7018 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7020 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7026 cat >>confdefs.h
<<_ACEOF
7027 #define HAVE_DECL_TZNAME $ac_have_decl
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7031 $as_echo_n "checking for tzname... " >&6; }
7032 if ${ac_cv_var_tzname+:} false
; then :
7033 $as_echo_n "(cached) " >&6
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7038 #if !HAVE_DECL_TZNAME
7039 extern char *tzname[];
7045 return tzname[0][0];
7050 if ac_fn_c_try_link
"$LINENO"; then :
7051 ac_cv_var_tzname
=yes
7055 rm -f core conftest.err conftest.
$ac_objext \
7056 conftest
$ac_exeext conftest.
$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7059 $as_echo "$ac_cv_var_tzname" >&6; }
7060 if test $ac_cv_var_tzname = yes; then
7062 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7067 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7068 if test "x$ac_cv_type_off_t" = xyes
; then :
7072 cat >>confdefs.h
<<_ACEOF
7073 #define off_t long int
7078 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7079 if test "x$ac_cv_type_pid_t" = xyes
; then :
7083 cat >>confdefs.h
<<_ACEOF
7089 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7090 if test "x$ac_cv_type_size_t" = xyes
; then :
7094 cat >>confdefs.h
<<_ACEOF
7095 #define size_t unsigned int
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7101 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7102 if ${ac_cv_type_uid_t+:} false
; then :
7103 $as_echo_n "(cached) " >&6
7105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111 $EGREP "uid_t" >/dev
/null
2>&1; then :
7112 ac_cv_type_uid_t
=yes
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7120 $as_echo "$ac_cv_type_uid_t" >&6; }
7121 if test $ac_cv_type_uid_t = no
; then
7123 $as_echo "#define uid_t int" >>confdefs.h
7126 $as_echo "#define gid_t int" >>confdefs.h
7131 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7132 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7134 cat >>confdefs.h
<<_ACEOF
7135 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7142 # Look for some functions
7143 for ac_func
in getpagesize kqueue statfs statvfs \
7144 clone kse_create rfork_thread thr_create sa_register \
7145 getcontext makecontext setcontext sigaltstack swapcontext
7147 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7148 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7149 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7150 cat >>confdefs.h
<<_ACEOF
7151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7161 for ac_header
in $ac_header_list
7163 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7166 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7167 cat >>confdefs.h
<<_ACEOF
7168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7182 for ac_func
in getpagesize
7184 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7185 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7186 cat >>confdefs.h
<<_ACEOF
7187 #define HAVE_GETPAGESIZE 1
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7194 $as_echo_n "checking for working mmap... " >&6; }
7195 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7196 $as_echo_n "(cached) " >&6
7198 if test "$cross_compiling" = yes; then :
7199 ac_cv_func_mmap_fixed_mapped
=no
7201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 $ac_includes_default
7204 /* malloc might have been renamed as rpl_malloc. */
7207 /* Thanks to Mike Haertel and Jim Avera for this test.
7208 Here is a matrix of mmap possibilities:
7209 mmap private not fixed
7210 mmap private fixed at somewhere currently unmapped
7211 mmap private fixed at somewhere already mapped
7212 mmap shared not fixed
7213 mmap shared fixed at somewhere currently unmapped
7214 mmap shared fixed at somewhere already mapped
7215 For private mappings, we should verify that changes cannot be read()
7216 back from the file, nor mmap's back from the file at a different
7217 address. (There have been systems where private was not correctly
7218 implemented like the infamous i386 svr4.0, and systems where the
7219 VM page cache was not coherent with the file system buffer cache
7220 like early versions of FreeBSD and possibly contemporary NetBSD.)
7221 For shared mappings, we should conversely verify that changes get
7222 propagated back to all the places they're supposed to be.
7224 Grep wants private fixed already mapped.
7225 The main things grep needs to know about mmap are:
7226 * does it exist and is it safe to write into the mmap'd area
7227 * how to use it (BSD variants) */
7230 #include <sys/mman.h>
7232 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7236 /* This mess was copied from the GNU getpagesize.h. */
7237 #ifndef HAVE_GETPAGESIZE
7238 # ifdef _SC_PAGESIZE
7239 # define getpagesize() sysconf(_SC_PAGESIZE)
7240 # else /* no _SC_PAGESIZE */
7241 # ifdef HAVE_SYS_PARAM_H
7242 # include <sys/param.h>
7243 # ifdef EXEC_PAGESIZE
7244 # define getpagesize() EXEC_PAGESIZE
7245 # else /* no EXEC_PAGESIZE */
7247 # define getpagesize() NBPG * CLSIZE
7250 # endif /* no CLSIZE */
7251 # else /* no NBPG */
7253 # define getpagesize() NBPC
7254 # else /* no NBPC */
7256 # define getpagesize() PAGESIZE
7257 # endif /* PAGESIZE */
7258 # endif /* no NBPC */
7259 # endif /* no NBPG */
7260 # endif /* no EXEC_PAGESIZE */
7261 # else /* no HAVE_SYS_PARAM_H */
7262 # define getpagesize() 8192 /* punt totally */
7263 # endif /* no HAVE_SYS_PARAM_H */
7264 # endif /* no _SC_PAGESIZE */
7266 #endif /* no HAVE_GETPAGESIZE */
7271 char *data, *data2, *data3;
7276 pagesize = getpagesize ();
7278 /* First, make a file with some known garbage in it. */
7279 data = (char *) malloc (pagesize);
7282 for (i = 0; i < pagesize; ++i)
7283 *(data + i) = rand ();
7285 fd = creat ("conftest.mmap", 0600);
7288 if (write (fd, data, pagesize) != pagesize)
7292 /* Next, check that the tail of a page is zero-filled. File must have
7293 non-zero length, otherwise we risk SIGBUS for entire page. */
7294 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7298 if (write (fd2, cdata2, 1) != 1)
7300 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7301 if (data2 == MAP_FAILED)
7303 for (i = 0; i < pagesize; ++i)
7307 if (munmap (data2, pagesize))
7310 /* Next, try to mmap the file at a fixed address which already has
7311 something else allocated at it. If we can, also make sure that
7312 we see the same garbage. */
7313 fd = open ("conftest.mmap", O_RDWR);
7316 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7319 for (i = 0; i < pagesize; ++i)
7320 if (*(data + i) != *(data2 + i))
7323 /* Finally, make sure that changes to the mapped area do not
7324 percolate back to the file as seen by read(). (This is a bug on
7325 some variants of i386 svr4.0.) */
7326 for (i = 0; i < pagesize; ++i)
7327 *(data2 + i) = *(data2 + i) + 1;
7328 data3 = (char *) malloc (pagesize);
7331 if (read (fd, data3, pagesize) != pagesize)
7333 for (i = 0; i < pagesize; ++i)
7334 if (*(data + i) != *(data3 + i))
7342 if ac_fn_c_try_run
"$LINENO"; then :
7343 ac_cv_func_mmap_fixed_mapped
=yes
7345 ac_cv_func_mmap_fixed_mapped
=no
7347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7353 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7356 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7359 rm -f conftest.mmap conftest.txt
7362 #-----------------------------------------------------------------------------
7365 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7366 # it switched on by default, and we use the host compiler, so it compiles AROS
7367 # code with this enabled resulting in link failures as we don't have support
7370 # We use two methods to disable it. For the host compiler (used to compile
7371 # some hosted modules), we test to see if the compiler supports stack
7372 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7373 # work on all platforms.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7377 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7378 save_cflags
="$CFLAGS"
7379 CFLAGS
="$CFLAGS -fno-stack-protector"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_compile
"$LINENO"; then :
7392 use_no_stack_protector
="yes"
7394 use_no_stack_protector
="no"
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7398 $as_echo "$use_no_stack_protector" >&6; }
7399 if test "x-$use_no_stack_protector" = "x-yes" ; then
7400 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7402 CFLAGS
="$save_cflags"
7404 #-----------------------------------------------------------------------------
7406 # Disable pointer-signedness warnings if the compiler recognises the option
7407 # (this only works for the host compiler at the moment)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7410 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7411 save_cflags
="$CFLAGS"
7412 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7424 if ac_fn_c_try_compile
"$LINENO"; then :
7425 use_no_sign_warning
="yes"
7427 use_no_sign_warning
="no"
7429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7431 $as_echo "$use_no_sign_warning" >&6; }
7432 if test "x-$use_no_sign_warning" = "x-yes" ; then
7433 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7435 CFLAGS
="$save_cflags"
7437 #-----------------------------------------------------------------------------
7439 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7442 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7443 save_cflags
="$CFLAGS"
7444 CFLAGS
="$CFLAGS -fgnu89-inline"
7445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7456 if ac_fn_c_try_compile
"$LINENO"; then :
7457 use_gnu89_inline
="yes"
7459 use_gnu89_inline
="no"
7461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7463 $as_echo "$use_gnu89_inline" >&6; }
7464 if test "x-$use_gnu89_inline" = "x-yes" ; then
7465 gnu89_inline
="-fgnu89-inline"
7467 CFLAGS
="$save_cflags"
7470 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7471 # On GCC >= 4.0 -iquote should be used
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7474 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7475 CFLAGS
="$CFLAGS -iquote."
7476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7487 if ac_fn_c_try_compile
"$LINENO"; then :
7492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7494 $as_echo "$has_iquote" >&6; }
7495 if test "x-$has_iquote" = "x-yes" ; then
7496 host_cflags_iquote
=-iquote
7497 host_cflags_iquote_end
=
7499 host_cflags_iquote
=-I
7500 host_cflags_iquote_end
=-I-
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7504 $as_echo "$as_me: Performing target configuration..." >&6;}
7507 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7509 toolchain_needs_sysroot
=no
7514 aros_config_cppflags
=
7516 aros_config_cxxflags
=
7517 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7518 aros_config_ldflags
=""
7520 aros_shared_default
=yes
7522 aros_shared_cflags
="-fPIC"
7523 aros_shared_aflags
=""
7524 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7525 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7527 aros_kernel_ar_flags
="cr"
7528 aros_target_ar_flags
="cr"
7529 aros_target_nm_flags
="-C -ul"
7530 aros_target_strip_flags
="--strip-unneeded -R.comment"
7535 aros_target_genmap
="-Wl,-Map -Xlinker"
7537 # Native flavour stuff
7538 aros_serial_debug
="0"
7540 # Palm native flavour stuff
7541 aros_palm_debug_hack
="0"
7543 # Unix flavour stuff
7544 aros_nesting_supervisor
="0"
7546 # Collect-aros stuff: "-ius" to ignore undefined symbols
7547 ignore_undefined_symbols
=""
7549 # Check for X11 by default
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7558 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7560 # Check whether --with-toolchain was given.
7561 if test "${with_toolchain+set}" = set; then :
7562 withval
=$with_toolchain; aros_toolchain
="$withval"
7564 aros_toolchain
="gnu"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7568 $as_echo "$aros_toolchain" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7572 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7573 # Check whether --enable-lto was given.
7574 if test "${enable_lto+set}" = set; then :
7575 enableval
=$enable_lto; aros_config_lto
="$enableval"
7577 aros_config_lto
="no"
7580 if test "$aros_config_lto" != "no"; then
7581 aros_config_lto
="yes"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7584 $as_echo "$aros_config_lto" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7587 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then :
7590 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
7592 aros_config_coverage
="no"
7595 if test "$aros_config_coverage" != "no"; then
7596 aros_config_coverage
="yes"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7599 $as_echo "$aros_config_coverage" >&6; }
7603 case "$aros_toolchain" in
7605 # toolchain_needs_sysroot=yes
7606 toolchain_c_compiler
="clang"
7607 toolchain_cxx_compiler
="clang++"
7608 toolchain_cpp_preprocessor
="clang -E"
7609 toolchain_ld
="ld.lld"
7611 toolchain_as
="llvm-as"
7612 toolchain_ar
="llvm-ar"
7613 toolchain_ranlib
="llvm-ranlib"
7614 toolchain_nm
="llvm-nm"
7615 toolchain_strip
="true"
7616 toolchain_objcopy
="llvm-objcopy"
7617 toolchain_objdump
="llvm-objdump"
7620 toolchain_c_compiler
="gcc"
7621 toolchain_cxx_compiler
="g++"
7622 toolchain_cpp_preprocessor
="gcc -E"
7625 if test "$aros_config_lto" != "yes"; then
7628 toolchain_ranlib
="ranlib"
7631 toolchain_ld
="ld.bfd"
7632 toolchain_ar
="gcc-ar"
7633 toolchain_ranlib
="gcc-ranlib"
7634 toolchain_nm
="gcc-nm"
7636 toolchain_strip
="strip"
7637 toolchain_objcopy
="objcopy"
7638 toolchain_objdump
="objdump"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7642 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7643 toolchain_c_compiler
="cc"
7644 toolchain_cxx_compiler
="c++"
7645 toolchain_cpp_preprocessor
="cpp"
7650 toolchain_ranlib
="ranlib"
7652 toolchain_strip
="strip"
7653 toolchain_objcopy
="objcopy"
7654 toolchain_objdump
="objdump"
7658 #-----------------------------------------------------------------------------
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7661 $as_echo_n "checking which type of build to do... " >&6; }
7662 # Check whether --enable-build_type was given.
7663 if test "${enable_build_type+set}" = set; then :
7664 enableval
=$enable_build_type; build_type
=$enableval
7666 build_type
="personal"
7670 if test "$build_type" = "nightly"; then
7671 build_type_string
="NIGHTLY"
7672 elif test "$build_type" = "snapshot"; then
7673 build_type_string
="SNAPSHOT"
7674 elif test "$build_type" = "milestone"; then
7675 build_type_string
="MILESTONE"
7676 elif test "$build_type" = "release"; then
7677 build_type_string
="RELEASE"
7679 build_type_string
="PERSONAL"
7680 build_type
="personal"
7683 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7686 $as_echo "$build_type" >&6; }
7688 #-----------------------------------------------------------------------------
7689 all_debug_types
="messages stack modules mungwall symbols"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7692 $as_echo_n "checking which debug types to enable... " >&6; }
7693 # Check whether --enable-debug was given.
7694 if test "${enable_debug+set}" = set; then :
7695 enableval
=$enable_debug; debug
="$enableval"
7701 if test "$debug" = "" -o "$debug" = "no"; then
7703 elif test "$debug" = "yes"; then
7707 if test "$debug" = "all" ; then
7708 debug
="messages stack modules symbols"
7709 for d
in $all_debug_types; do
7710 export aros_
${d}_debug
="1"
7713 for d
in $all_debug_types; do
7714 export aros_
${d}_debug
="0"
7718 if test "$debug" != "none"; then
7719 debug
=`echo $debug | sed s/,/\ /g`
7722 for d2
in $all_debug_types; do
7723 if test "$d2" = "$d"; then
7728 if test "$found" = "0"; then
7729 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7731 export aros_
${d}_debug
="1"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7736 $as_echo "$debug" >&6; }
7738 if test "$aros_messages_debug" = "1"; then
7739 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7741 aros_messages_debug
=""
7743 if test "$aros_symbols_debug" = "1"; then
7744 aros_symbols_debug
="-g"
7746 aros_symbols_debug
=""
7749 # These are the flags to pass when compiling debugged programs
7750 aros_debug_cppflags
="$aros_messages_debug"
7751 aros_debug_cflags
="$aros_symbols_debug"
7752 aros_debug_cxxflags
=
7753 aros_debug_aflags
=""
7754 aros_debug_ldflags
="$aros_symbols_debug"
7756 #-----------------------------------------------------------------------------
7757 # Checking for distcc and ccache.
7759 # Always apply the transforms in this particular order. Basically you should
7760 # always run 'ccache distcc compiler' in that order for the best performance.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7763 $as_echo_n "checking whether to enable distcc... " >&6; }
7764 # Check whether --enable-distcc was given.
7765 if test "${enable_distcc+set}" = set; then :
7766 enableval
=$enable_distcc; distcc
="$enableval"
7771 if test "$distcc" != "" -a "$distcc" != "no"; then
7772 # AC_CHECK_PROG will print out the result in this case
7773 # Extract the first word of "distcc", so it can be a program name with args.
7774 set dummy distcc
; ac_word
=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_DISTCC+:} false
; then :
7778 $as_echo_n "(cached) " >&6
7782 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7804 DISTCC
=$ac_cv_path_DISTCC
7805 if test -n "$DISTCC"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7807 $as_echo "$DISTCC" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7820 $as_echo_n "checking whether to enable ccache... " >&6; }
7821 # Check whether --enable-ccache was given.
7822 if test "${enable_ccache+set}" = set; then :
7823 enableval
=$enable_ccache; ccache
="$enableval"
7828 if test "$ccache" != "" -a "$ccache" != "no"; then
7829 # AC_CHECK_PROG will print out the result in this case
7830 # Extract the first word of "ccache", so it can be a program name with args.
7831 set dummy ccache
; ac_word
=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_CCACHE+:} false
; then :
7835 $as_echo_n "(cached) " >&6
7837 if test -n "$CCACHE"; then
7838 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir
=.
7845 for ac_exec_ext
in '' $ac_executable_extensions; do
7846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_CCACHE
="ccache"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 CCACHE
=$ac_cv_prog_CCACHE
7858 if test -n "$CCACHE"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7860 $as_echo "$CCACHE" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 #-----------------------------------------------------------------------------
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7874 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7876 # Check whether --with-kernel-gcc-version was given.
7877 if test "${with_kernel_gcc_version+set}" = set; then :
7878 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7880 kernel_tool_version
=""
7883 if test "$kernel_tool_version" != "" ; then
7884 msg_result
=$kernel_tool_version
7886 msg_result
="default"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7889 $as_echo "$msg_result" >&6; }
7891 #-----------------------------------------------------------------------------
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7893 $as_echo_n "checking what optimization flags to use... " >&6; }
7895 # Check whether --with-optimization was given.
7896 if test "${with_optimization+set}" = set; then :
7897 withval
=$with_optimization; optimization_level
="$withval"
7899 optimization_level
="unknown"
7902 if test "$optimization_level" = "unknown"; then
7903 optimization
="default"
7904 if test "$debug" != "none"; then
7905 optimization_level
="-O0"
7907 optimization_level
="-O2"
7910 optimization
="$optimization_level"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7913 $as_echo "$optimization" >&6; }
7915 paranoia_default
=yes
7916 #-----------------------------------------------------------------------------
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7918 $as_echo_n "checking which paranoia flags to use... " >&6; }
7920 # Check whether --with-paranoia was given.
7921 if test "${with_paranoia+set}" = set; then :
7922 withval
=$with_paranoia; paranoia_flags
="$withval"
7924 paranoia_flags
="$paranoia_default"
7927 if test "$paranoia_flags" = "no"; then
7928 paranoia_flags
="-Wall -Werror-implicit-function-declaration"
7931 if test "$paranoia_flags" = "yes"; then
7932 paranoia_flags
="-Wall -Werror"
7934 msg_result
="$paranoia_flags"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7937 $as_echo "$msg_result" >&6; }
7938 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
7940 #-----------------------------------------------------------------------------
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7942 $as_echo_n "checking what target variant to enable... " >&6; }
7943 # Check whether --enable-target_variant was given.
7944 if test "${enable_target_variant+set}" = set; then :
7945 enableval
=$enable_target_variant; target_variant
=$enableval
7950 if test "$target_variant" = ""; then
7951 aros_target_variant
=""
7952 aros_target_suffix
=""
7955 aros_target_variant
="$target_variant"
7956 aros_target_suffix
="-$target_variant"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7959 $as_echo "$enableval" >&6; }
7961 #-----------------------------------------------------------------------------
7962 # Target-specific defaults. You can override then on a per-target basis.
7964 # Bootloader name. Currently used by PC target.
7965 target_bootloader
="none"
7969 #-----------------------------------------------------------------------------
7970 # Additional options for some specific targets
7972 case "$aros_target_variant" in
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7975 $as_echo_n "checking XCode path... " >&6; }
7977 # Check whether --with-xcode was given.
7978 if test "${with_xcode+set}" = set; then :
7979 withval
=$with_xcode; aros_xcode_path
="$withval"
7981 aros_xcode_path
="/Developer"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7985 $as_echo "$aros_xcode_path" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7988 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7990 # Check whether --with-sdk-version was given.
7991 if test "${with_sdk_version+set}" = set; then :
7992 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7994 aros_sdk_version
="4.1"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7998 $as_echo "$aros_sdk_version" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8004 $as_echo_n "checking Android SDK path... " >&6; }
8006 # Check whether --with-sdk was given.
8007 if test "${with_sdk+set}" = set; then :
8008 withval
=$with_sdk; aros_android_sdk
="$withval"
8010 aros_android_sdk
=$default_android_sdk
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8014 $as_echo "$aros_android_sdk" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8017 $as_echo_n "checking Android NDK path... " >&6; }
8019 # Check whether --with-ndk was given.
8020 if test "${with_ndk+set}" = set; then :
8021 withval
=$with_ndk; aros_android_ndk
="$withval"
8023 aros_android_ndk
="none"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8027 $as_echo "$aros_android_ndk" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8030 $as_echo_n "checking what Android SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8036 aros_sdk_version
="12"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8042 aros_android_level
=android-
$aros_sdk_version
8043 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8044 echo "Platform $aros_android_level is not installed in your SDK"
8045 echo "Use --with-sdk-version=<API level number> to select another platform version"
8046 echo "You can check what plaform versions are installed in your SDK"
8047 echo "by examining contents of $aros_android_sdk/platforms directory"
8048 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8051 export PATH
="$aros_android_sdk/tools:$PATH"
8052 # Extract the first word of "$android_tool", so it can be a program name with args.
8053 set dummy
$android_tool; ac_word
=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_android_tool+:} false
; then :
8057 $as_echo_n "(cached) " >&6
8059 case $android_tool in
8061 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir
=.
8069 for ac_exec_ext
in '' $ac_executable_extensions; do
8070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 android_tool
=$ac_cv_path_android_tool
8083 if test -n "$android_tool"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8085 $as_echo "$android_tool" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8093 if test "$android_tool" = ""; then
8096 if test "$android_tool" = "no"; then
8099 if test "$req_avail" = "no"; then
8100 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8103 if test "$aros_android_ndk" != "none"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8105 $as_echo_n "checking what Android NDK version to use... " >&6; }
8107 # Check whether --with-ndk-version was given.
8108 if test "${with_ndk_version+set}" = set; then :
8109 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8111 aros_ndk_version
="9"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8115 $as_echo "$aros_ndk_version" >&6; }
8118 # Extract the first word of "ant", so it can be a program name with args.
8119 set dummy ant
; ac_word
=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_path_ant+:} false
; then :
8123 $as_echo_n "(cached) " >&6
8127 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir
=.
8135 for ac_exec_ext
in '' $ac_executable_extensions; do
8136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 if test -n "$ant"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8151 $as_echo "$ant" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 if test "$ant" = ""; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8160 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8164 $as_echo_n "checking Build debug or release apk... " >&6; }
8166 # Check whether --with-apk-version was given.
8167 if test "${with_apk_version+set}" = set; then :
8168 withval
=$with_apk_version; aros_android_antapk
=$withval
8170 aros_android_antapk
=release
8173 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8174 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8177 $as_echo "$aros_android_antapk" >&6; }
8179 if test "$host_os" = "mingw32"; then
8180 android_tool
="cmd //c $android_tool"
8188 #-----------------------------------------------------------------------------
8189 # External toolchains
8190 kernel_tool_prefix
="none"
8191 aros_tool_prefix
="none"
8192 elf_tool_prefix
="${target_cpu}-elf-"
8197 # Base target cpu ISA configuration switch.
8198 case "$target_cpu" in
8204 m68k_isa_extra
="ISA_MC68000_FLAGS := -march=68000"
8205 m68k_020_isa_extra
="ISA_MC68020_FLAGS := -march=68020"
8206 m68k_030_isa_extra
="ISA_MC68030_FLAGS := -march=68030"
8207 m68k_040_isa_extra
="ISA_MC68040_FLAGS := -march=68040"
8208 m68k_060_isa_extra
="ISA_MC68060_FLAGS := -march=68060"
8209 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS := -march=68040"
8210 m68k_020_ext
="ISA_MC68020_EXT :=020"
8211 m68k_030_ext
="ISA_MC68030_EXT :=030"
8212 m68k_040_ext
="ISA_MC68040_EXT :=040"
8213 m68k_060_ext
="ISA_MC68060_EXT :=060"
8214 m68k_020_cflags
="ISA_MC68020_CFLAGS :="
8215 m68k_030_cflags
="ISA_MC68030_CFLAGS :="
8216 m68k_040_cflags
="ISA_MC68040_CFLAGS :="
8217 m68k_060_cflags
="ISA_MC68060_CFLAGS :="
8218 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS :="
8219 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS :="
8220 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS :="
8221 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS :="
8222 m68k_020_ldflags
="ISA_MC68020_LDFLAGS :="
8223 m68k_030_ldflags
="ISA_MC68030_LDFLAGS :="
8224 m68k_040_ldflags
="ISA_MC68040_LDFLAGS :="
8225 m68k_060_ldflags
="ISA_MC68060_LDFLAGS :="
8228 x86_isa_extra
="ISA_X86_FLAGS := -m32 -march=i486"
8229 x86_64_isa_extra
="ISA_X8664_FLAGS := -mcmodel=large"
8235 # This is the target configuration switch.
8236 case "$target_os" in
8238 aros_target_arch
="linux"
8239 aros_target_family
="unix"
8240 case "$target_cpu" in
8242 aros_target_cpu
="m68k"
8243 aros_object_format
="m68kelf"
8244 aros_flavour
="emulcompat"
8245 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8246 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8247 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8248 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8249 gcc_target_cpu
="mc68000"
8252 aros_target_cpu
="i386"
8253 aros_object_format
="elf_i386"
8254 aros_flavour
="emulation"
8255 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8256 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8257 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8258 aros_kernel_ldflags
="-Wl,-melf_i386"
8259 aros_nominal_depth
=8
8260 gcc_target_cpu
="i386"
8261 pci_hidd_target
="hidd-pci-linux"
8262 android_tool_dir_prefix
="x86"
8263 android_tool_prefix
="i686-android-linux"
8264 android_ndk_arch
="x86"
8267 aros_target_cpu
="x86_64"
8268 aros_object_format
="elf_x86_64"
8269 aros_flavour
="emulation"
8270 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8271 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8272 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8273 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8274 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8275 aros_nominal_depth
=8
8276 pci_hidd_target
="hidd-pci-linux"
8279 aros_target_cpu
="ppc"
8280 aros_object_format
="elf32ppc"
8281 aros_flavour
="emulation"
8282 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8283 aros_nominal_depth
=8
8284 gcc_target_cpu
="ppc"
8287 # Same as powerpc, but I need this for the nightly build to work again.
8288 # Actually, the nightly should be made working with powerpc target.
8289 # That just was too much work for the moment, another week or two.
8291 aros_target_cpu
="ppc"
8292 aros_object_format
="elf32ppc"
8293 aros_flavour
="emulation"
8294 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8295 aros_nominal_depth
=8
8296 gcc_target_cpu
="ppc"
8299 aros_target_cpu
="aarch64"
8300 target_cpu
="aarch64"
8301 aros_object_format
="aarch64elf_aros"
8302 aros_flavour
="emulation"
8303 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8304 gcc_target_cpu
="aarch64"
8305 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8306 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8307 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8308 aros_arch_libs
="-laeabi"
8309 gcc_default_float_abi
="hard"
8310 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8313 aros_target_cpu
="arm"
8315 aros_object_format
="armelf_aros"
8316 aros_flavour
="emulation"
8317 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8318 gcc_target_cpu
="arm"
8319 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8320 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8321 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8322 aros_arch_libs
="-laeabi"
8323 gcc_default_float_abi
="hard"
8324 android_tool_dir_prefix
="arm-linux-androideabi"
8325 android_tool_prefix
="arm-linux-androideabi"
8326 android_ndk_arch
="arm"
8327 kernel_tool_prefix
="arm-linux-gnueabihf-"
8330 aros_target_cpu
="arm"
8331 aros_object_format
="armelf_aros"
8332 aros_flavour
="emulation"
8333 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8334 gcc_target_cpu
="arm"
8335 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8336 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8337 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8338 aros_arch_libs
="-laeabi"
8339 android_tool_dir_prefix
="arm-linux-androideabi"
8340 android_tool_prefix
="arm-linux-androideabi"
8341 android_ndk_arch
="arm"
8342 kernel_tool_prefix
="arm-linux-gnueabi-"
8345 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8348 case "$aros_target_variant" in
8351 if test "$android_ndk_arch" = ""; then
8352 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8355 aros_nominal_width
=320
8356 aros_nominal_height
=480
8357 if test "$aros_android_ndk" = "none"; then
8358 aros_kernel_cflags
="-mandroid"
8359 aros_kernel_ldflags
="-mandroid"
8362 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8363 kernel_tool_version
=""
8364 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8365 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8366 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8367 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8368 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8371 host_android_gfx
=yes
8372 # Disable implicit PIC mode
8373 aros_config_cflags
="$aros_config_cflags -fno-pic"
8374 kernel_tool_prefix
="$android_tool_prefix-"
8380 aros_target_arch
="pc"
8381 aros_shared_default
="no"
8382 target_bootloader
="grub2"
8383 case "$target_cpu" in
8385 aros_target_cpu
="i386"
8388 if test "$aros_object_format" = "" ; then
8389 aros_object_format
="elf_i386"
8391 aros_flavour
="standalone"
8392 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8393 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8394 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8395 aros_kernel_ldflags
="-Wl,-melf_i386"
8396 aros_nominal_width
=640
8397 aros_nominal_height
=480
8398 gcc_target_cpu
="i386"
8401 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8402 aros_target_cpu
="x86_64"
8404 if test "$aros_object_format" = "" ; then
8405 aros_object_format
="elf_x86_64"
8407 aros_flavour
="standalone"
8408 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8409 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8410 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8411 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8412 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8413 aros_kernel_ldflags
=""
8414 aros_nominal_width
=640
8415 aros_nominal_height
=480
8416 case "$aros_target_variant" in
8418 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8423 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8429 aros_target_arch
="prep"
8430 aros_shared_default
="no"
8431 aros_target_cpu
="ppc"
8432 aros_object_format
="elf32ppc"
8433 aros_flavour
="ppcnative"
8434 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8435 aros_kernel_ldflags
=""
8436 aros_nominal_width
=640
8437 aros_nominal_height
=480
8438 gcc_target_cpu
="ppc"
8442 aros_target_arch
="freebsd"
8443 aros_target_family
="unix"
8444 aros_target_cpu
="i386"
8445 aros_flavour
="emulation"
8446 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8447 gcc_target_cpu
="i386"
8449 aros_target_strip_flags
="-x"
8453 aros_target_arch
="darwin"
8454 aros_target_family
="unix"
8455 aros_flavour
="emulation"
8456 case "$target_cpu" in
8458 aros_ios_platform
="iPhoneSimulator"
8459 aros_target_cpu
="i386"
8460 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8461 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8462 aros_kernel_ldflags
=""
8463 aros_macosx_version
="10.4"
8464 aros_nominal_depth
=8
8465 gcc_target_cpu
="i386"
8466 aros_object_format
="elf_i386"
8467 aros_kernel_ar_flags
="-cr"
8468 aros_target_strip_flags
="-x"
8469 kernel_tool_flags
="-m32"
8472 aros_target_cpu
="x86_64"
8473 aros_object_format
="elf_x86_64"
8474 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8475 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8476 aros_macosx_version
="10.6"
8477 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8478 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8479 aros_kernel_cflags
="-m64"
8480 aros_kernel_ldflags
="-m64"
8481 aros_nominal_depth
=8
8483 aros_kernel_ar_flags
="-cr"
8486 aros_kernel_ranlib
="ranlib"
8488 aros_kernel_strip
="strip"
8489 kernel_tool_prefix
="i686-apple-darwin10-"
8492 aros_target_cpu
="ppc"
8493 aros_object_format
="elf32ppc"
8494 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8495 aros_kernel_ldflags
=""
8496 aros_macosx_version
="10.0"
8497 aros_nominal_depth
=8
8498 gcc_target_cpu
="ppc"
8500 aros_kernel_ar_flags
="-cr"
8501 aros_kernel_ld
="ld -arch ppc"
8502 aros_kernel_as
="as -arch ppc"
8503 aros_kernel_ranlib
="ranlib -arch ppc"
8504 aros_kernel_nm
="nm -arch ppc"
8505 aros_kernel_strip
="strip -arch ppc"
8506 kernel_tool_prefix
="powerpc-apple-darwin10-"
8509 aros_ios_platform
="iPhoneOS"
8510 aros_target_cpu
="arm"
8511 aros_object_format
="armelf_aros"
8512 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8513 aros_arch_libs
="-laeabi"
8514 aros_nominal_depth
=8
8515 gcc_target_cpu
="arm"
8517 aros_kernel_ar_flags
="-cr"
8518 aros_kernel_ld
="ld -arch arm"
8519 aros_kernel_ranlib
="ranlib -arch arm"
8520 kernel_tool_prefix
="arm-apple-darwin10-"
8521 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8524 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8527 case "$aros_target_variant" in
8529 aros_ios_version
="3.0"
8530 aros_nominal_width
=320
8531 aros_nominal_height
=480
8532 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8533 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8534 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8536 # This is here because it may depend on iOS or SDK version
8537 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8538 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8539 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8542 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8543 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8549 aros_target_arch
="dragonfly"
8550 aros_target_family
="unix"
8551 aros_flavour
="emulation"
8552 case "$target_cpu" in
8554 aros_target_cpu
="i386"
8555 aros_object_format
="elf_i386"
8556 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8557 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8560 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8561 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8562 aros_target_cpu
="x86_64"
8563 aros_object_format
="elf_x86_64"
8564 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8565 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8568 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8574 aros_target_arch
="netbsd"
8575 aros_target_family
="unix"
8576 case "$target_cpu" in
8578 aros_target_cpu
="m68k"
8579 aros_object_format
="m68kelf"
8580 aros_flavour
="emulcompat"
8581 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8582 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8583 gcc_target_cpu
="mc68000"
8586 aros_target_cpu
="i386"
8587 aros_object_format
="elf_i386"
8588 aros_flavour
="emulation"
8589 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8590 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8591 aros_nominal_depth
=8
8592 gcc_target_cpu
="i386"
8595 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8598 aros_target_genmap
="-Wl,-M -Xlinker >"
8599 aros_flavour
="emulation"
8600 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8604 aros_target_arch
="openbsd"
8605 aros_target_family
="unix"
8606 case "$target_cpu" in
8608 aros_target_cpu
="i386"
8609 aros_object_format
="elf_i386"
8610 aros_flavour
="emulation"
8611 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8612 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8613 gcc_target_cpu
="i386"
8616 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8619 aros_target_genmap
="-Wl,-M -Xlinker >"
8620 aros_target_nm_flags
="-u"
8621 aros_flavour
="emulation"
8625 aros_target_arch
="solaris"
8626 aros_target_family
="unix"
8627 case "$target_cpu" in
8629 aros_target_cpu
="i386"
8630 aros_object_format
="elf_i386"
8631 aros_flavour
="emulation"
8632 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8633 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8634 aros_nominal_depth
=8
8635 gcc_target_cpu
="i386"
8638 aros_target_cpu
="sparc"
8639 aros_object_format
="elf_sparc"
8640 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8641 gcc_target_cpu
="sparc"
8644 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8647 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
8648 aros_flavour
="emulation"
8652 aros_target_arch
="morphos"
8653 aros_shared_default
="no"
8654 aros_target_cpu
="ppc"
8655 aros_object_format
="elf_ppc"
8656 aros_flavour
="nativecompat"
8657 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8658 gcc_target_cpu
="ppc"
8662 aros_target_arch
="sam440"
8663 aros_shared_default
="no"
8664 aros_target_cpu
="ppc"
8665 aros_object_format
="elf32ppc"
8666 aros_flavour
="ppcnative"
8667 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8668 aros_kernel_ldflags
=""
8669 aros_nominal_width
=1024
8670 aros_nominal_height
=768
8671 aros_nominal_depth
=24
8672 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
8673 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8674 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8675 gcc_target_cpu
="powerpc"
8679 aros_target_arch
="efika"
8680 aros_shared_default
="no"
8681 aros_target_cpu
="arm"
8682 aros_object_format
="armelf_aros"
8683 aros_flavour
="standalone"
8684 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8685 aros_kernel_ldflags
=""
8686 aros_nominal_width
=1024
8687 aros_nominal_height
=600
8688 aros_arch_libs
="-laeabi"
8689 gcc_default_cpu
="armv7-a"
8690 gcc_default_fpu
="vfpv3"
8691 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
8692 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8693 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8694 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8695 if test "$optimization" = "default"; then
8696 optimization_level
="-Os"
8698 case "$target_cpu" in
8700 gcc_default_float_abi
="hard"
8705 gcc_default_float_abi
="softfp"
8708 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8714 aros_target_arch
="chrp"
8715 aros_shared_default
="no"
8716 aros_target_cpu
="ppc"
8717 aros_object_format
="elf32ppc"
8718 aros_flavour
="ppcnative"
8719 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8720 aros_kernel_ldflags
=""
8721 aros_nominal_width
=640
8722 aros_nominal_height
=480
8723 aros_isa_flags
="$aros_isa_flags -mno-toc"
8724 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8725 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8726 gcc_target_cpu
="powerpc"
8727 case "$aros_target_variant" in
8729 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
8730 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8736 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8737 aros_flavour
="standalone"
8738 aros_target_arch
="raspi"
8740 aros_shared_default
="no"
8742 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8744 case "$target_cpu" in
8746 aros_target_cpu
="aarch64"
8747 gcc_default_cpu
="aarch64"
8748 aros_object_format
="aarch64elf_aros"
8751 aros_target_cpu
="arm"
8752 gcc_default_cpu
="armv6zk"
8753 gcc_default_cpu_tune
="arm1176jzf-s"
8754 aros_object_format
="armelf_aros"
8755 aros_isa_flags
="$aros_isa_flags -marm"
8756 aros_config_cflags
="$aros_config_cflags"
8757 aros_config_cxxflags
="$aros_config_cxxflags"
8758 aros_config_aflags
="$aros_config_aflags -marm"
8759 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8760 aros_target_mkdep
="$aros_target_mkdep -Darm"
8761 aros_arch_libs
="-laeabi"
8764 aros_flavour
="standcompat"
8765 aros_target_cpu
="armeb"
8766 gcc_default_float_abi
="hard"
8767 gcc_default_cpu
="armv7ve"
8768 gcc_default_cpu_tune
="cortex-a7"
8769 aros_object_format
="armelfb_aros"
8770 aros_isa_flags
="$aros_isa_flags -marm"
8771 aros_config_cflags
="$aros_config_cflags"
8772 aros_config_cxxflags
="$aros_config_cxxflags"
8773 aros_config_aflags
="$aros_config_aflags -marm"
8774 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8775 aros_target_mkdep
="$aros_target_mkdep -Darm"
8776 aros_arch_libs
="-laeabi"
8779 aros_target_cpu
="arm"
8780 gcc_default_cpu
="armv6zk"
8781 gcc_default_cpu_tune
="arm1176jzf-s"
8782 aros_object_format
="armelf_aros"
8783 aros_isa_flags
="$aros_isa_flags -marm"
8784 aros_config_cflags
="$aros_config_cflags"
8785 aros_config_cxxflags
="$aros_config_cxxflags"
8786 aros_config_aflags
="$aros_config_aflags -marm"
8787 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8788 aros_target_mkdep
="$aros_target_mkdep -Darm"
8789 aros_arch_libs
="-laeabi"
8792 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8796 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8797 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8798 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8799 aros_kernel_cflags
="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8801 case "$aros_target_variant" in
8803 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8809 aros_flavour
="standalone"
8810 aros_target_arch
="stm32f7_discovery"
8811 aros_target_cpu
="arm"
8812 aros_target_cpu_mode
="thumb2"
8813 aros_object_format
="armelf_aros"
8814 aros_shared_default
="no"
8816 gcc_default_cpu
="armv7e-m"
8817 gcc_default_cpu_tune
="cortex-m7"
8818 gcc_default_fpu
="fpv5-sp-d16"
8819 gcc_default_float_abi
="hard"
8821 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8825 aros_target_arch
="amiga"
8826 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8827 aros_shared_default
="no"
8829 case "$target_cpu" in
8831 # Check whether --enable-amigaos_compliance was given.
8832 if test "${enable_amigaos_compliance+set}" = set; then :
8833 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8837 aros_target_cpu
="m68k"
8838 aros_object_format
="m68kelf"
8839 aros_flavour
="standcompat"
8840 gcc_target_cpu
="m68000"
8841 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8842 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8843 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
8844 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8845 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8846 if test "$optimization" = "default"; then
8847 optimization_level
="-Os"
8849 aros_config_aflags
="$aros_config_aflags"
8850 aros_target_strip_flags
="-R.comment --strip-debug"
8851 aros_nominal_width
=640
8852 aros_nominal_height
=256
8853 aros_nominal_depth
=2
8857 aros_flavour
="native"
8858 gcc_target_cpu
="ppc"
8861 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8867 aros_target_arch
="mingw32"
8868 aros_shared_default
="no"
8869 aros_flavour
="emulation"
8870 aros_shared_cflags
=""
8871 need_crosstools
="yes"
8874 case "$target_cpu" in
8876 aros_target_cpu
="i386"
8877 aros_object_format
="elf_i386"
8878 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8879 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8880 aros_nominal_depth
=8
8881 gcc_target_cpu
="i386"
8883 kernel_tool_prefix
="i386-mingw32-"
8886 aros_target_cpu
="x86_64"
8887 aros_object_format
="elf_x86_64"
8888 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8889 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8890 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8891 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8892 aros_nominal_depth
=8
8893 kernel_tool_prefix
="x86_64-w64-mingw32-"
8896 aros_target_cpu
="arm"
8897 aros_object_format
="armelf_aros"
8898 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8899 aros_arch_libs
="-laeabi"
8900 aros_nominal_depth
=8
8901 gcc_target_cpu
="arm"
8902 gcc_default_float_abi
="soft"
8903 kernel_tool_prefix
="arm-mingw32ce-"
8904 aros_nominal_width
=160
8905 aros_nominal_height
=160
8908 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8911 if test $host_os = "cygwin"; then
8912 aros_kernel_cflags
="-mno-cygwin"
8916 aros_target_arch
="pp"
8917 aros_shared_default
="no"
8918 case "$target_cpu" in
8920 aros_target_cpu
="m68k"
8921 aros_object_format
="m68kelf"
8922 aros_flavour
="palmnative"
8923 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8924 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8925 aros_nominal_width
=160
8926 aros_nominal_height
=160
8927 aros_nominal_depth
=1
8928 aros_target_ar_flags
="cru"
8929 aros_compiler_libs
="-lgcc1"
8930 aros_shared_default
=no
8931 aros_shared_cflags
="-fpic"
8932 aros_shared_aflags
=""
8933 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8934 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8935 aros_debug_cppflags
="$aros_messages_debug"
8936 aros_debug_cflags
="$aros_symbols_debug"
8937 aros_debug_aflags
=""
8938 aros_debug_ldflags
="$aros_symbols_debug"
8939 aros_mungwall_debug
="0"
8940 aros_modules_debug
="0"
8941 gcc_target_cpu
="mc68000"
8942 ignore_undefined_symbols
="-ius"
8945 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8951 aros_target_arch
="mac"
8952 aros_shared_default
="no"
8953 case "$target_cpu" in
8955 aros_target_cpu
="m68k"
8956 aros_object_format
="m68kelf"
8957 aros_flavour
="mac68knative"
8958 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8959 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8960 aros_nominal_width
=512
8961 aros_nominal_height
=384
8962 aros_nominal_depth
=8
8963 aros_target_ar_flags
="cru"
8964 aros_compiler_libs
="-lgcc1"
8965 aros_shared_default
=no
8966 aros_shared_cflags
="-fpic"
8967 aros_shared_aflags
=""
8968 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8969 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8970 aros_debug_cppflags
="$aros_messages_debug"
8971 aros_debug_cflags
="$aros_symbols_debug"
8972 aros_debug_aflags
=""
8973 aros_debug_ldflags
="$aros_symbols_debug"
8974 aros_mungwall_debug
="0"
8975 aros_modules_debug
="0"
8976 gcc_target_cpu
="mc68000"
8977 ignore_undefined_symbols
="-ius"
8980 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8986 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8990 #-----------------------------------------------------------------------------
8991 crosstools_guess
="yes"
8992 aros_target_toolchain
="no"
8993 aros_config_sysroot
=""
8994 aros_kernel_sysroot
=""
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8997 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8999 # Check whether --with-kernel-toolchain-prefix was given.
9000 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9001 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9005 $as_echo "$kernel_tool_prefix" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9008 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9010 # Check whether --with-elf-toolchain-prefix was given.
9011 if test "${with_elf_toolchain_prefix+set}" = set; then :
9012 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9013 crosstools_guess
="no"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9017 $as_echo "$elf_tool_prefix" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9020 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9022 # Check whether --with-aros-toolchain was given.
9023 if test "${with_aros_toolchain+set}" = set; then :
9024 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9025 crosstools_guess
="no"
9028 if test "$aros_tool_prefix" = "yes" ; then
9029 aros_tool_prefix
=$aros_target_cpu-aros-
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9032 $as_echo "$aros_tool_prefix" >&6; }
9034 #-----------------------------------------------------------------------------
9035 # Checking if we should build crosstools..
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9037 $as_echo_n "checking whether to build crosstools... " >&6; }
9038 # Check whether --enable-crosstools was given.
9039 if test "${enable_crosstools+set}" = set; then :
9040 enableval
=$enable_crosstools; crosstools
="$enableval"
9042 crosstools
="$crosstools_guess"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9046 $as_echo "$crosstools" >&6; }
9048 if test "${crosstools}" = "yes"; then
9049 if test "${crosstools_guess}" = "no"; then
9050 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9054 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9055 aros_target_toolchain
="yes"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9059 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9061 # Check whether --with-aros-toolchain-install was given.
9062 if test "${with_aros_toolchain_install+set}" = set; then :
9063 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9066 if test "x$aros_toolchain_install" = "x"; then
9067 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9069 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9070 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9071 if test "$crosstools_guess" = "no" ; then
9072 toolchain_needs_sysroot
=yes
9074 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9075 aros_kernel_sysroot
= $aros_config_sysroot
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9080 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9083 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9084 if test "$toolchain_needs_sysroot" = "yes" ; then
9085 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9088 $as_echo "$toolchain_needs_sysroot" >&6; }
9090 #-----------------------------------------------------------------------------
9091 if test "$aros_toolchain" = "gnu" ; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9093 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9096 # Check whether --with-binutils-version was given.
9097 if test "${with_binutils_version+set}" = set; then :
9098 withval
=$with_binutils_version; use_binutils_version
="$withval"
9100 use_binutils_version
=""
9103 if test "$use_binutils_version" = ""; then
9104 target_binutils_version
="$default_binutils_version"
9106 target_binutils_version
="$use_binutils_version"
9108 if test "$aros_toolchain" = "gnu" ; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9110 $as_echo "$target_binutils_version" >&6; }
9114 # Helper to identify gcc version
9117 #-----------------------------------------------------------------------------
9118 if test "$aros_toolchain" = "gnu" ; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9120 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9123 # Check whether --with-gcc-version was given.
9124 if test "${with_gcc_version+set}" = set; then :
9125 withval
=$with_gcc_version; use_gcc_version
="$withval"
9130 if test "$use_gcc_version" = ""; then
9131 if test "${crosstools}" = "no"; then
9132 if test "x$aros_toolchain_install" != "x"; then
9134 target_gcc_version
=""
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9136 $as_echo_n "checking gcc version... " >&6; }
9137 if ${ax_cv_gcc_version+:} false
; then :
9138 $as_echo_n "(cached) " >&6
9141 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9142 if test "x$ax_cv_gcc_version" = "x"; then :
9144 ax_cv_gcc_version
=""
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9150 $as_echo "$ax_cv_gcc_version" >&6; }
9151 target_gcc_version
=$ax_cv_gcc_version
9156 if test "$use_gcc_version" = ""; then
9157 target_gcc_version
="$default_gcc_version"
9160 target_gcc_version
="$use_gcc_version"
9162 if test "$aros_toolchain" = "gnu" ; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9164 $as_echo "$target_gcc_version" >&6; }
9166 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9167 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9168 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9170 gcc_fix_bitfields
="false"
9171 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9172 gcc_fix_bitfields
="true"
9174 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9175 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9176 gcc_fix_bitfields
="true"
9181 if test "$gcc_fix_bitfields" = "true" ; then
9182 case "$aros_target_cpu" in
9184 x86_isa_extra
="$x86_isa_extra -mno-ms-bitfields"
9185 x86_64_isa_extra
="$x86_64_isa_extra -mno-ms-bitfields"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9192 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9193 # Check whether --enable-objc was given.
9194 if test "${enable_objc+set}" = set; then :
9195 enableval
=$enable_objc; objc
="$enableval"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9201 $as_echo "$objc" >&6; }
9202 if test "x$objc" = "xyes"; then
9205 objc_target
="no-objc"
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9209 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9210 # Check whether --enable-java was given.
9211 if test "${enable_java+set}" = set; then :
9212 enableval
=$enable_java; java
="$enableval"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9218 $as_echo "$java" >&6; }
9219 if test "x$java" != "xno"; then
9222 java_target
="no-java"
9225 spec_obj_format
="-m $aros_object_format"
9226 # Now process extra architecture-specific options.
9227 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9228 # as well as floating-point ABI.
9229 case "$aros_target_cpu" in
9231 aros_isa_targets
="M68K_ISA_TARGETS:=MC68020 MC68040"
9232 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9233 aros_isa_extra
="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9234 aros_isa_extra
="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9235 aros_isa_extra
="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9236 aros_isa_extra
="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9237 aros_isa_extra
="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9240 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9241 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9244 if test "$gcc_default_cpu" = ""; then
9245 gcc_default_cpu
="armv6"
9247 if test "$gcc_default_fpu" = ""; then
9248 gcc_default_fpu
="vfp"
9250 if test "$gcc_default_endian" = ""; then
9251 if test "$target_cpu" = "armeb"; then
9252 gcc_default_endian
="big-endian"
9254 gcc_default_endian
="little-endian"
9257 if test "$gcc_default_float_abi" = ""; then
9258 if test "$target_cpu" = "armhf"; then
9259 gcc_default_float_abi
="hard"
9261 gcc_default_float_abi
="softfp"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9266 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9268 # Check whether --with-cpu was given.
9269 if test "${with_cpu+set}" = set; then :
9270 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9272 aros_gcc_cpu
=$gcc_default_cpu
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9276 $as_echo "$aros_gcc_cpu" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9279 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9281 # Check whether --with-fpu was given.
9282 if test "${with_fpu+set}" = set; then :
9283 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9285 aros_gcc_fpu
=$gcc_default_fpu
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9289 $as_echo "$aros_gcc_fpu" >&6; }
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9292 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9294 # Check whether --with-float was given.
9295 if test "${with_float+set}" = set; then :
9296 withval
=$with_float; aros_gcc_float_abi
="$withval"
9298 aros_gcc_float_abi
=$gcc_default_float_abi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9302 $as_echo "$aros_gcc_float_abi" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9305 $as_echo_n "checking Which ARM mode to use... " >&6; }
9306 if test "$aros_target_cpu_mode" = ""; then
9307 aros_target_cpu_mode
="arm32"
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9309 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9312 $as_echo "$aros_target_cpu_mode" >&6; }
9315 case "$aros_target_cpu_mode" in
9317 gcc_default_mode
="arm"
9318 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9321 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9324 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9327 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9330 gcc_default_mode
="thumb"
9331 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9332 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9335 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9339 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9340 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9341 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9344 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9345 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9349 # Some architectures may need custom ELF specs.
9350 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9351 elf_specs_in
=config
/${aros_object_format}-specs.
in
9353 elf_specs_in
=config
/elf-specs.
in
9356 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9357 # Since we override specs, we may need to put these defines there
9358 if test "$gcc_target_cpu" != ""; then
9359 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9363 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9365 # Check whether --with-portssources was given.
9366 if test "${with_portssources+set}" = set; then :
9367 withval
=$with_portssources; with_portssrcdir
=$withval
9369 with_portssrcdir
="default"
9372 if test "$with_portssrcdir" = "default"; then
9373 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9375 AROS_PORTSSRCDIR
="$with_portssrcdir"
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9378 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9381 $as_echo_n "checking which bootloader to use... " >&6; }
9383 # Check whether --with-bootloader was given.
9384 if test "${with_bootloader+set}" = set; then :
9385 withval
=$with_bootloader; target_bootloader
=$withval
9387 target_bootloader
=$target_bootloader
9390 if test "$target_bootloader" = "none"; then
9391 aros_target_bootloader
=""
9393 aros_target_bootloader
="$target_bootloader"
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9396 $as_echo "$target_bootloader" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9399 $as_echo_n "checking which icon-set to use... " >&6; }
9401 # Check whether --with-iconset was given.
9402 if test "${with_iconset+set}" = set; then :
9403 withval
=$with_iconset; target_iconset
=$withval
9405 target_iconset
="default"
9408 if test "$target_iconset" = "default"; then
9409 aros_target_iconset
="Gorilla"
9410 target_iconset
="default (Gorilla)"
9412 aros_target_iconset
="$target_iconset"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9415 $as_echo "$target_iconset" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9418 $as_echo_n "checking which GUI Theme to use... " >&6; }
9420 # Check whether --with-theme was given.
9421 if test "${with_theme+set}" = set; then :
9422 withval
=$with_theme; target_guitheme
=$withval
9424 target_guitheme
="default"
9427 if test "$target_guitheme" = "default"; then
9428 aros_target_guitheme
="Ice"
9430 aros_target_guitheme
="$target_guitheme"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9433 $as_echo "$aros_target_guitheme" >&6; }
9435 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9439 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9443 if test "$aros_host_cpu" == "x86_64" ; then
9444 if test "$aros_target_cpu" == "i386" ; then
9449 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9450 if test "$aros_host_arch" != "$aros_target_arch" ; then
9454 if test "$host_cc_elf" = "no" ; then
9459 if test "$cross_compiling" = "no" ; then
9460 kernel_tool_prefix
=""
9461 if test "$host_cc_elf" = "yes" ; then
9466 if test "$kernel_tool_version" != ""; then
9467 kernel_tool_version
="-$kernel_tool_version"
9470 #######################################################################
9471 ## Compute what toolchains to use, and their paths ##
9472 #######################################################################
9474 # This takes, as input:
9475 # crosstools {yes,no}
9476 # kernel_tool_version {"",[version]}
9477 # target_tool_version {"",[version]}
9478 # kernel_tool_prefix {none,[some-arch-os-]}
9480 # target_tool_prefix ${aros_target_cpu}-aros-
9481 # aros_tool_prefix ${aros_target_cpu}-aros-
9484 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9485 # Where the 'kernel' binaries are located
9486 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9487 # Where the 'target' binaries are located
9488 # (not the symlink farm - that is aros_target_*!)
9491 # if crosstools then
9492 # if kernel_tools_prefix = "no-kernel-prefix-"
9493 # aros_kernel_* = crosstools cc paths
9494 # aros_kernel_cc = elf cc wrapper around crosstools cc
9496 # VALIDATE(${kernel_tools_prefix}*)
9497 # aros_kernel_* = ${kernel_tools_prefix}*
9498 # if ${kernel_tools_prefix}cc is an AROS gcc
9499 # aros_kernel_cc = ${kernel_tools_prefix}cc
9501 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9505 # orig_target_* = aros built crosstools
9506 # orig_target_cc = elf cc wrapper around crosstools cc
9508 # VALIDATE(${kernel_tools_prefix}*)
9510 # orig_target_* = aros_kernel_*
9511 # if aros_kernel_cc is an AROS gcc
9512 # orig_target_cc = aros_kernel_cc
9514 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9518 if test "$aros_toolchain" = "gnu" ; then
9519 target_tool_prefix
="${aros_target_cpu}-aros-"
9520 elif test "$aros_toolchain" = "llvm" ; then
9521 target_tool_prefix
="bin/"
9524 if test "$kernel_tool_prefix" != "" ; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9526 $as_echo_n "checking which kernel tools... " >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9528 $as_echo "$kernel_tool_prefix" >&6; };
9531 if test "$kernel_tool_prefix" = "none" ; then
9532 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9533 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9536 # Kernel tools required - find them
9537 # Note that 'normally', aros_kernel_* overrides will be
9538 # empty, unless specified in the per-arch sections above.
9539 if test "x$aros_kernel_cpp" = "x"; then
9540 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9542 if test "${kernel_tool_version}" != ""; then
9543 if test "$aros_kernel_cpp" != ""; then
9544 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9545 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
9546 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9550 if test "$aros_kernel_cpp" = ""; then
9551 if test "$cross_compiling" = "yes" ; then
9552 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9553 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9557 $as_echo_n "(cached) " >&6
9559 case $aros_kernel_cpp in
9561 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9568 test -z "$as_dir" && as_dir
=.
9569 for ac_exec_ext
in '' $ac_executable_extensions; do
9570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9583 if test -n "$aros_kernel_cpp"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9585 $as_echo "$aros_kernel_cpp" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9593 if test "$GCC" = "yes"; then
9594 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9595 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9596 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9600 $as_echo_n "(cached) " >&6
9602 case $aros_kernel_cpp in
9604 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9608 for as_dir
in `dirname $aros_gcc_cpp`
9611 test -z "$as_dir" && as_dir
=.
9612 for ac_exec_ext
in '' $ac_executable_extensions; do
9613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9626 if test -n "$aros_kernel_cpp"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9628 $as_echo "$aros_kernel_cpp" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9636 if test "$aros_kernel_cpp" = ""; then
9637 # Extract the first word of "cpp", so it can be a program name with args.
9638 set dummy cpp
; ac_word
=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9644 case $aros_kernel_cpp in
9646 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir
=.
9654 for ac_exec_ext
in '' $ac_executable_extensions; do
9655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9668 if test -n "$aros_kernel_cpp"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9670 $as_echo "$aros_kernel_cpp" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9680 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9681 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9682 set dummy
$aros_kernel_cpp; ac_word
=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9686 $as_echo_n "(cached) " >&6
9688 case $aros_kernel_cpp in
9690 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9697 test -z "$as_dir" && as_dir
=.
9698 for ac_exec_ext
in '' $ac_executable_extensions; do
9699 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9712 if test -n "$aros_kernel_cpp"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9714 $as_echo "$aros_kernel_cpp" >&6; }
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9721 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
9725 if test "$aros_kernel_cpp" = ""; then
9728 if test "$aros_kernel_cpp" = "no"; then
9731 if test "$req_avail" = "no"; then
9732 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9735 if test "x$aros_kernel_cc" = "x"; then
9736 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9738 if test "${kernel_tool_version}" != ""; then
9739 if test "$aros_kernel_cc" != ""; then
9740 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9741 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
9742 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9746 if test "$aros_kernel_cc" = ""; then
9747 if test "$cross_compiling" = "yes" ; then
9748 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9749 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9753 $as_echo_n "(cached) " >&6
9755 case $aros_kernel_cc in
9757 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9764 test -z "$as_dir" && as_dir
=.
9765 for ac_exec_ext
in '' $ac_executable_extensions; do
9766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9779 if test -n "$aros_kernel_cc"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9781 $as_echo "$aros_kernel_cc" >&6; }
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9789 if test "$GCC" = "yes"; then
9790 aros_gcc_cc
=`$CC -print-prog-name=cc`
9791 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9792 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9796 $as_echo_n "(cached) " >&6
9798 case $aros_kernel_cc in
9800 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9804 for as_dir
in `dirname $aros_gcc_cc`
9807 test -z "$as_dir" && as_dir
=.
9808 for ac_exec_ext
in '' $ac_executable_extensions; do
9809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9822 if test -n "$aros_kernel_cc"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9824 $as_echo "$aros_kernel_cc" >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test "$aros_kernel_cc" = ""; then
9833 # Extract the first word of "cc", so it can be a program name with args.
9834 set dummy cc
; ac_word
=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9838 $as_echo_n "(cached) " >&6
9840 case $aros_kernel_cc in
9842 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9849 test -z "$as_dir" && as_dir
=.
9850 for ac_exec_ext
in '' $ac_executable_extensions; do
9851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9864 if test -n "$aros_kernel_cc"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9866 $as_echo "$aros_kernel_cc" >&6; }
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9876 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9877 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9878 set dummy
$aros_kernel_cc; ac_word
=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9882 $as_echo_n "(cached) " >&6
9884 case $aros_kernel_cc in
9886 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9893 test -z "$as_dir" && as_dir
=.
9894 for ac_exec_ext
in '' $ac_executable_extensions; do
9895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9908 if test -n "$aros_kernel_cc"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9910 $as_echo "$aros_kernel_cc" >&6; }
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9917 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
9921 if test "$aros_kernel_cc" = ""; then
9924 if test "$aros_kernel_cc" = "no"; then
9927 if test "$req_avail" = "no"; then
9928 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9931 if test "x$aros_kernel_cxx" = "x"; then
9932 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9934 if test "${kernel_tool_version}" != ""; then
9935 if test "$aros_kernel_cxx" != ""; then
9936 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9937 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
9938 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9942 if test "$aros_kernel_cxx" = ""; then
9943 if test "$cross_compiling" = "yes" ; then
9944 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9945 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9949 $as_echo_n "(cached) " >&6
9951 case $aros_kernel_cxx in
9953 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9960 test -z "$as_dir" && as_dir
=.
9961 for ac_exec_ext
in '' $ac_executable_extensions; do
9962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9975 if test -n "$aros_kernel_cxx"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9977 $as_echo "$aros_kernel_cxx" >&6; }
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9985 if test "$GCC" = "yes"; then
9986 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9987 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9988 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9992 $as_echo_n "(cached) " >&6
9994 case $aros_kernel_cxx in
9996 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10000 for as_dir
in `dirname $aros_gcc_cxx`
10003 test -z "$as_dir" && as_dir
=.
10004 for ac_exec_ext
in '' $ac_executable_extensions; do
10005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10018 if test -n "$aros_kernel_cxx"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10020 $as_echo "$aros_kernel_cxx" >&6; }
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10028 if test "$aros_kernel_cxx" = ""; then
10029 # Extract the first word of "cxx", so it can be a program name with args.
10030 set dummy cxx
; ac_word
=$2
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032 $as_echo_n "checking for $ac_word... " >&6; }
10033 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10034 $as_echo_n "(cached) " >&6
10036 case $aros_kernel_cxx in
10038 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10042 for as_dir
in $PATH
10045 test -z "$as_dir" && as_dir
=.
10046 for ac_exec_ext
in '' $ac_executable_extensions; do
10047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10048 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10060 if test -n "$aros_kernel_cxx"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10062 $as_echo "$aros_kernel_cxx" >&6; }
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10072 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10073 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10074 set dummy
$aros_kernel_cxx; ac_word
=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10080 case $aros_kernel_cxx in
10082 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10086 for as_dir
in $PATH
10089 test -z "$as_dir" && as_dir
=.
10090 for ac_exec_ext
in '' $ac_executable_extensions; do
10091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10104 if test -n "$aros_kernel_cxx"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10106 $as_echo "$aros_kernel_cxx" >&6; }
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10113 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10116 # If it's set, make sure it's really there
10117 if test "x$aros_kernel_cxx" != "x" ; then
10119 if test "$aros_kernel_cxx" = ""; then
10122 if test "$aros_kernel_cxx" = "no"; then
10125 if test "$req_avail" = "no"; then
10126 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10130 if test "$aros_kernel_ld" = ""; then
10131 if test "$cross_compiling" = "yes" ; then
10132 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10133 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10137 $as_echo_n "(cached) " >&6
10139 case $aros_kernel_ld in
10141 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10145 for as_dir
in $PATH
10148 test -z "$as_dir" && as_dir
=.
10149 for ac_exec_ext
in '' $ac_executable_extensions; do
10150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10163 if test -n "$aros_kernel_ld"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10165 $as_echo "$aros_kernel_ld" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test "$GCC" = "yes"; then
10174 aros_gcc_ld
=`$CC -print-prog-name=ld`
10175 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10176 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10180 $as_echo_n "(cached) " >&6
10182 case $aros_kernel_ld in
10184 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10188 for as_dir
in `dirname $aros_gcc_ld`
10191 test -z "$as_dir" && as_dir
=.
10192 for ac_exec_ext
in '' $ac_executable_extensions; do
10193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10206 if test -n "$aros_kernel_ld"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10208 $as_echo "$aros_kernel_ld" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10216 if test "$aros_kernel_ld" = ""; then
10217 # Extract the first word of "ld", so it can be a program name with args.
10218 set dummy ld
; ac_word
=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10222 $as_echo_n "(cached) " >&6
10224 case $aros_kernel_ld in
10226 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10230 for as_dir
in $PATH
10233 test -z "$as_dir" && as_dir
=.
10234 for ac_exec_ext
in '' $ac_executable_extensions; do
10235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10248 if test -n "$aros_kernel_ld"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10250 $as_echo "$aros_kernel_ld" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10260 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10261 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10262 set dummy
$aros_kernel_ld; ac_word
=$2
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 $as_echo_n "checking for $ac_word... " >&6; }
10265 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10266 $as_echo_n "(cached) " >&6
10268 case $aros_kernel_ld in
10270 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10274 for as_dir
in $PATH
10277 test -z "$as_dir" && as_dir
=.
10278 for ac_exec_ext
in '' $ac_executable_extensions; do
10279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10292 if test -n "$aros_kernel_ld"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10294 $as_echo "$aros_kernel_ld" >&6; }
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10301 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10305 if test "$aros_kernel_ld" = ""; then
10308 if test "$aros_kernel_ld" = "no"; then
10311 if test "$req_avail" = "no"; then
10312 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10315 if test "$aros_kernel_as" = ""; then
10316 if test "$cross_compiling" = "yes" ; then
10317 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10318 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10322 $as_echo_n "(cached) " >&6
10324 case $aros_kernel_as in
10326 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10330 for as_dir
in $PATH
10333 test -z "$as_dir" && as_dir
=.
10334 for ac_exec_ext
in '' $ac_executable_extensions; do
10335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10348 if test -n "$aros_kernel_as"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10350 $as_echo "$aros_kernel_as" >&6; }
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10358 if test "$GCC" = "yes"; then
10359 aros_gcc_as
=`$CC -print-prog-name=as`
10360 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10361 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10365 $as_echo_n "(cached) " >&6
10367 case $aros_kernel_as in
10369 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10373 for as_dir
in `dirname $aros_gcc_as`
10376 test -z "$as_dir" && as_dir
=.
10377 for ac_exec_ext
in '' $ac_executable_extensions; do
10378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10391 if test -n "$aros_kernel_as"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10393 $as_echo "$aros_kernel_as" >&6; }
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10401 if test "$aros_kernel_as" = ""; then
10402 # Extract the first word of "as", so it can be a program name with args.
10403 set dummy as
; ac_word
=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10407 $as_echo_n "(cached) " >&6
10409 case $aros_kernel_as in
10411 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10415 for as_dir
in $PATH
10418 test -z "$as_dir" && as_dir
=.
10419 for ac_exec_ext
in '' $ac_executable_extensions; do
10420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10433 if test -n "$aros_kernel_as"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10435 $as_echo "$aros_kernel_as" >&6; }
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10445 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10446 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10447 set dummy
$aros_kernel_as; ac_word
=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10451 $as_echo_n "(cached) " >&6
10453 case $aros_kernel_as in
10455 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10459 for as_dir
in $PATH
10462 test -z "$as_dir" && as_dir
=.
10463 for ac_exec_ext
in '' $ac_executable_extensions; do
10464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10477 if test -n "$aros_kernel_as"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10479 $as_echo "$aros_kernel_as" >&6; }
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10486 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
10490 if test "$aros_kernel_as" = ""; then
10493 if test "$aros_kernel_as" = "no"; then
10496 if test "$req_avail" = "no"; then
10497 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10500 if test "$aros_kernel_ar" = ""; then
10501 if test "$cross_compiling" = "yes" ; then
10502 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10503 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10507 $as_echo_n "(cached) " >&6
10509 case $aros_kernel_ar in
10511 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10515 for as_dir
in $PATH
10518 test -z "$as_dir" && as_dir
=.
10519 for ac_exec_ext
in '' $ac_executable_extensions; do
10520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10533 if test -n "$aros_kernel_ar"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10535 $as_echo "$aros_kernel_ar" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10543 if test "$GCC" = "yes"; then
10544 aros_gcc_ar
=`$CC -print-prog-name=ar`
10545 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10546 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10550 $as_echo_n "(cached) " >&6
10552 case $aros_kernel_ar in
10554 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10558 for as_dir
in `dirname $aros_gcc_ar`
10561 test -z "$as_dir" && as_dir
=.
10562 for ac_exec_ext
in '' $ac_executable_extensions; do
10563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10576 if test -n "$aros_kernel_ar"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10578 $as_echo "$aros_kernel_ar" >&6; }
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10586 if test "$aros_kernel_ar" = ""; then
10587 # Extract the first word of "ar", so it can be a program name with args.
10588 set dummy
ar; ac_word
=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10592 $as_echo_n "(cached) " >&6
10594 case $aros_kernel_ar in
10596 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10600 for as_dir
in $PATH
10603 test -z "$as_dir" && as_dir
=.
10604 for ac_exec_ext
in '' $ac_executable_extensions; do
10605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10606 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10618 if test -n "$aros_kernel_ar"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10620 $as_echo "$aros_kernel_ar" >&6; }
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10630 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10631 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10632 set dummy
$aros_kernel_ar; ac_word
=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10636 $as_echo_n "(cached) " >&6
10638 case $aros_kernel_ar in
10640 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10644 for as_dir
in $PATH
10647 test -z "$as_dir" && as_dir
=.
10648 for ac_exec_ext
in '' $ac_executable_extensions; do
10649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10662 if test -n "$aros_kernel_ar"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10664 $as_echo "$aros_kernel_ar" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10671 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
10675 if test "$aros_kernel_ar" = ""; then
10678 if test "$aros_kernel_ar" = "no"; then
10681 if test "$req_avail" = "no"; then
10682 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10685 if test "$aros_kernel_ranlib" = ""; then
10686 if test "$cross_compiling" = "yes" ; then
10687 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10688 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10692 $as_echo_n "(cached) " >&6
10694 case $aros_kernel_ranlib in
10696 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10700 for as_dir
in $PATH
10703 test -z "$as_dir" && as_dir
=.
10704 for ac_exec_ext
in '' $ac_executable_extensions; do
10705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10718 if test -n "$aros_kernel_ranlib"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10720 $as_echo "$aros_kernel_ranlib" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10728 if test "$GCC" = "yes"; then
10729 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10730 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10731 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10735 $as_echo_n "(cached) " >&6
10737 case $aros_kernel_ranlib in
10739 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10743 for as_dir
in `dirname $aros_gcc_ranlib`
10746 test -z "$as_dir" && as_dir
=.
10747 for ac_exec_ext
in '' $ac_executable_extensions; do
10748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10761 if test -n "$aros_kernel_ranlib"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10763 $as_echo "$aros_kernel_ranlib" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10771 if test "$aros_kernel_ranlib" = ""; then
10772 # Extract the first word of "ranlib", so it can be a program name with args.
10773 set dummy ranlib
; ac_word
=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10777 $as_echo_n "(cached) " >&6
10779 case $aros_kernel_ranlib in
10781 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10785 for as_dir
in $PATH
10788 test -z "$as_dir" && as_dir
=.
10789 for ac_exec_ext
in '' $ac_executable_extensions; do
10790 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10803 if test -n "$aros_kernel_ranlib"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10805 $as_echo "$aros_kernel_ranlib" >&6; }
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10815 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10816 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10817 set dummy
$aros_kernel_ranlib; ac_word
=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10821 $as_echo_n "(cached) " >&6
10823 case $aros_kernel_ranlib in
10825 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10829 for as_dir
in $PATH
10832 test -z "$as_dir" && as_dir
=.
10833 for ac_exec_ext
in '' $ac_executable_extensions; do
10834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10847 if test -n "$aros_kernel_ranlib"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10849 $as_echo "$aros_kernel_ranlib" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10856 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
10860 if test "$aros_kernel_ranlib" = ""; then
10863 if test "$aros_kernel_ranlib" = "no"; then
10866 if test "$req_avail" = "no"; then
10867 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10870 if test "$aros_kernel_nm" = ""; then
10871 if test "$cross_compiling" = "yes" ; then
10872 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10873 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10877 $as_echo_n "(cached) " >&6
10879 case $aros_kernel_nm in
10881 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10885 for as_dir
in $PATH
10888 test -z "$as_dir" && as_dir
=.
10889 for ac_exec_ext
in '' $ac_executable_extensions; do
10890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10903 if test -n "$aros_kernel_nm"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10905 $as_echo "$aros_kernel_nm" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10913 if test "$GCC" = "yes"; then
10914 aros_gcc_nm
=`$CC -print-prog-name=nm`
10915 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10916 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10920 $as_echo_n "(cached) " >&6
10922 case $aros_kernel_nm in
10924 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10928 for as_dir
in `dirname $aros_gcc_nm`
10931 test -z "$as_dir" && as_dir
=.
10932 for ac_exec_ext
in '' $ac_executable_extensions; do
10933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10946 if test -n "$aros_kernel_nm"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10948 $as_echo "$aros_kernel_nm" >&6; }
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10956 if test "$aros_kernel_nm" = ""; then
10957 # Extract the first word of "nm", so it can be a program name with args.
10958 set dummy nm
; ac_word
=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10962 $as_echo_n "(cached) " >&6
10964 case $aros_kernel_nm in
10966 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10970 for as_dir
in $PATH
10973 test -z "$as_dir" && as_dir
=.
10974 for ac_exec_ext
in '' $ac_executable_extensions; do
10975 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10988 if test -n "$aros_kernel_nm"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10990 $as_echo "$aros_kernel_nm" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
11000 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11001 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11002 set dummy
$aros_kernel_nm; ac_word
=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11006 $as_echo_n "(cached) " >&6
11008 case $aros_kernel_nm in
11010 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11014 for as_dir
in $PATH
11017 test -z "$as_dir" && as_dir
=.
11018 for ac_exec_ext
in '' $ac_executable_extensions; do
11019 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11032 if test -n "$aros_kernel_nm"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11034 $as_echo "$aros_kernel_nm" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11045 if test "$aros_kernel_nm" = ""; then
11048 if test "$aros_kernel_nm" = "no"; then
11051 if test "$req_avail" = "no"; then
11052 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11055 if test "$aros_kernel_strip" = ""; then
11056 if test "$cross_compiling" = "yes" ; then
11057 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11058 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11062 $as_echo_n "(cached) " >&6
11064 case $aros_kernel_strip in
11066 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11070 for as_dir
in $PATH
11073 test -z "$as_dir" && as_dir
=.
11074 for ac_exec_ext
in '' $ac_executable_extensions; do
11075 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11088 if test -n "$aros_kernel_strip"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11090 $as_echo "$aros_kernel_strip" >&6; }
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11098 if test "$GCC" = "yes"; then
11099 aros_gcc_strip
=`$CC -print-prog-name=strip`
11100 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11101 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11105 $as_echo_n "(cached) " >&6
11107 case $aros_kernel_strip in
11109 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11113 for as_dir
in `dirname $aros_gcc_strip`
11116 test -z "$as_dir" && as_dir
=.
11117 for ac_exec_ext
in '' $ac_executable_extensions; do
11118 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11131 if test -n "$aros_kernel_strip"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11133 $as_echo "$aros_kernel_strip" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11141 if test "$aros_kernel_strip" = ""; then
11142 # Extract the first word of "strip", so it can be a program name with args.
11143 set dummy strip
; ac_word
=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11147 $as_echo_n "(cached) " >&6
11149 case $aros_kernel_strip in
11151 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11155 for as_dir
in $PATH
11158 test -z "$as_dir" && as_dir
=.
11159 for ac_exec_ext
in '' $ac_executable_extensions; do
11160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11173 if test -n "$aros_kernel_strip"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11175 $as_echo "$aros_kernel_strip" >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11185 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11186 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11187 set dummy
$aros_kernel_strip; ac_word
=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11191 $as_echo_n "(cached) " >&6
11193 case $aros_kernel_strip in
11195 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11199 for as_dir
in $PATH
11202 test -z "$as_dir" && as_dir
=.
11203 for ac_exec_ext
in '' $ac_executable_extensions; do
11204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11217 if test -n "$aros_kernel_strip"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11219 $as_echo "$aros_kernel_strip" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11226 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11230 if test "$aros_kernel_strip" = ""; then
11233 if test "$aros_kernel_strip" = "no"; then
11236 if test "$req_avail" = "no"; then
11237 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11240 # Objcopy and objdump are not required for the kernel
11241 # toolchain on many architectures.
11242 # So we'll look for them, but not make them strictly required.
11244 if test "$aros_kernel_objcopy" = ""; then
11245 if test "$cross_compiling" = "yes" ; then
11246 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11247 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11251 $as_echo_n "(cached) " >&6
11253 case $aros_kernel_objcopy in
11255 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11259 for as_dir
in $PATH
11262 test -z "$as_dir" && as_dir
=.
11263 for ac_exec_ext
in '' $ac_executable_extensions; do
11264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11277 if test -n "$aros_kernel_objcopy"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11279 $as_echo "$aros_kernel_objcopy" >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 if test "$GCC" = "yes"; then
11288 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11289 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11290 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11294 $as_echo_n "(cached) " >&6
11296 case $aros_kernel_objcopy in
11298 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11302 for as_dir
in `dirname $aros_gcc_objcopy`
11305 test -z "$as_dir" && as_dir
=.
11306 for ac_exec_ext
in '' $ac_executable_extensions; do
11307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11320 if test -n "$aros_kernel_objcopy"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11322 $as_echo "$aros_kernel_objcopy" >&6; }
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11330 if test "$aros_kernel_objcopy" = ""; then
11331 # Extract the first word of "objcopy", so it can be a program name with args.
11332 set dummy objcopy
; ac_word
=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11336 $as_echo_n "(cached) " >&6
11338 case $aros_kernel_objcopy in
11340 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11344 for as_dir
in $PATH
11347 test -z "$as_dir" && as_dir
=.
11348 for ac_exec_ext
in '' $ac_executable_extensions; do
11349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11362 if test -n "$aros_kernel_objcopy"; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11364 $as_echo "$aros_kernel_objcopy" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11374 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11375 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11376 set dummy
$aros_kernel_objcopy; ac_word
=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11380 $as_echo_n "(cached) " >&6
11382 case $aros_kernel_objcopy in
11384 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11388 for as_dir
in $PATH
11391 test -z "$as_dir" && as_dir
=.
11392 for ac_exec_ext
in '' $ac_executable_extensions; do
11393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11406 if test -n "$aros_kernel_objcopy"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11408 $as_echo "$aros_kernel_objcopy" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11415 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
11419 if test "$aros_kernel_objdump" = ""; then
11420 if test "$cross_compiling" = "yes" ; then
11421 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11422 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11426 $as_echo_n "(cached) " >&6
11428 case $aros_kernel_objdump in
11430 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11434 for as_dir
in $PATH
11437 test -z "$as_dir" && as_dir
=.
11438 for ac_exec_ext
in '' $ac_executable_extensions; do
11439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11452 if test -n "$aros_kernel_objdump"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11454 $as_echo "$aros_kernel_objdump" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11462 if test "$GCC" = "yes"; then
11463 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11464 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11465 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11469 $as_echo_n "(cached) " >&6
11471 case $aros_kernel_objdump in
11473 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11477 for as_dir
in `dirname $aros_gcc_objdump`
11480 test -z "$as_dir" && as_dir
=.
11481 for ac_exec_ext
in '' $ac_executable_extensions; do
11482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11495 if test -n "$aros_kernel_objdump"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11497 $as_echo "$aros_kernel_objdump" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11505 if test "$aros_kernel_objdump" = ""; then
11506 # Extract the first word of "objdump", so it can be a program name with args.
11507 set dummy objdump
; ac_word
=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11511 $as_echo_n "(cached) " >&6
11513 case $aros_kernel_objdump in
11515 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11519 for as_dir
in $PATH
11522 test -z "$as_dir" && as_dir
=.
11523 for ac_exec_ext
in '' $ac_executable_extensions; do
11524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11537 if test -n "$aros_kernel_objdump"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11539 $as_echo "$aros_kernel_objdump" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11549 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11550 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11551 set dummy
$aros_kernel_objdump; ac_word
=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11555 $as_echo_n "(cached) " >&6
11557 case $aros_kernel_objdump in
11559 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11563 for as_dir
in $PATH
11566 test -z "$as_dir" && as_dir
=.
11567 for ac_exec_ext
in '' $ac_executable_extensions; do
11568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11569 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11581 if test -n "$aros_kernel_objdump"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11583 $as_echo "$aros_kernel_objdump" >&6; }
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11590 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
11593 if test "x${crosstools}" != "xyes" ; then
11595 if test "$aros_kernel_objcopy" = ""; then
11598 if test "$aros_kernel_objcopy" = "no"; then
11601 if test "$req_avail" = "no"; then
11602 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11605 if test "$aros_kernel_objdump" = ""; then
11608 if test "$aros_kernel_objdump" = "no"; then
11611 if test "$req_avail" = "no"; then
11612 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11618 $as_echo_n "checking which target tools to use... " >&6; }
11619 if test "$aros_target_toolchain" = "yes"; then
11620 if test "$aros_toolchain" = "llvm" ; then
11623 msg_result
=$target_tool_prefix
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11626 $as_echo "$msg_result" >&6; }
11627 # We are building AROS crosstools
11628 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11629 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11630 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11631 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11632 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11633 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11634 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11635 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11636 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11637 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11638 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11639 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11641 # Determine whether AROS or ELF tools should be used
11642 if test "$aros_tool_prefix" = "none"; then
11643 aros_tool_prefix
="${elf_tool_prefix}"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11647 $as_echo "$aros_tool_prefix" >&6; }
11648 # We are *not* building AROS crosstools - use the AROS or ELF tools
11650 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11651 if test "$cross_compiling" = "yes" ; then
11652 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11653 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11657 $as_echo_n "(cached) " >&6
11659 case $orig_target_cpp in
11661 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11665 for as_dir
in $PATH
11668 test -z "$as_dir" && as_dir
=.
11669 for ac_exec_ext
in '' $ac_executable_extensions; do
11670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11683 if test -n "$orig_target_cpp"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11685 $as_echo "$orig_target_cpp" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test "$GCC" = "yes"; then
11694 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11695 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11696 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11700 $as_echo_n "(cached) " >&6
11702 case $orig_target_cpp in
11704 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11708 for as_dir
in `dirname $aros_gcc_cpp`
11711 test -z "$as_dir" && as_dir
=.
11712 for ac_exec_ext
in '' $ac_executable_extensions; do
11713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11726 if test -n "$orig_target_cpp"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11728 $as_echo "$orig_target_cpp" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11736 if test "$orig_target_cpp" = ""; then
11737 # Extract the first word of "cpp", so it can be a program name with args.
11738 set dummy cpp
; ac_word
=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11742 $as_echo_n "(cached) " >&6
11744 case $orig_target_cpp in
11746 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11750 for as_dir
in $PATH
11753 test -z "$as_dir" && as_dir
=.
11754 for ac_exec_ext
in '' $ac_executable_extensions; do
11755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11768 if test -n "$orig_target_cpp"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11770 $as_echo "$orig_target_cpp" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11780 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11781 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11782 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11786 $as_echo_n "(cached) " >&6
11788 case $orig_target_cpp in
11790 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11794 for as_dir
in $PATH
11797 test -z "$as_dir" && as_dir
=.
11798 for ac_exec_ext
in '' $ac_executable_extensions; do
11799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11812 if test -n "$orig_target_cpp"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11814 $as_echo "$orig_target_cpp" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11821 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
11825 if test "$orig_target_cpp" = ""; then
11828 if test "$orig_target_cpp" = "no"; then
11831 if test "$req_avail" = "no"; then
11832 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11835 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11836 if test "$cross_compiling" = "yes" ; then
11837 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11838 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_path_orig_target_cc+:} false
; then :
11842 $as_echo_n "(cached) " >&6
11844 case $orig_target_cc in
11846 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11850 for as_dir
in $PATH
11853 test -z "$as_dir" && as_dir
=.
11854 for ac_exec_ext
in '' $ac_executable_extensions; do
11855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 orig_target_cc
=$ac_cv_path_orig_target_cc
11868 if test -n "$orig_target_cc"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11870 $as_echo "$orig_target_cc" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11878 if test "$GCC" = "yes"; then
11879 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11880 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11881 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_path_orig_target_cc+:} false
; then :
11885 $as_echo_n "(cached) " >&6
11887 case $orig_target_cc in
11889 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11893 for as_dir
in `dirname $aros_gcc_gcc`
11896 test -z "$as_dir" && as_dir
=.
11897 for ac_exec_ext
in '' $ac_executable_extensions; do
11898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 orig_target_cc
=$ac_cv_path_orig_target_cc
11911 if test -n "$orig_target_cc"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11913 $as_echo "$orig_target_cc" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11921 if test "$orig_target_cc" = ""; then
11922 # Extract the first word of "gcc", so it can be a program name with args.
11923 set dummy gcc
; ac_word
=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_path_orig_target_cc+:} false
; then :
11927 $as_echo_n "(cached) " >&6
11929 case $orig_target_cc in
11931 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11935 for as_dir
in $PATH
11938 test -z "$as_dir" && as_dir
=.
11939 for ac_exec_ext
in '' $ac_executable_extensions; do
11940 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952 orig_target_cc
=$ac_cv_path_orig_target_cc
11953 if test -n "$orig_target_cc"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11955 $as_echo "$orig_target_cc" >&6; }
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11965 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11966 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11967 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_path_orig_target_cc+:} false
; then :
11971 $as_echo_n "(cached) " >&6
11973 case $orig_target_cc in
11975 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11979 for as_dir
in $PATH
11982 test -z "$as_dir" && as_dir
=.
11983 for ac_exec_ext
in '' $ac_executable_extensions; do
11984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 orig_target_cc
=$ac_cv_path_orig_target_cc
11997 if test -n "$orig_target_cc"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11999 $as_echo "$orig_target_cc" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12006 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12010 if test "$orig_target_cc" = ""; then
12013 if test "$orig_target_cc" = "no"; then
12016 if test "$req_avail" = "no"; then
12017 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12020 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12021 if test "$cross_compiling" = "yes" ; then
12022 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12023 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12027 $as_echo_n "(cached) " >&6
12029 case $orig_target_cxx in
12031 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12035 for as_dir
in $PATH
12038 test -z "$as_dir" && as_dir
=.
12039 for ac_exec_ext
in '' $ac_executable_extensions; do
12040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12053 if test -n "$orig_target_cxx"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12055 $as_echo "$orig_target_cxx" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12063 if test "$GCC" = "yes"; then
12064 aros_gcc_g
++=`$CC -print-prog-name=g++`
12065 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12066 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12070 $as_echo_n "(cached) " >&6
12072 case $orig_target_cxx in
12074 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12078 for as_dir
in `dirname $aros_gcc_g++`
12081 test -z "$as_dir" && as_dir
=.
12082 for ac_exec_ext
in '' $ac_executable_extensions; do
12083 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12084 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12096 if test -n "$orig_target_cxx"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12098 $as_echo "$orig_target_cxx" >&6; }
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12106 if test "$orig_target_cxx" = ""; then
12107 # Extract the first word of "g++", so it can be a program name with args.
12108 set dummy g
++; ac_word
=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12112 $as_echo_n "(cached) " >&6
12114 case $orig_target_cxx in
12116 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12120 for as_dir
in $PATH
12123 test -z "$as_dir" && as_dir
=.
12124 for ac_exec_ext
in '' $ac_executable_extensions; do
12125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12138 if test -n "$orig_target_cxx"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12140 $as_echo "$orig_target_cxx" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12150 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12151 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12152 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12156 $as_echo_n "(cached) " >&6
12158 case $orig_target_cxx in
12160 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12164 for as_dir
in $PATH
12167 test -z "$as_dir" && as_dir
=.
12168 for ac_exec_ext
in '' $ac_executable_extensions; do
12169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12182 if test -n "$orig_target_cxx"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12184 $as_echo "$orig_target_cxx" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12191 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12195 if test "$orig_target_cxx" = ""; then
12198 if test "$orig_target_cxx" = "no"; then
12201 if test "$req_avail" = "no"; then
12202 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12205 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12206 if test "$cross_compiling" = "yes" ; then
12207 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12208 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_path_orig_target_ld+:} false
; then :
12212 $as_echo_n "(cached) " >&6
12214 case $orig_target_ld in
12216 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12220 for as_dir
in $PATH
12223 test -z "$as_dir" && as_dir
=.
12224 for ac_exec_ext
in '' $ac_executable_extensions; do
12225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 orig_target_ld
=$ac_cv_path_orig_target_ld
12238 if test -n "$orig_target_ld"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12240 $as_echo "$orig_target_ld" >&6; }
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12248 if test "$GCC" = "yes"; then
12249 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
12250 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12251 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if ${ac_cv_path_orig_target_ld+:} false
; then :
12255 $as_echo_n "(cached) " >&6
12257 case $orig_target_ld in
12259 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12263 for as_dir
in `dirname $aros_gcc_gcc`
12266 test -z "$as_dir" && as_dir
=.
12267 for ac_exec_ext
in '' $ac_executable_extensions; do
12268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 orig_target_ld
=$ac_cv_path_orig_target_ld
12281 if test -n "$orig_target_ld"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12283 $as_echo "$orig_target_ld" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12291 if test "$orig_target_ld" = ""; then
12292 # Extract the first word of "gcc", so it can be a program name with args.
12293 set dummy gcc
; ac_word
=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_path_orig_target_ld+:} false
; then :
12297 $as_echo_n "(cached) " >&6
12299 case $orig_target_ld in
12301 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12305 for as_dir
in $PATH
12308 test -z "$as_dir" && as_dir
=.
12309 for ac_exec_ext
in '' $ac_executable_extensions; do
12310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 orig_target_ld
=$ac_cv_path_orig_target_ld
12323 if test -n "$orig_target_ld"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12325 $as_echo "$orig_target_ld" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12335 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12336 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12337 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_path_orig_target_ld+:} false
; then :
12341 $as_echo_n "(cached) " >&6
12343 case $orig_target_ld in
12345 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12349 for as_dir
in $PATH
12352 test -z "$as_dir" && as_dir
=.
12353 for ac_exec_ext
in '' $ac_executable_extensions; do
12354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12355 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 orig_target_ld
=$ac_cv_path_orig_target_ld
12367 if test -n "$orig_target_ld"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12369 $as_echo "$orig_target_ld" >&6; }
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
12380 if test "$orig_target_ld" = ""; then
12383 if test "$orig_target_ld" = "no"; then
12386 if test "$req_avail" = "no"; then
12387 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12390 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12391 if test "$cross_compiling" = "yes" ; then
12392 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12393 set dummy
${target_tool_prefix}as
; ac_word
=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_orig_target_as+:} false
; then :
12397 $as_echo_n "(cached) " >&6
12399 case $orig_target_as in
12401 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12405 for as_dir
in $PATH
12408 test -z "$as_dir" && as_dir
=.
12409 for ac_exec_ext
in '' $ac_executable_extensions; do
12410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 orig_target_as
=$ac_cv_path_orig_target_as
12423 if test -n "$orig_target_as"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12425 $as_echo "$orig_target_as" >&6; }
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12433 if test "$GCC" = "yes"; then
12434 aros_gcc_as
=`$CC -print-prog-name=as`
12435 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12436 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if ${ac_cv_path_orig_target_as+:} false
; then :
12440 $as_echo_n "(cached) " >&6
12442 case $orig_target_as in
12444 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12448 for as_dir
in `dirname $aros_gcc_as`
12451 test -z "$as_dir" && as_dir
=.
12452 for ac_exec_ext
in '' $ac_executable_extensions; do
12453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12454 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 orig_target_as
=$ac_cv_path_orig_target_as
12466 if test -n "$orig_target_as"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12468 $as_echo "$orig_target_as" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12476 if test "$orig_target_as" = ""; then
12477 # Extract the first word of "as", so it can be a program name with args.
12478 set dummy as
; ac_word
=$2
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12480 $as_echo_n "checking for $ac_word... " >&6; }
12481 if ${ac_cv_path_orig_target_as+:} false
; then :
12482 $as_echo_n "(cached) " >&6
12484 case $orig_target_as in
12486 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12490 for as_dir
in $PATH
12493 test -z "$as_dir" && as_dir
=.
12494 for ac_exec_ext
in '' $ac_executable_extensions; do
12495 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12496 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 orig_target_as
=$ac_cv_path_orig_target_as
12508 if test -n "$orig_target_as"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12510 $as_echo "$orig_target_as" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12520 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12521 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12522 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if ${ac_cv_path_orig_target_as+:} false
; then :
12526 $as_echo_n "(cached) " >&6
12528 case $orig_target_as in
12530 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12534 for as_dir
in $PATH
12537 test -z "$as_dir" && as_dir
=.
12538 for ac_exec_ext
in '' $ac_executable_extensions; do
12539 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 orig_target_as
=$ac_cv_path_orig_target_as
12552 if test -n "$orig_target_as"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12554 $as_echo "$orig_target_as" >&6; }
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12561 orig_target_as
="$orig_target_as $ac_tool_optarg"
12565 if test "$orig_target_as" = ""; then
12568 if test "$orig_target_as" = "no"; then
12571 if test "$req_avail" = "no"; then
12572 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12575 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12576 if test "$cross_compiling" = "yes" ; then
12577 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12578 set dummy
${target_tool_prefix}ar; ac_word
=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_orig_target_ar+:} false
; then :
12582 $as_echo_n "(cached) " >&6
12584 case $orig_target_ar in
12586 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12590 for as_dir
in $PATH
12593 test -z "$as_dir" && as_dir
=.
12594 for ac_exec_ext
in '' $ac_executable_extensions; do
12595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 orig_target_ar
=$ac_cv_path_orig_target_ar
12608 if test -n "$orig_target_ar"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12610 $as_echo "$orig_target_ar" >&6; }
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12618 if test "$GCC" = "yes"; then
12619 aros_gcc_ar
=`$CC -print-prog-name=ar`
12620 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12621 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if ${ac_cv_path_orig_target_ar+:} false
; then :
12625 $as_echo_n "(cached) " >&6
12627 case $orig_target_ar in
12629 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12633 for as_dir
in `dirname $aros_gcc_ar`
12636 test -z "$as_dir" && as_dir
=.
12637 for ac_exec_ext
in '' $ac_executable_extensions; do
12638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 orig_target_ar
=$ac_cv_path_orig_target_ar
12651 if test -n "$orig_target_ar"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12653 $as_echo "$orig_target_ar" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12661 if test "$orig_target_ar" = ""; then
12662 # Extract the first word of "ar", so it can be a program name with args.
12663 set dummy
ar; ac_word
=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_path_orig_target_ar+:} false
; then :
12667 $as_echo_n "(cached) " >&6
12669 case $orig_target_ar in
12671 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12675 for as_dir
in $PATH
12678 test -z "$as_dir" && as_dir
=.
12679 for ac_exec_ext
in '' $ac_executable_extensions; do
12680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 orig_target_ar
=$ac_cv_path_orig_target_ar
12693 if test -n "$orig_target_ar"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12695 $as_echo "$orig_target_ar" >&6; }
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12705 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12706 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12707 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if ${ac_cv_path_orig_target_ar+:} false
; then :
12711 $as_echo_n "(cached) " >&6
12713 case $orig_target_ar in
12715 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12719 for as_dir
in $PATH
12722 test -z "$as_dir" && as_dir
=.
12723 for ac_exec_ext
in '' $ac_executable_extensions; do
12724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12725 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 orig_target_ar
=$ac_cv_path_orig_target_ar
12737 if test -n "$orig_target_ar"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12739 $as_echo "$orig_target_ar" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12746 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
12750 if test "$orig_target_ar" = ""; then
12753 if test "$orig_target_ar" = "no"; then
12756 if test "$req_avail" = "no"; then
12757 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12760 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12761 if test "$cross_compiling" = "yes" ; then
12762 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12763 set dummy
${target_tool_prefix}ar; ac_word
=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12767 $as_echo_n "(cached) " >&6
12769 case $orig_target_ranlib in
12771 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12775 for as_dir
in $PATH
12778 test -z "$as_dir" && as_dir
=.
12779 for ac_exec_ext
in '' $ac_executable_extensions; do
12780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12793 if test -n "$orig_target_ranlib"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12795 $as_echo "$orig_target_ranlib" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12803 if test "$GCC" = "yes"; then
12804 aros_gcc_ar
=`$CC -print-prog-name=ar`
12805 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12806 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12810 $as_echo_n "(cached) " >&6
12812 case $orig_target_ranlib in
12814 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12818 for as_dir
in `dirname $aros_gcc_ar`
12821 test -z "$as_dir" && as_dir
=.
12822 for ac_exec_ext
in '' $ac_executable_extensions; do
12823 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12836 if test -n "$orig_target_ranlib"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12838 $as_echo "$orig_target_ranlib" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12846 if test "$orig_target_ranlib" = ""; then
12847 # Extract the first word of "ar", so it can be a program name with args.
12848 set dummy
ar; ac_word
=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12852 $as_echo_n "(cached) " >&6
12854 case $orig_target_ranlib in
12856 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12860 for as_dir
in $PATH
12863 test -z "$as_dir" && as_dir
=.
12864 for ac_exec_ext
in '' $ac_executable_extensions; do
12865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12878 if test -n "$orig_target_ranlib"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12880 $as_echo "$orig_target_ranlib" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12890 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12891 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12892 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12896 $as_echo_n "(cached) " >&6
12898 case $orig_target_ranlib in
12900 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12904 for as_dir
in $PATH
12907 test -z "$as_dir" && as_dir
=.
12908 for ac_exec_ext
in '' $ac_executable_extensions; do
12909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12910 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12922 if test -n "$orig_target_ranlib"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12924 $as_echo "$orig_target_ranlib" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12931 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
12935 if test "$orig_target_ranlib" = ""; then
12938 if test "$orig_target_ranlib" = "no"; then
12941 if test "$req_avail" = "no"; then
12942 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12945 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12946 if test "$cross_compiling" = "yes" ; then
12947 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12948 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_orig_target_nm+:} false
; then :
12952 $as_echo_n "(cached) " >&6
12954 case $orig_target_nm in
12956 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12960 for as_dir
in $PATH
12963 test -z "$as_dir" && as_dir
=.
12964 for ac_exec_ext
in '' $ac_executable_extensions; do
12965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 orig_target_nm
=$ac_cv_path_orig_target_nm
12978 if test -n "$orig_target_nm"; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12980 $as_echo "$orig_target_nm" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12988 if test "$GCC" = "yes"; then
12989 aros_gcc_nm
=`$CC -print-prog-name=nm`
12990 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12991 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if ${ac_cv_path_orig_target_nm+:} false
; then :
12995 $as_echo_n "(cached) " >&6
12997 case $orig_target_nm in
12999 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13003 for as_dir
in `dirname $aros_gcc_nm`
13006 test -z "$as_dir" && as_dir
=.
13007 for ac_exec_ext
in '' $ac_executable_extensions; do
13008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13009 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 orig_target_nm
=$ac_cv_path_orig_target_nm
13021 if test -n "$orig_target_nm"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13023 $as_echo "$orig_target_nm" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 if test "$orig_target_nm" = ""; then
13032 # Extract the first word of "nm", so it can be a program name with args.
13033 set dummy nm
; ac_word
=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if ${ac_cv_path_orig_target_nm+:} false
; then :
13037 $as_echo_n "(cached) " >&6
13039 case $orig_target_nm in
13041 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13045 for as_dir
in $PATH
13048 test -z "$as_dir" && as_dir
=.
13049 for ac_exec_ext
in '' $ac_executable_extensions; do
13050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 orig_target_nm
=$ac_cv_path_orig_target_nm
13063 if test -n "$orig_target_nm"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13065 $as_echo "$orig_target_nm" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13075 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13076 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13077 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_path_orig_target_nm+:} false
; then :
13081 $as_echo_n "(cached) " >&6
13083 case $orig_target_nm in
13085 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13089 for as_dir
in $PATH
13092 test -z "$as_dir" && as_dir
=.
13093 for ac_exec_ext
in '' $ac_executable_extensions; do
13094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 orig_target_nm
=$ac_cv_path_orig_target_nm
13107 if test -n "$orig_target_nm"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13109 $as_echo "$orig_target_nm" >&6; }
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13116 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13120 if test "$orig_target_nm" = ""; then
13123 if test "$orig_target_nm" = "no"; then
13126 if test "$req_avail" = "no"; then
13127 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13130 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13131 if test "$cross_compiling" = "yes" ; then
13132 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13133 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_path_orig_target_strip+:} false
; then :
13137 $as_echo_n "(cached) " >&6
13139 case $orig_target_strip in
13141 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13145 for as_dir
in $PATH
13148 test -z "$as_dir" && as_dir
=.
13149 for ac_exec_ext
in '' $ac_executable_extensions; do
13150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13151 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 orig_target_strip
=$ac_cv_path_orig_target_strip
13163 if test -n "$orig_target_strip"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13165 $as_echo "$orig_target_strip" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13173 if test "$GCC" = "yes"; then
13174 aros_gcc_strip
=`$CC -print-prog-name=strip`
13175 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13176 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_path_orig_target_strip+:} false
; then :
13180 $as_echo_n "(cached) " >&6
13182 case $orig_target_strip in
13184 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13188 for as_dir
in `dirname $aros_gcc_strip`
13191 test -z "$as_dir" && as_dir
=.
13192 for ac_exec_ext
in '' $ac_executable_extensions; do
13193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 orig_target_strip
=$ac_cv_path_orig_target_strip
13206 if test -n "$orig_target_strip"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13208 $as_echo "$orig_target_strip" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13216 if test "$orig_target_strip" = ""; then
13217 # Extract the first word of "strip", so it can be a program name with args.
13218 set dummy strip
; ac_word
=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if ${ac_cv_path_orig_target_strip+:} false
; then :
13222 $as_echo_n "(cached) " >&6
13224 case $orig_target_strip in
13226 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13230 for as_dir
in $PATH
13233 test -z "$as_dir" && as_dir
=.
13234 for ac_exec_ext
in '' $ac_executable_extensions; do
13235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13236 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 orig_target_strip
=$ac_cv_path_orig_target_strip
13248 if test -n "$orig_target_strip"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13250 $as_echo "$orig_target_strip" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13260 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13261 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13262 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_path_orig_target_strip+:} false
; then :
13266 $as_echo_n "(cached) " >&6
13268 case $orig_target_strip in
13270 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13274 for as_dir
in $PATH
13277 test -z "$as_dir" && as_dir
=.
13278 for ac_exec_ext
in '' $ac_executable_extensions; do
13279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 orig_target_strip
=$ac_cv_path_orig_target_strip
13292 if test -n "$orig_target_strip"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13294 $as_echo "$orig_target_strip" >&6; }
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13301 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
13305 if test "$orig_target_strip" = ""; then
13308 if test "$orig_target_strip" = "no"; then
13311 if test "$req_avail" = "no"; then
13312 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13315 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13316 if test "$cross_compiling" = "yes" ; then
13317 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13318 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13322 $as_echo_n "(cached) " >&6
13324 case $orig_target_objcopy in
13326 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13330 for as_dir
in $PATH
13333 test -z "$as_dir" && as_dir
=.
13334 for ac_exec_ext
in '' $ac_executable_extensions; do
13335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13348 if test -n "$orig_target_objcopy"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13350 $as_echo "$orig_target_objcopy" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13358 if test "$GCC" = "yes"; then
13359 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13360 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13361 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13365 $as_echo_n "(cached) " >&6
13367 case $orig_target_objcopy in
13369 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13373 for as_dir
in `dirname $aros_gcc_objcopy`
13376 test -z "$as_dir" && as_dir
=.
13377 for ac_exec_ext
in '' $ac_executable_extensions; do
13378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13379 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13391 if test -n "$orig_target_objcopy"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13393 $as_echo "$orig_target_objcopy" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13401 if test "$orig_target_objcopy" = ""; then
13402 # Extract the first word of "objcopy", so it can be a program name with args.
13403 set dummy objcopy
; ac_word
=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13407 $as_echo_n "(cached) " >&6
13409 case $orig_target_objcopy in
13411 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13415 for as_dir
in $PATH
13418 test -z "$as_dir" && as_dir
=.
13419 for ac_exec_ext
in '' $ac_executable_extensions; do
13420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13421 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13433 if test -n "$orig_target_objcopy"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13435 $as_echo "$orig_target_objcopy" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13445 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13446 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13447 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13451 $as_echo_n "(cached) " >&6
13453 case $orig_target_objcopy in
13455 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13459 for as_dir
in $PATH
13462 test -z "$as_dir" && as_dir
=.
13463 for ac_exec_ext
in '' $ac_executable_extensions; do
13464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13477 if test -n "$orig_target_objcopy"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13479 $as_echo "$orig_target_objcopy" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13486 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
13490 if test "$orig_target_objcopy" = ""; then
13493 if test "$orig_target_objcopy" = "no"; then
13496 if test "$req_avail" = "no"; then
13497 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13500 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13501 if test "$cross_compiling" = "yes" ; then
13502 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13503 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13507 $as_echo_n "(cached) " >&6
13509 case $orig_target_objdump in
13511 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13515 for as_dir
in $PATH
13518 test -z "$as_dir" && as_dir
=.
13519 for ac_exec_ext
in '' $ac_executable_extensions; do
13520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13533 if test -n "$orig_target_objdump"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13535 $as_echo "$orig_target_objdump" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13543 if test "$GCC" = "yes"; then
13544 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13545 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13546 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13550 $as_echo_n "(cached) " >&6
13552 case $orig_target_objdump in
13554 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13558 for as_dir
in `dirname $aros_gcc_objdump`
13561 test -z "$as_dir" && as_dir
=.
13562 for ac_exec_ext
in '' $ac_executable_extensions; do
13563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13564 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13576 if test -n "$orig_target_objdump"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13578 $as_echo "$orig_target_objdump" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13586 if test "$orig_target_objdump" = ""; then
13587 # Extract the first word of "objdump", so it can be a program name with args.
13588 set dummy objdump
; ac_word
=$2
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590 $as_echo_n "checking for $ac_word... " >&6; }
13591 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13592 $as_echo_n "(cached) " >&6
13594 case $orig_target_objdump in
13596 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13600 for as_dir
in $PATH
13603 test -z "$as_dir" && as_dir
=.
13604 for ac_exec_ext
in '' $ac_executable_extensions; do
13605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13618 if test -n "$orig_target_objdump"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13620 $as_echo "$orig_target_objdump" >&6; }
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13630 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13631 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13632 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634 $as_echo_n "checking for $ac_word... " >&6; }
13635 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13636 $as_echo_n "(cached) " >&6
13638 case $orig_target_objdump in
13640 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13644 for as_dir
in $PATH
13647 test -z "$as_dir" && as_dir
=.
13648 for ac_exec_ext
in '' $ac_executable_extensions; do
13649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13650 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13662 if test -n "$orig_target_objdump"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13664 $as_echo "$orig_target_objdump" >&6; }
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13671 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
13675 if test "$orig_target_objdump" = ""; then
13678 if test "$orig_target_objdump" = "no"; then
13681 if test "$req_avail" = "no"; then
13682 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13686 if test "$kernel_tool_prefix" = "none" ; then
13687 # No kernel tools specified
13688 # Assume target tools == kernel tools with ELF wrapper
13689 aros_kernel_cc
=$orig_target_cc
13690 aros_kernel_cxx
=$orig_target_cxx
13691 aros_kernel_cpp
=$orig_target_cpp
13692 aros_kernel_ld
=$orig_target_ld
13693 aros_kernel_as
=$orig_target_as
13694 aros_kernel_ar
=$orig_target_ar
13695 aros_kernel_ranlib
=$orig_target_ranlib
13696 aros_kernel_nm
=$orig_target_nm
13697 aros_kernel_strip
=$orig_target_strip
13698 aros_kernel_objcopy
=$orig_target_objcopy
13699 aros_kernel_objdump
=$orig_target_objdump
13700 use_kernel_cc_wrapper
=yes
13703 # At this point, all aros_kernel_* and aros_target_*
13704 # tools should be set up correctly
13706 CC
="$aros_kernel_cc $kernel_tool_flags"
13707 CPP
="$aros_kernel_cpp"
13709 #-----------------------------------------------------------------------------
13711 # Find all the tools we need to compile. This could be cross-compiling
13712 # though! If that is the case we use the GNU form of the target and
13713 # simply add this to the front of the binary name. This is rather simple,
13714 # but it should work under most circumstances.
13716 # The default tools are to use the same as the host, but only if the
13717 # host and target CPU are the same. With GCC this is normally enough.
13721 aros_shared_ld
="$aros_host_ld"
13723 aros_target_mkdep
="$aros_host_mkdep"
13725 # The default tools executables to be linked to.
13726 if test "$rescomp" != ""; then
13727 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13728 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 $as_echo_n "checking for $ac_word... " >&6; }
13731 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13732 $as_echo_n "(cached) " >&6
13734 case $aros_kernel_rescomp in
13736 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13740 for as_dir
in $PATH
13743 test -z "$as_dir" && as_dir
=.
13744 for ac_exec_ext
in '' $ac_executable_extensions; do
13745 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13746 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13758 if test -n "$aros_kernel_rescomp"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13760 $as_echo "$aros_kernel_rescomp" >&6; }
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13768 if test "$aros_kernel_rescomp" = ""; then
13771 if test "$aros_kernel_rescomp" = "no"; then
13774 if test "$req_avail" = "no"; then
13775 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13779 # Set up the sources for the symlink farm
13780 if test "$crosstools" = "yes"; then
13781 crosstools_target
=tools-crosstools
13784 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13785 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13787 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13788 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13789 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13790 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13791 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13792 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13793 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13795 # aros_cc_pre is a variable that is added to the front of the compiler name
13796 # in the generated aros-gcc shell script. We need this to enable the cache
13797 # to work across cleaned builds. Also, support DISTCC using the correct
13798 # environment variable.
13801 if test "x${DISTCC}" != "x" ; then
13802 if test "x${CCACHE}" != "x" ; then
13803 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13805 aros_cc_pre
="${DISTCC} "
13808 if test "x${CCACHE}" != "x" ; then
13809 aros_cc_pre
="${CCACHE} "
13813 aros_target_nostdinc_cflags
=-nostdinc
13815 aros_target_nostartup_ldflags
=-nostartfiles
13817 aros_target_nix_ldflags
=-nix
13819 aros_target_detach_ldflags
=-detach
13821 aros_target_nostdlib_ldflags
=-nostdlib
13826 if test "$aros_target_toolchain" != "yes"; then
13827 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13828 if test "$GCC" = "yes"; then
13829 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13832 # We do not know which c compiler version we are going to build and what we need to know
13833 # here is different for different versions so this will be set later during the
13834 # build of crosstools.
13835 if test "$aros_toolchain" = "gnu" ; then
13836 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13837 elif test "$aros_toolchain" = "llvm" ; then
13838 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13840 aros_target_cc_path
=@aros_target_cc_path@
13842 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13843 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13844 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13845 aros_target_as
="${prefix}${toolchain_as}"
13846 if test "${use_ld_wrapper}" = "yes"; then
13847 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13849 aros_target_ld
="${prefix}${toolchain_ld}"
13851 aros_toolchain_ld
="${prefix}${toolchain_ld}"
13853 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13854 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13855 aros_target_objdump
="${prefix}${toolchain_objdump}"
13856 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13857 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13858 aros_target_strip
="${prefix}${toolchain_strip}"
13859 aros_plain_nm
="${prefix}${toolchain_nm}"
13860 aros_plain_ar
="${prefix}${toolchain_ar}"
13862 # Check whether --enable-includes was given.
13863 if test "${enable_includes+set}" = set; then :
13864 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13866 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13870 if test "$aros_kernel_includes" = ""; then
13871 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13872 aros_kernel_includes
="-isystem $aros_target_incl"
13876 if test "$aros_kernel_includes" != "" ; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13878 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13879 if test "$aros_kernel_cc_includes" = "" ; then
13880 # Try to guess where the directory is.
13881 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13882 if test -d $aros_kernel_cc_includes; then
13883 # Check if there is also an include-fixed directory and add it
13884 # to kernel compiler's include path as it may contain some of
13885 # the headers we need.
13886 if test -d "$aros_kernel_cc_includes"-fixed; then
13887 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13889 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13890 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13891 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13894 # The directory doesn't exist, we need to do some more work.
13895 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13897 # These are the headers we're looking for.
13898 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13899 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13903 for h
in $headers; do
13904 # Which other headers are needed by each of the above?
13905 deps
=$
(echo "#include <$h>" | \
13906 $aros_kernel_cc -E -M - 2>/dev
/null | \
13907 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13909 # Copy all the needed headers to a directory beneath gendir.
13912 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13913 sed -n "s,^.*/include\(/.*\),\1,p")
13914 ! test -d $dir && mkdir
-p $dir
13915 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13921 $as_echo "$aros_kernel_cc_includes" >&6; }
13922 # Adding -nostdinc to kernel includes as they are always used together.
13923 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13926 if test "$crosstools" != "yes"; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13928 $as_echo_n "checking for the target compiler's include path... " >&6; }
13929 if test "$aros_target_cc_includes" = "" ; then
13930 #try to guess where the directory is
13931 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13932 if ! test -d $aros_target_cc_includes; then
13933 #the directory doesn't exist, we need to do some more work
13934 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13936 #these are the headers we're looking for
13937 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13938 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13942 for h
in $headers; do
13943 #which other headers each of the above headers needs?
13944 deps
=$
(echo "#include <$h>" | \
13945 $orig_target_cc -E -M - 2>/dev
/null | \
13946 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13948 #copy all the needed headers to a directory beneath gendir
13951 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13952 sed -n "s,^.*/include\(/.*\),\1,p")
13953 ! test -d $dir && mkdir
-p $dir
13954 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13960 $as_echo "$aros_target_cc_includes" >&6; }
13962 # We do not know which c compiler version we are going to build and what we need to know
13963 # here is different for different versions so this will be set later during the
13964 # build of crosstools.
13965 aros_target_cc_includes
=@aros_target_cc_includes@
13969 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13970 # On GCC >= 4.0 -iquote should be used
13974 save_cflags
="$CFLAGS"
13976 kernel_cflags_iquote
=$host_cflags_iquote
13977 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13978 if test "x-$cross_compiling" = "x-yes"; then
13979 CC
="$aros_kernel_cc"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13981 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13982 if test "x-$crosstools" != "x-yes"; then
13983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13994 if ac_fn_c_try_compile
"$LINENO"; then :
13995 use_no_stack_protector
="yes"
13997 use_no_stack_protector
="no"
13999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14001 # we do know it is supported for the smallest version of gcc we are going to build
14002 # we assume it's also supported by later versions
14003 use_no_stack_protector
=yes
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14006 $as_echo "$use_no_stack_protector" >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14008 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14009 if test "x-$crosstools" != "x-yes"; then
14010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14021 if ac_fn_c_try_compile
"$LINENO"; then :
14026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14028 # we do know it is supported for the smallest version of gcc we are going to build
14029 # we assume it's also supported by later versions
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14033 $as_echo "$has_iquote" >&6; }
14034 if test "x-$has_iquote" = "x-yes" ; then
14035 kernel_cflags_iquote
=-iquote
14036 kernel_cflags_iquote_end
=
14038 kernel_cflags_iquote
=-I
14039 kernel_cflags_iquote_end
=-I-
14042 if test "x-$use_no_stack_protector" = "x-yes" ; then
14043 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14046 #-----------------------------------------------------------------------------
14048 # Check if we can explicitly choose older version of symbol hashing
14050 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
14051 CC
="$aros_kernel_cc"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14053 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14065 if ac_fn_c_try_link
"$LINENO"; then :
14066 use_hash_style
="yes"
14068 use_hash_style
="no"
14070 rm -f core conftest.err conftest.
$ac_objext \
14071 conftest
$ac_exeext conftest.
$ac_ext
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14073 $as_echo "$use_hash_style" >&6; }
14074 if test "x-$use_hash_style" = "x-yes" ; then
14075 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14078 CFLAGS
="$save_cflags"
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14087 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14089 # Check whether --with-resolution was given.
14090 if test "${with_resolution+set}" = set; then :
14091 withval
=$with_resolution; resolution
=$withval
14096 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14097 if test "$resolution" = "yes" ; then
14100 if test "$resolution" = "no" ; then
14103 if test "$resolution" != "none" ; then
14104 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14105 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14106 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14109 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14110 aros_cv_nominal_width
=$aros_nominal_width
14111 aros_cv_nominal_height
=$aros_nominal_height
14112 aros_cv_nominal_depth
=$aros_nominal_depth
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14115 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14117 # Check whether --with-serial-debug was given.
14118 if test "${with_serial_debug+set}" = set; then :
14119 withval
=$with_serial_debug; serial_debug
=$withval
14124 if test "$aros_serial_debug" = 0 ; then
14125 serial_debug_forced
=""
14126 if test "$serial_debug" = "yes" ; then
14129 if test "$serial_debug" = "no" ; then
14130 serial_debug
="none"
14133 serial_debug_forced
="(forced)"
14134 serial_debug
=$aros_serial_debug
14136 if test "$serial_debug" != "none" ; then
14137 aros_serial_debug
=$serial_debug
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14139 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14146 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14147 # Check whether --enable-palm_debug_hack was given.
14148 if test "${enable_palm_debug_hack+set}" = set; then :
14149 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14151 palm_debug_hack
="no"
14154 if test "$palm_debug_hack" = "yes" ; then
14155 aros_palm_debug_hack
="1"
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14158 $as_echo "$palm_debug_hack" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14161 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14162 # Check whether --enable-usb30_code was given.
14163 if test "${enable_usb30_code+set}" = set; then :
14164 enableval
=$enable_usb30_code; usb30_code
="yes"
14169 if test "$usb30_code" = "yes" ; then
14170 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14171 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14174 $as_echo "$usb30_code" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14177 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14178 # Check whether --enable-nesting_supervisor was given.
14179 if test "${enable_nesting_supervisor+set}" = set; then :
14180 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14182 nesting_supervisor
="no"
14185 if test "$nesting_supervisor" = "yes" ; then
14186 aros_nesting_supervisor
="1"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14189 $as_echo "$nesting_supervisor" >&6; }
14191 if test "$aros_enable_mmu" = "" ; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14193 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14194 # Check whether --enable-mmu was given.
14195 if test "${enable_mmu+set}" = set; then :
14196 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14198 aros_enable_mmu
="yes"
14201 if test "$aros_enable_mmu" = "" ; then
14202 aros_enable_mmu
="yes"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14205 $as_echo "$aros_enable_mmu" >&6; }
14207 if test "$aros_enable_mmu" = "no" ; then
14208 aros_enable_mmu
="0"
14210 aros_enable_mmu
="1"
14214 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14216 if test "x-$need_dlopen" != "x-no" ; then
14219 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14220 if test "x$ac_cv_func_dlopen" = xyes
; then :
14226 if test "x-$have_dl" = "x-no" ; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14229 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14230 $as_echo_n "(cached) " >&6
14232 ac_check_lib_save_LIBS
=$LIBS
14234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14252 if ac_fn_c_try_link
"$LINENO"; then :
14253 ac_cv_lib_dl_dlopen
=yes
14255 ac_cv_lib_dl_dlopen
=no
14257 rm -f core conftest.err conftest.
$ac_objext \
14258 conftest
$ac_exeext conftest.
$ac_ext
14259 LIBS
=$ac_check_lib_save_LIBS
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14263 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14265 aros_host_ldflags
="$aros_host_ldflags -ldl"
14271 if test "x-$have_dl" = "x-no" ; then
14272 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14278 # Check whether --enable-x11_hidd was given.
14279 if test "${enable_x11_hidd+set}" = set; then :
14280 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14282 x11_hidd
="$need_x11"
14285 case "x-$x11_hidd" in
14286 x-yes|x-no|x-auto
) ;;
14287 *) x11_hidd
="$need_x11" ;;
14292 if test "x-$x11_hidd" != "x-no" ; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14295 $as_echo_n "checking for X... " >&6; }
14298 # Check whether --with-x was given.
14299 if test "${with_x+set}" = set; then :
14303 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14304 if test "x$with_x" = xno
; then
14305 # The user explicitly disabled X.
14308 case $x_includes,$x_libraries in #(
14309 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14310 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14311 $as_echo_n "(cached) " >&6
14313 # One or both of the vars are not set, and there is no cached value.
14314 ac_x_includes
=no ac_x_libraries
=no
14315 rm -f -r conftest.dir
14316 if mkdir conftest.dir
; then
14318 cat >Imakefile
<<'_ACEOF'
14320 @echo incroot='${INCROOT}'
14322 @echo usrlibdir='${USRLIBDIR}'
14324 @echo libdir='${LIBDIR}'
14326 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14328 for ac_var
in incroot usrlibdir libdir
; do
14329 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14332 for ac_extension
in a so sl dylib la dll
; do
14333 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14334 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14335 ac_im_usrlibdir
=$ac_im_libdir; break
14338 # Screen out bogus values from the imake configuration. They are
14339 # bogus both because they are the default anyway, and because
14340 # using them would break gcc on systems where it needs fixed includes.
14341 case $ac_im_incroot in
14342 /usr
/include
) ac_x_includes
= ;;
14343 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14345 case $ac_im_usrlibdir in
14346 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14351 rm -f -r conftest.dir
14354 # Standard set of common directories for X headers.
14355 # Check X11 before X11Rn because it is often a symlink to the current release.
14369 /usr/local/X11/include
14370 /usr/local/X11R7/include
14371 /usr/local/X11R6/include
14372 /usr/local/X11R5/include
14373 /usr/local/X11R4/include
14375 /usr/local/include/X11
14376 /usr/local/include/X11R7
14377 /usr/local/include/X11R6
14378 /usr/local/include/X11R5
14379 /usr/local/include/X11R4
14383 /usr/XFree86/include/X11
14387 /usr/unsupported/include
14388 /usr/athena/include
14389 /usr/local/x11r5/include
14390 /usr/lpp/Xamples/include
14392 /usr/openwin/include
14393 /usr/openwin/share/include'
14395 if test "$ac_x_includes" = no
; then
14396 # Guess where to find include files, by looking for Xlib.h.
14397 # First, try using that file with no special directory specified.
14398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 #include <X11/Xlib.h>
14402 if ac_fn_c_try_cpp
"$LINENO"; then :
14403 # We can compile using X headers with no special include directory.
14406 for ac_dir
in $ac_x_header_dirs; do
14407 if test -r "$ac_dir/X11/Xlib.h"; then
14408 ac_x_includes
=$ac_dir
14413 rm -f conftest.err conftest.i conftest.
$ac_ext
14414 fi # $ac_x_includes = no
14416 if test "$ac_x_libraries" = no
; then
14417 # Check for the libraries.
14418 # See if we find them without any special options.
14419 # Don't add to $LIBS permanently.
14422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 #include <X11/Xlib.h>
14433 if ac_fn_c_try_link
"$LINENO"; then :
14435 # We can link X programs with no special library path.
14439 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14441 # Don't even attempt the hair of trying to link an X program!
14442 for ac_extension
in a so sl dylib la dll
; do
14443 if test -r "$ac_dir/libX11.$ac_extension"; then
14444 ac_x_libraries
=$ac_dir
14450 rm -f core conftest.err conftest.
$ac_objext \
14451 conftest
$ac_exeext conftest.
$ac_ext
14452 fi # $ac_x_libraries = no
14454 case $ac_x_includes,$ac_x_libraries in #(
14455 no
,* |
*,no |
*\'*)
14456 # Didn't find X, or a directory has "'" in its name.
14457 ac_cv_have_x
="have_x=no";; #(
14459 # Record where we found X for the cache.
14460 ac_cv_have_x
="have_x=yes\
14461 ac_x_includes='$ac_x_includes'\
14462 ac_x_libraries='$ac_x_libraries'"
14468 eval "$ac_cv_have_x"
14471 if test "$have_x" != yes; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14473 $as_echo "$have_x" >&6; }
14476 # If each of the values was on the command line, it overrides each guess.
14477 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14478 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14479 # Update the cache value to reflect the command line values.
14480 ac_cv_have_x
="have_x=yes\
14481 ac_x_includes='$x_includes'\
14482 ac_x_libraries='$x_libraries'"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14484 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14488 if test -n "$x_includes"; then
14489 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14492 if test -n "$x_libraries"; then
14493 X_LIBS
="$X_LIBS -L$x_libraries"
14496 if test "x-$no_x" = "x-yes" ; then
14498 if test "x-$x11_hidd" != "x-auto" ; then
14499 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14506 aros_host_x11_cflags
="$X_CFLAGS"
14507 aros_host_x11_ldflags
="$X_LIBS -lX11"
14509 # Check whether --enable-x11_shm was given.
14510 if test "${enable_x11_shm+set}" = set; then :
14511 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14513 x11_hidd_shm
="auto"
14516 case "x-$x11_hidd_shm" in
14517 x-yes|x-no|x-auto
) ;;
14518 *) x11_hidd_shm
="auto" ;;
14523 if test "x-$x11_hidd_shm" != "x-no" ; then
14525 for ac_header
in sys
/ipc.h
14527 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14528 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14529 cat >>confdefs.h
<<_ACEOF
14530 #define HAVE_SYS_IPC_H 1
14537 for ac_header
in sys
/shm.h
14539 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14540 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14541 cat >>confdefs.h
<<_ACEOF
14542 #define HAVE_SYS_SHM_H 1
14550 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14552 save_cflags
="$CFLAGS"
14553 save_ldflags
="$LDFLAGS"
14554 CFLAGS
="$CFLAGS $X_CFLAGS"
14555 LDFLAGS
="$LDFLAGS $X_LIBS"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14557 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14558 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14559 $as_echo_n "(cached) " >&6
14561 ac_check_lib_save_LIBS
=$LIBS
14562 LIBS
="-lXext $LIBS"
14563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14572 char XShmQueryExtension ();
14576 return XShmQueryExtension ();
14581 if ac_fn_c_try_link
"$LINENO"; then :
14582 ac_cv_lib_Xext_XShmQueryExtension
=yes
14584 ac_cv_lib_Xext_XShmQueryExtension
=no
14586 rm -f core conftest.err conftest.
$ac_objext \
14587 conftest
$ac_exeext conftest.
$ac_ext
14588 LIBS
=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14591 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14592 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14596 CFLAGS
="$save_cflags"
14597 LDFLAGS
="$save_ldflags"
14601 if test "x-$have_xshm" = "x-yes" ; then
14602 DO_XSHM_SUPPORT
="1"
14603 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14604 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14606 DO_XSHM_SUPPORT
="0"
14610 # Check whether --enable-x11_vidmode was given.
14611 if test "${enable_x11_vidmode+set}" = set; then :
14612 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14614 x11_hidd_vidmode
="auto"
14617 case "x-$x11_hidd_vidmode" in
14618 x-yes|x-no|x-auto
) ;;
14619 *) x11_hidd_vidmode
="auto" ;;
14624 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14626 save_cflags
="$CFLAGS"
14627 save_ldflags
="$LDFLAGS"
14628 CFLAGS
="$CFLAGS $X_CFLAGS"
14629 LDFLAGS
="$LDFLAGS $X_LIBS"
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14631 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14632 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14633 $as_echo_n "(cached) " >&6
14635 ac_check_lib_save_LIBS
=$LIBS
14636 LIBS
="-lXxf86vm $LIBS"
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14646 char XF86VidModeQueryExtension ();
14650 return XF86VidModeQueryExtension ();
14655 if ac_fn_c_try_link
"$LINENO"; then :
14656 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14658 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14660 rm -f core conftest.err conftest.
$ac_objext \
14661 conftest
$ac_exeext conftest.
$ac_ext
14662 LIBS
=$ac_check_lib_save_LIBS
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14665 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14666 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14670 CFLAGS
="$save_cflags"
14671 LDFLAGS
="$save_ldflags"
14674 if test "x-$have_vidmode" = "x-yes" ; then
14675 DO_VIDMODE_SUPPORT
="1"
14676 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14677 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14679 DO_VIDMODE_SUPPORT
="0"
14684 # Check whether --enable-sdl_hidd was given.
14685 if test "${enable_sdl_hidd+set}" = set; then :
14686 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14691 case "x-$sdl_hidd" in
14692 x-yes|x-no|x-auto
) ;;
14693 *) sdl_hidd
="auto" ;;
14696 if test "x-$sdl_hidd" != "x-no" ; then
14700 # Check whether --with-sdl-prefix was given.
14701 if test "${with_sdl_prefix+set}" = set; then :
14702 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14708 # Check whether --with-sdl-exec-prefix was given.
14709 if test "${with_sdl_exec_prefix+set}" = set; then :
14710 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14715 # Check whether --enable-sdltest was given.
14716 if test "${enable_sdltest+set}" = set; then :
14717 enableval
=$enable_sdltest;
14723 if test x
$sdl_exec_prefix != x
; then
14724 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14725 if test x
${SDL_CONFIG+set} != xset
; then
14726 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14729 if test x
$sdl_prefix != x
; then
14730 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14731 if test x
${SDL_CONFIG+set} != xset
; then
14732 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14736 as_save_PATH
="$PATH"
14737 if test "x$prefix" != xNONE
; then
14738 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14740 # Extract the first word of "sdl-config", so it can be a program name with args.
14741 set dummy sdl-config
; ac_word
=$2
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14743 $as_echo_n "checking for $ac_word... " >&6; }
14744 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14745 $as_echo_n "(cached) " >&6
14747 case $SDL_CONFIG in
14749 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14753 for as_dir
in $PATH
14756 test -z "$as_dir" && as_dir
=.
14757 for ac_exec_ext
in '' $ac_executable_extensions; do
14758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14767 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14771 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14772 if test -n "$SDL_CONFIG"; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14774 $as_echo "$SDL_CONFIG" >&6; }
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14781 PATH
="$as_save_PATH"
14782 min_sdl_version
=$SDL_VERSION
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14784 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14786 if test "$SDL_CONFIG" = "no" ; then
14789 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14790 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14792 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14793 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14794 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14795 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14796 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14797 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14798 if test "x$enable_sdltest" = "xyes" ; then
14799 ac_save_CFLAGS
="$CFLAGS"
14800 ac_save_CXXFLAGS
="$CXXFLAGS"
14801 ac_save_LIBS
="$LIBS"
14802 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14803 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14804 LIBS
="$LIBS $SDL_LIBS"
14806 if test "$cross_compiling" = yes; then :
14807 echo $ac_n "cross compiling; assumed OK... $ac_c"
14809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14813 #include <stdlib.h>
14814 #include <string.h>
14818 my_strdup (char *str)
14824 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14825 strcpy (new_str, str);
14833 int main (int argc, char *argv[])
14835 int major, minor, micro;
14838 /* This hangs on some systems (?)
14839 system ("touch conf.sdltest");
14841 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14843 /* HP/UX 9 (%@#!) writes to sscanf strings */
14844 tmp_version = my_strdup("$min_sdl_version");
14845 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14846 printf("%s, bad version string\n", "$min_sdl_version");
14850 if (($sdl_major_version > major) ||
14851 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14852 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14858 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14859 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14860 printf("*** best to upgrade to the required version.\n");
14861 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14862 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14863 printf("*** config.cache before re-running configure\n");
14870 if ac_fn_c_try_run
"$LINENO"; then :
14875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14879 CFLAGS
="$ac_save_CFLAGS"
14880 CXXFLAGS
="$ac_save_CXXFLAGS"
14881 LIBS
="$ac_save_LIBS"
14884 if test "x$no_sdl" = x
; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886 $as_echo "yes" >&6; }
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 if test "$SDL_CONFIG" = "no" ; then
14892 echo "*** The sdl-config script installed by SDL could not be found"
14893 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14894 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14895 echo "*** full path to sdl-config."
14897 if test -f conf.sdltest
; then
14900 echo "*** Could not run SDL test program, checking why..."
14901 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14902 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14903 LIBS
="$LIBS $SDL_LIBS"
14904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14910 int main(int argc, char *argv[])
14913 #define main K_and_R_C_main
14923 if ac_fn_c_try_link
"$LINENO"; then :
14924 echo "*** The test program compiled, but did not run. This usually means"
14925 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14926 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14927 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14928 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14929 echo "*** is required on your system"
14931 echo "*** If you have an old version installed, it is best to remove it, although"
14932 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14934 echo "*** The test program failed to compile or link. See the file config.log for the"
14935 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14936 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14937 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14939 rm -f core conftest.err conftest.
$ac_objext \
14940 conftest
$ac_exeext conftest.
$ac_ext
14941 CFLAGS
="$ac_save_CFLAGS"
14942 CXXFLAGS
="$ac_save_CXXFLAGS"
14943 LIBS
="$ac_save_LIBS"
14955 if test "x-$have_sdl" != "x-yes" ; then
14957 if test "x-$sdl_hidd" != "x-auto" ; then
14958 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14963 aros_host_sdl_cflags
=$SDL_CFLAGS
14964 aros_host_sdl_libs
=$SDL_LIBS
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14972 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14973 # Check whether --enable-dbus was given.
14974 if test "${enable_dbus+set}" = set; then :
14975 enableval
=$enable_dbus; dbus
="yes"
14980 if test "$dbus" = "yes" ; then
14982 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14983 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14984 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14985 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14990 $as_echo "$dbus" >&6; }
14992 if test "$use_kernel_cc_wrapper" = "yes" ; then
14993 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14996 aros_kernel_cppflags
=$aros_config_cppflags
14997 aros_optimization_cflags
="$optimization_level"
14998 if test "$optimization" = "default"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15000 $as_echo_n "checking default optimization level to use... " >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15002 $as_echo "$optimization_level" >&6; }
15020 # Compatability with other Amiga-like operation systems
15133 # Hosted Graphics Related
15151 # Bootloader related
15154 # Native version related
15159 # Palm native version related
15162 # Unix/Hosted version related
15168 # Apple iOS related
15173 # ARM default GCC target related
15201 # Collect-aros stuff: "-ius" to ignore undefined symbols
15204 # C compiler related
15209 #ObjC compiler related
15218 case "$aros_flavour" in
15219 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15220 aros_flavour
="emulation" ;;
15221 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15222 aros_flavour
="emulation" ;;
15223 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15224 aros_flavour
="standalone";;
15225 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15226 aros_flavour
="standalone";;
15227 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15228 aros_flavour
="native" ;;
15229 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15230 aros_flavour
="native" ;;
15231 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15232 aros_flavour
="linklib" ;;
15233 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15234 aros_flavour
="palmnative" ;;
15235 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15236 aros_flavour
="mac68knative" ;;
15237 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15238 aros_flavour
="ppcnative" ;;
15241 if test ! -d ${aros_inc_dir} ; then
15242 ${MKDIR} ${aros_inc_dir}
15244 if test ! -d ${aros_geninc_dir} ; then
15245 ${MKDIR} ${aros_geninc_dir}
15247 if test ! -d ${aros_hostcfg_dir} ; then
15248 ${MKDIR} ${aros_hostcfg_dir}
15250 if test ! -d ${aros_targetcfg_dir} ; then
15251 ${MKDIR} ${aros_targetcfg_dir}
15253 if test ! -d ${aros_tools_dir} ; then
15254 ${MKDIR} ${aros_tools_dir}
15256 if test ! -d ${aros_scripts_dir} ; then
15257 ${MKDIR} ${aros_scripts_dir}
15260 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15263 # Generic build tools (metamake, etc)
15264 ac_config_commands
="$ac_config_commands genmf-executable-support"
15266 ac_config_files
="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15270 ac_config_commands
="$ac_config_commands binutils-support"
15272 if test "${use_ld_wrapper}" = "yes"; then
15273 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15276 # Bare Elf support script and spec
15277 if test "${use_kernel_cc_wrapper}" = "yes"; then
15278 ac_config_commands
="$ac_config_commands elf-compiler-support"
15280 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15284 # Host compiler support scripts and spec
15285 if test "${aros_target_toolchain}" = "no"; then
15286 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15288 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15293 if test "$aros_target_variant" == "android"; then
15294 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15299 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15302 cat >confcache
<<\_ACEOF
15303 # This file is a shell script that caches the results of configure
15304 # tests run on this system so they can be shared between configure
15305 # scripts and configure runs, see configure's option --config-cache.
15306 # It is not useful on other systems. If it contains results you don't
15307 # want to keep, you may remove or edit it.
15309 # config.status only pays attention to the cache file if you give it
15310 # the --recheck option to rerun configure.
15312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15314 # following values.
15318 # The following way of writing the cache mishandles newlines in values,
15319 # but we know of no workaround that is simple, portable, and efficient.
15320 # So, we kill variables containing newlines.
15321 # Ultrix sh set writes to stderr and can't be redirected directly,
15322 # and sets the high bit in the cache file unless we assign to the vars.
15324 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15325 eval ac_val
=\$
$ac_var
15329 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15333 _ | IFS | as_nl
) ;; #(
15334 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15335 *) { eval $ac_var=; unset $ac_var;} ;;
15341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15342 *${as_nl}ac_space
=\
*)
15343 # `set' does not quote correctly, so add quotes: double-quote
15344 # substitution turns \\\\ into \\, and sed turns \\ into \.
15347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15350 # `set' quotes correctly as required by POSIX, so do not add quotes.
15351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15364 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15365 if test -w "$cache_file"; then
15366 if test "x$cache_file" != "x/dev/null"; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15368 $as_echo "$as_me: updating cache $cache_file" >&6;}
15369 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15370 cat confcache
>"$cache_file"
15372 case $cache_file in #(
15374 mv -f confcache
"$cache_file"$$
&&
15375 mv -f "$cache_file"$$
"$cache_file" ;; #(
15377 mv -f confcache
"$cache_file" ;;
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15388 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15389 # Let make expand exec_prefix.
15390 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15392 DEFS
=-DHAVE_CONFIG_H
15397 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15398 # 1. Remove the extension, and $U if already installed.
15399 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15400 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15402 # will be set to the directory where LIBOBJS objects are built.
15403 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15404 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15406 LIBOBJS
=$ac_libobjs
15408 LTLIBOBJS
=$ac_ltlibobjs
15412 : "${CONFIG_STATUS=./config.status}"
15414 ac_clean_files_save
=$ac_clean_files
15415 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15421 # Generated by $as_me.
15422 # Run this file to recreate the current configuration.
15423 # Compiler output produced by configure, useful for debugging
15424 # configure, is in config.log if it exists.
15427 ac_cs_recheck=false
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15434 ## -------------------- ##
15435 ## M4sh Initialization. ##
15436 ## -------------------- ##
15438 # Be more Bourne compatible
15439 DUALCASE
=1; export DUALCASE
# for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
15446 setopt NO_GLOB_SUBST
15448 case `(set -o) 2>/dev/null` in #(
15460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15461 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15464 # Prefer a ksh shell builtin over an external printf program on Solaris,
15465 # but without wasting forks for bash or zsh.
15466 if test -z "$BASH_VERSION$ZSH_VERSION" \
15467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='print
-r --'
15469 as_echo_n='print
-rn --'
15470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='printf %s
\n'
15472 as_echo_n='printf %s
'
15474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15475 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15476 as_echo_n='/usr
/ucb
/echo -n'
15478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15479 as_echo_n_body='eval
15483 expr "X$arg" : "X\\(.*\\)$as_nl";
15484 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15486 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15488 export as_echo_n_body
15489 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15491 export as_echo_body
15492 as_echo='sh
-c $as_echo_body as_echo
'
15495 # The user is always right.
15496 if test "${PATH_SEPARATOR+set}" != set; then
15498 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15499 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15506 # We need space, tab and new line, in precisely that order. Quoting is
15507 # there to prevent editors from complaining about space-tab.
15508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15509 # splitting by setting IFS to empty value.)
15512 # Find who we are. Look in the path if we contain no directory separator.
15515 *[\\/]* ) as_myself=$0 ;;
15516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15520 test -z "$as_dir" && as_dir=.
15521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15527 # We did not find ourselves, most probably we were run as `sh COMMAND'
15528 # in which case we are not to be found in the path.
15529 if test "x$as_myself" = x
; then
15532 if test ! -f "$as_myself"; then
15533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15537 # Unset variables that we do not need and which cause bugs (e.g. in
15538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15539 # suppresses any "Segmentation fault" message there. '((' could
15540 # trigger a bug in pdksh 5.2.14.
15541 for as_var
in BASH_ENV ENV MAIL MAILPATH
15542 do eval test x\
${$as_var+set} = xset \
15543 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15556 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15560 # ----------------------------------------
15561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15563 # script with STATUS, using 1 if that was 0.
15566 as_status
=$1; test $as_status -eq 0 && as_status
=1
15568 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15571 $as_echo "$as_me: error: $2" >&2
15572 as_fn_exit
$as_status
15576 # as_fn_set_status STATUS
15577 # -----------------------
15578 # Set $? to STATUS, without forking.
15579 as_fn_set_status
()
15582 } # as_fn_set_status
15584 # as_fn_exit STATUS
15585 # -----------------
15586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15590 as_fn_set_status
$1
15596 # Portably unset VAR.
15599 { eval $1=; unset $1;}
15601 as_unset
=as_fn_unset
15602 # as_fn_append VAR VALUE
15603 # ----------------------
15604 # Append the text in VALUE to the end of the definition contained in VAR. Take
15605 # advantage of any shell optimizations that allow amortized linear growth over
15606 # repeated appends, instead of the typical quadratic growth present in naive
15608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15609 eval 'as_fn_append ()
15620 # as_fn_arith ARG...
15621 # ------------------
15622 # Perform arithmetic evaluation on the ARGs, and store the result in the
15623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15624 # must be portable across $(()) and expr.
15625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15626 eval 'as_fn_arith ()
15633 as_val
=`expr "$@" || test $? -eq 1`
15638 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15639 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15645 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15646 as_basename
=basename
15651 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15657 as_me
=`$as_basename -- "$0" ||
15658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15659 X"$0" : 'X\(//\)$' \| \
15660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15662 sed '/^.*\/\([^/][^/]*\)\/*$/{
15676 # Avoid depending upon Character Ranges.
15677 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15678 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15679 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15680 as_cr_digits
='0123456789'
15681 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15683 ECHO_C
= ECHO_N
= ECHO_T
=
15684 case `echo -n x` in #(((((
15686 case `echo 'xy\c'` in
15687 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15689 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15696 rm -f conf$$ conf$$.exe conf$$.
file
15697 if test -d conf$$.dir
; then
15698 rm -f conf$$.dir
/conf$$.
file
15701 mkdir conf$$.dir
2>/dev
/null
15703 if (echo >conf$$.
file) 2>/dev
/null
; then
15704 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15706 # ... but there are two gotchas:
15707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15709 # In both cases, we have to default to `cp -pR'.
15710 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15712 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15720 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15721 rmdir conf$$.dir
2>/dev
/null
15726 # Create "$as_dir" as a directory, including parents if necessary.
15731 -*) as_dir
=.
/$as_dir;;
15733 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15737 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15738 *) as_qdir
=$as_dir;;
15740 as_dirs
="'$as_qdir' $as_dirs"
15741 as_dir
=`$as_dirname -- "$as_dir" ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15746 $as_echo X"$as_dir" |
15747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15751 /^X\(\/\/\)[^/].*/{
15764 test -d "$as_dir" && break
15766 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15767 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15771 if mkdir
-p .
2>/dev
/null
; then
15772 as_mkdir_p
='mkdir -p "$as_dir"'
15774 test -d .
/-p && rmdir .
/-p
15779 # as_fn_executable_p FILE
15780 # -----------------------
15781 # Test if FILE is an executable regular file.
15782 as_fn_executable_p
()
15784 test -f "$1" && test -x "$1"
15785 } # as_fn_executable_p
15786 as_test_x
='test -x'
15787 as_executable_p
=as_fn_executable_p
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15797 ## ----------------------------------- ##
15798 ## Main body of $CONFIG_STATUS script. ##
15799 ## ----------------------------------- ##
15801 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15804 # Save the log message, to keep $0 and so on meaningful, and to
15805 # report actual input values of CONFIG_FILES etc. instead of their
15806 # values after options handling.
15808 This file was extended by $as_me, which was
15809 generated by GNU Autoconf 2.69. Invocation command line was
15811 CONFIG_FILES = $CONFIG_FILES
15812 CONFIG_HEADERS = $CONFIG_HEADERS
15813 CONFIG_LINKS = $CONFIG_LINKS
15814 CONFIG_COMMANDS = $CONFIG_COMMANDS
15817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15822 case $ac_config_files in *"
15823 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15826 case $ac_config_headers in *"
15827 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 # Files that config.status was made for.
15833 config_files="$ac_config_files"
15834 config_headers="$ac_config_headers"
15835 config_commands="$ac_config_commands"
15839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15841 \`$as_me' instantiates files and other configuration actions
15842 from templates according to the current configuration. Unless the files
15843 and actions are specified as TAGs, all are instantiated by default.
15845 Usage: $0 [OPTION]... [TAG]...
15847 -h, --help print this help, then exit
15848 -V, --version print version number and configuration settings, then exit
15849 --config print configuration, then exit
15850 -q, --quiet, --silent
15851 do not print progress messages
15852 -d, --debug don't remove temporary files
15853 --recheck update $as_me by reconfiguring in the same conditions
15854 --file=FILE[:TEMPLATE]
15855 instantiate the configuration file FILE
15856 --header=FILE[:TEMPLATE]
15857 instantiate the configuration header FILE
15859 Configuration files:
15862 Configuration headers:
15865 Configuration commands:
15868 Report bugs to the package provider."
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15875 configured by $0, generated by GNU Autoconf 2.69,
15876 with options \\"\$ac_cs_config\\"
15878 Copyright (C) 2012 Free Software Foundation, Inc.
15879 This config.status script is free software; the Free Software Foundation
15880 gives unlimited permission to copy, distribute and modify it."
15884 test -n "\$AWK" || AWK=awk
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15888 # The default lists apply if the user does not specify any file.
15894 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15895 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15899 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15911 # Handling of the options.
15912 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15914 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15915 $as_echo "$ac_cs_version"; exit ;;
15916 --config |
--confi |
--conf |
--con |
--co |
--c )
15917 $as_echo "$ac_cs_config"; exit ;;
15918 --debug |
--debu |
--deb |
--de |
--d |
-d )
15920 --file |
--fil |
--fi |
--f )
15923 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15924 '') as_fn_error $?
"missing file argument" ;;
15926 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15927 ac_need_defaults
=false
;;
15928 --header |
--heade |
--head |
--hea )
15931 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15933 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15934 ac_need_defaults
=false
;;
15936 # Conflict between --help and --header
15937 as_fn_error $?
"ambiguous option: \`$1'
15938 Try \`$0 --help' for more information.";;
15939 --help |
--hel |
-h )
15940 $as_echo "$ac_cs_usage"; exit ;;
15941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15942 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15945 # This is an error.
15946 -*) as_fn_error $?
"unrecognized option: \`$1'
15947 Try \`$0 --help' for more information." ;;
15949 *) as_fn_append ac_config_targets
" $1"
15950 ac_need_defaults
=false
;;
15956 ac_configure_extra_args
=
15958 if $ac_cs_silent; then
15960 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 if \$ac_cs_recheck; then
15966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15969 CONFIG_SHELL='$SHELL'
15970 export CONFIG_SHELL
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15980 ## Running $as_me. ##
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15991 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15992 aros_tools_dir=${aros_tools_dir}
15996 aros_host_exe_suffix=${aros_host_exe_suffix}
15997 aros_tools_dir=${aros_tools_dir}
15998 aros_target_cpu=${aros_target_cpu}
15999 aros_target_arch=${aros_target_arch}
16000 aros_target_suffix=${aros_target_suffix}
16001 orig_target_nm=${orig_target_nm}
16002 orig_target_as=${orig_target_as}
16003 orig_target_ar=${orig_target_ar}
16004 orig_target_ranlib=${orig_target_ranlib}
16005 orig_target_objdump=${orig_target_objdump}
16006 orig_target_objcopy=${orig_target_objcopy}
16007 orig_target_strip=${orig_target_strip}
16008 aros_kernel_ld=${aros_kernel_ld}
16012 aros_host_exe_suffix=${aros_host_exe_suffix}
16013 aros_tools_dir=${aros_tools_dir}
16014 aros_target_cpu=${aros_target_cpu}
16015 aros_target_arch=${aros_target_arch}
16016 aros_target_suffix=${aros_target_suffix}
16017 aros_kernel_ld=${aros_kernel_ld}
16021 aros_host_exe_suffix=${aros_host_exe_suffix}
16022 aros_tools_dir=${aros_tools_dir}
16023 aros_target_cpu=${aros_target_cpu}
16024 aros_target_arch=${aros_target_arch}
16025 aros_target_suffix=${aros_target_suffix}
16031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16033 # Handling of arguments.
16034 for ac_config_target
in $ac_config_targets
16036 case $ac_config_target in
16037 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16038 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16039 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16040 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16041 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16042 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16043 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16044 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16045 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16046 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16047 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16048 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16049 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16050 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16051 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16052 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16053 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
16054 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16055 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16056 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
16057 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16058 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16059 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
16060 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
16061 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
16062 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES
="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
16063 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16065 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16070 # If the user did not use the arguments to specify the items to instantiate,
16071 # then the envvar interface is used. Set only those that are not.
16072 # We use the long form for the default assignment because of an extremely
16073 # bizarre bug on SunOS 4.1.3.
16074 if $ac_need_defaults; then
16075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16080 # Have a temporary directory for convenience. Make it in the build tree
16081 # simply because there is no reason against having it here, and in addition,
16082 # creating and moving files from /tmp can sometimes cause problems.
16083 # Hook for its removal unless debugging.
16084 # Note that there is a small window in which the directory will not be cleaned:
16085 # after its creation but before its name has been assigned to `$tmp'.
16089 trap 'exit_status=$?
16090 : "${ac_tmp:=$tmp}"
16091 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16093 trap 'as_fn_exit 1' 1 2 13 15
16095 # Create a (secure) tmp directory for tmp files.
16098 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16102 tmp
=.
/conf$$
-$RANDOM
16103 (umask 077 && mkdir
"$tmp")
16104 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16107 # Set up the scripts for CONFIG_FILES section.
16108 # No need to generate them if there are no CONFIG_FILES.
16109 # This happens for instance with `./config.status config.h'.
16110 if test -n "$CONFIG_FILES"; then
16113 ac_cr
=`echo X | tr X '\015'`
16114 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16115 # But we know of no other shell where ac_cr would be empty at this
16116 # point, so we can use a bashism as a fallback.
16117 if test "x$ac_cr" = x
; then
16118 eval ac_cr
=\$
\'\\r
\'
16120 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16121 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16124 ac_cs_awk_cr
=$ac_cr
16127 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16132 echo "cat >conf$$subs.awk <<_ACEOF" &&
16133 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16135 } >conf$$subs.sh ||
16136 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16137 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16139 for ac_last_try in false false false false false :; do
16140 . ./conf$$subs.sh ||
16141 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16143 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16144 if test $ac_delim_n = $ac_delim_num; then
16146 elif $ac_last_try; then
16147 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16149 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16152 rm -f conf$$subs.sh
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16159 s/^/S["/; s
/!.
*/"]=/
16169 s/\(.\{148\}\)..*/\1/
16171 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16176 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16183 s/\(.\{148\}\)..*/\1/
16185 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16189 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16194 ' <conf$$subs.awk | sed '
16199 ' >>$CONFIG_STATUS || ac_write_fail=1
16200 rm -f conf$$subs.awk
16201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16203 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16204 for (key in S) S_is_set[key] = 1
16210 nfields = split(line, field, "@
")
16212 len = length(field[1])
16213 for (i = 2; i < nfields; i++) {
16215 keylen = length(key)
16216 if (S_is_set[key]) {
16218 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16219 len += length(value) + length(field[++i])
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16232 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16235 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16236 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16239 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16240 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16241 # trailing colons and then remove the whole line if VPATH becomes empty
16242 # (actually we leave an empty line to preserve line numbers).
16243 if test "x
$srcdir" = x.; then
16244 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 fi # test -n "$CONFIG_FILES"
16265 # Set up the scripts for CONFIG_HEADERS section.
16266 # No need to generate them if there are no CONFIG_HEADERS.
16267 # This happens for instance with `./config.status Makefile'.
16268 if test -n "$CONFIG_HEADERS"; then
16269 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16273 # Transform confdefs.h into an awk script `defines.awk', embedded as
16274 # here-document in config.status, that substitutes the proper values into
16275 # config.h.in to produce config.h.
16277 # Create a delimiter string that does not exist in confdefs.h, to ease
16278 # handling of long lines.
16280 for ac_last_try in false false :; do
16281 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16282 if test -z "$ac_tt"; then
16284 elif $ac_last_try; then
16285 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16287 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16291 # For the awk script, D is an array of macro values keyed by name,
16292 # likewise P contains macro parameters if any. Preserve backslash
16293 # newline sequences.
16295 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16297 s/.\{148\}/&'"$ac_delim"'/g
16300 s/^[ ]*#[ ]*define[ ][ ]*/ /
16307 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16309 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16314 D["\
1"]=" \
3\\\\\\n
"\\/p
16316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16321 s/.\{148\}/&'"$ac_delim"'/g
16326 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16329 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16331 ' <confdefs.h | sed '
16332 s/'"$ac_delim"'/"\\\
16333 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 for (key in D) D_is_set[key] = 1
16339 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16341 split(line, arg, " ")
16342 if (arg[1] == "#") {
16346 defundef
= substr
(arg
[1], 2)
16349 split(mac1
, mac2
, "(") #)
16351 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16352 if (D_is_set
[macro
]) {
16353 # Preserve the white space surrounding the "#".
16354 print prefix
"define", macro P
[macro
] D
[macro
]
16357 # Replace #undef with comments. This is necessary, for example,
16358 # in the case of _POSIX_SOURCE, which is predefined and required
16359 # on some systems where configure will not decide to define it.
16360 if (defundef
== "undef") {
16361 print
"/*", prefix defundef
, macro
, "*/"
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16370 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16371 fi # test -n "$CONFIG_HEADERS"
16374 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16379 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16381 case $ac_mode$ac_tag in
16383 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16384 :[FH
]-) ac_tag
=-:-;;
16385 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16402 -) ac_f
="$ac_tmp/stdin";;
16403 *) # Look for the file first in the build tree, then in the source tree
16404 # (if the path is not absolute). The absolute path cannot be DOS-style,
16405 # because $ac_f cannot contain `:'.
16409 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16411 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16413 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16414 as_fn_append ac_file_inputs
" '$ac_f'"
16417 # Let's still pretend it is `configure' which instantiates (i.e., don't
16418 # use $as_me), people would be surprised to read:
16419 # /* config.h. Generated by config.status. */
16420 configure_input
='Generated from '`
16421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16423 if test x
"$ac_file" != x-
; then
16424 configure_input
="$ac_file. $configure_input"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16426 $as_echo "$as_me: creating $ac_file" >&6;}
16428 # Neutralize special characters interpreted by sed in replacement strings.
16429 case $configure_input in #(
16430 *\
&* |
*\|
* |
*\\* )
16431 ac_sed_conf_input
=`$as_echo "$configure_input" |
16432 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16433 *) ac_sed_conf_input
=$configure_input;;
16437 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16438 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16443 ac_dir
=`$as_dirname -- "$ac_file" ||
16444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16445 X"$ac_file" : 'X\(//\)[^/]' \| \
16446 X"$ac_file" : 'X\(//\)$' \| \
16447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16448 $as_echo X"$ac_file" |
16449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16453 /^X\(\/\/\)[^/].*/{
16466 as_dir
="$ac_dir"; as_fn_mkdir_p
16470 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16472 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16473 # A ".." for each directory in $ac_dir_suffix.
16474 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16475 case $ac_top_builddir_sub in
16476 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16477 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16480 ac_abs_top_builddir
=$ac_pwd
16481 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16482 # for backward compatibility:
16483 ac_top_builddir
=$ac_top_build_prefix
16486 .
) # We are building in place.
16488 ac_top_srcdir
=$ac_top_builddir_sub
16489 ac_abs_top_srcdir
=$ac_pwd ;;
16490 [\\/]* | ?
:[\\/]* ) # Absolute name.
16491 ac_srcdir
=$srcdir$ac_dir_suffix;
16492 ac_top_srcdir
=$srcdir
16493 ac_abs_top_srcdir
=$srcdir ;;
16494 *) # Relative name.
16495 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16496 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16497 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16499 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16511 # If the template does not know about datarootdir, expand it.
16512 # FIXME: This hack should be removed a few years after 2.60.
16513 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16524 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16525 *datarootdir
*) ac_datarootdir_seen
=yes;;
16526 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16528 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16531 ac_datarootdir_hack='
16532 s&@datadir@&$datadir&g
16533 s&@docdir@&$docdir&g
16534 s&@infodir@&$infodir&g
16535 s&@localedir@&$localedir&g
16536 s&@mandir@&$mandir&g
16537 s&\\\${datarootdir}&$datarootdir&g' ;;
16541 # Neutralize VPATH when `$srcdir' = `.'.
16542 # Shell code in configure.ac might set extrasub.
16543 # FIXME: do we really want to maintain this feature?
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 ac_sed_extra="$ac_vpsub
16548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16550 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16551 s|@configure_input@|
$ac_sed_conf_input|
;t t
16552 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16553 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16554 s
&@srcdir@
&$ac_srcdir&;t t
16555 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16556 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16557 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16558 s
&@builddir@
&$ac_builddir&;t t
16559 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16560 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16561 $ac_datarootdir_hack
16563 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16564 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16567 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16569 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16571 which seems to be undefined. Please make sure it is defined" >&5
16572 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16573 which seems to be undefined. Please make sure it is defined" >&2;}
16575 rm -f "$ac_tmp/stdin"
16577 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16578 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16586 if test x"$ac_file" != x-; then
16588 $as_echo "/* $configure_input */" \
16589 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16590 } >"$ac_tmp/config.h" \
16591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16592 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16594 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16597 mv "$ac_tmp/config.h" "$ac_file" \
16598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16601 $as_echo "/* $configure_input */" \
16602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16603 || as_fn_error $? "could not create -" "$LINENO" 5
16607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16608 $as_echo "$as_me: executing $ac_file commands" >&6;}
16613 case $ac_file$ac_mode in
16614 "genmf-executable-support":C)
16615 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16616 chmod a+x ${aros_tools_dir}/genmf.py
16618 "binutils-support":C)
16619 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16621 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16623 chmod a+x ${prefix2}-ld
16625 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16626 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16627 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16628 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16629 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16630 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16631 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16633 "elf-compiler-support":C)
16634 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16636 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16638 chmod a+x ${prefix2}-gcc
16640 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16642 "host-compiler-wrapper-support":C)
16643 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16645 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16647 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16656 ac_clean_files=$ac_clean_files_save
16658 test $ac_write_fail = 0 ||
16659 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16662 # configure is writing to config.log, and then calls config.status.
16663 # config.status does its own redirection, appending to config.log.
16664 # Unfortunately, on DOS this fails, as config.log is still kept open
16665 # by configure, so config.status won't be able to
write to it
; its
16666 # output is simply discarded. So we exec the FD to /dev/null,
16667 # effectively closing config.log, so it can be properly (re)opened and
16668 # appended to by config.status. When coming back to configure, we
16669 # need to make the FD available again.
16670 if test "$no_create" != yes; then
16672 ac_config_status_args
=
16673 test "$silent" = yes &&
16674 ac_config_status_args
="$ac_config_status_args --quiet"
16676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16679 # would make configure fail if this is the last instruction.
16680 $ac_cs_success || as_fn_exit
1
16682 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16684 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16689 #XXX compatability...
16690 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16692 if test -n "$aros_shared_cflags" ; then
16693 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16694 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg