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
657 aros_host_x11_ldflags
668 crosstools_cxx_target
671 aros_optimization_cflags
672 aros_target_strip_flags
679 aros_kernel_objcflags
702 aros_target_cc_includes
718 aros_target_bootloader
739 aros_amigaos_compliance
746 aros_target_toolchain
759 kernel_cflags_iquote_end
761 host_cflags_iquote_end
764 aros_target_nostdlib_ldflags
765 aros_target_detach_ldflags
766 aros_target_nix_ldflags
767 aros_target_nostartup_ldflags
768 aros_target_nostdinc_cflags
807 arosconfig_use_libpngconfig
890 program_transform_name
903 enable_option_checking
912 with_kernel_gcc_version
915 enable_target_variant
922 enable_amigaos_compliance
923 with_kernel_toolchain_prefix
924 with_elf_toolchain_prefix
927 with_aros_toolchain_install
928 with_binutils_version
942 enable_palm_debug_hack
944 enable_nesting_supervisor
956 ac_precious_vars
='build_alias
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 ac_unrecognized_opts
=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
986 program_transform_name
=s
,x
,x
,
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir
='${exec_prefix}/bin'
1001 sbindir
='${exec_prefix}/sbin'
1002 libexecdir
='${exec_prefix}/libexec'
1003 datarootdir
='${prefix}/share'
1004 datadir
='${datarootdir}'
1005 sysconfdir
='${prefix}/etc'
1006 sharedstatedir
='${prefix}/com'
1007 localstatedir
='${prefix}/var'
1008 includedir
='${prefix}/include'
1009 oldincludedir
='/usr/include'
1010 docdir
='${datarootdir}/doc/${PACKAGE}'
1011 infodir
='${datarootdir}/info'
1016 libdir
='${exec_prefix}/lib'
1017 localedir
='${datarootdir}/locale'
1018 mandir
='${datarootdir}/man'
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\
$ac_option
1032 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1043 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1045 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1046 bindir
=$ac_optarg ;;
1048 -build |
--build |
--buil |
--bui |
--bu)
1049 ac_prev
=build_alias
;;
1050 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1051 build_alias
=$ac_optarg ;;
1053 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1054 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1055 ac_prev
=cache_file
;;
1056 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1057 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1058 cache_file
=$ac_optarg ;;
1060 --config-cache |
-C)
1061 cache_file
=config.cache
;;
1063 -datadir |
--datadir |
--datadi |
--datad)
1065 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1066 datadir
=$ac_optarg ;;
1068 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1069 |
--dataroo |
--dataro |
--datar)
1070 ac_prev
=datarootdir
;;
1071 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1072 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1073 datarootdir
=$ac_optarg ;;
1075 -disable-* |
--disable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error $?
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=no
;;
1091 -docdir |
--docdir |
--docdi |
--doc |
--do)
1093 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1094 docdir
=$ac_optarg ;;
1096 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1098 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1099 dvidir
=$ac_optarg ;;
1101 -enable-* |
--enable-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error $?
"invalid feature name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_
$ac_useropt"
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval enable_
$ac_useropt=\
$ac_optarg ;;
1117 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1118 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1119 |
--exec |
--exe |
--ex)
1120 ac_prev
=exec_prefix
;;
1121 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1122 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1123 |
--exec=* |
--exe=* |
--ex=*)
1124 exec_prefix
=$ac_optarg ;;
1126 -gas |
--gas |
--ga |
--g)
1127 # Obsolete; use --with-gas.
1130 -help |
--help |
--hel |
--he |
-h)
1131 ac_init_help
=long
;;
1132 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1133 ac_init_help
=recursive
;;
1134 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1135 ac_init_help
=short
;;
1137 -host |
--host |
--hos |
--ho)
1138 ac_prev
=host_alias
;;
1139 -host=* |
--host=* |
--hos=* |
--ho=*)
1140 host_alias
=$ac_optarg ;;
1142 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1144 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1146 htmldir
=$ac_optarg ;;
1148 -includedir |
--includedir |
--includedi |
--included |
--include \
1149 |
--includ |
--inclu |
--incl |
--inc)
1150 ac_prev
=includedir
;;
1151 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1152 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1153 includedir
=$ac_optarg ;;
1155 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1157 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1158 infodir
=$ac_optarg ;;
1160 -libdir |
--libdir |
--libdi |
--libd)
1162 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1163 libdir
=$ac_optarg ;;
1165 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1166 |
--libexe |
--libex |
--libe)
1167 ac_prev
=libexecdir
;;
1168 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1169 |
--libexe=* |
--libex=* |
--libe=*)
1170 libexecdir
=$ac_optarg ;;
1172 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1173 ac_prev
=localedir
;;
1174 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1175 localedir
=$ac_optarg ;;
1177 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1178 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1179 ac_prev
=localstatedir
;;
1180 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1181 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1182 localstatedir
=$ac_optarg ;;
1184 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1186 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1187 mandir
=$ac_optarg ;;
1189 -nfp |
--nfp |
--nf)
1190 # Obsolete; use --without-fp.
1193 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1194 |
--no-cr |
--no-c |
-n)
1197 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1198 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1201 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1202 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1203 |
--oldin |
--oldi |
--old |
--ol |
--o)
1204 ac_prev
=oldincludedir
;;
1205 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1206 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1207 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1208 oldincludedir
=$ac_optarg ;;
1210 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1212 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1213 prefix
=$ac_optarg ;;
1215 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1216 |
--program-pre |
--program-pr |
--program-p)
1217 ac_prev
=program_prefix
;;
1218 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1219 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1220 program_prefix
=$ac_optarg ;;
1222 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1223 |
--program-suf |
--program-su |
--program-s)
1224 ac_prev
=program_suffix
;;
1225 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1226 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1227 program_suffix
=$ac_optarg ;;
1229 -program-transform-name |
--program-transform-name \
1230 |
--program-transform-nam |
--program-transform-na \
1231 |
--program-transform-n |
--program-transform- \
1232 |
--program-transform |
--program-transfor \
1233 |
--program-transfo |
--program-transf \
1234 |
--program-trans |
--program-tran \
1235 |
--progr-tra |
--program-tr |
--program-t)
1236 ac_prev
=program_transform_name
;;
1237 -program-transform-name=* |
--program-transform-name=* \
1238 |
--program-transform-nam=* |
--program-transform-na=* \
1239 |
--program-transform-n=* |
--program-transform-=* \
1240 |
--program-transform=* |
--program-transfor=* \
1241 |
--program-transfo=* |
--program-transf=* \
1242 |
--program-trans=* |
--program-tran=* \
1243 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1244 program_transform_name
=$ac_optarg ;;
1246 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1248 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1249 pdfdir
=$ac_optarg ;;
1251 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1253 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1256 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1257 |
-silent |
--silent |
--silen |
--sile |
--sil)
1260 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1262 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1264 sbindir
=$ac_optarg ;;
1266 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1267 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1268 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1270 ac_prev
=sharedstatedir
;;
1271 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1272 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1273 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1275 sharedstatedir
=$ac_optarg ;;
1277 -site |
--site |
--sit)
1279 -site=* |
--site=* |
--sit=*)
1282 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1284 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1285 srcdir
=$ac_optarg ;;
1287 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1288 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1289 ac_prev
=sysconfdir
;;
1290 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1291 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1292 sysconfdir
=$ac_optarg ;;
1294 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1295 ac_prev
=target_alias
;;
1296 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1297 target_alias
=$ac_optarg ;;
1299 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1302 -version |
--version |
--versio |
--versi |
--vers |
-V)
1303 ac_init_version
=: ;;
1306 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1309 as_fn_error $?
"invalid package name: $ac_useropt"
1310 ac_useropt_orig
=$ac_useropt
1311 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep
=', ';;
1319 eval with_
$ac_useropt=\
$ac_optarg ;;
1321 -without-* |
--without-*)
1322 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1325 as_fn_error $?
"invalid package name: $ac_useropt"
1326 ac_useropt_orig
=$ac_useropt
1327 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1332 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep
=', ';;
1335 eval with_
$ac_useropt=no
;;
1338 # Obsolete; use --with-x.
1341 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1342 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1343 ac_prev
=x_includes
;;
1344 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1345 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1346 x_includes
=$ac_optarg ;;
1348 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1349 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1350 ac_prev
=x_libraries
;;
1351 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1352 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1353 x_libraries
=$ac_optarg ;;
1355 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1360 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1364 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1366 eval $ac_envvar=\
$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1380 if test -n "$ac_prev"; then
1381 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $?
"missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1388 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 # Check all directory arguments for consistency.
1394 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val
=\$
$ac_var
1400 # Remove trailing slashes.
1403 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\
$ac_val;;
1406 # Be sure to have absolute directory names.
1408 [\\/$
]* | ?
:[\\/]* ) continue;;
1409 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1411 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1419 target
=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x
; then
1423 if test "x$build_alias" = x
; then
1424 cross_compiling
=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1433 test "$silent" = yes && exec 6>/dev
/null
1436 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di
=`ls -di .` &&
1438 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $?
"working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $?
"pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted
=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir
=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted
=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1480 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1494 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 for ac_var
in $ac_precious_vars; do
1497 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1499 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1568 --x-includes=DIR X include files are
in DIR
1569 --x-libraries=DIR X library files are
in DIR
1572 --build=BUILD configure
for building on BUILD
[guessed
]
1573 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1577 if test -n "$ac_init_help"; then
1582 --disable-option-checking ignore unrecognized
--enable/--with options
1583 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1584 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1585 --disable-libpng-config disable libpng-config
test and configuration
1586 --enable-build-type=TYPE
1587 Select the build
type. Available types are
:
1588 personal
, nightly
, snapshot
, milestone
, release. Do
1589 NOT use this option unless you know what you are
1590 doing
! (default
=personal
)
1591 --enable-debug=list Enable different types of debug. Commas or
1592 whitespaces can be used to separate the items
in the
1593 list. Available types of debug are
: all
, none
,
1594 messages
, stack
, mungwall
, modules
, symbols. If no
1595 list is provided
then "all" is assumed.
1597 --enable-distcc Use distcc as a front end to the compiler
1599 --enable-ccache Use ccache as a front end to the compiler
1601 --enable-target-variant=NAME
1602 Enable a specific target variant
(default
=none
)
1603 --enable-amigaos-compliance=VERSION
1604 Enforce userspace AmigaOS compliance to a specific
1605 KickStart version
(default
=none
).
1606 --disable-crosstools Do not build cross-compiler toolchain
1607 --enable-objc Enable Objectve-C support
(default
=no
)
1608 --enable-java Enable Java support
(default
=no
)
1609 --enable-includes=dir Alternative system include directory
1610 --enable-palm-debug-hack
1611 Enable palm debug output hack
in palm native
1613 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1614 --enable-nesting-supervisor
1615 Enable nesting supervisor support
in unix
1617 --disable-mmu Disable MMU support
(default
=enabled
)
1618 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1619 --enable-x11-shm use X11 shared memory
(default
=auto
)
1620 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1621 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1622 --disable-sdltest Do not try to compile and run a
test SDL program
1623 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1626 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1627 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1628 --with-c-compiler=VERSION
1629 Use specified c compiler
for building AROS
1630 --with-cxx-compiler=VERSION
1631 Use specified c
++ compiler building AROS
1632 --with-toolchain=family Which toolchain family to crosscompile with
1634 --with-kernel-gcc-version=VERSION
1635 Use gcc-VERSION
for building bootstrap
1636 --with-optimization=FLAGS
1637 Use optimization flags FLAGS
(default
=-O2).
1638 --with-paranoia=FLAGS compiler warning flags to
enable for paranoia
1639 --with-xcode=PATH Specify XCode path
for iOS targets
1640 (default
=/Developer
).
1641 --with-sdk-version=VERSION
1642 Use iOS SDK version VERSION
(default
=4.1).
1643 --with-sdk=PATH Specify Android SDK path
1644 (default
=$default_android_sdk).
1645 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1646 --with-sdk-version=LEVEL
1647 Use Android SDK
for API LEVEL
(default
=12).
1648 --with-ndk-version=LEVEL
1649 Use Android NDK
for API LEVEL
(default
=9).
1650 --with-apk-version=(release|debug
)
1651 Which version of AROSBootstrap.apk to compile.
1652 Release version needs key
for signing
, debug version
1653 will only run
in emulator.
(default
=release
)
1654 --with-kernel-toolchain-prefix=...
1655 Specify crosscompile toolchain prefix
for kernel
1657 --with-elf-toolchain-prefix=...
1658 Specify crosscompile toolchain prefix to wrap
for
1660 --with-aros-toolchain=PREFIX
1661 Specify prebuilt AROS toolchain. Use
yes for default
1663 --with-aros-toolchain-install=DIR
1664 Where to
install or search
for cross tools binaries
1665 --with-binutils-version=VERSION
1666 Use binutils-VERSION
for building AROS
1667 --with-gcc-version=VERSION
1668 Compile gcc-VERSION
for AROS
1669 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1670 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1671 --with-float=<spec
> Specify floating point ABI
1672 (default
=$gcc_default_float_abi).
1673 --with-portssources=DIR Where to download sourcecode
for external ports
1674 --with-bootloader=NAME Use a specific bootloader
1675 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1676 --with-theme=NAME Use a specific GUI Theme
1677 --with-resolution=XRESxYRESxDEPTH
1678 Default resolution of the initial WorkbenchScreen
1679 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1680 --with-x use the X Window System
1681 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1682 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1684 Some influential environment variables
:
1685 CXX C
++ compiler
command
1686 CXXFLAGS C
++ compiler flags
1687 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1688 nonstandard directory
<lib dir
>
1689 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1690 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1691 you have headers
in a nonstandard directory
<include dir
>
1692 CC C compiler
command
1693 CFLAGS C compiler flags
1695 PYTHON the Python interpreter
1696 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1698 Use these variables to override the choices made by
`configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1731 .) # We are building in place.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1765 generated by GNU Autoconf 2.69
1767 Copyright (C) 2012 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_cxx_try_compile LINENO
1779 # ----------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_cxx_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1788 *) ac_try_echo
=$ac_try;;
1790 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1794 if test -s conftest.err
; then
1795 grep -v '^ *+' conftest.err
>conftest.er1
1796 cat conftest.er1
>&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_cxx_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.
$ac_objext; then :
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.
$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status
$ac_retval
1814 } # ac_fn_cxx_try_compile
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext
1823 if { { ac_try
="$ac_compile"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i
&& {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status
$ac_retval
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 rm -f conftest.
$ac_objext conftest
$ac_exeext
1898 if { { ac_try
="$ac_link"
1900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if eval \${$3+:} false; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.i conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 eval "$3=\$ac_header_compiler"
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2034 *) ac_try_echo
=$ac_try;;
2036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval \${$3+:} false; then :
2076 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_header_compile
2097 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2098 # ----------------------------------------------------
2099 # Tries to find if the field MEMBER exists in type AGGR, after including
2100 # INCLUDES, setting cache variable VAR accordingly.
2101 ac_fn_c_check_member ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2105 $as_echo_n "checking for $2.$3... " >&6; }
2106 if eval \${$4+:} false; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2132 if (sizeof ac_aggr.$3)
2138 if ac_fn_c_try_compile "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_member
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2158 ac_fn_c_check_decl ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 #ifndef $as_decl_name
2176 (void) $as_decl_use;
2178 (void) $as_decl_name;
2186 if ac_fn_c_try_compile "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_decl
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_check_type
2254 # ac_fn_c_check_func LINENO FUNC VAR
2255 # ----------------------------------
2256 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2257 ac_fn_c_check_func ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2269 #define $2 innocuous_$2
2271 /* System header to define __stub macros and hopefully few prototypes,
2272 which can conflict with char $2 (); below.
2273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2274 <limits.h> exists even on freestanding compilers. */
2277 # include <limits.h>
2279 # include <assert.h>
2284 /* Override any GCC internal prototype to avoid an error.
2285 Use char because int might match the return type of a GCC
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined __stub_$2 || defined __stub___$2
2306 if ac_fn_c_try_link "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext \
2312 conftest$ac_exeext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_func
2320 cat >config.log <<_ACEOF
2321 This file contains any messages produced by compilers while
2322 running configure, to aid debugging if configure makes a mistake.
2324 It was created by $as_me, which was
2325 generated by GNU Autoconf 2.69. Invocation command line was
2337 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2338 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2339 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2340 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2341 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2343 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2344 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2346 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2347 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2348 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2349 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2350 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2351 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2352 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2377 # Keep a trace of the command line.
2378 # Strip out --no-create and --no-recursion so they do not pile up.
2379 # Strip out --silent because we don't want to record it for future runs.
2380 # Also quote any args containing shell meta-characters.
2381 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_must_keep_next=false
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2396 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 -* ) ac_must_keep_next=true ;;
2417 as_fn_append ac_configure_args " '$ac_arg'"
2422 { ac_configure_args0=; unset ac_configure_args0;}
2423 { ac_configure_args1=; unset ac_configure_args1;}
2425 # When interrupted or exit'd, cleanup temporary files, and complete
2426 # config.log. We remove comments because anyway the quotes in there
2427 # would cause problems or look ugly.
2428 # WARNING: Use '\'' to represent an apostrophe within the trap.
2429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430 trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2435 $as_echo "## ---------------- ##
2436 ## Cache variables. ##
2437 ## ---------------- ##"
2439 # The following way of writing the cache mishandles newlines in values,
2441 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2442 eval ac_val=\$$ac_var
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2457 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 $as_echo "## ----------------- ##
2472 ## Output variables. ##
2473 ## ----------------- ##"
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -n "$ac_subst_files"; then
2486 $as_echo "## ------------------- ##
2487 ## File substitutions. ##
2488 ## ------------------- ##"
2490 for ac_var in $ac_subst_files
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -s confdefs.h; then
2502 $as_echo "## ----------- ##
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517 for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2523 rm -f -r conftest* confdefs.h
2525 $as_echo "/* confdefs.h */" > confdefs.h
2527 # Predefined preprocessor variables.
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_NAME "$PACKAGE_NAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_STRING "$PACKAGE_STRING"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_URL "$PACKAGE_URL"
2554 # Let the site file select an alternate cache file if it wants to.
2555 # Prefer an explicitly selected file to automatically selected ones.
2558 if test -n "$CONFIG_SITE"; then
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2565 elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2572 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574 test "x$ac_site_file" = xNONE && continue
2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "failed to load site
script $ac_site_file
2583 See \
`config.log' for more details" "$LINENO" 5; }
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 as_fn_append ac_header_list " stdlib.h"
2605 as_fn_append ac_header_list " unistd.h"
2606 as_fn_append ac_header_list " sys/param.h"
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2618 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2622 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x
$ac_old_val`
2629 ac_new_val_w=`echo x
$ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2678 if test -f "$ac_dir/install-sh"; then
2680 ac_install_sh="$ac_aux_dir/install-sh -c"
2682 elif test -f "$ac_dir/install.sh"; then
2684 ac_install_sh="$ac_aux_dir/install.sh -c"
2686 elif test -f "$ac_dir/shtool"; then
2688 ac_install_sh="$ac_aux_dir/shtool install -c"
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2706 # Check what host we are running on.
2707 # If a target is not suggested, we use this one.
2708 # Note that what we call a target, Autoconf calls a host.
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2714 $as_echo_n "checking build system type... " >&6; }
2715 if ${ac_cv_build+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 ac_build_alias=$build_alias
2719 test "x$ac_build_alias" = x &&
2720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2721 test "x$ac_build_alias" = x &&
2722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2728 $as_echo "$ac_cv_build" >&6; }
2729 case $ac_cv_build in
2731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734 ac_save_IFS=$IFS; IFS='-'
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2744 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2748 $as_echo_n "checking host system type... " >&6; }
2749 if ${ac_cv_host+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2761 $as_echo "$ac_cv_host" >&6; }
2764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767 ac_save_IFS=$IFS; IFS='-'
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2777 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2781 # Default versions for the gnu tools we build
2782 default_gcc_version="4.6.4"
2783 default_binutils_version="2.23.2"
2785 # The AROS target is slightly different to the normal GNU style
2786 # format. We don't have the middle part, and we reverse the order
2787 # of the $(CPU) and $(OS) bits.
2789 # Don't strip the version of the target yet, it might be
2790 # useful on some systems.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2793 $as_echo_n "checking for AROS style target... " >&6; }
2795 if test "$target" = "NONE" ; then
2796 target=$host_os-$host_cpu
2798 if test "$target" = "" ; then
2799 target=$host_os-$host_cpu
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2803 $as_echo "$target" >&6; }
2805 if test "$host_os" = "mingw32" ; then
2809 # Don't know where else to put this...
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2811 $as_echo_n "checking building AROS in... " >&6; }
2812 AROS_BUILDDIR=`${PWDCMD-pwd}`
2813 AROS_BUILDDIR_UNIX=${PWD}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2815 $as_echo "$AROS_BUILDDIR" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2818 $as_echo_n "checking AROS source in... " >&6; }
2819 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2822 $as_echo "$SRCDIR" >&6; }
2824 # Parse the target field into something useful.
2826 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2827 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2830 # Some debug output, to be removed again.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2832 $as_echo_n "checking for target system (debug output)... " >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2834 $as_echo "$target_os" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2836 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2838 $as_echo "$target_cpu" >&6; }
2840 aros_nominal_width=800
2841 aros_nominal_height=600
2842 aros_nominal_depth=4
2845 default_c_compilers="gcc clang cc"
2847 # Check whether --with-c-compiler was given.
2848 if test "${with_c_compiler+set}" = set; then :
2849 withval=$with_c_compiler; use_c_compiler="$withval"
2854 if test "$use_c_compiler" = ""; then
2855 host_c_compilers="$default_c_compilers"
2857 host_c_compilers="$use_c_compiler"
2860 default_cxx_compilers="g++ clang++ c++"
2862 # Check whether --with-cxx-compiler was given.
2863 if test "${with_cxx_compiler+set}" = set; then :
2864 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2869 if test "$use_cxx_compiler" = ""; then
2870 host_cxx_compilers="$default_cxx_compilers"
2872 host_cxx_compilers="$use_cxx_compiler"
2876 # The first step is to find the host binaries.
2877 # Check for a compiler.
2878 # Due to a bug in autoconf check for c++ compiler first.
2879 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2881 ac_cpp='$CXXCPP $CPPFLAGS'
2882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2885 if test -z "$CXX"; then
2886 if test -n "$CCC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in ${host_cxx_compilers}
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CXX+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$CXX"; then
2900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CXX"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2922 $as_echo "$CXX" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CXX" && break
2932 if test -z "$CXX"; then
2934 for ac_prog in ${host_cxx_compilers}
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$ac_ct_CXX"; then
2944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2964 if test -n "$ac_ct_CXX"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2966 $as_echo "$ac_ct_CXX" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CXX" && break
2976 if test "x$ac_ct_CXX" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2991 # Provide some information about the compiler.
2992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2995 for ac_option in --version -v -V -qversion; do
2996 { { ac_try="$ac_compiler $ac_option >&5"
2998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2999 *) ac_try_echo
=$ac_try;;
3001 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3005 if test -s conftest.err
; then
3007 ... rest of stderr output deleted ...
3008 10q' conftest.err
>conftest.er1
3009 cat conftest.er1
>&5
3011 rm -f conftest.er1 conftest.err
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3027 ac_clean_files_save
=$ac_clean_files
3028 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3029 # Try to create an executable without -o first, disregard a.out.
3030 # It will help us diagnose broken compilers, and finding out an intuition
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3033 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3034 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036 # The possible output files:
3037 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3040 for ac_file
in $ac_files
3043 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3044 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3049 if { { ac_try
="$ac_link_default"
3051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link_default") 2>&5
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; then :
3060 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3061 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3062 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3063 # so that the user can short-circuit this test for compilers unknown to
3065 for ac_file in $ac_files ''
3067 test -f "$ac_file" || continue
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072 # We found the default executable, but exeext='' is most
3076 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # We set ac_cv_exeext here because the later test for it is not
3081 # safe: cross compilers may not add the suffix if given an `-o'
3082 # argument, so we may need to know it at that point already.
3083 # Even if this section looks crufty: it has the advantage of
3090 test "$ac_cv_exeext" = no && ac_cv_exeext=
3095 if test -z "$ac_file"; then :
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's
/^
/|
/' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3103 as_fn_error 77 "C++ compiler cannot create executables
3104 See \`config.log
' for more details" "$LINENO" 5; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3110 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3112 $as_echo "$ac_file" >&6; }
3113 ac_exeext=$ac_cv_exeext
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3118 $as_echo_n "checking for suffix of executables... " >&6; }
3119 if { { ac_try="$ac_link"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3134 for ac_file
in conftest.exe conftest conftest.
*; do
3135 test -f "$ac_file" ||
continue
3137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3138 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 rm -f conftest conftest
$ac_cv_exeext
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3151 $as_echo "$ac_cv_exeext" >&6; }
3153 rm -f conftest.
$ac_ext
3154 EXEEXT
=$ac_cv_exeext
3156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3162 FILE *f = fopen ("conftest.out", "w");
3163 return ferror (f) || fclose (f) != 0;
3169 ac_clean_files
="$ac_clean_files conftest.out"
3170 # Check that the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3173 $as_echo_n "checking whether we are cross compiling... " >&6; }
3174 if test "$cross_compiling" != yes; then
3175 { { ac_try
="$ac_link"
3177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }
3186 if { ac_try='./conftest$ac_cv_exeext'
3187 { { case "(($ac_try" in
3188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3189 *) ac_try_echo
=$ac_try;;
3191 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_try") 2>&5
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; }; then
3199 if test "$cross_compiling" = maybe
; then
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $?
"cannot run C++ compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details" "$LINENO" 5; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3211 $as_echo "$cross_compiling" >&6; }
3213 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3214 ac_clean_files
=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3216 $as_echo_n "checking for suffix of object files... " >&6; }
3217 if ${ac_cv_objext+:} false
; then :
3218 $as_echo_n "(cached) " >&6
3220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 rm -f conftest.o conftest.obj
3232 if { { ac_try
="$ac_compile"
3234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compile") 2>&5
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 for ac_file in conftest.o conftest.obj conftest.*; do
3244 test -f "$ac_file" || continue;
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3258 See \
`config.log' for more details" "$LINENO" 5; }
3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3263 $as_echo "$ac_cv_objext" >&6; }
3264 OBJEXT=$ac_cv_objext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3285 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3296 if test $ac_compiler_gnu = yes; then
3301 ac_test_CXXFLAGS=${CXXFLAGS+set}
3302 ac_save_CXXFLAGS=$CXXFLAGS
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3305 if ${ac_cv_prog_cxx_g+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3309 ac_cxx_werror_flag=yes
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3324 ac_cv_prog_cxx_g=yes
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3338 if ac_fn_cxx_try_compile "$LINENO"; then :
3341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 if ac_fn_cxx_try_compile "$LINENO"; then :
3355 ac_cv_prog_cxx_g=yes
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3366 if test "$ac_test_CXXFLAGS" = set; then
3367 CXXFLAGS=$ac_save_CXXFLAGS
3368 elif test $ac_cv_prog_cxx_g = yes; then
3369 if test "$GXX" = yes; then
3375 if test "$GXX" = yes; then
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 for ac_prog in ${host_c_compilers}
3395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$CC" && break
3435 if test -z "$CC"; then
3437 for ac_prog in ${host_c_compilers}
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="$ac_prog"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3476 test -n "$ac_ct_CC" && break
3479 if test "x$ac_ct_CC" = x; then
3482 case $cross_compiling:$ac_tool_warned in
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486 ac_tool_warned=yes ;;
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3496 See \
`config.log' for more details" "$LINENO" 5; }
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 for ac_option in --version -v -V -qversion; do
3503 { { ac_try="$ac_compiler $ac_option >&5"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3512 if test -s conftest.err
; then
3514 ... rest of stderr output deleted ...
3515 10q' conftest.err
>conftest.er1
3516 cat conftest.er1
>&5
3518 rm -f conftest.er1 conftest.err
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if ${ac_cv_c_compiler_gnu+:} false
; then :
3526 $as_echo_n "(cached) " >&6
3528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3542 if ac_fn_c_try_compile
"$LINENO"; then :
3547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3548 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553 if test $ac_compiler_gnu = yes; then
3558 ac_test_CFLAGS
=${CFLAGS+set}
3559 ac_save_CFLAGS
=$CFLAGS
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3562 if ${ac_cv_prog_cc_g+:} false
; then :
3563 $as_echo_n "(cached) " >&6
3565 ac_save_c_werror_flag
=$ac_c_werror_flag
3566 ac_c_werror_flag
=yes
3569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile
"$LINENO"; then :
3584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 if ac_fn_c_try_compile
"$LINENO"; then :
3598 ac_c_werror_flag
=$ac_save_c_werror_flag
3600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_c_try_compile
"$LINENO"; then :
3614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 ac_c_werror_flag
=$ac_save_c_werror_flag
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622 $as_echo "$ac_cv_prog_cc_g" >&6; }
3623 if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS
=$ac_save_CFLAGS
3625 elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3632 if test "$GCC" = yes; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640 if ${ac_cv_prog_cc_c89+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 ac_cv_prog_cc_c89
=no
3645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3664 s = g (p, va_arg (v,int));
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 CC
="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile
"$LINENO"; then :
3702 ac_cv_prog_cc_c89
=$ac_arg
3704 rm -f core conftest.err conftest.
$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 rm -f conftest.
$ac_ext
3712 case "x$ac_cv_prog_cc_c89" in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715 $as_echo "none needed" >&6; } ;;
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;;
3720 CC
="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3729 ac_cpp
='$CPP $CPPFLAGS'
3730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3734 aros_host_def_cc
="$CC"
3735 case $ac_cv_prog_cc_stdc in #(
3737 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3740 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3741 if ${ac_cv_prog_cc_c99+:} false
; then :
3742 $as_echo_n "(cached) " >&6
3744 ac_cv_prog_cc_c99
=no
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 #include <stdbool.h>
3754 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3755 #define debug(...) fprintf (stderr, __VA_ARGS__)
3756 #define showlist(...) puts (#__VA_ARGS__)
3757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3759 test_varargs_macros (void)
3764 debug ("X = %d\n", x);
3765 showlist (The first, second, and third items.);
3766 report (x>y, "x is %d but y is %d", x, y);
3769 // Check long long types.
3770 #define BIG64 18446744073709551615ull
3771 #define BIG32 4294967295ul
3772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3774 your preprocessor is broken;
3778 your preprocessor is broken;
3780 static long long int bignum = -9223372036854775807LL;
3781 static unsigned long long int ubignum = BIG64;
3783 struct incomplete_array
3791 const wchar_t *name;
3795 typedef const char *ccp;
3798 test_restrict (ccp restrict text)
3800 // See if C++-style comments work.
3801 // Iterate through items via the restricted pointer.
3802 // Also check for declarations in for loops.
3803 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3808 // Check varargs and va_copy.
3810 test_varargs (const char *format, ...)
3813 va_start (args, format);
3815 va_copy (args_copy, args);
3826 str = va_arg (args_copy, const char *);
3829 number = va_arg (args_copy, int);
3832 fnumber = va_arg (args_copy, double);
3847 _Bool success = false;
3850 if (test_restrict ("String literal") == 0)
3852 char *restrict newvar = "Another string";
3855 test_varargs ("s, d' f .", "string", 65, 34.234);
3856 test_varargs_macros ();
3858 // Check flexible array members.
3859 struct incomplete_array *ia =
3860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3862 for (int i = 0; i < ia->datasize; ++i)
3863 ia->data[i] = i * 1.234;
3865 // Check named initializers.
3866 struct named_init ni = {
3868 .name = L"Test wide string",
3869 .average = 543.34343,
3874 int dynamic_array[ni.number];
3875 dynamic_array[ni.number - 1] = 543;
3877 // work around unused variable warnings
3878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3879 || dynamic_array[ni.number - 1] != 543);
3885 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3887 CC
="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile
"$LINENO"; then :
3889 ac_cv_prog_cc_c99
=$ac_arg
3891 rm -f core conftest.err conftest.
$ac_objext
3892 test "x$ac_cv_prog_cc_c99" != "xno" && break
3894 rm -f conftest.
$ac_ext
3899 case "x$ac_cv_prog_cc_c99" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC
="$CC $ac_cv_prog_cc_c99"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3909 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3911 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3912 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false
; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_cv_prog_cc_c89
=no
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3940 s = g (p, va_arg (v,int));
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3973 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC
="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile
"$LINENO"; then :
3978 ac_cv_prog_cc_c89
=$ac_arg
3980 rm -f core conftest.err conftest.
$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3983 rm -f conftest.
$ac_ext
3988 case "x$ac_cv_prog_cc_c89" in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3996 CC
="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4000 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4001 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4003 ac_cv_prog_cc_stdc
=no
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4010 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4011 if ${ac_cv_prog_cc_stdc+:} false
; then :
4012 $as_echo_n "(cached) " >&6
4015 case $ac_cv_prog_cc_stdc in #(
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;; #(
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;; #(
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4024 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4028 ac_cpp
='$CPP $CPPFLAGS'
4029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4034 # On Suns, sometimes $CPP names a directory.
4035 if test -n "$CPP" && test -d "$CPP"; then
4038 if test -z "$CPP"; then
4039 if ${ac_cv_prog_CPP+:} false
; then :
4040 $as_echo_n "(cached) " >&6
4042 # Double quotes because CPP needs to be expanded
4043 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 for ac_c_preproc_warn_flag
in '' yes
4048 # Use a header file that comes with gcc, so configuring glibc
4049 # with a fresh cross-compiler works.
4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051 # <limits.h> exists even on freestanding compilers.
4052 # On the NeXT, cc -E runs the code through the compiler's parser,
4053 # not just through cpp. "Syntax error" is here to catch this case.
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4057 # include <limits.h>
4059 # include <assert.h>
4063 if ac_fn_c_try_cpp
"$LINENO"; then :
4066 # Broken: fails on valid input.
4069 rm -f conftest.err conftest.i conftest.
$ac_ext
4071 # OK, works on sane cases. Now check whether nonexistent headers
4072 # can be detected and how.
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4077 if ac_fn_c_try_cpp
"$LINENO"; then :
4078 # Broken: success on invalid input.
4081 # Passes both tests.
4085 rm -f conftest.err conftest.i conftest.
$ac_ext
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.i conftest.err conftest.
$ac_ext
4090 if $ac_preproc_ok; then :
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4103 $as_echo "$CPP" >&6; }
4105 for ac_c_preproc_warn_flag
in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4116 # include <limits.h>
4118 # include <assert.h>
4122 if ac_fn_c_try_cpp
"$LINENO"; then :
4125 # Broken: fails on valid input.
4128 rm -f conftest.err conftest.i conftest.
$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if ac_fn_c_try_cpp
"$LINENO"; then :
4137 # Broken: success on invalid input.
4140 # Passes both tests.
4144 rm -f conftest.err conftest.i conftest.
$ac_ext
4147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4148 rm -f conftest.i conftest.err conftest.
$ac_ext
4149 if $ac_preproc_ok; then :
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4155 See \`config.log' for more details" "$LINENO" 5; }
4159 ac_cpp
='$CPP $CPPFLAGS'
4160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4165 # Check for a compatible awk
4166 for ac_prog
in gawk nawk
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy
$ac_prog; ac_word
=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_AWK+:} false
; then :
4173 $as_echo_n "(cached) " >&6
4175 if test -n "$AWK"; then
4176 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir
=.
4183 for ac_exec_ext
in '' $ac_executable_extensions; do
4184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_AWK
="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 if test -n "$AWK"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4198 $as_echo "$AWK" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$AWK" && break
4209 if test "$AWK" = ""; then
4212 if test "$AWK" = "no"; then
4215 if test "$req_avail" = "no"; then
4216 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4218 # Extract the first word of "mmake", so it can be a program name with args.
4219 set dummy mmake
; ac_word
=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_MMAKE+:} false
; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$MMAKE"; then
4226 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_MMAKE
="mmake "
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 MMAKE
=$ac_cv_prog_MMAKE
4246 if test -n "$MMAKE"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4248 $as_echo "$MMAKE" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4256 # Perform some default variable assignments. Note all of these will be
4257 # Regenerated from the script, so there is no need to cache them.
4259 aros_build_host
=$host
4260 aros_host_cpp
="$CPP"
4262 aros_host_cxx
="$CXX"
4263 if test "$GCC" = "yes"; then
4264 aros_gcc_ld
=`$CC -print-prog-name=ld`
4265 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4266 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_path_aros_host_ld+:} false
; then :
4270 $as_echo_n "(cached) " >&6
4272 case $aros_host_ld in
4274 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4278 for as_dir
in `dirname $aros_gcc_ld`
4281 test -z "$as_dir" && as_dir
=.
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 aros_host_ld
=$ac_cv_path_aros_host_ld
4296 if test -n "$aros_host_ld"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4298 $as_echo "$aros_host_ld" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4306 if test "$aros_host_ld" = ""; then
4307 # Extract the first word of "ld", so it can be a program name with args.
4308 set dummy ld
; ac_word
=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_path_aros_host_ld+:} false
; then :
4312 $as_echo_n "(cached) " >&6
4314 case $aros_host_ld in
4316 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir
=.
4324 for ac_exec_ext
in '' $ac_executable_extensions; do
4325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 aros_host_ld
=$ac_cv_path_aros_host_ld
4338 if test -n "$aros_host_ld"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4340 $as_echo "$aros_host_ld" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4349 if test "$aros_host_ld" = ""; then
4352 if test "$aros_host_ld" = "no"; then
4355 if test "$req_avail" = "no"; then
4356 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4358 aros_host_make
="make"
4359 aros_host_cflags
="$CFLAGS"
4360 aros_host_cxxflags
="$CXXFLAGS"
4361 aros_host_ldflags
="$LDFLAGS"
4362 aros_host_debug
="-g -O0"
4363 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4364 aros_host_mkargs
="--no-print-directory"
4365 aros_host_exe_suffix
="$EXEEXT"
4366 aros_host_lib_suffix
=""
4368 # Ignore all compliance, AROS ROMs = 0
4369 # KickStart v1.0 = 30
4370 # KickStart v1.3 = 34
4371 # KickStart v2.0 = 37
4372 # KickStart v3.0 = 39
4373 # KickStart v3.1 = 40
4375 aros_amigaos_compliance
=0
4377 for ac_prog
in aclocal aclocal19 aclocal-1.9
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy
$ac_prog; ac_word
=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -n "$aros_host_aclocal"; then
4387 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir
=.
4394 for ac_exec_ext
in '' $ac_executable_extensions; do
4395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4407 if test -n "$aros_host_aclocal"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4409 $as_echo "$aros_host_aclocal" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4416 test -n "$aros_host_aclocal" && break
4419 for ac_prog
in autoconf autoconf259 autoconf253
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy
$ac_prog; ac_word
=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$aros_host_autoconf"; then
4429 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir
=.
4436 for ac_exec_ext
in '' $ac_executable_extensions; do
4437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4449 if test -n "$aros_host_autoconf"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4451 $as_echo "$aros_host_autoconf" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$aros_host_autoconf" && break
4461 for ac_prog
in autoheader autoheader259 autoheader253
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy
$ac_prog; ac_word
=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$aros_host_autoheader"; then
4471 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir
=.
4478 for ac_exec_ext
in '' $ac_executable_extensions; do
4479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4491 if test -n "$aros_host_autoheader"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4493 $as_echo "$aros_host_autoheader" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4500 test -n "$aros_host_autoheader" && break
4503 for ac_prog
in automake automake19 automake-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy
$ac_prog; ac_word
=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$aros_host_automake"; then
4513 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir
=.
4520 for ac_exec_ext
in '' $ac_executable_extensions; do
4521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_automake
="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 aros_host_automake
=$ac_cv_prog_aros_host_automake
4533 if test -n "$aros_host_automake"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4535 $as_echo "$aros_host_automake" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_automake" && break
4547 if test "$aros_host_aclocal" = ""; then
4550 if test "$aros_host_aclocal" = "no"; then
4553 if test "$req_avail" = "no"; then
4554 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4557 if test "$aros_host_automake" = ""; then
4560 if test "$aros_host_automake" = "no"; then
4563 if test "$req_avail" = "no"; then
4564 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4567 case "$aros_host_cc" in
4569 aros_host_cc_pipe
=""
4572 aros_host_cc_pipe
="-pipe"
4575 aros_host_cc_pipe
=""
4578 aros_host_cc_pipe
=""
4582 aros_kernel_cc_includes
=""
4583 aros_target_cc_includes
=""
4586 # ----------------------------------------------------------------------------------------
4587 # Host-specific defaults
4589 # This is the main host configuration section. It is where the host
4590 # can change the values of any variables it needs to change. We do
4591 # not look at anything that compiles to the target yet, we'll get
4596 aros_host_arch
="aros"
4597 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4600 aros_host_cpu
="i386"
4603 aros_host_cpu
="x86_64"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4610 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4611 aros_host_cpu
="$host_cpu"
4617 aros_host_arch
="linux"
4618 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4619 android_build_os
="linux-x86"
4620 android_tool
="android"
4621 default_android_sdk
="/opt/android-sdk-linux_x86"
4624 aros_host_cpu
="i386"
4627 aros_host_cpu
="x86_64"
4630 aros_host_cpu
="m68k"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4640 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4641 aros_host_cpu
="$host_cpu"
4647 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4648 aros_host_make
="gmake"
4649 aros_host_arch
="freebsd"
4650 aros_host_cpu
="i386"
4652 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4656 aros_object_format
="elf_i386"
4660 aros_object_format
="elf_i386_fbsd"
4667 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4668 aros_host_arch
="darwin"
4670 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4671 android_build_os
="darwin-x86"
4672 android_tool
="android"
4673 default_android_sdk
="/android-sdk-mac_x86"
4676 aros_host_cpu
="i386"
4679 aros_host_cpu
="x86_64"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4686 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4687 aros_host_cpu
="$host_cpu"
4691 aros_host_ldflags
="$aros_host_ldflags -liconv"
4696 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4697 aros_host_make
="gmake"
4698 aros_host_arch
="dragonfly"
4701 aros_host_cpu
="i386"
4704 aros_host_cpu
="x86_64"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4708 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4709 aros_host_cpu
="$host_cpu"
4715 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4716 aros_host_make
="gmake"
4717 aros_host_arch
="netbsd"
4720 aros_host_cpu
="i386"
4723 aros_host_cpu
="m68k"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4727 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4728 aros_host_cpu
="$host_cpu"
4731 aros_host_lib_suffix
=".0.0"
4735 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4736 aros_host_make
="gmake"
4737 aros_host_arch
="openbsd"
4740 aros_host_cpu
="i386"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4744 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4745 aros_host_cpu
="$host_cpu"
4751 aros_host_arch
="solaris"
4752 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4755 aros_host_cpu
="i386"
4758 aros_host_cpu
="sparc"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4762 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4763 aros_host_cpu
="$host_cpu"
4769 aros_host_arch
="morphos"
4775 aros_host_arch
="amiga"
4781 TOUCH
="/gg/bin/touch"
4784 aros_host_cpu
="m68k"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4791 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4792 aros_host_cpu
="$host_cpu"
4798 aros_host_arch
="cygwin"
4799 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4801 android_build_os
="windows"
4802 android_tool
="android.bat"
4803 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4807 aros_host_cpu
="i386"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu
="$host_cpu"
4818 aros_host_arch
="mingw32"
4819 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4821 android_build_os
="windows"
4822 android_tool
="android.bat"
4823 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4825 libpng_libextra
="-lws2_32"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4831 $as_echo_n "checking for Windows native gcc target... " >&6; }
4832 host_cpu
=`gcc -dumpmachine`
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4834 $as_echo "$host_cpu" >&6; }
4841 aros_host_cpu
="i386"
4845 aros_host_cpu
="i386"
4849 aros_host_cpu
="x86_64"
4850 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4855 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4856 aros_host_cpu
="$host_cpu"
4861 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4865 # Extract the first word of "ar", so it can be a program name with args.
4866 set dummy
ar; ac_word
=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4870 $as_echo_n "(cached) " >&6
4872 if test -n "$aros_host_ar"; then
4873 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir
=.
4880 for ac_exec_ext
in '' $ac_executable_extensions; do
4881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_aros_host_ar
="ar cr"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 aros_host_ar
=$ac_cv_prog_aros_host_ar
4893 if test -n "$aros_host_ar"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4895 $as_echo "$aros_host_ar" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4903 if test "$aros_host_ar" = ""; then
4906 if test "$aros_host_ar" = "no"; then
4909 if test "$req_avail" = "no"; then
4910 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4912 # Extract the first word of "ranlib", so it can be a program name with args.
4913 set dummy ranlib
; ac_word
=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -n "$aros_host_ranlib"; then
4920 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir
=.
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_aros_host_ranlib
="ranlib "
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4940 if test -n "$aros_host_ranlib"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4942 $as_echo "$aros_host_ranlib" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4950 if test "$aros_host_ranlib" = ""; then
4953 if test "$aros_host_ranlib" = "no"; then
4956 if test "$req_avail" = "no"; then
4957 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4959 # Extract the first word of "strip", so it can be a program name with args.
4960 set dummy strip
; ac_word
=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$aros_host_strip"; then
4967 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir
=.
4974 for ac_exec_ext
in '' $ac_executable_extensions; do
4975 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_aros_host_strip
="strip "
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 aros_host_strip
=$ac_cv_prog_aros_host_strip
4987 if test -n "$aros_host_strip"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4989 $as_echo "$aros_host_strip" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4997 if test "$aros_host_strip" = ""; then
5000 if test "$aros_host_strip" = "no"; then
5003 if test "$req_avail" = "no"; then
5004 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5007 # Extract the first word of "rm", so it can be a program name with args.
5008 set dummy
rm; ac_word
=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_RM+:} false
; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -n "$RM"; then
5015 ac_cv_prog_RM
="$RM" # Let the user override the test.
5017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir
=.
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_RM
="rm -rf"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 if test -n "$RM"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5037 $as_echo "$RM" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5045 if test "$RM" = ""; then
5048 if test "$RM" = "no"; then
5051 if test "$req_avail" = "no"; then
5052 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5054 # Extract the first word of "cp", so it can be a program name with args.
5055 set dummy
cp; ac_word
=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_CP+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$CP"; then
5062 ac_cv_prog_CP
="$CP" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 if test -n "$CP"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5084 $as_echo "$CP" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 if test "$CP" = ""; then
5095 if test "$CP" = "no"; then
5098 if test "$req_avail" = "no"; then
5099 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5101 # Extract the first word of "mv", so it can be a program name with args.
5102 set dummy
mv; ac_word
=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_MV+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$MV"; then
5109 ac_cv_prog_MV
="$MV" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 if test -n "$MV"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5131 $as_echo "$MV" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5139 if test "$MV" = ""; then
5142 if test "$MV" = "no"; then
5145 if test "$req_avail" = "no"; then
5146 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5148 # Extract the first word of "echo", so it can be a program name with args.
5149 set dummy
echo; ac_word
=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ECHO+:} false
; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$ECHO"; then
5156 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir
=.
5163 for ac_exec_ext
in '' $ac_executable_extensions; do
5164 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ECHO
="echo "
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 ECHO
=$ac_cv_prog_ECHO
5176 if test -n "$ECHO"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5178 $as_echo "$ECHO" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test "$ECHO" = ""; then
5189 if test "$ECHO" = "no"; then
5192 if test "$req_avail" = "no"; then
5193 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5195 # Extract the first word of "mkdir", so it can be a program name with args.
5196 set dummy mkdir
; ac_word
=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_MKDIR+:} false
; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -n "$MKDIR"; then
5203 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir
=.
5210 for ac_exec_ext
in '' $ac_executable_extensions; do
5211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_MKDIR
="mkdir -p"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 MKDIR
=$ac_cv_prog_MKDIR
5223 if test -n "$MKDIR"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5225 $as_echo "$MKDIR" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5233 if test "$MKDIR" = ""; then
5236 if test "$MKDIR" = "no"; then
5239 if test "$req_avail" = "no"; then
5240 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5242 # Extract the first word of "touch", so it can be a program name with args.
5243 set dummy
touch; ac_word
=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_prog_TOUCH+:} false
; then :
5247 $as_echo_n "(cached) " >&6
5249 if test -n "$TOUCH"; then
5250 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_TOUCH
="touch "
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 TOUCH
=$ac_cv_prog_TOUCH
5270 if test -n "$TOUCH"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5272 $as_echo "$TOUCH" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5280 if test "$TOUCH" = ""; then
5283 if test "$TOUCH" = "no"; then
5286 if test "$req_avail" = "no"; then
5287 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5289 # Extract the first word of "sort", so it can be a program name with args.
5290 set dummy
sort; ac_word
=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_SORT+:} false
; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$SORT"; then
5297 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir
=.
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_SORT
="sort "
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 SORT
=$ac_cv_prog_SORT
5317 if test -n "$SORT"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5319 $as_echo "$SORT" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5327 if test "$SORT" = ""; then
5330 if test "$SORT" = "no"; then
5333 if test "$req_avail" = "no"; then
5334 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 # Extract the first word of "uniq", so it can be a program name with args.
5337 set dummy
uniq; ac_word
=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_UNIQ+:} false
; then :
5341 $as_echo_n "(cached) " >&6
5343 if test -n "$UNIQ"; then
5344 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir
=.
5351 for ac_exec_ext
in '' $ac_executable_extensions; do
5352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_UNIQ
="uniq "
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 UNIQ
=$ac_cv_prog_UNIQ
5364 if test -n "$UNIQ"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5366 $as_echo "$UNIQ" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5374 if test "$UNIQ" = ""; then
5377 if test "$UNIQ" = "no"; then
5380 if test "$req_avail" = "no"; then
5381 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 # Extract the first word of "true", so it can be a program name with args.
5384 set dummy true
; ac_word
=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_NOP+:} false
; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$NOP"; then
5391 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_NOP
="true "
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 if test -n "$NOP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5413 $as_echo "$NOP" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5421 if test "$NOP" = ""; then
5424 if test "$NOP" = "no"; then
5427 if test "$req_avail" = "no"; then
5428 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5430 # Extract the first word of "cat", so it can be a program name with args.
5431 set dummy
cat; ac_word
=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_prog_CAT+:} false
; then :
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$CAT"; then
5438 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir
=.
5445 for ac_exec_ext
in '' $ac_executable_extensions; do
5446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_CAT
="cat "
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 if test -n "$CAT"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5460 $as_echo "$CAT" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5468 if test "$CAT" = ""; then
5471 if test "$CAT" = "no"; then
5474 if test "$req_avail" = "no"; then
5475 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5477 # Extract the first word of "bison", so it can be a program name with args.
5478 set dummy bison
; ac_word
=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_BISON+:} false
; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$BISON"; then
5485 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir
=.
5492 for ac_exec_ext
in '' $ac_executable_extensions; do
5493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_BISON
="bison "
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 BISON
=$ac_cv_prog_BISON
5505 if test -n "$BISON"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5507 $as_echo "$BISON" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test "$BISON" = ""; then
5518 if test "$BISON" = "no"; then
5521 if test "$req_avail" = "no"; then
5522 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5524 # Extract the first word of "flex", so it can be a program name with args.
5525 set dummy flex
; ac_word
=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_FLEX+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -n "$FLEX"; then
5532 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_exec_ext
in '' $ac_executable_extensions; do
5540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_FLEX
="flex "
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 FLEX
=$ac_cv_prog_FLEX
5552 if test -n "$FLEX"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5554 $as_echo "$FLEX" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5562 if test "$FLEX" = ""; then
5565 if test "$FLEX" = "no"; then
5568 if test "$req_avail" = "no"; then
5569 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5571 # Extract the first word of "pngtopnm", so it can be a program name with args.
5572 set dummy pngtopnm
; ac_word
=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$PNGTOPNM"; then
5579 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir
=.
5586 for ac_exec_ext
in '' $ac_executable_extensions; do
5587 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_PNGTOPNM
="pngtopnm "
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5599 if test -n "$PNGTOPNM"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5601 $as_echo "$PNGTOPNM" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test "$PNGTOPNM" = ""; then
5612 if test "$PNGTOPNM" = "no"; then
5615 if test "$req_avail" = "no"; then
5616 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5618 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5619 set dummy ppmtoilbm
; ac_word
=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5623 $as_echo_n "(cached) " >&6
5625 if test -n "$PPMTOILBM"; then
5626 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir
=.
5633 for ac_exec_ext
in '' $ac_executable_extensions; do
5634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5646 if test -n "$PPMTOILBM"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5648 $as_echo "$PPMTOILBM" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5656 if test "$PPMTOILBM" = ""; then
5659 if test "$PPMTOILBM" = "no"; then
5662 if test "$req_avail" = "no"; then
5663 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5665 # Extract the first word of "sed", so it can be a program name with args.
5666 set dummy
sed; ac_word
=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_prog_SED+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 if test -n "$SED"; then
5673 ac_cv_prog_SED
="$SED" # Let the user override the test.
5675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5679 test -z "$as_dir" && as_dir
=.
5680 for ac_exec_ext
in '' $ac_executable_extensions; do
5681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_SED
="sed "
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 if test -n "$SED"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5695 $as_echo "$SED" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5703 if test "$SED" = ""; then
5706 if test "$SED" = "no"; then
5709 if test "$req_avail" = "no"; then
5710 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5712 # Extract the first word of "chmod", so it can be a program name with args.
5713 set dummy
chmod; ac_word
=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_CHMOD+:} false
; then :
5717 $as_echo_n "(cached) " >&6
5719 if test -n "$CHMOD"; then
5720 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir
=.
5727 for ac_exec_ext
in '' $ac_executable_extensions; do
5728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_CHMOD
="chmod "
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 CHMOD
=$ac_cv_prog_CHMOD
5740 if test -n "$CHMOD"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5742 $as_echo "$CHMOD" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5750 if test "$CHMOD" = ""; then
5753 if test "$CHMOD" = "no"; then
5756 if test "$req_avail" = "no"; then
5757 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5759 # Extract the first word of "patch", so it can be a program name with args.
5760 set dummy
patch; ac_word
=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_PATCH+:} false
; then :
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$PATCH"; then
5767 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir
=.
5774 for ac_exec_ext
in '' $ac_executable_extensions; do
5775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_PATCH
="patch "
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 PATCH
=$ac_cv_prog_PATCH
5787 if test -n "$PATCH"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5789 $as_echo "$PATCH" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test "$PATCH" = ""; then
5800 if test "$PATCH" = "no"; then
5803 if test "$req_avail" = "no"; then
5804 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5813 if test -n "$PYTHON"; then
5814 # If the user set $PYTHON, use it and don't search something else.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5816 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5818 # split strings by '.' and convert to numeric. Append some zeros
5819 # because we need at least 4 digits for the hex conversion.
5820 # map returns an iterator in Python 3.0 and a list in 2.x
5821 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5823 # xrange is not present in Python 3.0 and range returns an iterator
5824 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5825 sys.exit(sys.hexversion < minverhex)"
5826 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5827 ($PYTHON -c "$prog") >&5 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then :
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5838 am_display_PYTHON
=$PYTHON
5840 # Otherwise, try each interpreter until we find one that satisfies
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5843 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5844 if ${am_cv_pathless_PYTHON+:} false
; then :
5845 $as_echo_n "(cached) " >&6
5848 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
5849 test "$am_cv_pathless_PYTHON" = none
&& break
5851 # split strings by '.' and convert to numeric. Append some zeros
5852 # because we need at least 4 digits for the hex conversion.
5853 # map returns an iterator in Python 3.0 and a list in 2.x
5854 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5856 # xrange is not present in Python 3.0 and range returns an iterator
5857 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5858 sys.exit(sys.hexversion < minverhex)"
5859 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5860 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; then :
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5869 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5870 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5871 if test "$am_cv_pathless_PYTHON" = none
; then
5874 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5875 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_path_PYTHON+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5883 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir
=.
5891 for ac_exec_ext
in '' $ac_executable_extensions; do
5892 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 PYTHON
=$ac_cv_path_PYTHON
5905 if test -n "$PYTHON"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5907 $as_echo "$PYTHON" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5915 am_display_PYTHON
=$am_cv_pathless_PYTHON
5919 if test "$PYTHON" = :; then
5920 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5925 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5926 if ${am_cv_python_version+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5929 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5932 $as_echo "$am_cv_python_version" >&6; }
5933 PYTHON_VERSION
=$am_cv_python_version
5937 PYTHON_PREFIX
='${prefix}'
5939 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5944 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5945 if ${am_cv_python_platform+:} false
; then :
5946 $as_echo_n "(cached) " >&6
5948 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5951 $as_echo "$am_cv_python_platform" >&6; }
5952 PYTHON_PLATFORM
=$am_cv_python_platform
5955 # Just factor out some code duplication.
5956 am_python_setup_sysconfig
="\
5958 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5959 # with python 3.x. See automake bug#10227.
5963 can_use_sysconfig = 0
5965 can_use_sysconfig = 1
5966 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5967 # <https://github.com/pypa/virtualenv/issues/118>
5969 from platform import python_implementation
5970 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5971 can_use_sysconfig = 0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5977 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5978 if ${am_cv_python_pythondir+:} false
; then :
5979 $as_echo_n "(cached) " >&6
5981 if test "x$prefix" = xNONE
5983 am_py_prefix
=$ac_default_prefix
5985 am_py_prefix
=$prefix
5987 am_cv_python_pythondir
=`$PYTHON -c "
5988 $am_python_setup_sysconfig
5989 if can_use_sysconfig:
5990 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5992 from distutils import sysconfig
5993 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5994 sys.stdout.write(sitedir)"`
5995 case $am_cv_python_pythondir in
5997 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
5998 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6001 case $am_py_prefix in
6004 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6012 $as_echo "$am_cv_python_pythondir" >&6; }
6013 pythondir
=$am_cv_python_pythondir
6017 pkgpythondir
=\
${pythondir}/$PACKAGE
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6021 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6022 if ${am_cv_python_pyexecdir+:} false
; then :
6023 $as_echo_n "(cached) " >&6
6025 if test "x$exec_prefix" = xNONE
6027 am_py_exec_prefix
=$am_py_prefix
6029 am_py_exec_prefix
=$exec_prefix
6031 am_cv_python_pyexecdir
=`$PYTHON -c "
6032 $am_python_setup_sysconfig
6033 if can_use_sysconfig:
6034 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6036 from distutils import sysconfig
6037 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6038 sys.stdout.write(sitedir)"`
6039 case $am_cv_python_pyexecdir in
6040 $am_py_exec_prefix*)
6041 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6042 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6045 case $am_py_exec_prefix in
6048 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6056 $as_echo "$am_cv_python_pyexecdir" >&6; }
6057 pyexecdir
=$am_cv_python_pyexecdir
6061 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6069 # Check whether --enable-libpng-config was given.
6070 if test "${enable_libpng_config+set}" = set; then :
6071 enableval
=$enable_libpng_config;
6074 if test "$enable_libpng_config" != "no"; then
6075 # Extract the first word of "libpng-config", so it can be a program name with args.
6076 set dummy libpng-config
; ac_word
=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$arosconfig_use_libpngconfig"; then
6083 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir
=.
6090 for ac_exec_ext
in '' $ac_executable_extensions; do
6091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6103 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6104 if test -n "$arosconfig_use_libpngconfig"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6106 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6114 if test "$arosconfig_use_libpngconfig" = "yes"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6116 $as_echo_n "checking libpng-config library... " >&6; }
6117 libpng_incdir
="`libpng-config --cflags`"
6118 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6119 libpng
="`libpng-config --libs`"
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6121 $as_echo "$libpng" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6125 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6126 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6127 $as_echo_n "(cached) " >&6
6129 ac_check_lib_save_LIBS
=$LIBS
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6140 char png_read_png ();
6144 return png_read_png ();
6149 if ac_fn_c_try_link
"$LINENO"; then :
6150 ac_cv_lib_png_png_read_png
=yes
6152 ac_cv_lib_png_png_read_png
=no
6154 rm -f core conftest.err conftest.
$ac_objext \
6155 conftest
$ac_exeext conftest.
$ac_ext
6156 LIBS
=$ac_check_lib_save_LIBS
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6159 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6160 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6166 if test "$libpng_libextra" != ""; then
6167 if test "$libpng" != "no"; then
6168 libpng_libextra
="$libpng_libextra $libpng"
6173 if test "$libpng" = ""; then
6176 if test "$libpng" = "no"; then
6179 if test "$req_avail" = "no"; then
6180 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6196 # Check for some includes for the X11 HIDD and the kernel
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6200 if ${ac_cv_path_GREP+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 if test -z "$GREP"; then
6204 ac_path_GREP_found
=false
6205 # Loop through the user's path and test for each of PROGNAME-LIST
6206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6210 test -z "$as_dir" && as_dir
=.
6211 for ac_prog
in grep ggrep
; do
6212 for ac_exec_ext
in '' $ac_executable_extensions; do
6213 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6214 as_fn_executable_p
"$ac_path_GREP" ||
continue
6215 # Check for GNU ac_path_GREP and select it if it is found.
6216 # Check for GNU $ac_path_GREP
6217 case `"$ac_path_GREP" --version 2>&1` in
6219 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6222 $as_echo_n 0123456789 >"conftest.in"
6225 cat "conftest.in" "conftest.in" >"conftest.tmp"
6226 mv "conftest.tmp" "conftest.in"
6227 cp "conftest.in" "conftest.nl"
6228 $as_echo 'GREP' >> "conftest.nl"
6229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6230 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6231 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6233 # Best one so far, save it but keep looking for a better one
6234 ac_cv_path_GREP
="$ac_path_GREP"
6235 ac_path_GREP_max
=$ac_count
6237 # 10*(2^10) chars as input seems more than enough
6238 test $ac_count -gt 10 && break
6240 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6243 $ac_path_GREP_found && break 3
6248 if test -z "$ac_cv_path_GREP"; then
6249 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6252 ac_cv_path_GREP
=$GREP
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6257 $as_echo "$ac_cv_path_GREP" >&6; }
6258 GREP
="$ac_cv_path_GREP"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6262 $as_echo_n "checking for egrep... " >&6; }
6263 if ${ac_cv_path_EGREP+:} false
; then :
6264 $as_echo_n "(cached) " >&6
6266 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6267 then ac_cv_path_EGREP
="$GREP -E"
6269 if test -z "$EGREP"; then
6270 ac_path_EGREP_found
=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6273 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6276 test -z "$as_dir" && as_dir
=.
6277 for ac_prog
in egrep; do
6278 for ac_exec_ext
in '' $ac_executable_extensions; do
6279 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6280 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6281 # Check for GNU ac_path_EGREP and select it if it is found.
6282 # Check for GNU $ac_path_EGREP
6283 case `"$ac_path_EGREP" --version 2>&1` in
6285 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6288 $as_echo_n 0123456789 >"conftest.in"
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo 'EGREP' >> "conftest.nl"
6295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6296 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6297 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_EGREP
="$ac_path_EGREP"
6301 ac_path_EGREP_max
=$ac_count
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6306 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6309 $ac_path_EGREP_found && break 3
6314 if test -z "$ac_cv_path_EGREP"; then
6315 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6318 ac_cv_path_EGREP
=$EGREP
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6324 $as_echo "$ac_cv_path_EGREP" >&6; }
6325 EGREP
="$ac_cv_path_EGREP"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6329 $as_echo_n "checking for ANSI C header files... " >&6; }
6330 if ${ac_cv_header_stdc+:} false
; then :
6331 $as_echo_n "(cached) " >&6
6333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6348 if ac_fn_c_try_compile
"$LINENO"; then :
6349 ac_cv_header_stdc
=yes
6351 ac_cv_header_stdc
=no
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6355 if test $ac_cv_header_stdc = yes; then
6356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 $EGREP "memchr" >/dev
/null
2>&1; then :
6366 ac_cv_header_stdc
=no
6372 if test $ac_cv_header_stdc = yes; then
6373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380 $EGREP "free" >/dev
/null
2>&1; then :
6383 ac_cv_header_stdc
=no
6389 if test $ac_cv_header_stdc = yes; then
6390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6391 if test "$cross_compiling" = yes; then :
6394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6398 #if ((' ' & 0x0FF) == 0x020)
6399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6402 # define ISLOWER(c) \
6403 (('a' <= (c) && (c) <= 'i') \
6404 || ('j' <= (c) && (c) <= 'r') \
6405 || ('s' <= (c) && (c) <= 'z'))
6406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6414 for (i = 0; i < 256; i++)
6415 if (XOR (islower (i), ISLOWER (i))
6416 || toupper (i) != TOUPPER (i))
6421 if ac_fn_c_try_run
"$LINENO"; then :
6424 ac_cv_header_stdc
=no
6426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6433 $as_echo "$ac_cv_header_stdc" >&6; }
6434 if test $ac_cv_header_stdc = yes; then
6436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6441 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6442 inttypes.h stdint.h unistd.h
6444 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6447 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6448 cat >>confdefs.h
<<_ACEOF
6449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6457 for ac_header
in sys
/ipc.h sys
/shm.h \
6458 sys
/mmap.h sys
/mman.h sysexits.h \
6459 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6462 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6464 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6465 cat >>confdefs.h
<<_ACEOF
6466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 for ac_header
in sys
/mount.h
6476 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6478 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6479 cat >>confdefs.h
<<_ACEOF
6480 #define HAVE_SYS_MOUNT_H 1
6489 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6490 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6492 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6493 if eval \
${$as_ac_Header+:} false
; then :
6494 $as_echo_n "(cached) " >&6
6496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <sys/types.h>
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6511 eval "$as_ac_Header=yes"
6513 eval "$as_ac_Header=no"
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 eval ac_res
=\$
$as_ac_Header
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6519 $as_echo "$ac_res" >&6; }
6520 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6521 cat >>confdefs.h
<<_ACEOF
6522 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6525 ac_header_dirent
=$ac_hdr; break
6529 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6530 if test $ac_header_dirent = dirent.h
; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6532 $as_echo_n "checking for library containing opendir... " >&6; }
6533 if ${ac_cv_search_opendir+:} false
; then :
6534 $as_echo_n "(cached) " >&6
6536 ac_func_search_save_LIBS
=$LIBS
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6540 /* Override any GCC internal prototype to avoid an error.
6541 Use char because int might match the return type of a GCC
6542 builtin and then its argument prototype would still apply. */
6555 for ac_lib
in '' dir
; do
6556 if test -z "$ac_lib"; then
6557 ac_res
="none required"
6560 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6562 if ac_fn_c_try_link
"$LINENO"; then :
6563 ac_cv_search_opendir
=$ac_res
6565 rm -f core conftest.err conftest.
$ac_objext \
6567 if ${ac_cv_search_opendir+:} false
; then :
6571 if ${ac_cv_search_opendir+:} false
; then :
6574 ac_cv_search_opendir
=no
6577 LIBS
=$ac_func_search_save_LIBS
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6580 $as_echo "$ac_cv_search_opendir" >&6; }
6581 ac_res
=$ac_cv_search_opendir
6582 if test "$ac_res" != no
; then :
6583 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6589 $as_echo_n "checking for library containing opendir... " >&6; }
6590 if ${ac_cv_search_opendir+:} false
; then :
6591 $as_echo_n "(cached) " >&6
6593 ac_func_search_save_LIBS
=$LIBS
6594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6612 for ac_lib
in '' x
; do
6613 if test -z "$ac_lib"; then
6614 ac_res
="none required"
6617 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6619 if ac_fn_c_try_link
"$LINENO"; then :
6620 ac_cv_search_opendir
=$ac_res
6622 rm -f core conftest.err conftest.
$ac_objext \
6624 if ${ac_cv_search_opendir+:} false
; then :
6628 if ${ac_cv_search_opendir+:} false
; then :
6631 ac_cv_search_opendir
=no
6634 LIBS
=$ac_func_search_save_LIBS
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6637 $as_echo "$ac_cv_search_opendir" >&6; }
6638 ac_res
=$ac_cv_search_opendir
6639 if test "$ac_res" != no
; then :
6640 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6647 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6648 if ${ac_cv_header_stat_broken+:} false
; then :
6649 $as_echo_n "(cached) " >&6
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <sys/stat.h>
6656 #if defined S_ISBLK && defined S_IFDIR
6657 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6660 #if defined S_ISBLK && defined S_IFCHR
6661 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6664 #if defined S_ISLNK && defined S_IFREG
6665 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6668 #if defined S_ISSOCK && defined S_IFREG
6669 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6673 if ac_fn_c_try_compile
"$LINENO"; then :
6674 ac_cv_header_stat_broken
=no
6676 ac_cv_header_stat_broken
=yes
6678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6681 $as_echo "$ac_cv_header_stat_broken" >&6; }
6682 if test $ac_cv_header_stat_broken = yes; then
6684 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6689 $as_echo_n "checking for ANSI C header files... " >&6; }
6690 if ${ac_cv_header_stdc+:} false
; then :
6691 $as_echo_n "(cached) " >&6
6693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6708 if ac_fn_c_try_compile
"$LINENO"; then :
6709 ac_cv_header_stdc
=yes
6711 ac_cv_header_stdc
=no
6713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "memchr" >/dev
/null
2>&1; then :
6726 ac_cv_header_stdc
=no
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6740 $EGREP "free" >/dev
/null
2>&1; then :
6743 ac_cv_header_stdc
=no
6749 if test $ac_cv_header_stdc = yes; then
6750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6751 if test "$cross_compiling" = yes; then :
6754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6758 #if ((' ' & 0x0FF) == 0x020)
6759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6762 # define ISLOWER(c) \
6763 (('a' <= (c) && (c) <= 'i') \
6764 || ('j' <= (c) && (c) <= 'r') \
6765 || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6774 for (i = 0; i < 256; i++)
6775 if (XOR (islower (i), ISLOWER (i))
6776 || toupper (i) != TOUPPER (i))
6781 if ac_fn_c_try_run
"$LINENO"; then :
6784 ac_cv_header_stdc
=no
6786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6793 $as_echo "$ac_cv_header_stdc" >&6; }
6794 if test $ac_cv_header_stdc = yes; then
6796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6801 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6802 if ${ac_cv_header_sys_wait_h+:} false
; then :
6803 $as_echo_n "(cached) " >&6
6805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6808 #include <sys/wait.h>
6810 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6813 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6821 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6826 if ac_fn_c_try_compile
"$LINENO"; then :
6827 ac_cv_header_sys_wait_h
=yes
6829 ac_cv_header_sys_wait_h
=no
6831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6834 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6835 if test $ac_cv_header_sys_wait_h = yes; then
6837 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6842 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6843 if ${ac_cv_header_time+:} false
; then :
6844 $as_echo_n "(cached) " >&6
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 #include <sys/time.h>
6855 if ((struct tm *) 0)
6861 if ac_fn_c_try_compile
"$LINENO"; then :
6862 ac_cv_header_time
=yes
6864 ac_cv_header_time
=no
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6869 $as_echo "$ac_cv_header_time" >&6; }
6870 if test $ac_cv_header_time = yes; then
6872 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6876 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6877 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6879 cat >>confdefs.h
<<_ACEOF
6880 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6884 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6889 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6890 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6892 cat >>confdefs.h
<<_ACEOF
6893 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6897 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6900 case " $LIBOBJS " in
6901 *" fileblocks.$ac_objext "* ) ;;
6902 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6909 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6910 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6912 cat >>confdefs.h
<<_ACEOF
6913 #define HAVE_STRUCT_STAT_ST_RDEV 1
6917 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6923 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6924 if ${ac_cv_struct_tm+:} false
; then :
6925 $as_echo_n "(cached) " >&6
6927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6936 int *p = &tm.tm_sec;
6942 if ac_fn_c_try_compile
"$LINENO"; then :
6943 ac_cv_struct_tm
=time.h
6945 ac_cv_struct_tm
=sys
/time.h
6947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6950 $as_echo "$ac_cv_struct_tm" >&6; }
6951 if test $ac_cv_struct_tm = sys
/time.h
; then
6953 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6957 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6958 #include <$ac_cv_struct_tm>
6961 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6963 cat >>confdefs.h
<<_ACEOF
6964 #define HAVE_STRUCT_TM_TM_ZONE 1
6970 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6972 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6975 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6977 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6983 cat >>confdefs.h
<<_ACEOF
6984 #define HAVE_DECL_TZNAME $ac_have_decl
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6988 $as_echo_n "checking for tzname... " >&6; }
6989 if ${ac_cv_var_tzname+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6995 #if !HAVE_DECL_TZNAME
6996 extern char *tzname[];
7002 return tzname[0][0];
7007 if ac_fn_c_try_link
"$LINENO"; then :
7008 ac_cv_var_tzname
=yes
7012 rm -f core conftest.err conftest.
$ac_objext \
7013 conftest
$ac_exeext conftest.
$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7016 $as_echo "$ac_cv_var_tzname" >&6; }
7017 if test $ac_cv_var_tzname = yes; then
7019 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7024 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7025 if test "x$ac_cv_type_off_t" = xyes
; then :
7029 cat >>confdefs.h
<<_ACEOF
7030 #define off_t long int
7035 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7036 if test "x$ac_cv_type_pid_t" = xyes
; then :
7040 cat >>confdefs.h
<<_ACEOF
7046 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7047 if test "x$ac_cv_type_size_t" = xyes
; then :
7051 cat >>confdefs.h
<<_ACEOF
7052 #define size_t unsigned int
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7058 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7059 if ${ac_cv_type_uid_t+:} false
; then :
7060 $as_echo_n "(cached) " >&6
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #include <sys/types.h>
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068 $EGREP "uid_t" >/dev
/null
2>&1; then :
7069 ac_cv_type_uid_t
=yes
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7077 $as_echo "$ac_cv_type_uid_t" >&6; }
7078 if test $ac_cv_type_uid_t = no
; then
7080 $as_echo "#define uid_t int" >>confdefs.h
7083 $as_echo "#define gid_t int" >>confdefs.h
7088 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7089 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7091 cat >>confdefs.h
<<_ACEOF
7092 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7099 # Look for some functions
7100 for ac_func
in getpagesize kqueue statfs statvfs \
7101 clone kse_create rfork_thread thr_create sa_register \
7102 getcontext makecontext setcontext sigaltstack swapcontext
7104 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7105 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7106 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7107 cat >>confdefs.h
<<_ACEOF
7108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7118 for ac_header
in $ac_header_list
7120 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7121 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7123 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7124 cat >>confdefs.h
<<_ACEOF
7125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7139 for ac_func
in getpagesize
7141 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7142 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7143 cat >>confdefs.h
<<_ACEOF
7144 #define HAVE_GETPAGESIZE 1
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7151 $as_echo_n "checking for working mmap... " >&6; }
7152 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7153 $as_echo_n "(cached) " >&6
7155 if test "$cross_compiling" = yes; then :
7156 ac_cv_func_mmap_fixed_mapped
=no
7158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 /* malloc might have been renamed as rpl_malloc. */
7164 /* Thanks to Mike Haertel and Jim Avera for this test.
7165 Here is a matrix of mmap possibilities:
7166 mmap private not fixed
7167 mmap private fixed at somewhere currently unmapped
7168 mmap private fixed at somewhere already mapped
7169 mmap shared not fixed
7170 mmap shared fixed at somewhere currently unmapped
7171 mmap shared fixed at somewhere already mapped
7172 For private mappings, we should verify that changes cannot be read()
7173 back from the file, nor mmap's back from the file at a different
7174 address. (There have been systems where private was not correctly
7175 implemented like the infamous i386 svr4.0, and systems where the
7176 VM page cache was not coherent with the file system buffer cache
7177 like early versions of FreeBSD and possibly contemporary NetBSD.)
7178 For shared mappings, we should conversely verify that changes get
7179 propagated back to all the places they're supposed to be.
7181 Grep wants private fixed already mapped.
7182 The main things grep needs to know about mmap are:
7183 * does it exist and is it safe to write into the mmap'd area
7184 * how to use it (BSD variants) */
7187 #include <sys/mman.h>
7189 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7193 /* This mess was copied from the GNU getpagesize.h. */
7194 #ifndef HAVE_GETPAGESIZE
7195 # ifdef _SC_PAGESIZE
7196 # define getpagesize() sysconf(_SC_PAGESIZE)
7197 # else /* no _SC_PAGESIZE */
7198 # ifdef HAVE_SYS_PARAM_H
7199 # include <sys/param.h>
7200 # ifdef EXEC_PAGESIZE
7201 # define getpagesize() EXEC_PAGESIZE
7202 # else /* no EXEC_PAGESIZE */
7204 # define getpagesize() NBPG * CLSIZE
7207 # endif /* no CLSIZE */
7208 # else /* no NBPG */
7210 # define getpagesize() NBPC
7211 # else /* no NBPC */
7213 # define getpagesize() PAGESIZE
7214 # endif /* PAGESIZE */
7215 # endif /* no NBPC */
7216 # endif /* no NBPG */
7217 # endif /* no EXEC_PAGESIZE */
7218 # else /* no HAVE_SYS_PARAM_H */
7219 # define getpagesize() 8192 /* punt totally */
7220 # endif /* no HAVE_SYS_PARAM_H */
7221 # endif /* no _SC_PAGESIZE */
7223 #endif /* no HAVE_GETPAGESIZE */
7228 char *data, *data2, *data3;
7233 pagesize = getpagesize ();
7235 /* First, make a file with some known garbage in it. */
7236 data = (char *) malloc (pagesize);
7239 for (i = 0; i < pagesize; ++i)
7240 *(data + i) = rand ();
7242 fd = creat ("conftest.mmap", 0600);
7245 if (write (fd, data, pagesize) != pagesize)
7249 /* Next, check that the tail of a page is zero-filled. File must have
7250 non-zero length, otherwise we risk SIGBUS for entire page. */
7251 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7255 if (write (fd2, cdata2, 1) != 1)
7257 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7258 if (data2 == MAP_FAILED)
7260 for (i = 0; i < pagesize; ++i)
7264 if (munmap (data2, pagesize))
7267 /* Next, try to mmap the file at a fixed address which already has
7268 something else allocated at it. If we can, also make sure that
7269 we see the same garbage. */
7270 fd = open ("conftest.mmap", O_RDWR);
7273 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7274 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7276 for (i = 0; i < pagesize; ++i)
7277 if (*(data + i) != *(data2 + i))
7280 /* Finally, make sure that changes to the mapped area do not
7281 percolate back to the file as seen by read(). (This is a bug on
7282 some variants of i386 svr4.0.) */
7283 for (i = 0; i < pagesize; ++i)
7284 *(data2 + i) = *(data2 + i) + 1;
7285 data3 = (char *) malloc (pagesize);
7288 if (read (fd, data3, pagesize) != pagesize)
7290 for (i = 0; i < pagesize; ++i)
7291 if (*(data + i) != *(data3 + i))
7297 if ac_fn_c_try_run
"$LINENO"; then :
7298 ac_cv_func_mmap_fixed_mapped
=yes
7300 ac_cv_func_mmap_fixed_mapped
=no
7302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7308 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7311 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7314 rm -f conftest.mmap conftest.txt
7317 #-----------------------------------------------------------------------------
7320 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7321 # it switched on by default, and we use the host compiler, so it compiles AROS
7322 # code with this enabled resulting in link failures as we don't have support
7325 # We use two methods to disable it. For the host compiler (used to compile
7326 # some hosted modules), we test to see if the compiler supports stack
7327 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7328 # work on all platforms.
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7332 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7333 save_cflags
="$CFLAGS"
7334 CFLAGS
="$CFLAGS -fno-stack-protector"
7335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7346 if ac_fn_c_try_compile
"$LINENO"; then :
7347 use_no_stack_protector
="yes"
7349 use_no_stack_protector
="no"
7351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7353 $as_echo "$use_no_stack_protector" >&6; }
7354 if test "x-$use_no_stack_protector" = "x-yes" ; then
7355 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7357 CFLAGS
="$save_cflags"
7359 #-----------------------------------------------------------------------------
7361 # Disable pointer-signedness warnings if the compiler recognises the option
7362 # (this only works for the host compiler at the moment)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7365 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7366 save_cflags
="$CFLAGS"
7367 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7379 if ac_fn_c_try_compile
"$LINENO"; then :
7380 use_no_sign_warning
="yes"
7382 use_no_sign_warning
="no"
7384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7386 $as_echo "$use_no_sign_warning" >&6; }
7387 if test "x-$use_no_sign_warning" = "x-yes" ; then
7388 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7390 CFLAGS
="$save_cflags"
7392 #-----------------------------------------------------------------------------
7394 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7397 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7398 save_cflags
="$CFLAGS"
7399 CFLAGS
="$CFLAGS -fgnu89-inline"
7400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7411 if ac_fn_c_try_compile
"$LINENO"; then :
7412 use_gnu89_inline
="yes"
7414 use_gnu89_inline
="no"
7416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7418 $as_echo "$use_gnu89_inline" >&6; }
7419 if test "x-$use_gnu89_inline" = "x-yes" ; then
7420 gnu89_inline
="-fgnu89-inline"
7422 CFLAGS
="$save_cflags"
7425 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7426 # On GCC >= 4.0 -iquote should be used
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7429 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7430 CFLAGS
="$CFLAGS -iquote."
7431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7442 if ac_fn_c_try_compile
"$LINENO"; then :
7447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7449 $as_echo "$has_iquote" >&6; }
7450 if test "x-$has_iquote" = "x-yes" ; then
7451 host_cflags_iquote
=-iquote
7452 host_cflags_iquote_end
=
7454 host_cflags_iquote
=-I
7455 host_cflags_iquote_end
=-I-
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7459 $as_echo "$as_me: Performing target configuration..." >&6;}
7462 aros_nowarn_flags
="NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7464 toolchain_needs_sysroot
=no
7466 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7467 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7468 aros_config_ldflags
=""
7470 aros_shared_default
=yes
7472 aros_shared_cflags
="-fPIC"
7473 aros_shared_aflags
=""
7474 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7475 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7477 aros_kernel_ar_flags
="cr"
7478 aros_target_ar_flags
="cr"
7479 aros_target_nm_flags
="-C -ul"
7480 aros_target_strip_flags
="--strip-unneeded -R.comment"
7485 aros_target_genmap
="-Wl,-Map -Xlinker"
7487 # Native flavour stuff
7488 aros_serial_debug
="0"
7490 # Palm native flavour stuff
7491 aros_palm_debug_hack
="0"
7493 # Unix flavour stuff
7494 aros_nesting_supervisor
="0"
7496 # Collect-aros stuff: "-ius" to ignore undefined symbols
7497 ignore_undefined_symbols
=""
7499 # Check for X11 by default
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7508 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7510 # Check whether --with-toolchain was given.
7511 if test "${with_toolchain+set}" = set; then :
7512 withval
=$with_toolchain; aros_toolchain
="$withval"
7514 aros_toolchain
="gnu"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7518 $as_echo "$aros_toolchain" >&6; }
7520 case "$aros_toolchain" in
7522 # toolchain_needs_sysroot=yes
7523 toolchain_c_compiler
="clang"
7524 toolchain_cxx_compiler
="clang++"
7525 toolchain_cpp_preprocessor
="clang -E"
7527 toolchain_as
="llvm-as"
7528 toolchain_ar
="llvm-ar"
7529 toolchain_ranlib
="llvm-ranlib"
7530 toolchain_nm
="llvm-nm"
7531 toolchain_strip
="true"
7532 toolchain_objcopy
="llvm-objcopy"
7533 toolchain_objdump
="llvm-objdump"
7536 toolchain_c_compiler
="gcc"
7537 toolchain_cxx_compiler
="g++"
7538 toolchain_cpp_preprocessor
="cpp"
7542 toolchain_ranlib
="ranlib"
7544 toolchain_strip
="strip"
7545 toolchain_objcopy
="objcopy"
7546 toolchain_objdump
="objdump"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7550 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7551 toolchain_c_compiler
="cc"
7552 toolchain_cxx_compiler
="c++"
7553 toolchain_cpp_preprocessor
="cpp"
7557 toolchain_ranlib
="ranlib"
7559 toolchain_strip
="strip"
7560 toolchain_objcopy
="objcopy"
7561 toolchain_objdump
="objdump"
7565 #-----------------------------------------------------------------------------
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7568 $as_echo_n "checking which type of build to do... " >&6; }
7569 # Check whether --enable-build_type was given.
7570 if test "${enable_build_type+set}" = set; then :
7571 enableval
=$enable_build_type; build_type
=$enableval
7573 build_type
="personal"
7577 if test "$build_type" = "nightly"; then
7578 build_type_string
="NIGHTLY"
7579 elif test "$build_type" = "snapshot"; then
7580 build_type_string
="SNAPSHOT"
7581 elif test "$build_type" = "milestone"; then
7582 build_type_string
="MILESTONE"
7583 elif test "$build_type" = "release"; then
7584 build_type_string
="RELEASE"
7586 build_type_string
="PERSONAL"
7587 build_type
="personal"
7590 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7593 $as_echo "$build_type" >&6; }
7595 #-----------------------------------------------------------------------------
7596 all_debug_types
="messages stack modules mungwall symbols"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7599 $as_echo_n "checking which debug types to enable... " >&6; }
7600 # Check whether --enable-debug was given.
7601 if test "${enable_debug+set}" = set; then :
7602 enableval
=$enable_debug; debug
="$enableval"
7608 if test "$debug" = "" -o "$debug" = "no"; then
7610 elif test "$debug" = "yes"; then
7614 if test "$debug" = "all" ; then
7615 debug
="messages stack modules symbols"
7616 for d
in $all_debug_types; do
7617 export aros_
${d}_debug
="1"
7620 for d
in $all_debug_types; do
7621 export aros_
${d}_debug
="0"
7625 if test "$debug" != "none"; then
7626 debug
=`echo $debug | sed s/,/\ /g`
7629 for d2
in $all_debug_types; do
7630 if test "$d2" = "$d"; then
7635 if test "$found" = "0"; then
7636 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7638 export aros_
${d}_debug
="1"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7643 $as_echo "$debug" >&6; }
7645 if test "$aros_messages_debug" = "1"; then
7646 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7648 aros_messages_debug
=""
7650 if test "$aros_symbols_debug" = "1"; then
7651 aros_symbols_debug
="-g"
7653 aros_symbols_debug
=""
7656 # These are the flags to pass when compiling debugged programs
7657 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7658 aros_debug_aflags
=""
7659 aros_debug_ldflags
="$aros_symbols_debug"
7661 #-----------------------------------------------------------------------------
7662 # Checking for distcc and ccache.
7664 # Always apply the transforms in this particular order. Basically you should
7665 # always run 'ccache distcc compiler' in that order for the best performance.
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7668 $as_echo_n "checking whether to enable distcc... " >&6; }
7669 # Check whether --enable-distcc was given.
7670 if test "${enable_distcc+set}" = set; then :
7671 enableval
=$enable_distcc; distcc
="$enableval"
7676 if test "$distcc" != "" -a "$distcc" != "no"; then
7677 # AC_CHECK_PROG will print out the result in this case
7678 # Extract the first word of "distcc", so it can be a program name with args.
7679 set dummy distcc
; ac_word
=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_path_DISTCC+:} false
; then :
7683 $as_echo_n "(cached) " >&6
7687 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir
=.
7695 for ac_exec_ext
in '' $ac_executable_extensions; do
7696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7709 DISTCC
=$ac_cv_path_DISTCC
7710 if test -n "$DISTCC"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7712 $as_echo "$DISTCC" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7725 $as_echo_n "checking whether to enable ccache... " >&6; }
7726 # Check whether --enable-ccache was given.
7727 if test "${enable_ccache+set}" = set; then :
7728 enableval
=$enable_ccache; ccache
="$enableval"
7733 if test "$ccache" != "" -a "$ccache" != "no"; then
7734 # AC_CHECK_PROG will print out the result in this case
7735 # Extract the first word of "ccache", so it can be a program name with args.
7736 set dummy ccache
; ac_word
=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_CCACHE+:} false
; then :
7740 $as_echo_n "(cached) " >&6
7742 if test -n "$CCACHE"; then
7743 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir
=.
7750 for ac_exec_ext
in '' $ac_executable_extensions; do
7751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_CCACHE
="ccache"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 CCACHE
=$ac_cv_prog_CCACHE
7763 if test -n "$CCACHE"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7765 $as_echo "$CCACHE" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7777 #-----------------------------------------------------------------------------
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7779 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7781 # Check whether --with-kernel-gcc-version was given.
7782 if test "${with_kernel_gcc_version+set}" = set; then :
7783 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7785 kernel_tool_version
=""
7788 if test "$kernel_tool_version" != "" ; then
7789 msg_result
=$kernel_tool_version
7791 msg_result
="default"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7794 $as_echo "$msg_result" >&6; }
7796 #-----------------------------------------------------------------------------
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7798 $as_echo_n "checking what optimization flags to use... " >&6; }
7800 # Check whether --with-optimization was given.
7801 if test "${with_optimization+set}" = set; then :
7802 withval
=$with_optimization; optimization
="$withval"
7804 optimization
="unknown"
7807 if test "$optimization" = "unknown"; then
7808 if test "$debug" != "none"; then
7814 aros_optimization_cflags
="$optimization"
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7816 $as_echo "$optimization" >&6; }
7818 #-----------------------------------------------------------------------------
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7820 $as_echo_n "checking which paranoia flags to use... " >&6; }
7822 # Check whether --with-paranoia was given.
7823 if test "${with_paranoia+set}" = set; then :
7824 withval
=$with_paranoia; paranoia_flags
="$withval"
7826 paranoia_flags
="default"
7829 if test "$paranoia_flags" = "default"; then
7832 else if test "$paranoia_flags" = "yes"; then
7833 paranoia_flags
="-Wall -Werror"
7834 msg_result
="$paranoia_flags"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7837 $as_echo "$msg_result" >&6; }
7838 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7840 #-----------------------------------------------------------------------------
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7842 $as_echo_n "checking what target variant to enable... " >&6; }
7843 # Check whether --enable-target_variant was given.
7844 if test "${enable_target_variant+set}" = set; then :
7845 enableval
=$enable_target_variant; target_variant
=$enableval
7850 if test "$target_variant" = ""; then
7851 aros_target_variant
=""
7852 aros_target_suffix
=""
7855 aros_target_variant
="$target_variant"
7856 aros_target_suffix
="-$target_variant"
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7859 $as_echo "$enableval" >&6; }
7861 #-----------------------------------------------------------------------------
7862 # Target-specific defaults. You can override then on a per-target basis.
7864 # Bootloader name. Currently used by PC target.
7865 target_bootloader
="none"
7868 #-----------------------------------------------------------------------------
7869 # Additional options for some specific targets
7871 case "$aros_target_variant" in
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7874 $as_echo_n "checking XCode path... " >&6; }
7876 # Check whether --with-xcode was given.
7877 if test "${with_xcode+set}" = set; then :
7878 withval
=$with_xcode; aros_xcode_path
="$withval"
7880 aros_xcode_path
="/Developer"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7884 $as_echo "$aros_xcode_path" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7887 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7889 # Check whether --with-sdk-version was given.
7890 if test "${with_sdk_version+set}" = set; then :
7891 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7893 aros_sdk_version
="4.1"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7897 $as_echo "$aros_sdk_version" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7903 $as_echo_n "checking Android SDK path... " >&6; }
7905 # Check whether --with-sdk was given.
7906 if test "${with_sdk+set}" = set; then :
7907 withval
=$with_sdk; aros_android_sdk
="$withval"
7909 aros_android_sdk
=$default_android_sdk
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7913 $as_echo "$aros_android_sdk" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7916 $as_echo_n "checking Android NDK path... " >&6; }
7918 # Check whether --with-ndk was given.
7919 if test "${with_ndk+set}" = set; then :
7920 withval
=$with_ndk; aros_android_ndk
="$withval"
7922 aros_android_ndk
="none"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7926 $as_echo "$aros_android_ndk" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7929 $as_echo_n "checking what Android SDK version to use... " >&6; }
7931 # Check whether --with-sdk-version was given.
7932 if test "${with_sdk_version+set}" = set; then :
7933 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7935 aros_sdk_version
="12"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7939 $as_echo "$aros_sdk_version" >&6; }
7941 aros_android_level
=android-
$aros_sdk_version
7942 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7943 echo "Platform $aros_android_level is not installed in your SDK"
7944 echo "Use --with-sdk-version=<API level number> to select another platform version"
7945 echo "You can check what plaform versions are installed in your SDK"
7946 echo "by examining contents of $aros_android_sdk/platforms directory"
7947 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7950 export PATH
="$aros_android_sdk/tools:$PATH"
7951 # Extract the first word of "$android_tool", so it can be a program name with args.
7952 set dummy
$android_tool; ac_word
=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_path_android_tool+:} false
; then :
7956 $as_echo_n "(cached) " >&6
7958 case $android_tool in
7960 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir
=.
7968 for ac_exec_ext
in '' $ac_executable_extensions; do
7969 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 android_tool
=$ac_cv_path_android_tool
7982 if test -n "$android_tool"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7984 $as_echo "$android_tool" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7992 if test "$android_tool" = ""; then
7995 if test "$android_tool" = "no"; then
7998 if test "$req_avail" = "no"; then
7999 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8002 if test "$aros_android_ndk" != "none"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8004 $as_echo_n "checking what Android NDK version to use... " >&6; }
8006 # Check whether --with-ndk-version was given.
8007 if test "${with_ndk_version+set}" = set; then :
8008 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8010 aros_ndk_version
="9"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8014 $as_echo "$aros_ndk_version" >&6; }
8017 # Extract the first word of "ant", so it can be a program name with args.
8018 set dummy ant
; ac_word
=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_path_ant+:} false
; then :
8022 $as_echo_n "(cached) " >&6
8026 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir
=.
8034 for ac_exec_ext
in '' $ac_executable_extensions; do
8035 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 if test -n "$ant"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8050 $as_echo "$ant" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8057 if test "$ant" = ""; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8059 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8063 $as_echo_n "checking Build debug or release apk... " >&6; }
8065 # Check whether --with-apk-version was given.
8066 if test "${with_apk_version+set}" = set; then :
8067 withval
=$with_apk_version; aros_android_antapk
=$withval
8069 aros_android_antapk
=release
8072 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8073 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8076 $as_echo "$aros_android_antapk" >&6; }
8078 if test "$host_os" = "mingw32"; then
8079 android_tool
="cmd //c $android_tool"
8087 #-----------------------------------------------------------------------------
8088 # External toolchains
8089 kernel_tool_prefix
="none"
8090 aros_tool_prefix
="none"
8091 elf_tool_prefix
="${target_cpu}-elf-"
8093 # This is the target configuration switch.
8094 case "$target_os" in
8096 aros_target_arch
="linux"
8097 aros_target_family
="unix"
8098 case "$target_cpu" in
8100 aros_target_cpu
="m68k"
8101 aros_object_format
="m68kelf"
8102 aros_flavour
="emulcompat"
8103 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8104 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8105 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8106 gcc_target_cpu
="mc68000"
8109 aros_target_cpu
="i386"
8110 aros_object_format
="elf_i386"
8111 aros_flavour
="emulation"
8112 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8113 aros_kernel_ldflags
="-Wl,-melf_i386"
8114 aros_nominal_depth
=8
8115 gcc_target_cpu
="i386"
8116 pci_hidd_target
="hidd-pci-linux"
8117 android_tool_dir_prefix
="x86"
8118 android_tool_prefix
="i686-android-linux"
8119 android_ndk_arch
="x86"
8122 aros_target_cpu
="x86_64"
8123 aros_object_format
="elf_x86_64"
8124 aros_flavour
="emulation"
8125 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8126 aros_config_cflags
="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8127 aros_nominal_depth
=8
8128 pci_hidd_target
="hidd-pci-linux"
8131 aros_target_cpu
="ppc"
8132 aros_object_format
="elf32ppc"
8133 aros_flavour
="emulation"
8134 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8135 aros_nominal_depth
=8
8136 gcc_target_cpu
="ppc"
8139 # Same as powerpc, but I need this for the nightly build to work again.
8140 # Actually, the nightly should be made working with powerpc target.
8141 # That just was too much work for the moment, another week or two.
8143 aros_target_cpu
="ppc"
8144 aros_object_format
="elf32ppc"
8145 aros_flavour
="emulation"
8146 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8147 aros_nominal_depth
=8
8148 gcc_target_cpu
="ppc"
8151 aros_target_cpu
="aarch64"
8152 target_cpu
="aarch64"
8153 aros_object_format
="aarch64elf_aros"
8154 aros_flavour
="emulation"
8155 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8156 gcc_target_cpu
="aarch64"
8157 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8158 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8159 aros_arch_libs
="-laeabi"
8160 gcc_default_float_abi
="hard"
8161 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8164 aros_target_cpu
="arm"
8166 aros_object_format
="armelf_aros"
8167 aros_flavour
="emulation"
8168 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8169 gcc_target_cpu
="arm"
8170 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8171 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8172 aros_arch_libs
="-laeabi"
8173 gcc_default_float_abi
="hard"
8174 android_tool_dir_prefix
="arm-linux-androideabi"
8175 android_tool_prefix
="arm-linux-androideabi"
8176 android_ndk_arch
="arm"
8177 kernel_tool_prefix
="arm-linux-gnueabihf-"
8180 aros_target_cpu
="arm"
8181 aros_object_format
="armelf_aros"
8182 aros_flavour
="emulation"
8183 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8184 gcc_target_cpu
="arm"
8185 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8186 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8187 aros_arch_libs
="-laeabi"
8188 android_tool_dir_prefix
="arm-linux-androideabi"
8189 android_tool_prefix
="arm-linux-androideabi"
8190 android_ndk_arch
="arm"
8191 kernel_tool_prefix
="arm-linux-gnueabi-"
8194 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8197 case "$aros_target_variant" in
8200 if test "$android_ndk_arch" = ""; then
8201 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8204 aros_nominal_width
=320
8205 aros_nominal_height
=480
8206 if test "$aros_android_ndk" = "none"; then
8207 aros_kernel_cflags
="-mandroid"
8208 aros_kernel_ldflags
="-mandroid"
8211 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8212 kernel_tool_version
=""
8213 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8214 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8215 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8216 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8217 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8220 host_android_gfx
=yes
8221 # Disable implicit PIC mode
8222 aros_target_cflags
="$aros_target_cflags -fno-pic"
8223 kernel_tool_prefix
="$android_tool_prefix-"
8229 aros_target_arch
="pc"
8230 aros_shared_default
="no"
8231 target_bootloader
="grub2"
8232 case "$target_cpu" in
8234 aros_target_cpu
="i386"
8237 if test "$aros_object_format" = "" ; then
8238 aros_object_format
="elf_i386"
8240 aros_flavour
="standalone"
8241 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8242 aros_kernel_ldflags
="-Wl,-melf_i386"
8243 aros_nominal_width
=640
8244 aros_nominal_height
=480
8245 gcc_target_cpu
="i386"
8248 aros_target_cpu
="x86_64"
8250 if test "$aros_object_format" = "" ; then
8251 aros_object_format
="elf_x86_64"
8253 aros_flavour
="standalone"
8254 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8255 aros_config_cflags
="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8256 aros_kernel_ldflags
=""
8257 aros_nominal_width
=640
8258 aros_nominal_height
=480
8259 case "$aros_target_variant" in
8261 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8266 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8272 aros_target_arch
="prep"
8273 aros_shared_default
="no"
8274 aros_target_cpu
="ppc"
8275 aros_object_format
="elf32ppc"
8276 aros_flavour
="ppcnative"
8277 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8278 aros_kernel_ldflags
=""
8279 aros_nominal_width
=640
8280 aros_nominal_height
=480
8281 gcc_target_cpu
="ppc"
8285 aros_target_arch
="freebsd"
8286 aros_target_family
="unix"
8287 aros_target_cpu
="i386"
8288 aros_flavour
="emulation"
8289 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8290 gcc_target_cpu
="i386"
8292 aros_target_strip_flags
="-x"
8296 aros_target_arch
="darwin"
8297 aros_target_family
="unix"
8298 aros_flavour
="emulation"
8299 case "$target_cpu" in
8301 aros_ios_platform
="iPhoneSimulator"
8302 aros_target_cpu
="i386"
8303 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8304 aros_kernel_ldflags
=""
8305 aros_macosx_version
="10.4"
8306 aros_nominal_depth
=8
8307 gcc_target_cpu
="i386"
8308 aros_object_format
="elf_i386"
8309 aros_kernel_ar_flags
="-cr"
8310 aros_target_strip_flags
="-x"
8311 kernel_tool_flags
="-m32"
8314 aros_target_cpu
="x86_64"
8315 aros_object_format
="elf_x86_64"
8316 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8317 aros_macosx_version
="10.6"
8318 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8319 aros_kernel_cflags
="-m64"
8320 aros_kernel_ldflags
="-m64"
8321 aros_target_cflags
="-mcmodel=large"
8322 aros_nominal_depth
=8
8324 aros_kernel_ar_flags
="-cr"
8327 aros_kernel_ranlib
="ranlib"
8329 aros_kernel_strip
="strip"
8330 kernel_tool_prefix
="i686-apple-darwin10-"
8333 aros_target_cpu
="ppc"
8334 aros_object_format
="elf32ppc"
8335 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8336 aros_kernel_ldflags
=""
8337 aros_macosx_version
="10.0"
8338 aros_nominal_depth
=8
8339 gcc_target_cpu
="ppc"
8341 aros_kernel_ar_flags
="-cr"
8342 aros_kernel_ld
="ld -arch ppc"
8343 aros_kernel_as
="as -arch ppc"
8344 aros_kernel_ranlib
="ranlib -arch ppc"
8345 aros_kernel_nm
="nm -arch ppc"
8346 aros_kernel_strip
="strip -arch ppc"
8347 kernel_tool_prefix
="powerpc-apple-darwin10-"
8350 aros_ios_platform
="iPhoneOS"
8351 aros_target_cpu
="arm"
8352 aros_object_format
="armelf_aros"
8353 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8354 aros_arch_libs
="-laeabi"
8355 aros_nominal_depth
=8
8356 gcc_target_cpu
="arm"
8358 aros_kernel_ar_flags
="-cr"
8359 aros_kernel_ld
="ld -arch arm"
8360 aros_kernel_ranlib
="ranlib -arch arm"
8361 kernel_tool_prefix
="arm-apple-darwin10-"
8362 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8365 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8368 case "$aros_target_variant" in
8370 aros_ios_version
="3.0"
8371 aros_nominal_width
=320
8372 aros_nominal_height
=480
8373 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8374 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8375 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8377 # This is here because it may depend on iOS or SDK version
8378 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8379 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8380 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8383 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8384 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8390 aros_target_arch
="dragonfly"
8391 aros_target_family
="unix"
8392 aros_flavour
="emulation"
8393 case "$target_cpu" in
8395 aros_target_cpu
="i386"
8396 aros_object_format
="elf_i386"
8397 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8400 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8401 aros_target_cpu
="x86_64"
8402 aros_object_format
="elf_x86_64"
8403 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8406 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8412 aros_target_arch
="netbsd"
8413 aros_target_family
="unix"
8414 case "$target_cpu" in
8416 aros_target_cpu
="m68k"
8417 aros_object_format
="m68kelf"
8418 aros_flavour
="emulcompat"
8419 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8420 gcc_target_cpu
="mc68000"
8423 aros_target_cpu
="i386"
8424 aros_object_format
="elf_i386"
8425 aros_flavour
="emulation"
8426 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8427 aros_nominal_depth
=8
8428 gcc_target_cpu
="i386"
8431 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8434 aros_target_genmap
="-Wl,-M -Xlinker >"
8435 aros_flavour
="emulation"
8436 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8440 aros_target_arch
="openbsd"
8441 aros_target_family
="unix"
8442 case "$target_cpu" in
8444 aros_target_cpu
="i386"
8445 aros_object_format
="elf_i386"
8446 aros_flavour
="emulation"
8447 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8448 gcc_target_cpu
="i386"
8451 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8454 aros_target_genmap
="-Wl,-M -Xlinker >"
8455 aros_target_nm_flags
="-u"
8456 aros_flavour
="emulation"
8460 aros_target_arch
="solaris"
8461 aros_target_family
="unix"
8462 case "$target_cpu" in
8464 aros_target_cpu
="i386"
8465 aros_object_format
="elf_i386"
8466 aros_flavour
="emulation"
8467 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8468 aros_nominal_depth
=8
8469 gcc_target_cpu
="i386"
8472 aros_target_cpu
="sparc"
8473 aros_object_format
="elf_sparc"
8474 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8475 gcc_target_cpu
="sparc"
8478 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8481 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8482 aros_flavour
="emulation"
8486 aros_target_arch
="morphos"
8487 aros_shared_default
="no"
8488 aros_target_cpu
="ppc"
8489 aros_object_format
="elf_ppc"
8490 aros_flavour
="nativecompat"
8491 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8492 gcc_target_cpu
="ppc"
8496 aros_target_arch
="sam440"
8497 aros_shared_default
="no"
8498 aros_target_cpu
="ppc"
8499 aros_object_format
="elf32ppc"
8500 aros_flavour
="ppcnative"
8501 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8502 aros_kernel_ldflags
=""
8503 aros_nominal_width
=1024
8504 aros_nominal_height
=768
8505 aros_nominal_depth
=24
8506 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8507 gcc_target_cpu
="powerpc"
8511 aros_target_arch
="efika"
8512 aros_shared_default
="no"
8513 aros_target_cpu
="arm"
8514 aros_object_format
="armelf_aros"
8515 aros_flavour
="standalone"
8516 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8517 aros_kernel_ldflags
=""
8518 aros_nominal_width
=1024
8519 aros_nominal_height
=600
8520 aros_arch_libs
="-laeabi"
8521 gcc_default_cpu
="armv7-a"
8522 gcc_default_fpu
="vfpv3"
8523 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8524 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8525 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8526 case "$target_cpu" in
8528 gcc_default_float_abi
="hard"
8533 gcc_default_float_abi
="softfp"
8536 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8542 aros_target_arch
="chrp"
8543 aros_shared_default
="no"
8544 aros_target_cpu
="ppc"
8545 aros_object_format
="elf32ppc"
8546 aros_flavour
="ppcnative"
8547 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8548 aros_kernel_ldflags
=""
8549 aros_nominal_width
=640
8550 aros_nominal_height
=480
8551 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8552 gcc_target_cpu
="powerpc"
8553 case "$aros_target_variant" in
8555 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8561 aros_flavour
="standalone"
8562 aros_target_arch
="raspi"
8564 aros_shared_default
="no"
8566 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8568 case "$target_cpu" in
8570 aros_target_cpu
="aarch64"
8571 gcc_default_cpu
="aarch64"
8572 aros_object_format
="aarch64elf_aros"
8575 aros_target_cpu
="arm"
8576 gcc_default_cpu
="armv6zk"
8577 gcc_default_cpu_tune
="arm1176jzf-s"
8578 aros_object_format
="armelf_aros"
8579 aros_config_cflags
="$aros_config_cflags -marm"
8580 aros_config_aflags
="$aros_config_aflags -marm"
8581 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8582 aros_target_cflags
="$aros_kernel_cflags -marm"
8583 aros_target_mkdep
="$aros_target_mkdep -Darm"
8584 aros_arch_libs
="-laeabi"
8587 aros_target_cpu
="arm"
8588 gcc_default_cpu
="armv6zk"
8589 gcc_default_cpu_tune
="arm1176jzf-s"
8590 aros_object_format
="armelf_aros"
8591 aros_config_cflags
="$aros_config_cflags -marm"
8592 aros_config_aflags
="$aros_config_aflags -marm"
8593 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8594 aros_target_cflags
="$aros_kernel_cflags -marm"
8595 aros_target_mkdep
="$aros_target_mkdep -Darm"
8596 aros_arch_libs
="-laeabi"
8599 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8603 aros_config_cflags
="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8604 aros_config_aflags
="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8605 aros_kernel_cflags
="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8606 aros_target_cflags
="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8608 case "$aros_target_variant" in
8610 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8616 aros_flavour
="standalone"
8617 aros_target_arch
="stm32f7_discovery"
8618 aros_target_cpu
="arm"
8619 aros_target_cpu_mode
="thumb2"
8620 aros_object_format
="armelf_aros"
8621 aros_shared_default
="no"
8623 # stm32f7 has DSP opcode support
8624 gcc_default_cpu
="armv7e-m"
8625 # gcc_default_cpu="armv7-m"
8626 gcc_default_cpu_tune
="cortex-m7"
8627 gcc_default_fpu
="fpv4-sp-d16"
8628 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8629 # gcc_default_fpu="fpv5-sp-d16"
8630 gcc_default_float_abi
="hard"
8632 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8636 aros_target_arch
="amiga"
8637 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8638 aros_shared_default
="no"
8640 case "$target_cpu" in
8642 # Check whether --enable-amigaos_compliance was given.
8643 if test "${enable_amigaos_compliance+set}" = set; then :
8644 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8648 aros_target_cpu
="m68k"
8649 aros_object_format
="m68kelf"
8650 aros_flavour
="standcompat"
8651 gcc_target_cpu
="m68000"
8652 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8653 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8654 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8655 aros_config_aflags
="$aros_config_aflags"
8656 aros_target_strip_flags
="-R.comment --strip-debug"
8657 aros_nominal_width
=640
8658 aros_nominal_height
=256
8659 aros_nominal_depth
=2
8663 aros_flavour
="native"
8664 gcc_target_cpu
="ppc"
8667 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8673 aros_target_arch
="mingw32"
8674 aros_shared_default
="no"
8675 aros_flavour
="emulation"
8676 aros_shared_cflags
=""
8677 need_crosstools
="yes"
8680 case "$target_cpu" in
8682 aros_target_cpu
="i386"
8683 aros_object_format
="elf_i386"
8684 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8685 aros_nominal_depth
=8
8686 gcc_target_cpu
="i386"
8688 kernel_tool_prefix
="i386-mingw32-"
8691 aros_target_cpu
="x86_64"
8692 aros_object_format
="elf_x86_64"
8693 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8694 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8695 aros_nominal_depth
=8
8696 kernel_tool_prefix
="x86_64-w64-mingw32-"
8699 aros_target_cpu
="arm"
8700 aros_object_format
="armelf_aros"
8701 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8702 aros_arch_libs
="-laeabi"
8703 aros_nominal_depth
=8
8704 gcc_target_cpu
="arm"
8705 gcc_default_float_abi
="soft"
8706 kernel_tool_prefix
="arm-mingw32ce-"
8707 aros_nominal_width
=160
8708 aros_nominal_height
=160
8711 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8714 if test $host_os = "cygwin"; then
8715 aros_kernel_cflags
="-mno-cygwin"
8719 aros_target_arch
="pp"
8720 aros_shared_default
="no"
8721 case "$target_cpu" in
8723 aros_target_cpu
="m68k"
8724 aros_object_format
="m68kelf"
8725 aros_flavour
="palmnative"
8726 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8727 aros_nominal_width
=160
8728 aros_nominal_height
=160
8729 aros_nominal_depth
=1
8730 aros_target_ar_flags
="cru"
8731 aros_compiler_libs
="-lgcc1"
8732 aros_shared_default
=no
8733 aros_shared_cflags
="-fpic"
8734 aros_shared_aflags
=""
8735 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8736 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8737 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8738 aros_debug_aflags
=""
8739 aros_debug_ldflags
="$aros_symbols_debug"
8740 aros_mungwall_debug
="0"
8741 aros_modules_debug
="0"
8742 gcc_target_cpu
="mc68000"
8743 ignore_undefined_symbols
="-ius"
8746 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8752 aros_target_arch
="mac"
8753 aros_shared_default
="no"
8754 case "$target_cpu" in
8756 aros_target_cpu
="m68k"
8757 aros_object_format
="m68kelf"
8758 aros_flavour
="mac68knative"
8759 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8760 aros_nominal_width
=512
8761 aros_nominal_height
=384
8762 aros_nominal_depth
=8
8763 aros_target_ar_flags
="cru"
8764 aros_compiler_libs
="-lgcc1"
8765 aros_shared_default
=no
8766 aros_shared_cflags
="-fpic"
8767 aros_shared_aflags
=""
8768 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8769 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8770 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8771 aros_debug_aflags
=""
8772 aros_debug_ldflags
="$aros_symbols_debug"
8773 aros_mungwall_debug
="0"
8774 aros_modules_debug
="0"
8775 gcc_target_cpu
="mc68000"
8776 ignore_undefined_symbols
="-ius"
8779 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8785 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8789 #-----------------------------------------------------------------------------
8790 crosstools_guess
="yes"
8791 aros_target_toolchain
="no"
8792 aros_config_sysroot
=""
8793 aros_kernel_sysroot
=""
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8796 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8798 # Check whether --with-kernel-toolchain-prefix was given.
8799 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8800 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8804 $as_echo "$kernel_tool_prefix" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8807 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8809 # Check whether --with-elf-toolchain-prefix was given.
8810 if test "${with_elf_toolchain_prefix+set}" = set; then :
8811 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8812 crosstools_guess
="no"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8816 $as_echo "$elf_tool_prefix" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8819 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8821 # Check whether --with-aros-toolchain was given.
8822 if test "${with_aros_toolchain+set}" = set; then :
8823 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8824 crosstools_guess
="no"
8827 if test "$aros_tool_prefix" = "yes" ; then
8828 aros_tool_prefix
=$aros_target_cpu-aros-
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8831 $as_echo "$aros_tool_prefix" >&6; }
8833 #-----------------------------------------------------------------------------
8834 # Checking if we should build crosstools..
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8836 $as_echo_n "checking whether to build crosstools... " >&6; }
8837 # Check whether --enable-crosstools was given.
8838 if test "${enable_crosstools+set}" = set; then :
8839 enableval
=$enable_crosstools; crosstools
="$enableval"
8841 crosstools
="$crosstools_guess"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8845 $as_echo "$crosstools" >&6; }
8847 if test "${crosstools}" = "yes"; then
8848 if test "${crosstools_guess}" = "no"; then
8849 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8853 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8854 aros_target_toolchain
="yes"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8858 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8860 # Check whether --with-aros-toolchain-install was given.
8861 if test "${with_aros_toolchain_install+set}" = set; then :
8862 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8865 if test "x$aros_toolchain_install" = "x"; then
8866 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8868 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8869 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8870 if test "$crosstools_guess" = "no" ; then
8871 toolchain_needs_sysroot
=yes
8873 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8874 aros_kernel_sysroot
= $aros_config_sysroot
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8879 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8882 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8883 if test "$toolchain_needs_sysroot" = "yes" ; then
8884 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8887 $as_echo "$toolchain_needs_sysroot" >&6; }
8889 #-----------------------------------------------------------------------------
8890 if test "$aros_toolchain" = "gnu" ; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8892 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8895 # Check whether --with-binutils-version was given.
8896 if test "${with_binutils_version+set}" = set; then :
8897 withval
=$with_binutils_version; use_binutils_version
="$withval"
8899 use_binutils_version
=""
8902 if test "$use_binutils_version" = ""; then
8903 target_binutils_version
="$default_binutils_version"
8905 target_binutils_version
="$use_binutils_version"
8907 if test "$aros_toolchain" = "gnu" ; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8909 $as_echo "$target_binutils_version" >&6; }
8913 # Helper to identify gcc version
8916 #-----------------------------------------------------------------------------
8917 if test "$aros_toolchain" = "gnu" ; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8919 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8922 # Check whether --with-gcc-version was given.
8923 if test "${with_gcc_version+set}" = set; then :
8924 withval
=$with_gcc_version; use_gcc_version
="$withval"
8929 if test "$use_gcc_version" = ""; then
8930 if test "${crosstools}" = "no"; then
8931 if test "x$aros_toolchain_install" != "x"; then
8933 target_gcc_version
=""
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8935 $as_echo_n "checking gcc version... " >&6; }
8936 if ${ax_cv_gcc_version+:} false
; then :
8937 $as_echo_n "(cached) " >&6
8940 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8941 if test "x$ax_cv_gcc_version" = "x"; then :
8943 ax_cv_gcc_version
=""
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8949 $as_echo "$ax_cv_gcc_version" >&6; }
8950 target_gcc_version
=$ax_cv_gcc_version
8955 if test "$use_gcc_version" = ""; then
8956 target_gcc_version
="$default_gcc_version"
8959 target_gcc_version
="$use_gcc_version"
8961 if test "$aros_toolchain" = "gnu" ; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8963 $as_echo "$target_gcc_version" >&6; }
8965 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
8966 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
8967 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
8969 gcc_fix_bitfields
="false"
8970 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8971 gcc_fix_bitfields
="true"
8973 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8974 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8975 gcc_fix_bitfields
="true"
8980 if test "$gcc_fix_bitfields" = "true" ; then
8981 case "$aros_target_cpu" in
8983 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8984 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8987 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8988 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8995 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8996 # Check whether --enable-objc was given.
8997 if test "${enable_objc+set}" = set; then :
8998 enableval
=$enable_objc; objc
="$enableval"
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9004 $as_echo "$objc" >&6; }
9005 if test "x$objc" = "xyes"; then
9008 objc_target
="no-objc"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9012 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9013 # Check whether --enable-java was given.
9014 if test "${enable_java+set}" = set; then :
9015 enableval
=$enable_java; java
="$enableval"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9021 $as_echo "$java" >&6; }
9022 if test "x$java" != "xno"; then
9025 java_target
="no-java"
9028 spec_obj_format
="-m $aros_object_format"
9029 # Now process extra architecture-specific options.
9030 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9031 # as well as floating-point ABI.
9032 case "$aros_target_cpu" in
9034 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9037 if test "$gcc_default_cpu" = ""; then
9038 gcc_default_cpu
="armv6"
9040 if test "$gcc_default_fpu" = ""; then
9041 gcc_default_fpu
="vfp"
9043 if test "$gcc_default_float_abi" = ""; then
9044 if test "$target_cpu" = "armhf"; then
9045 gcc_default_float_abi
="hard"
9047 gcc_default_float_abi
="softfp"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9052 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9054 # Check whether --with-cpu was given.
9055 if test "${with_cpu+set}" = set; then :
9056 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9058 aros_gcc_cpu
=$gcc_default_cpu
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9062 $as_echo "$aros_gcc_cpu" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9065 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9067 # Check whether --with-fpu was given.
9068 if test "${with_fpu+set}" = set; then :
9069 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9071 aros_gcc_fpu
=$gcc_default_fpu
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9075 $as_echo "$aros_gcc_fpu" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9078 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9080 # Check whether --with-float was given.
9081 if test "${with_float+set}" = set; then :
9082 withval
=$with_float; aros_gcc_float_abi
="$withval"
9084 aros_gcc_float_abi
=$gcc_default_float_abi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9088 $as_echo "$aros_gcc_float_abi" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9091 $as_echo_n "checking Which ARM mode to use... " >&6; }
9092 if test "$aros_target_cpu_mode" = ""; then
9093 aros_target_cpu_mode
="arm32"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9095 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9098 $as_echo "$aros_target_cpu_mode" >&6; }
9101 case "$aros_target_cpu_mode" in
9103 gcc_default_mode
="arm"
9104 aros_isa_flags
="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9107 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9110 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9113 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9116 gcc_default_mode
="thumb"
9117 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9118 aros_isa_flags
="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9121 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9125 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9126 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9129 aros_isa_flags
="-m32 -march=i486"
9130 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
9131 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9135 # Some architectures may need custom ELF specs.
9136 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9137 elf_specs_in
=config
/${aros_object_format}-specs.
in
9139 elf_specs_in
=config
/elf-specs.
in
9142 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9143 # Since we override specs, we may need to put these defines there
9144 if test "$gcc_target_cpu" != ""; then
9145 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9149 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9151 # Check whether --with-portssources was given.
9152 if test "${with_portssources+set}" = set; then :
9153 withval
=$with_portssources; with_portssrcdir
=$withval
9155 with_portssrcdir
="default"
9158 if test "$with_portssrcdir" = "default"; then
9159 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9161 AROS_PORTSSRCDIR
="$with_portssrcdir"
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9164 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9167 $as_echo_n "checking which bootloader to use... " >&6; }
9169 # Check whether --with-bootloader was given.
9170 if test "${with_bootloader+set}" = set; then :
9171 withval
=$with_bootloader; target_bootloader
=$withval
9173 target_bootloader
=$target_bootloader
9176 if test "$target_bootloader" = "none"; then
9177 aros_target_bootloader
=""
9179 aros_target_bootloader
="$target_bootloader"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9182 $as_echo "$target_bootloader" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9185 $as_echo_n "checking which icon-set to use... " >&6; }
9187 # Check whether --with-iconset was given.
9188 if test "${with_iconset+set}" = set; then :
9189 withval
=$with_iconset; target_iconset
=$withval
9191 target_iconset
="default"
9194 if test "$target_iconset" = "default"; then
9195 aros_target_iconset
="Gorilla"
9196 target_iconset
="default (Gorilla)"
9198 aros_target_iconset
="$target_iconset"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9201 $as_echo "$target_iconset" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9204 $as_echo_n "checking which GUI Theme to use... " >&6; }
9206 # Check whether --with-theme was given.
9207 if test "${with_theme+set}" = set; then :
9208 withval
=$with_theme; target_guitheme
=$withval
9210 target_guitheme
="default"
9213 if test "$target_guitheme" = "default"; then
9214 aros_target_guitheme
="Ice"
9216 aros_target_guitheme
="$target_guitheme"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9219 $as_echo "$aros_target_guitheme" >&6; }
9221 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9225 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9229 if test "$aros_host_cpu" == "x86_64" ; then
9230 if test "$aros_target_cpu" == "i386" ; then
9235 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9236 if test "$aros_host_arch" != "$aros_target_arch" ; then
9240 if test "$host_cc_elf" = "no" ; then
9245 if test "$cross_compiling" = "no" ; then
9246 kernel_tool_prefix
=""
9247 if test "$host_cc_elf" = "yes" ; then
9252 if test "$kernel_tool_version" != ""; then
9253 kernel_tool_version
="-$kernel_tool_version"
9256 #######################################################################
9257 ## Compute what toolchains to use, and their paths ##
9258 #######################################################################
9260 # This takes, as input:
9261 # crosstools {yes,no}
9262 # kernel_tool_version {"",[version]}
9263 # target_tool_version {"",[version]}
9264 # kernel_tool_prefix {none,[some-arch-os-]}
9266 # target_tool_prefix ${aros_target_cpu}-aros-
9267 # aros_tool_prefix ${aros_target_cpu}-aros-
9270 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9271 # Where the 'kernel' binaries are located
9272 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9273 # Where the 'target' binaries are located
9274 # (not the symlink farm - that is aros_target_*!)
9277 # if crosstools then
9278 # if kernel_tools_prefix = "no-kernel-prefix-"
9279 # aros_kernel_* = crosstools cc paths
9280 # aros_kernel_cc = elf cc wrapper around crosstools cc
9282 # VALIDATE(${kernel_tools_prefix}*)
9283 # aros_kernel_* = ${kernel_tools_prefix}*
9284 # if ${kernel_tools_prefix}cc is an AROS gcc
9285 # aros_kernel_cc = ${kernel_tools_prefix}cc
9287 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9291 # orig_target_* = aros built crosstools
9292 # orig_target_cc = elf cc wrapper around crosstools cc
9294 # VALIDATE(${kernel_tools_prefix}*)
9296 # orig_target_* = aros_kernel_*
9297 # if aros_kernel_cc is an AROS gcc
9298 # orig_target_cc = aros_kernel_cc
9300 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9304 if test "$aros_toolchain" = "gnu" ; then
9305 target_tool_prefix
="${aros_target_cpu}-aros-"
9306 elif test "$aros_toolchain" = "llvm" ; then
9307 target_tool_prefix
="bin/"
9310 if test "$kernel_tool_prefix" != "" ; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9312 $as_echo_n "checking which kernel tools... " >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9314 $as_echo "$kernel_tool_prefix" >&6; };
9317 if test "$kernel_tool_prefix" = "none" ; then
9318 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9319 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9322 # Kernel tools required - find them
9323 # Note that 'normally', aros_kernel_* overrides will be
9324 # empty, unless specified in the per-arch sections above.
9325 if test "x$aros_kernel_cpp" = "x"; then
9326 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9329 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9330 if test "$cross_compiling" = "yes" ; then
9331 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9332 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9336 $as_echo_n "(cached) " >&6
9338 case $aros_kernel_cpp in
9340 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir
=.
9348 for ac_exec_ext
in '' $ac_executable_extensions; do
9349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9362 if test -n "$aros_kernel_cpp"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9364 $as_echo "$aros_kernel_cpp" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 if test "$GCC" = "yes"; then
9373 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9374 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9375 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9379 $as_echo_n "(cached) " >&6
9381 case $aros_kernel_cpp in
9383 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9387 for as_dir
in `dirname $aros_gcc_cpp`
9390 test -z "$as_dir" && as_dir
=.
9391 for ac_exec_ext
in '' $ac_executable_extensions; do
9392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9405 if test -n "$aros_kernel_cpp"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9407 $as_echo "$aros_kernel_cpp" >&6; }
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9415 if test "$aros_kernel_cpp" = ""; then
9416 # Extract the first word of "cpp", so it can be a program name with args.
9417 set dummy cpp
; ac_word
=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9421 $as_echo_n "(cached) " >&6
9423 case $aros_kernel_cpp in
9425 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9432 test -z "$as_dir" && as_dir
=.
9433 for ac_exec_ext
in '' $ac_executable_extensions; do
9434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9435 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9447 if test -n "$aros_kernel_cpp"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9449 $as_echo "$aros_kernel_cpp" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9459 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9460 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9464 $as_echo_n "(cached) " >&6
9466 case $aros_kernel_cpp in
9468 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir
=.
9476 for ac_exec_ext
in '' $ac_executable_extensions; do
9477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9490 if test -n "$aros_kernel_cpp"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9492 $as_echo "$aros_kernel_cpp" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9502 if test "$aros_kernel_cpp" = ""; then
9505 if test "$aros_kernel_cpp" = "no"; then
9508 if test "$req_avail" = "no"; then
9509 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9511 if test "x$aros_kernel_cc" = "x"; then
9512 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9515 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9516 if test "$cross_compiling" = "yes" ; then
9517 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9518 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9522 $as_echo_n "(cached) " >&6
9524 case $aros_kernel_cc in
9526 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir
=.
9534 for ac_exec_ext
in '' $ac_executable_extensions; do
9535 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9548 if test -n "$aros_kernel_cc"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9550 $as_echo "$aros_kernel_cc" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9558 if test "$GCC" = "yes"; then
9559 aros_gcc_cc
=`$CC -print-prog-name=cc`
9560 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9561 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9565 $as_echo_n "(cached) " >&6
9567 case $aros_kernel_cc in
9569 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9573 for as_dir
in `dirname $aros_gcc_cc`
9576 test -z "$as_dir" && as_dir
=.
9577 for ac_exec_ext
in '' $ac_executable_extensions; do
9578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9591 if test -n "$aros_kernel_cc"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9593 $as_echo "$aros_kernel_cc" >&6; }
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9601 if test "$aros_kernel_cc" = ""; then
9602 # Extract the first word of "cc", so it can be a program name with args.
9603 set dummy cc
; ac_word
=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9607 $as_echo_n "(cached) " >&6
9609 case $aros_kernel_cc in
9611 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9618 test -z "$as_dir" && as_dir
=.
9619 for ac_exec_ext
in '' $ac_executable_extensions; do
9620 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9633 if test -n "$aros_kernel_cc"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9635 $as_echo "$aros_kernel_cc" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9645 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9646 set dummy
$aros_kernel_cc${kernel_tool_version}; ac_word
=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9650 $as_echo_n "(cached) " >&6
9652 case $aros_kernel_cc in
9654 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir
=.
9662 for ac_exec_ext
in '' $ac_executable_extensions; do
9663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9676 if test -n "$aros_kernel_cc"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9678 $as_echo "$aros_kernel_cc" >&6; }
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9688 if test "$aros_kernel_cc" = ""; then
9691 if test "$aros_kernel_cc" = "no"; then
9694 if test "$req_avail" = "no"; then
9695 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9697 if test "x$aros_kernel_cxx" = "x"; then
9698 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9701 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9702 if test "$cross_compiling" = "yes" ; then
9703 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9704 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9708 $as_echo_n "(cached) " >&6
9710 case $aros_kernel_cxx in
9712 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9719 test -z "$as_dir" && as_dir
=.
9720 for ac_exec_ext
in '' $ac_executable_extensions; do
9721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9734 if test -n "$aros_kernel_cxx"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9736 $as_echo "$aros_kernel_cxx" >&6; }
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9744 if test "$GCC" = "yes"; then
9745 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9746 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9747 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9751 $as_echo_n "(cached) " >&6
9753 case $aros_kernel_cxx in
9755 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9759 for as_dir
in `dirname $aros_gcc_cxx`
9762 test -z "$as_dir" && as_dir
=.
9763 for ac_exec_ext
in '' $ac_executable_extensions; do
9764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9777 if test -n "$aros_kernel_cxx"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9779 $as_echo "$aros_kernel_cxx" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9787 if test "$aros_kernel_cxx" = ""; then
9788 # Extract the first word of "cxx", so it can be a program name with args.
9789 set dummy cxx
; ac_word
=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9793 $as_echo_n "(cached) " >&6
9795 case $aros_kernel_cxx in
9797 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9804 test -z "$as_dir" && as_dir
=.
9805 for ac_exec_ext
in '' $ac_executable_extensions; do
9806 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9819 if test -n "$aros_kernel_cxx"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9821 $as_echo "$aros_kernel_cxx" >&6; }
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9831 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9832 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9836 $as_echo_n "(cached) " >&6
9838 case $aros_kernel_cxx in
9840 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir
=.
9848 for ac_exec_ext
in '' $ac_executable_extensions; do
9849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9862 if test -n "$aros_kernel_cxx"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9864 $as_echo "$aros_kernel_cxx" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9873 # If it's set, make sure it's really there
9874 if test "x$aros_kernel_cxx" != "x" ; then
9876 if test "$aros_kernel_cxx" = ""; then
9879 if test "$aros_kernel_cxx" = "no"; then
9882 if test "$req_avail" = "no"; then
9883 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9887 if test "$aros_kernel_ld" = ""; then
9888 if test "$cross_compiling" = "yes" ; then
9889 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9890 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9894 $as_echo_n "(cached) " >&6
9896 case $aros_kernel_ld in
9898 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9905 test -z "$as_dir" && as_dir
=.
9906 for ac_exec_ext
in '' $ac_executable_extensions; do
9907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9920 if test -n "$aros_kernel_ld"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9922 $as_echo "$aros_kernel_ld" >&6; }
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9930 if test "$GCC" = "yes"; then
9931 aros_gcc_ld
=`$CC -print-prog-name=ld`
9932 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9933 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9937 $as_echo_n "(cached) " >&6
9939 case $aros_kernel_ld in
9941 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9945 for as_dir
in `dirname $aros_gcc_ld`
9948 test -z "$as_dir" && as_dir
=.
9949 for ac_exec_ext
in '' $ac_executable_extensions; do
9950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9951 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9963 if test -n "$aros_kernel_ld"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9965 $as_echo "$aros_kernel_ld" >&6; }
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 if test "$aros_kernel_ld" = ""; then
9974 # Extract the first word of "ld", so it can be a program name with args.
9975 set dummy ld
; ac_word
=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9979 $as_echo_n "(cached) " >&6
9981 case $aros_kernel_ld in
9983 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9990 test -z "$as_dir" && as_dir
=.
9991 for ac_exec_ext
in '' $ac_executable_extensions; do
9992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9993 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10005 if test -n "$aros_kernel_ld"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10007 $as_echo "$aros_kernel_ld" >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10017 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10018 set dummy
$aros_kernel_ld; ac_word
=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10022 $as_echo_n "(cached) " >&6
10024 case $aros_kernel_ld in
10026 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10030 for as_dir
in $PATH
10033 test -z "$as_dir" && as_dir
=.
10034 for ac_exec_ext
in '' $ac_executable_extensions; do
10035 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10048 if test -n "$aros_kernel_ld"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10050 $as_echo "$aros_kernel_ld" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10060 if test "$aros_kernel_ld" = ""; then
10063 if test "$aros_kernel_ld" = "no"; then
10066 if test "$req_avail" = "no"; then
10067 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10070 if test "$aros_kernel_as" = ""; then
10071 if test "$cross_compiling" = "yes" ; then
10072 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10073 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10077 $as_echo_n "(cached) " >&6
10079 case $aros_kernel_as in
10081 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10085 for as_dir
in $PATH
10088 test -z "$as_dir" && as_dir
=.
10089 for ac_exec_ext
in '' $ac_executable_extensions; do
10090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10103 if test -n "$aros_kernel_as"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10105 $as_echo "$aros_kernel_as" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10113 if test "$GCC" = "yes"; then
10114 aros_gcc_as
=`$CC -print-prog-name=as`
10115 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10116 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10120 $as_echo_n "(cached) " >&6
10122 case $aros_kernel_as in
10124 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10128 for as_dir
in `dirname $aros_gcc_as`
10131 test -z "$as_dir" && as_dir
=.
10132 for ac_exec_ext
in '' $ac_executable_extensions; do
10133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10146 if test -n "$aros_kernel_as"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10148 $as_echo "$aros_kernel_as" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10156 if test "$aros_kernel_as" = ""; then
10157 # Extract the first word of "as", so it can be a program name with args.
10158 set dummy as
; ac_word
=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10162 $as_echo_n "(cached) " >&6
10164 case $aros_kernel_as in
10166 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10170 for as_dir
in $PATH
10173 test -z "$as_dir" && as_dir
=.
10174 for ac_exec_ext
in '' $ac_executable_extensions; do
10175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10176 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10188 if test -n "$aros_kernel_as"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10190 $as_echo "$aros_kernel_as" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10200 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10201 set dummy
$aros_kernel_as; ac_word
=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10205 $as_echo_n "(cached) " >&6
10207 case $aros_kernel_as in
10209 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10213 for as_dir
in $PATH
10216 test -z "$as_dir" && as_dir
=.
10217 for ac_exec_ext
in '' $ac_executable_extensions; do
10218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10219 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10231 if test -n "$aros_kernel_as"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10233 $as_echo "$aros_kernel_as" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10243 if test "$aros_kernel_as" = ""; then
10246 if test "$aros_kernel_as" = "no"; then
10249 if test "$req_avail" = "no"; then
10250 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10253 if test "$aros_kernel_ar" = ""; then
10254 if test "$cross_compiling" = "yes" ; then
10255 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10256 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10260 $as_echo_n "(cached) " >&6
10262 case $aros_kernel_ar in
10264 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10268 for as_dir
in $PATH
10271 test -z "$as_dir" && as_dir
=.
10272 for ac_exec_ext
in '' $ac_executable_extensions; do
10273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10286 if test -n "$aros_kernel_ar"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10288 $as_echo "$aros_kernel_ar" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10296 if test "$GCC" = "yes"; then
10297 aros_gcc_ar
=`$CC -print-prog-name=ar`
10298 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10299 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10303 $as_echo_n "(cached) " >&6
10305 case $aros_kernel_ar in
10307 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10311 for as_dir
in `dirname $aros_gcc_ar`
10314 test -z "$as_dir" && as_dir
=.
10315 for ac_exec_ext
in '' $ac_executable_extensions; do
10316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10329 if test -n "$aros_kernel_ar"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10331 $as_echo "$aros_kernel_ar" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10339 if test "$aros_kernel_ar" = ""; then
10340 # Extract the first word of "ar", so it can be a program name with args.
10341 set dummy
ar; ac_word
=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10345 $as_echo_n "(cached) " >&6
10347 case $aros_kernel_ar in
10349 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10353 for as_dir
in $PATH
10356 test -z "$as_dir" && as_dir
=.
10357 for ac_exec_ext
in '' $ac_executable_extensions; do
10358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10359 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10371 if test -n "$aros_kernel_ar"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10373 $as_echo "$aros_kernel_ar" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10383 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10384 set dummy
$aros_kernel_ar; ac_word
=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10388 $as_echo_n "(cached) " >&6
10390 case $aros_kernel_ar in
10392 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10396 for as_dir
in $PATH
10399 test -z "$as_dir" && as_dir
=.
10400 for ac_exec_ext
in '' $ac_executable_extensions; do
10401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10414 if test -n "$aros_kernel_ar"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10416 $as_echo "$aros_kernel_ar" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10426 if test "$aros_kernel_ar" = ""; then
10429 if test "$aros_kernel_ar" = "no"; then
10432 if test "$req_avail" = "no"; then
10433 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10436 if test "$aros_kernel_ranlib" = ""; then
10437 if test "$cross_compiling" = "yes" ; then
10438 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10439 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10443 $as_echo_n "(cached) " >&6
10445 case $aros_kernel_ranlib in
10447 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10451 for as_dir
in $PATH
10454 test -z "$as_dir" && as_dir
=.
10455 for ac_exec_ext
in '' $ac_executable_extensions; do
10456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10457 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10469 if test -n "$aros_kernel_ranlib"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10471 $as_echo "$aros_kernel_ranlib" >&6; }
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10479 if test "$GCC" = "yes"; then
10480 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10481 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10482 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10488 case $aros_kernel_ranlib in
10490 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10494 for as_dir
in `dirname $aros_gcc_ranlib`
10497 test -z "$as_dir" && as_dir
=.
10498 for ac_exec_ext
in '' $ac_executable_extensions; do
10499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10512 if test -n "$aros_kernel_ranlib"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10514 $as_echo "$aros_kernel_ranlib" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$aros_kernel_ranlib" = ""; then
10523 # Extract the first word of "ranlib", so it can be a program name with args.
10524 set dummy ranlib
; ac_word
=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10528 $as_echo_n "(cached) " >&6
10530 case $aros_kernel_ranlib in
10532 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10536 for as_dir
in $PATH
10539 test -z "$as_dir" && as_dir
=.
10540 for ac_exec_ext
in '' $ac_executable_extensions; do
10541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10554 if test -n "$aros_kernel_ranlib"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10556 $as_echo "$aros_kernel_ranlib" >&6; }
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10566 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10567 set dummy
$aros_kernel_ranlib; ac_word
=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10571 $as_echo_n "(cached) " >&6
10573 case $aros_kernel_ranlib in
10575 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10579 for as_dir
in $PATH
10582 test -z "$as_dir" && as_dir
=.
10583 for ac_exec_ext
in '' $ac_executable_extensions; do
10584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10597 if test -n "$aros_kernel_ranlib"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10599 $as_echo "$aros_kernel_ranlib" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10609 if test "$aros_kernel_ranlib" = ""; then
10612 if test "$aros_kernel_ranlib" = "no"; then
10615 if test "$req_avail" = "no"; then
10616 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10619 if test "$aros_kernel_nm" = ""; then
10620 if test "$cross_compiling" = "yes" ; then
10621 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10622 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10626 $as_echo_n "(cached) " >&6
10628 case $aros_kernel_nm in
10630 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10634 for as_dir
in $PATH
10637 test -z "$as_dir" && as_dir
=.
10638 for ac_exec_ext
in '' $ac_executable_extensions; do
10639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10652 if test -n "$aros_kernel_nm"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10654 $as_echo "$aros_kernel_nm" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test "$GCC" = "yes"; then
10663 aros_gcc_nm
=`$CC -print-prog-name=nm`
10664 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10665 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10671 case $aros_kernel_nm in
10673 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10677 for as_dir
in `dirname $aros_gcc_nm`
10680 test -z "$as_dir" && as_dir
=.
10681 for ac_exec_ext
in '' $ac_executable_extensions; do
10682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10695 if test -n "$aros_kernel_nm"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10697 $as_echo "$aros_kernel_nm" >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 if test "$aros_kernel_nm" = ""; then
10706 # Extract the first word of "nm", so it can be a program name with args.
10707 set dummy nm
; ac_word
=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10711 $as_echo_n "(cached) " >&6
10713 case $aros_kernel_nm in
10715 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10719 for as_dir
in $PATH
10722 test -z "$as_dir" && as_dir
=.
10723 for ac_exec_ext
in '' $ac_executable_extensions; do
10724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10737 if test -n "$aros_kernel_nm"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10739 $as_echo "$aros_kernel_nm" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10749 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10750 set dummy
$aros_kernel_nm; ac_word
=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10754 $as_echo_n "(cached) " >&6
10756 case $aros_kernel_nm in
10758 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10762 for as_dir
in $PATH
10765 test -z "$as_dir" && as_dir
=.
10766 for ac_exec_ext
in '' $ac_executable_extensions; do
10767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10780 if test -n "$aros_kernel_nm"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10782 $as_echo "$aros_kernel_nm" >&6; }
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10792 if test "$aros_kernel_nm" = ""; then
10795 if test "$aros_kernel_nm" = "no"; then
10798 if test "$req_avail" = "no"; then
10799 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10802 if test "$aros_kernel_strip" = ""; then
10803 if test "$cross_compiling" = "yes" ; then
10804 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10805 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10809 $as_echo_n "(cached) " >&6
10811 case $aros_kernel_strip in
10813 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10817 for as_dir
in $PATH
10820 test -z "$as_dir" && as_dir
=.
10821 for ac_exec_ext
in '' $ac_executable_extensions; do
10822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10835 if test -n "$aros_kernel_strip"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10837 $as_echo "$aros_kernel_strip" >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10845 if test "$GCC" = "yes"; then
10846 aros_gcc_strip
=`$CC -print-prog-name=strip`
10847 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10848 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10852 $as_echo_n "(cached) " >&6
10854 case $aros_kernel_strip in
10856 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10860 for as_dir
in `dirname $aros_gcc_strip`
10863 test -z "$as_dir" && as_dir
=.
10864 for ac_exec_ext
in '' $ac_executable_extensions; do
10865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10878 if test -n "$aros_kernel_strip"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10880 $as_echo "$aros_kernel_strip" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10888 if test "$aros_kernel_strip" = ""; then
10889 # Extract the first word of "strip", so it can be a program name with args.
10890 set dummy strip
; ac_word
=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10894 $as_echo_n "(cached) " >&6
10896 case $aros_kernel_strip in
10898 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10902 for as_dir
in $PATH
10905 test -z "$as_dir" && as_dir
=.
10906 for ac_exec_ext
in '' $ac_executable_extensions; do
10907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10920 if test -n "$aros_kernel_strip"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10922 $as_echo "$aros_kernel_strip" >&6; }
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10932 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10933 set dummy
$aros_kernel_strip; ac_word
=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10937 $as_echo_n "(cached) " >&6
10939 case $aros_kernel_strip in
10941 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10945 for as_dir
in $PATH
10948 test -z "$as_dir" && as_dir
=.
10949 for ac_exec_ext
in '' $ac_executable_extensions; do
10950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10951 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10963 if test -n "$aros_kernel_strip"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10965 $as_echo "$aros_kernel_strip" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10975 if test "$aros_kernel_strip" = ""; then
10978 if test "$aros_kernel_strip" = "no"; then
10981 if test "$req_avail" = "no"; then
10982 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10985 # Objcopy and objdump are not required for the kernel
10986 # toolchain on many architectures.
10987 # So we'll look for them, but not make them strictly required.
10989 if test "$aros_kernel_objcopy" = ""; then
10990 if test "$cross_compiling" = "yes" ; then
10991 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10992 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10996 $as_echo_n "(cached) " >&6
10998 case $aros_kernel_objcopy in
11000 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11004 for as_dir
in $PATH
11007 test -z "$as_dir" && as_dir
=.
11008 for ac_exec_ext
in '' $ac_executable_extensions; do
11009 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11022 if test -n "$aros_kernel_objcopy"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11024 $as_echo "$aros_kernel_objcopy" >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11032 if test "$GCC" = "yes"; then
11033 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11034 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11035 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11039 $as_echo_n "(cached) " >&6
11041 case $aros_kernel_objcopy in
11043 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11047 for as_dir
in `dirname $aros_gcc_objcopy`
11050 test -z "$as_dir" && as_dir
=.
11051 for ac_exec_ext
in '' $ac_executable_extensions; do
11052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11065 if test -n "$aros_kernel_objcopy"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11067 $as_echo "$aros_kernel_objcopy" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11075 if test "$aros_kernel_objcopy" = ""; then
11076 # Extract the first word of "objcopy", so it can be a program name with args.
11077 set dummy objcopy
; ac_word
=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11081 $as_echo_n "(cached) " >&6
11083 case $aros_kernel_objcopy in
11085 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11089 for as_dir
in $PATH
11092 test -z "$as_dir" && as_dir
=.
11093 for ac_exec_ext
in '' $ac_executable_extensions; do
11094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11107 if test -n "$aros_kernel_objcopy"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11109 $as_echo "$aros_kernel_objcopy" >&6; }
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11119 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11120 set dummy
$aros_kernel_objcopy; ac_word
=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11124 $as_echo_n "(cached) " >&6
11126 case $aros_kernel_objcopy in
11128 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11132 for as_dir
in $PATH
11135 test -z "$as_dir" && as_dir
=.
11136 for ac_exec_ext
in '' $ac_executable_extensions; do
11137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11150 if test -n "$aros_kernel_objcopy"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11152 $as_echo "$aros_kernel_objcopy" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11162 if test "$aros_kernel_objdump" = ""; then
11163 if test "$cross_compiling" = "yes" ; then
11164 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11165 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11169 $as_echo_n "(cached) " >&6
11171 case $aros_kernel_objdump in
11173 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11177 for as_dir
in $PATH
11180 test -z "$as_dir" && as_dir
=.
11181 for ac_exec_ext
in '' $ac_executable_extensions; do
11182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11195 if test -n "$aros_kernel_objdump"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11197 $as_echo "$aros_kernel_objdump" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11205 if test "$GCC" = "yes"; then
11206 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11207 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11208 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11212 $as_echo_n "(cached) " >&6
11214 case $aros_kernel_objdump in
11216 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11220 for as_dir
in `dirname $aros_gcc_objdump`
11223 test -z "$as_dir" && as_dir
=.
11224 for ac_exec_ext
in '' $ac_executable_extensions; do
11225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11226 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11238 if test -n "$aros_kernel_objdump"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11240 $as_echo "$aros_kernel_objdump" >&6; }
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11248 if test "$aros_kernel_objdump" = ""; then
11249 # Extract the first word of "objdump", so it can be a program name with args.
11250 set dummy objdump
; ac_word
=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11254 $as_echo_n "(cached) " >&6
11256 case $aros_kernel_objdump in
11258 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11262 for as_dir
in $PATH
11265 test -z "$as_dir" && as_dir
=.
11266 for ac_exec_ext
in '' $ac_executable_extensions; do
11267 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11268 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11280 if test -n "$aros_kernel_objdump"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11282 $as_echo "$aros_kernel_objdump" >&6; }
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11292 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11293 set dummy
$aros_kernel_objdump; ac_word
=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11297 $as_echo_n "(cached) " >&6
11299 case $aros_kernel_objdump in
11301 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11305 for as_dir
in $PATH
11308 test -z "$as_dir" && as_dir
=.
11309 for ac_exec_ext
in '' $ac_executable_extensions; do
11310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11323 if test -n "$aros_kernel_objdump"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11325 $as_echo "$aros_kernel_objdump" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11334 if test "x${crosstools}" != "xyes" ; then
11336 if test "$aros_kernel_objcopy" = ""; then
11339 if test "$aros_kernel_objcopy" = "no"; then
11342 if test "$req_avail" = "no"; then
11343 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11346 if test "$aros_kernel_objdump" = ""; then
11349 if test "$aros_kernel_objdump" = "no"; then
11352 if test "$req_avail" = "no"; then
11353 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11359 $as_echo_n "checking which target tools to use... " >&6; }
11360 if test "$aros_target_toolchain" = "yes"; then
11361 if test "$aros_toolchain" = "llvm" ; then
11364 msg_result
=$target_tool_prefix
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11367 $as_echo "$msg_result" >&6; }
11368 # We are building AROS crosstools
11369 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11370 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11371 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11372 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11373 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11374 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11375 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11376 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11377 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11378 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11379 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11380 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11382 # Determine whether AROS or ELF tools should be used
11383 if test "$aros_tool_prefix" = "none"; then
11384 aros_tool_prefix
="${elf_tool_prefix}"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11388 $as_echo "$aros_tool_prefix" >&6; }
11389 # We are *not* building AROS crosstools - use the AROS or ELF tools
11391 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11392 if test "$cross_compiling" = "yes" ; then
11393 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11394 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11398 $as_echo_n "(cached) " >&6
11400 case $orig_target_cpp in
11402 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11406 for as_dir
in $PATH
11409 test -z "$as_dir" && as_dir
=.
11410 for ac_exec_ext
in '' $ac_executable_extensions; do
11411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11424 if test -n "$orig_target_cpp"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11426 $as_echo "$orig_target_cpp" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11434 if test "$GCC" = "yes"; then
11435 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11436 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11437 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11441 $as_echo_n "(cached) " >&6
11443 case $orig_target_cpp in
11445 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11449 for as_dir
in `dirname $aros_gcc_cpp`
11452 test -z "$as_dir" && as_dir
=.
11453 for ac_exec_ext
in '' $ac_executable_extensions; do
11454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11467 if test -n "$orig_target_cpp"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11469 $as_echo "$orig_target_cpp" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11477 if test "$orig_target_cpp" = ""; then
11478 # Extract the first word of "cpp", so it can be a program name with args.
11479 set dummy cpp
; ac_word
=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11483 $as_echo_n "(cached) " >&6
11485 case $orig_target_cpp in
11487 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11491 for as_dir
in $PATH
11494 test -z "$as_dir" && as_dir
=.
11495 for ac_exec_ext
in '' $ac_executable_extensions; do
11496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11509 if test -n "$orig_target_cpp"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11511 $as_echo "$orig_target_cpp" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11521 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11522 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11526 $as_echo_n "(cached) " >&6
11528 case $orig_target_cpp in
11530 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11534 for as_dir
in $PATH
11537 test -z "$as_dir" && as_dir
=.
11538 for ac_exec_ext
in '' $ac_executable_extensions; do
11539 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11552 if test -n "$orig_target_cpp"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11554 $as_echo "$orig_target_cpp" >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11564 if test "$orig_target_cpp" = ""; then
11567 if test "$orig_target_cpp" = "no"; then
11570 if test "$req_avail" = "no"; then
11571 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11574 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11575 if test "$cross_compiling" = "yes" ; then
11576 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11577 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_path_orig_target_cc+:} false
; then :
11581 $as_echo_n "(cached) " >&6
11583 case $orig_target_cc in
11585 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11589 for as_dir
in $PATH
11592 test -z "$as_dir" && as_dir
=.
11593 for ac_exec_ext
in '' $ac_executable_extensions; do
11594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11595 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 orig_target_cc
=$ac_cv_path_orig_target_cc
11607 if test -n "$orig_target_cc"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11609 $as_echo "$orig_target_cc" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 if test "$GCC" = "yes"; then
11618 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11619 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11620 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622 $as_echo_n "checking for $ac_word... " >&6; }
11623 if ${ac_cv_path_orig_target_cc+:} false
; then :
11624 $as_echo_n "(cached) " >&6
11626 case $orig_target_cc in
11628 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11632 for as_dir
in `dirname $aros_gcc_gcc`
11635 test -z "$as_dir" && as_dir
=.
11636 for ac_exec_ext
in '' $ac_executable_extensions; do
11637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11638 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 orig_target_cc
=$ac_cv_path_orig_target_cc
11650 if test -n "$orig_target_cc"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11652 $as_echo "$orig_target_cc" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11660 if test "$orig_target_cc" = ""; then
11661 # Extract the first word of "gcc", so it can be a program name with args.
11662 set dummy gcc
; ac_word
=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_orig_target_cc+:} false
; then :
11666 $as_echo_n "(cached) " >&6
11668 case $orig_target_cc in
11670 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11674 for as_dir
in $PATH
11677 test -z "$as_dir" && as_dir
=.
11678 for ac_exec_ext
in '' $ac_executable_extensions; do
11679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 orig_target_cc
=$ac_cv_path_orig_target_cc
11692 if test -n "$orig_target_cc"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11694 $as_echo "$orig_target_cc" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11704 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11705 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_path_orig_target_cc+:} false
; then :
11709 $as_echo_n "(cached) " >&6
11711 case $orig_target_cc in
11713 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11717 for as_dir
in $PATH
11720 test -z "$as_dir" && as_dir
=.
11721 for ac_exec_ext
in '' $ac_executable_extensions; do
11722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 orig_target_cc
=$ac_cv_path_orig_target_cc
11735 if test -n "$orig_target_cc"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11737 $as_echo "$orig_target_cc" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11747 if test "$orig_target_cc" = ""; then
11750 if test "$orig_target_cc" = "no"; then
11753 if test "$req_avail" = "no"; then
11754 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11757 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11758 if test "$cross_compiling" = "yes" ; then
11759 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11760 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11764 $as_echo_n "(cached) " >&6
11766 case $orig_target_cxx in
11768 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11772 for as_dir
in $PATH
11775 test -z "$as_dir" && as_dir
=.
11776 for ac_exec_ext
in '' $ac_executable_extensions; do
11777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11790 if test -n "$orig_target_cxx"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11792 $as_echo "$orig_target_cxx" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11800 if test "$GCC" = "yes"; then
11801 aros_gcc_g
++=`$CC -print-prog-name=g++`
11802 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11803 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11807 $as_echo_n "(cached) " >&6
11809 case $orig_target_cxx in
11811 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11815 for as_dir
in `dirname $aros_gcc_g++`
11818 test -z "$as_dir" && as_dir
=.
11819 for ac_exec_ext
in '' $ac_executable_extensions; do
11820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11833 if test -n "$orig_target_cxx"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11835 $as_echo "$orig_target_cxx" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11843 if test "$orig_target_cxx" = ""; then
11844 # Extract the first word of "g++", so it can be a program name with args.
11845 set dummy g
++; ac_word
=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11849 $as_echo_n "(cached) " >&6
11851 case $orig_target_cxx in
11853 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11857 for as_dir
in $PATH
11860 test -z "$as_dir" && as_dir
=.
11861 for ac_exec_ext
in '' $ac_executable_extensions; do
11862 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11863 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11875 if test -n "$orig_target_cxx"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11877 $as_echo "$orig_target_cxx" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11887 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11888 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11892 $as_echo_n "(cached) " >&6
11894 case $orig_target_cxx in
11896 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11900 for as_dir
in $PATH
11903 test -z "$as_dir" && as_dir
=.
11904 for ac_exec_ext
in '' $ac_executable_extensions; do
11905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11918 if test -n "$orig_target_cxx"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11920 $as_echo "$orig_target_cxx" >&6; }
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11930 if test "$orig_target_cxx" = ""; then
11933 if test "$orig_target_cxx" = "no"; then
11936 if test "$req_avail" = "no"; then
11937 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11940 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11941 if test "$cross_compiling" = "yes" ; then
11942 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11943 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if ${ac_cv_path_orig_target_ld+:} false
; then :
11947 $as_echo_n "(cached) " >&6
11949 case $orig_target_ld in
11951 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11955 for as_dir
in $PATH
11958 test -z "$as_dir" && as_dir
=.
11959 for ac_exec_ext
in '' $ac_executable_extensions; do
11960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 orig_target_ld
=$ac_cv_path_orig_target_ld
11973 if test -n "$orig_target_ld"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11975 $as_echo "$orig_target_ld" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11983 if test "$GCC" = "yes"; then
11984 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11985 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11986 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_orig_target_ld+:} false
; then :
11990 $as_echo_n "(cached) " >&6
11992 case $orig_target_ld in
11994 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11998 for as_dir
in `dirname $aros_gcc_gcc`
12001 test -z "$as_dir" && as_dir
=.
12002 for ac_exec_ext
in '' $ac_executable_extensions; do
12003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 orig_target_ld
=$ac_cv_path_orig_target_ld
12016 if test -n "$orig_target_ld"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12018 $as_echo "$orig_target_ld" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test "$orig_target_ld" = ""; then
12027 # Extract the first word of "gcc", so it can be a program name with args.
12028 set dummy gcc
; ac_word
=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_path_orig_target_ld+:} false
; then :
12032 $as_echo_n "(cached) " >&6
12034 case $orig_target_ld in
12036 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12040 for as_dir
in $PATH
12043 test -z "$as_dir" && as_dir
=.
12044 for ac_exec_ext
in '' $ac_executable_extensions; do
12045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 orig_target_ld
=$ac_cv_path_orig_target_ld
12058 if test -n "$orig_target_ld"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12060 $as_echo "$orig_target_ld" >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12070 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12071 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_path_orig_target_ld+:} false
; then :
12075 $as_echo_n "(cached) " >&6
12077 case $orig_target_ld in
12079 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12083 for as_dir
in $PATH
12086 test -z "$as_dir" && as_dir
=.
12087 for ac_exec_ext
in '' $ac_executable_extensions; do
12088 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 orig_target_ld
=$ac_cv_path_orig_target_ld
12101 if test -n "$orig_target_ld"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12103 $as_echo "$orig_target_ld" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12113 if test "$orig_target_ld" = ""; then
12116 if test "$orig_target_ld" = "no"; then
12119 if test "$req_avail" = "no"; then
12120 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12123 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12124 if test "$cross_compiling" = "yes" ; then
12125 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12126 set dummy
${target_tool_prefix}as
; ac_word
=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_path_orig_target_as+:} false
; then :
12130 $as_echo_n "(cached) " >&6
12132 case $orig_target_as in
12134 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12138 for as_dir
in $PATH
12141 test -z "$as_dir" && as_dir
=.
12142 for ac_exec_ext
in '' $ac_executable_extensions; do
12143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 orig_target_as
=$ac_cv_path_orig_target_as
12156 if test -n "$orig_target_as"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12158 $as_echo "$orig_target_as" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12166 if test "$GCC" = "yes"; then
12167 aros_gcc_as
=`$CC -print-prog-name=as`
12168 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12169 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_path_orig_target_as+:} false
; then :
12173 $as_echo_n "(cached) " >&6
12175 case $orig_target_as in
12177 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12181 for as_dir
in `dirname $aros_gcc_as`
12184 test -z "$as_dir" && as_dir
=.
12185 for ac_exec_ext
in '' $ac_executable_extensions; do
12186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12187 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 orig_target_as
=$ac_cv_path_orig_target_as
12199 if test -n "$orig_target_as"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12201 $as_echo "$orig_target_as" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12209 if test "$orig_target_as" = ""; then
12210 # Extract the first word of "as", so it can be a program name with args.
12211 set dummy as
; ac_word
=$2
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213 $as_echo_n "checking for $ac_word... " >&6; }
12214 if ${ac_cv_path_orig_target_as+:} false
; then :
12215 $as_echo_n "(cached) " >&6
12217 case $orig_target_as in
12219 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12223 for as_dir
in $PATH
12226 test -z "$as_dir" && as_dir
=.
12227 for ac_exec_ext
in '' $ac_executable_extensions; do
12228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12229 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 orig_target_as
=$ac_cv_path_orig_target_as
12241 if test -n "$orig_target_as"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12243 $as_echo "$orig_target_as" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12253 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12254 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_path_orig_target_as+:} false
; then :
12258 $as_echo_n "(cached) " >&6
12260 case $orig_target_as in
12262 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12266 for as_dir
in $PATH
12269 test -z "$as_dir" && as_dir
=.
12270 for ac_exec_ext
in '' $ac_executable_extensions; do
12271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12272 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 orig_target_as
=$ac_cv_path_orig_target_as
12284 if test -n "$orig_target_as"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12286 $as_echo "$orig_target_as" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12296 if test "$orig_target_as" = ""; then
12299 if test "$orig_target_as" = "no"; then
12302 if test "$req_avail" = "no"; then
12303 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12306 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12307 if test "$cross_compiling" = "yes" ; then
12308 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12309 set dummy
${target_tool_prefix}ar; ac_word
=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_path_orig_target_ar+:} false
; then :
12313 $as_echo_n "(cached) " >&6
12315 case $orig_target_ar in
12317 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12321 for as_dir
in $PATH
12324 test -z "$as_dir" && as_dir
=.
12325 for ac_exec_ext
in '' $ac_executable_extensions; do
12326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12327 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 orig_target_ar
=$ac_cv_path_orig_target_ar
12339 if test -n "$orig_target_ar"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12341 $as_echo "$orig_target_ar" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12349 if test "$GCC" = "yes"; then
12350 aros_gcc_ar
=`$CC -print-prog-name=ar`
12351 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12352 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_path_orig_target_ar+:} false
; then :
12356 $as_echo_n "(cached) " >&6
12358 case $orig_target_ar in
12360 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12364 for as_dir
in `dirname $aros_gcc_ar`
12367 test -z "$as_dir" && as_dir
=.
12368 for ac_exec_ext
in '' $ac_executable_extensions; do
12369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12370 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 orig_target_ar
=$ac_cv_path_orig_target_ar
12382 if test -n "$orig_target_ar"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12384 $as_echo "$orig_target_ar" >&6; }
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12392 if test "$orig_target_ar" = ""; then
12393 # Extract the first word of "ar", so it can be a program name with args.
12394 set dummy
ar; ac_word
=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if ${ac_cv_path_orig_target_ar+:} false
; then :
12398 $as_echo_n "(cached) " >&6
12400 case $orig_target_ar in
12402 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12406 for as_dir
in $PATH
12409 test -z "$as_dir" && as_dir
=.
12410 for ac_exec_ext
in '' $ac_executable_extensions; do
12411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12412 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 orig_target_ar
=$ac_cv_path_orig_target_ar
12424 if test -n "$orig_target_ar"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12426 $as_echo "$orig_target_ar" >&6; }
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12436 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12437 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_path_orig_target_ar+:} false
; then :
12441 $as_echo_n "(cached) " >&6
12443 case $orig_target_ar in
12445 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12449 for as_dir
in $PATH
12452 test -z "$as_dir" && as_dir
=.
12453 for ac_exec_ext
in '' $ac_executable_extensions; do
12454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 orig_target_ar
=$ac_cv_path_orig_target_ar
12467 if test -n "$orig_target_ar"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12469 $as_echo "$orig_target_ar" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12479 if test "$orig_target_ar" = ""; then
12482 if test "$orig_target_ar" = "no"; then
12485 if test "$req_avail" = "no"; then
12486 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12489 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12490 if test "$cross_compiling" = "yes" ; then
12491 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12492 set dummy
${target_tool_prefix}ar; ac_word
=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12496 $as_echo_n "(cached) " >&6
12498 case $orig_target_ranlib in
12500 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12504 for as_dir
in $PATH
12507 test -z "$as_dir" && as_dir
=.
12508 for ac_exec_ext
in '' $ac_executable_extensions; do
12509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12522 if test -n "$orig_target_ranlib"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12524 $as_echo "$orig_target_ranlib" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12532 if test "$GCC" = "yes"; then
12533 aros_gcc_ar
=`$CC -print-prog-name=ar`
12534 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12535 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12539 $as_echo_n "(cached) " >&6
12541 case $orig_target_ranlib in
12543 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12547 for as_dir
in `dirname $aros_gcc_ar`
12550 test -z "$as_dir" && as_dir
=.
12551 for ac_exec_ext
in '' $ac_executable_extensions; do
12552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12553 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12565 if test -n "$orig_target_ranlib"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12567 $as_echo "$orig_target_ranlib" >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 if test "$orig_target_ranlib" = ""; then
12576 # Extract the first word of "ar", so it can be a program name with args.
12577 set dummy
ar; ac_word
=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12581 $as_echo_n "(cached) " >&6
12583 case $orig_target_ranlib in
12585 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12589 for as_dir
in $PATH
12592 test -z "$as_dir" && as_dir
=.
12593 for ac_exec_ext
in '' $ac_executable_extensions; do
12594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12607 if test -n "$orig_target_ranlib"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12609 $as_echo "$orig_target_ranlib" >&6; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12619 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12620 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12624 $as_echo_n "(cached) " >&6
12626 case $orig_target_ranlib in
12628 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12632 for as_dir
in $PATH
12635 test -z "$as_dir" && as_dir
=.
12636 for ac_exec_ext
in '' $ac_executable_extensions; do
12637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12638 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12650 if test -n "$orig_target_ranlib"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12652 $as_echo "$orig_target_ranlib" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12662 if test "$orig_target_ranlib" = ""; then
12665 if test "$orig_target_ranlib" = "no"; then
12668 if test "$req_avail" = "no"; then
12669 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12672 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12673 if test "$cross_compiling" = "yes" ; then
12674 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12675 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_nm+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 case $orig_target_nm in
12683 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12687 for as_dir
in $PATH
12690 test -z "$as_dir" && as_dir
=.
12691 for ac_exec_ext
in '' $ac_executable_extensions; do
12692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 orig_target_nm
=$ac_cv_path_orig_target_nm
12705 if test -n "$orig_target_nm"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12707 $as_echo "$orig_target_nm" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$GCC" = "yes"; then
12716 aros_gcc_nm
=`$CC -print-prog-name=nm`
12717 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12718 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_orig_target_nm+:} false
; then :
12722 $as_echo_n "(cached) " >&6
12724 case $orig_target_nm in
12726 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12730 for as_dir
in `dirname $aros_gcc_nm`
12733 test -z "$as_dir" && as_dir
=.
12734 for ac_exec_ext
in '' $ac_executable_extensions; do
12735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12736 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 orig_target_nm
=$ac_cv_path_orig_target_nm
12748 if test -n "$orig_target_nm"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12750 $as_echo "$orig_target_nm" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12758 if test "$orig_target_nm" = ""; then
12759 # Extract the first word of "nm", so it can be a program name with args.
12760 set dummy nm
; ac_word
=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_nm+:} false
; then :
12764 $as_echo_n "(cached) " >&6
12766 case $orig_target_nm in
12768 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12772 for as_dir
in $PATH
12775 test -z "$as_dir" && as_dir
=.
12776 for ac_exec_ext
in '' $ac_executable_extensions; do
12777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 orig_target_nm
=$ac_cv_path_orig_target_nm
12790 if test -n "$orig_target_nm"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12792 $as_echo "$orig_target_nm" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12802 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12803 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if ${ac_cv_path_orig_target_nm+:} false
; then :
12807 $as_echo_n "(cached) " >&6
12809 case $orig_target_nm in
12811 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12815 for as_dir
in $PATH
12818 test -z "$as_dir" && as_dir
=.
12819 for ac_exec_ext
in '' $ac_executable_extensions; do
12820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12821 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 orig_target_nm
=$ac_cv_path_orig_target_nm
12833 if test -n "$orig_target_nm"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12835 $as_echo "$orig_target_nm" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12845 if test "$orig_target_nm" = ""; then
12848 if test "$orig_target_nm" = "no"; then
12851 if test "$req_avail" = "no"; then
12852 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12855 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12856 if test "$cross_compiling" = "yes" ; then
12857 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12858 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_orig_target_strip+:} false
; then :
12862 $as_echo_n "(cached) " >&6
12864 case $orig_target_strip in
12866 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12870 for as_dir
in $PATH
12873 test -z "$as_dir" && as_dir
=.
12874 for ac_exec_ext
in '' $ac_executable_extensions; do
12875 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12876 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 orig_target_strip
=$ac_cv_path_orig_target_strip
12888 if test -n "$orig_target_strip"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12890 $as_echo "$orig_target_strip" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12898 if test "$GCC" = "yes"; then
12899 aros_gcc_strip
=`$CC -print-prog-name=strip`
12900 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12901 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if ${ac_cv_path_orig_target_strip+:} false
; then :
12905 $as_echo_n "(cached) " >&6
12907 case $orig_target_strip in
12909 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12913 for as_dir
in `dirname $aros_gcc_strip`
12916 test -z "$as_dir" && as_dir
=.
12917 for ac_exec_ext
in '' $ac_executable_extensions; do
12918 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12919 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 orig_target_strip
=$ac_cv_path_orig_target_strip
12931 if test -n "$orig_target_strip"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12933 $as_echo "$orig_target_strip" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12941 if test "$orig_target_strip" = ""; then
12942 # Extract the first word of "strip", so it can be a program name with args.
12943 set dummy strip
; ac_word
=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_path_orig_target_strip+:} false
; then :
12947 $as_echo_n "(cached) " >&6
12949 case $orig_target_strip in
12951 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12955 for as_dir
in $PATH
12958 test -z "$as_dir" && as_dir
=.
12959 for ac_exec_ext
in '' $ac_executable_extensions; do
12960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 orig_target_strip
=$ac_cv_path_orig_target_strip
12973 if test -n "$orig_target_strip"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12975 $as_echo "$orig_target_strip" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12985 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12986 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_path_orig_target_strip+:} false
; then :
12990 $as_echo_n "(cached) " >&6
12992 case $orig_target_strip in
12994 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12998 for as_dir
in $PATH
13001 test -z "$as_dir" && as_dir
=.
13002 for ac_exec_ext
in '' $ac_executable_extensions; do
13003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13004 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 orig_target_strip
=$ac_cv_path_orig_target_strip
13016 if test -n "$orig_target_strip"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13018 $as_echo "$orig_target_strip" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13028 if test "$orig_target_strip" = ""; then
13031 if test "$orig_target_strip" = "no"; then
13034 if test "$req_avail" = "no"; then
13035 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13038 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13039 if test "$cross_compiling" = "yes" ; then
13040 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13041 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13045 $as_echo_n "(cached) " >&6
13047 case $orig_target_objcopy in
13049 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13053 for as_dir
in $PATH
13056 test -z "$as_dir" && as_dir
=.
13057 for ac_exec_ext
in '' $ac_executable_extensions; do
13058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13059 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13071 if test -n "$orig_target_objcopy"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13073 $as_echo "$orig_target_objcopy" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13081 if test "$GCC" = "yes"; then
13082 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13083 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13084 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13088 $as_echo_n "(cached) " >&6
13090 case $orig_target_objcopy in
13092 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13096 for as_dir
in `dirname $aros_gcc_objcopy`
13099 test -z "$as_dir" && as_dir
=.
13100 for ac_exec_ext
in '' $ac_executable_extensions; do
13101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13114 if test -n "$orig_target_objcopy"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13116 $as_echo "$orig_target_objcopy" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13124 if test "$orig_target_objcopy" = ""; then
13125 # Extract the first word of "objcopy", so it can be a program name with args.
13126 set dummy objcopy
; ac_word
=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13130 $as_echo_n "(cached) " >&6
13132 case $orig_target_objcopy in
13134 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13138 for as_dir
in $PATH
13141 test -z "$as_dir" && as_dir
=.
13142 for ac_exec_ext
in '' $ac_executable_extensions; do
13143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13144 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13156 if test -n "$orig_target_objcopy"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13158 $as_echo "$orig_target_objcopy" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13168 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13169 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13173 $as_echo_n "(cached) " >&6
13175 case $orig_target_objcopy in
13177 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13181 for as_dir
in $PATH
13184 test -z "$as_dir" && as_dir
=.
13185 for ac_exec_ext
in '' $ac_executable_extensions; do
13186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13199 if test -n "$orig_target_objcopy"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13201 $as_echo "$orig_target_objcopy" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13211 if test "$orig_target_objcopy" = ""; then
13214 if test "$orig_target_objcopy" = "no"; then
13217 if test "$req_avail" = "no"; then
13218 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13221 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13222 if test "$cross_compiling" = "yes" ; then
13223 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13224 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13228 $as_echo_n "(cached) " >&6
13230 case $orig_target_objdump in
13232 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13236 for as_dir
in $PATH
13239 test -z "$as_dir" && as_dir
=.
13240 for ac_exec_ext
in '' $ac_executable_extensions; do
13241 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13242 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13254 if test -n "$orig_target_objdump"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13256 $as_echo "$orig_target_objdump" >&6; }
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13264 if test "$GCC" = "yes"; then
13265 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13266 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13267 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13271 $as_echo_n "(cached) " >&6
13273 case $orig_target_objdump in
13275 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13279 for as_dir
in `dirname $aros_gcc_objdump`
13282 test -z "$as_dir" && as_dir
=.
13283 for ac_exec_ext
in '' $ac_executable_extensions; do
13284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13297 if test -n "$orig_target_objdump"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13299 $as_echo "$orig_target_objdump" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13307 if test "$orig_target_objdump" = ""; then
13308 # Extract the first word of "objdump", so it can be a program name with args.
13309 set dummy objdump
; ac_word
=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13313 $as_echo_n "(cached) " >&6
13315 case $orig_target_objdump in
13317 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13321 for as_dir
in $PATH
13324 test -z "$as_dir" && as_dir
=.
13325 for ac_exec_ext
in '' $ac_executable_extensions; do
13326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13327 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13339 if test -n "$orig_target_objdump"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13341 $as_echo "$orig_target_objdump" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13351 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13352 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13356 $as_echo_n "(cached) " >&6
13358 case $orig_target_objdump in
13360 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13364 for as_dir
in $PATH
13367 test -z "$as_dir" && as_dir
=.
13368 for ac_exec_ext
in '' $ac_executable_extensions; do
13369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13370 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13382 if test -n "$orig_target_objdump"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13384 $as_echo "$orig_target_objdump" >&6; }
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13394 if test "$orig_target_objdump" = ""; then
13397 if test "$orig_target_objdump" = "no"; then
13400 if test "$req_avail" = "no"; then
13401 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13405 if test "$kernel_tool_prefix" = "none" ; then
13406 # No kernel tools specified
13407 # Assume target tools == kernel tools with ELF wrapper
13408 aros_kernel_cc
=$orig_target_cc
13409 aros_kernel_cxx
=$orig_target_cxx
13410 aros_kernel_cpp
=$orig_target_cpp
13411 aros_kernel_ld
=$orig_target_ld
13412 aros_kernel_as
=$orig_target_as
13413 aros_kernel_ar
=$orig_target_ar
13414 aros_kernel_ranlib
=$orig_target_ranlib
13415 aros_kernel_nm
=$orig_target_nm
13416 aros_kernel_strip
=$orig_target_strip
13417 aros_kernel_objcopy
=$orig_target_objcopy
13418 aros_kernel_objdump
=$orig_target_objdump
13419 use_kernel_cc_wrapper
=yes
13422 # At this point, all aros_kernel_* and aros_target_*
13423 # tools should be set up correctly
13425 CC
="$aros_kernel_cc $kernel_tool_flags"
13426 CPP
="$aros_kernel_cpp"
13428 #-----------------------------------------------------------------------------
13430 # Find all the tools we need to compile. This could be cross-compiling
13431 # though! If that is the case we use the GNU form of the target and
13432 # simply add this to the front of the binary name. This is rather simple,
13433 # but it should work under most circumstances.
13435 # The default tools are to use the same as the host, but only if the
13436 # host and target CPU are the same. With GCC this is normally enough.
13440 aros_shared_ld
="$aros_host_ld"
13442 aros_target_mkdep
="$aros_host_mkdep"
13444 # The default tools executables to be linked to.
13445 if test "$rescomp" != ""; then
13446 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13447 set dummy
${kernel_tool_prefix}$rescomp; 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_aros_kernel_rescomp+:} false
; then :
13451 $as_echo_n "(cached) " >&6
13453 case $aros_kernel_rescomp in
13455 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # 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_aros_kernel_rescomp
="$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 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13477 if test -n "$aros_kernel_rescomp"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13479 $as_echo "$aros_kernel_rescomp" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13487 if test "$aros_kernel_rescomp" = ""; then
13490 if test "$aros_kernel_rescomp" = "no"; then
13493 if test "$req_avail" = "no"; then
13494 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13498 # Set up the sources for the symlink farm
13499 if test "$crosstools" = "yes"; then
13500 crosstools_target
=tools-crosstools
13503 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13504 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13506 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13507 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13508 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13509 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13510 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13511 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13512 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13514 # aros_cc_pre is a variable that is added to the front of the compiler name
13515 # in the generated aros-gcc shell script. We need this to enable the cache
13516 # to work across cleaned builds. Also, support DISTCC using the correct
13517 # environment variable.
13520 if test "x${DISTCC}" != "x" ; then
13521 if test "x${CCACHE}" != "x" ; then
13522 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13524 aros_cc_pre
="${DISTCC} "
13527 if test "x${CCACHE}" != "x" ; then
13528 aros_cc_pre
="${CCACHE} "
13532 aros_target_nostdinc_cflags
=-nostdinc
13534 aros_target_nostartup_ldflags
=-nostartfiles
13536 aros_target_nix_ldflags
=-nix
13538 aros_target_detach_ldflags
=-detach
13540 aros_target_nostdlib_ldflags
=-nostdlib
13545 if test "$aros_target_toolchain" != "yes"; then
13546 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13547 if test "$GCC" = "yes"; then
13548 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13551 # We do not know which c compiler version we are going to build and what we need to know
13552 # here is different for different versions so this will be set later during the
13553 # build of crosstools.
13554 if test "$aros_toolchain" = "gnu" ; then
13555 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13556 elif test "$aros_toolchain" = "llvm" ; then
13557 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13559 aros_target_cc_path
=@aros_target_cc_path@
13561 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13562 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13563 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13564 aros_target_as
="${prefix}${toolchain_as}"
13565 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13566 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13567 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13568 aros_target_objdump
="${prefix}${toolchain_objdump}"
13569 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13570 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13571 aros_target_strip
="${prefix}${toolchain_strip}"
13572 aros_plain_nm
="${prefix}${toolchain_nm}"
13573 aros_plain_ar
="${prefix}${toolchain_ar}"
13575 # Check whether --enable-includes was given.
13576 if test "${enable_includes+set}" = set; then :
13577 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13579 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13583 if test "$aros_kernel_includes" = ""; then
13584 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13585 aros_kernel_includes
="-isystem $aros_target_incl"
13589 if test "$aros_kernel_includes" != "" ; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13591 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13592 if test "$aros_kernel_cc_includes" = "" ; then
13593 # Try to guess where the directory is.
13594 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13595 if test -d $aros_kernel_cc_includes; then
13596 # Check if there is also an include-fixed directory and add it
13597 # to kernel compiler's include path as it may contain some of
13598 # the headers we need.
13599 if test -d "$aros_kernel_cc_includes"-fixed; then
13600 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13602 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13603 case ${host_cpu} in
13605 host_cpu_glibc
=i386
13608 host_cpu_glibc
=${host_cpu}
13611 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13612 aros_kernel_cc_includes
+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13615 # The directory doesn't exist, we need to do some more work.
13616 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13618 # These are the headers we're looking for.
13619 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13620 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13624 for h
in $headers; do
13625 # Which other headers are needed by each of the above?
13626 deps
=$
(echo "#include <$h>" | \
13627 $aros_kernel_cc -E -M - 2>/dev
/null | \
13628 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13630 # Copy all the needed headers to a directory beneath gendir.
13633 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13634 sed -n "s,^.*/include\(/.*\),\1,p")
13635 ! test -d $dir && mkdir
-p $dir
13636 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13642 $as_echo "$aros_kernel_cc_includes" >&6; }
13643 # Adding -nostdinc to kernel includes as they are always used together.
13644 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13647 if test "$crosstools" != "yes"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13649 $as_echo_n "checking for the target compiler's include path... " >&6; }
13650 if test "$aros_target_cc_includes" = "" ; then
13651 #try to guess where the directory is
13652 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13653 if ! test -d $aros_target_cc_includes; then
13654 #the directory doesn't exist, we need to do some more work
13655 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13657 #these are the headers we're looking for
13658 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13659 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13663 for h
in $headers; do
13664 #which other headers each of the above headers needs?
13665 deps
=$
(echo "#include <$h>" | \
13666 $orig_target_cc -E -M - 2>/dev
/null | \
13667 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13669 #copy all the needed headers to a directory beneath gendir
13672 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13673 sed -n "s,^.*/include\(/.*\),\1,p")
13674 ! test -d $dir && mkdir
-p $dir
13675 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13681 $as_echo "$aros_target_cc_includes" >&6; }
13683 # We do not know which c compiler version we are going to build and what we need to know
13684 # here is different for different versions so this will be set later during the
13685 # build of crosstools.
13686 aros_target_cc_includes
=@aros_target_cc_includes@
13690 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13691 # On GCC >= 4.0 -iquote should be used
13695 save_cflags
="$CFLAGS"
13697 kernel_cflags_iquote
=$host_cflags_iquote
13698 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13699 if test "x-$cross_compiling" = "x-yes"; then
13700 CC
="$aros_kernel_cc"
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13702 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13703 if test "x-$crosstools" != "x-yes"; then
13704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13715 if ac_fn_c_try_compile
"$LINENO"; then :
13716 use_no_stack_protector
="yes"
13718 use_no_stack_protector
="no"
13720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13722 # we do know it is supported for the smallest version of gcc we are going to build
13723 # we assume it's also supported by later versions
13724 use_no_stack_protector
=yes
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13727 $as_echo "$use_no_stack_protector" >&6; }
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13729 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13730 if test "x-$crosstools" != "x-yes"; then
13731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13742 if ac_fn_c_try_compile
"$LINENO"; then :
13747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13749 # we do know it is supported for the smallest version of gcc we are going to build
13750 # we assume it's also supported by later versions
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13754 $as_echo "$has_iquote" >&6; }
13755 if test "x-$has_iquote" = "x-yes" ; then
13756 kernel_cflags_iquote
=-iquote
13757 kernel_cflags_iquote_end
=
13759 kernel_cflags_iquote
=-I
13760 kernel_cflags_iquote_end
=-I-
13763 if test "x-$use_no_stack_protector" = "x-yes" ; then
13764 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13767 #-----------------------------------------------------------------------------
13769 # Check if we can explicitly choose older version of symbol hashing
13771 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13772 CC
="$aros_kernel_cc"
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13774 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13786 if ac_fn_c_try_link
"$LINENO"; then :
13787 use_hash_style
="yes"
13789 use_hash_style
="no"
13791 rm -f core conftest.err conftest.
$ac_objext \
13792 conftest
$ac_exeext conftest.
$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13794 $as_echo "$use_hash_style" >&6; }
13795 if test "x-$use_hash_style" = "x-yes" ; then
13796 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13799 CFLAGS
="$save_cflags"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13808 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13810 # Check whether --with-resolution was given.
13811 if test "${with_resolution+set}" = set; then :
13812 withval
=$with_resolution; resolution
=$withval
13817 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13818 if test "$resolution" = "yes" ; then
13821 if test "$resolution" = "no" ; then
13824 if test "$resolution" != "none" ; then
13825 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
13826 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
13827 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13830 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13831 aros_cv_nominal_width
=$aros_nominal_width
13832 aros_cv_nominal_height
=$aros_nominal_height
13833 aros_cv_nominal_depth
=$aros_nominal_depth
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13836 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13838 # Check whether --with-serial-debug was given.
13839 if test "${with_serial_debug+set}" = set; then :
13840 withval
=$with_serial_debug; serial_debug
=$withval
13845 if test "$aros_serial_debug" = 0 ; then
13846 serial_debug_forced
=""
13847 if test "$serial_debug" = "yes" ; then
13850 if test "$serial_debug" = "no" ; then
13851 serial_debug
="none"
13854 serial_debug_forced
="(forced)"
13855 serial_debug
=$aros_serial_debug
13857 if test "$serial_debug" != "none" ; then
13858 aros_serial_debug
=$serial_debug
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13860 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13867 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13868 # Check whether --enable-palm_debug_hack was given.
13869 if test "${enable_palm_debug_hack+set}" = set; then :
13870 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13872 palm_debug_hack
="no"
13875 if test "$palm_debug_hack" = "yes" ; then
13876 aros_palm_debug_hack
="1"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13879 $as_echo "$palm_debug_hack" >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13882 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13883 # Check whether --enable-usb30_code was given.
13884 if test "${enable_usb30_code+set}" = set; then :
13885 enableval
=$enable_usb30_code; usb30_code
="yes"
13890 if test "$usb30_code" = "yes" ; then
13891 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13892 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13895 $as_echo "$usb30_code" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13898 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13899 # Check whether --enable-nesting_supervisor was given.
13900 if test "${enable_nesting_supervisor+set}" = set; then :
13901 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13903 nesting_supervisor
="no"
13906 if test "$nesting_supervisor" = "yes" ; then
13907 aros_nesting_supervisor
="1"
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13910 $as_echo "$nesting_supervisor" >&6; }
13912 if test "$aros_enable_mmu" = "" ; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13914 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13915 # Check whether --enable-mmu was given.
13916 if test "${enable_mmu+set}" = set; then :
13917 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13919 aros_enable_mmu
="yes"
13922 if test "$aros_enable_mmu" = "" ; then
13923 aros_enable_mmu
="yes"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13926 $as_echo "$aros_enable_mmu" >&6; }
13928 if test "$aros_enable_mmu" = "no" ; then
13929 aros_enable_mmu
="0"
13931 aros_enable_mmu
="1"
13935 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13937 if test "x-$need_dlopen" != "x-no" ; then
13940 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13941 if test "x$ac_cv_func_dlopen" = xyes
; then :
13947 if test "x-$have_dl" = "x-no" ; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13950 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13951 $as_echo_n "(cached) " >&6
13953 ac_check_lib_save_LIBS
=$LIBS
13955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13973 if ac_fn_c_try_link
"$LINENO"; then :
13974 ac_cv_lib_dl_dlopen
=yes
13976 ac_cv_lib_dl_dlopen
=no
13978 rm -f core conftest.err conftest.
$ac_objext \
13979 conftest
$ac_exeext conftest.
$ac_ext
13980 LIBS
=$ac_check_lib_save_LIBS
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13984 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13986 aros_host_ldflags
="$aros_host_ldflags -ldl"
13992 if test "x-$have_dl" = "x-no" ; then
13993 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
13999 # Check whether --enable-x11_hidd was given.
14000 if test "${enable_x11_hidd+set}" = set; then :
14001 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14003 x11_hidd
="$need_x11"
14006 case "x-$x11_hidd" in
14007 x-yes|x-no|x-auto
) ;;
14008 *) x11_hidd
="$need_x11" ;;
14013 if test "x-$x11_hidd" != "x-no" ; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14016 $as_echo_n "checking for X... " >&6; }
14019 # Check whether --with-x was given.
14020 if test "${with_x+set}" = set; then :
14024 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14025 if test "x$with_x" = xno
; then
14026 # The user explicitly disabled X.
14029 case $x_includes,$x_libraries in #(
14030 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14031 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14032 $as_echo_n "(cached) " >&6
14034 # One or both of the vars are not set, and there is no cached value.
14035 ac_x_includes
=no ac_x_libraries
=no
14036 rm -f -r conftest.dir
14037 if mkdir conftest.dir
; then
14039 cat >Imakefile
<<'_ACEOF'
14041 @echo incroot='${INCROOT}'
14043 @echo usrlibdir='${USRLIBDIR}'
14045 @echo libdir='${LIBDIR}'
14047 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14049 for ac_var
in incroot usrlibdir libdir
; do
14050 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14052 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14053 for ac_extension
in a so sl dylib la dll
; do
14054 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14055 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14056 ac_im_usrlibdir
=$ac_im_libdir; break
14059 # Screen out bogus values from the imake configuration. They are
14060 # bogus both because they are the default anyway, and because
14061 # using them would break gcc on systems where it needs fixed includes.
14062 case $ac_im_incroot in
14063 /usr
/include
) ac_x_includes
= ;;
14064 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14066 case $ac_im_usrlibdir in
14067 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14068 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14072 rm -f -r conftest.dir
14075 # Standard set of common directories for X headers.
14076 # Check X11 before X11Rn because it is often a symlink to the current release.
14090 /usr/local/X11/include
14091 /usr/local/X11R7/include
14092 /usr/local/X11R6/include
14093 /usr/local/X11R5/include
14094 /usr/local/X11R4/include
14096 /usr/local/include/X11
14097 /usr/local/include/X11R7
14098 /usr/local/include/X11R6
14099 /usr/local/include/X11R5
14100 /usr/local/include/X11R4
14104 /usr/XFree86/include/X11
14108 /usr/unsupported/include
14109 /usr/athena/include
14110 /usr/local/x11r5/include
14111 /usr/lpp/Xamples/include
14113 /usr/openwin/include
14114 /usr/openwin/share/include'
14116 if test "$ac_x_includes" = no
; then
14117 # Guess where to find include files, by looking for Xlib.h.
14118 # First, try using that file with no special directory specified.
14119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <X11/Xlib.h>
14123 if ac_fn_c_try_cpp
"$LINENO"; then :
14124 # We can compile using X headers with no special include directory.
14127 for ac_dir
in $ac_x_header_dirs; do
14128 if test -r "$ac_dir/X11/Xlib.h"; then
14129 ac_x_includes
=$ac_dir
14134 rm -f conftest.err conftest.i conftest.
$ac_ext
14135 fi # $ac_x_includes = no
14137 if test "$ac_x_libraries" = no
; then
14138 # Check for the libraries.
14139 # See if we find them without any special options.
14140 # Don't add to $LIBS permanently.
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <X11/Xlib.h>
14154 if ac_fn_c_try_link
"$LINENO"; then :
14156 # We can link X programs with no special library path.
14160 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14162 # Don't even attempt the hair of trying to link an X program!
14163 for ac_extension
in a so sl dylib la dll
; do
14164 if test -r "$ac_dir/libX11.$ac_extension"; then
14165 ac_x_libraries
=$ac_dir
14171 rm -f core conftest.err conftest.
$ac_objext \
14172 conftest
$ac_exeext conftest.
$ac_ext
14173 fi # $ac_x_libraries = no
14175 case $ac_x_includes,$ac_x_libraries in #(
14176 no
,* |
*,no |
*\'*)
14177 # Didn't find X, or a directory has "'" in its name.
14178 ac_cv_have_x
="have_x=no";; #(
14180 # Record where we found X for the cache.
14181 ac_cv_have_x
="have_x=yes\
14182 ac_x_includes='$ac_x_includes'\
14183 ac_x_libraries='$ac_x_libraries'"
14189 eval "$ac_cv_have_x"
14192 if test "$have_x" != yes; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14194 $as_echo "$have_x" >&6; }
14197 # If each of the values was on the command line, it overrides each guess.
14198 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14199 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14200 # Update the cache value to reflect the command line values.
14201 ac_cv_have_x
="have_x=yes\
14202 ac_x_includes='$x_includes'\
14203 ac_x_libraries='$x_libraries'"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14205 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14208 if test "$no_x" = yes; then
14209 # Not all programs may use this symbol, but it does not hurt to define it.
14211 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14213 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
14215 if test -n "$x_includes"; then
14216 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14219 # It would also be nice to do this for all -L options, not just this one.
14220 if test -n "$x_libraries"; then
14221 X_LIBS
="$X_LIBS -L$x_libraries"
14222 # For Solaris; some versions of Sun CC require a space after -R and
14223 # others require no space. Words are not sufficient . . . .
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14225 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
14226 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
14227 ac_xsave_c_werror_flag
=$ac_c_werror_flag
14228 ac_c_werror_flag
=yes
14229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14240 if ac_fn_c_try_link
"$LINENO"; then :
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14243 X_LIBS
="$X_LIBS -R$x_libraries"
14245 LIBS
="$ac_xsave_LIBS -R $x_libraries"
14246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14257 if ac_fn_c_try_link
"$LINENO"; then :
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14259 $as_echo "yes" >&6; }
14260 X_LIBS
="$X_LIBS -R $x_libraries"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14263 $as_echo "neither works" >&6; }
14265 rm -f core conftest.err conftest.
$ac_objext \
14266 conftest
$ac_exeext conftest.
$ac_ext
14268 rm -f core conftest.err conftest.
$ac_objext \
14269 conftest
$ac_exeext conftest.
$ac_ext
14270 ac_c_werror_flag
=$ac_xsave_c_werror_flag
14271 LIBS
=$ac_xsave_LIBS
14274 # Check for system-dependent libraries X programs must link with.
14275 # Do this before checking for the system-independent R6 libraries
14276 # (-lICE), since we may need -lsocket or whatever for X linking.
14278 if test "$ISC" = yes; then
14279 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
14281 # Martyn Johnson says this is needed for Ultrix, if the X
14282 # libraries were built with DECnet support. And Karl Berry says
14283 # the Alpha needs dnet_stub (dnet does not exist).
14284 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
14285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14294 char XOpenDisplay ();
14298 return XOpenDisplay ();
14303 if ac_fn_c_try_link
"$LINENO"; then :
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14307 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14308 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
14309 $as_echo_n "(cached) " >&6
14311 ac_check_lib_save_LIBS
=$LIBS
14312 LIBS
="-ldnet $LIBS"
14313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14326 return dnet_ntoa ();
14331 if ac_fn_c_try_link
"$LINENO"; then :
14332 ac_cv_lib_dnet_dnet_ntoa
=yes
14334 ac_cv_lib_dnet_dnet_ntoa
=no
14336 rm -f core conftest.err conftest.
$ac_objext \
14337 conftest
$ac_exeext conftest.
$ac_ext
14338 LIBS
=$ac_check_lib_save_LIBS
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14341 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14342 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
14343 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
14346 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14348 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14349 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
14350 $as_echo_n "(cached) " >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14353 LIBS
="-ldnet_stub $LIBS"
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14367 return dnet_ntoa ();
14372 if ac_fn_c_try_link
"$LINENO"; then :
14373 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
14375 ac_cv_lib_dnet_stub_dnet_ntoa
=no
14377 rm -f core conftest.err conftest.
$ac_objext \
14378 conftest
$ac_exeext conftest.
$ac_ext
14379 LIBS
=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14382 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14383 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
14384 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
14389 rm -f core conftest.err conftest.
$ac_objext \
14390 conftest
$ac_exeext conftest.
$ac_ext
14391 LIBS
="$ac_xsave_LIBS"
14393 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14394 # to get the SysV transport functions.
14395 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14397 # The nsl library prevents programs from opening the X display
14398 # on Irix 5.2, according to T.E. Dickey.
14399 # The functions gethostbyname, getservbyname, and inet_addr are
14400 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14401 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14402 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14406 if test $ac_cv_func_gethostbyname = no
; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14408 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14409 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
14410 $as_echo_n "(cached) " >&6
14412 ac_check_lib_save_LIBS
=$LIBS
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14423 char gethostbyname ();
14427 return gethostbyname ();
14432 if ac_fn_c_try_link
"$LINENO"; then :
14433 ac_cv_lib_nsl_gethostbyname
=yes
14435 ac_cv_lib_nsl_gethostbyname
=no
14437 rm -f core conftest.err conftest.
$ac_objext \
14438 conftest
$ac_exeext conftest.
$ac_ext
14439 LIBS
=$ac_check_lib_save_LIBS
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14442 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14443 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
14444 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
14447 if test $ac_cv_lib_nsl_gethostbyname = no
; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14449 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14450 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
14451 $as_echo_n "(cached) " >&6
14453 ac_check_lib_save_LIBS
=$LIBS
14455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14464 char gethostbyname ();
14468 return gethostbyname ();
14473 if ac_fn_c_try_link
"$LINENO"; then :
14474 ac_cv_lib_bsd_gethostbyname
=yes
14476 ac_cv_lib_bsd_gethostbyname
=no
14478 rm -f core conftest.err conftest.
$ac_objext \
14479 conftest
$ac_exeext conftest.
$ac_ext
14480 LIBS
=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14483 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14484 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
14485 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
14491 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14492 # socket/setsockopt and other routines are undefined under SCO ODT
14493 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14494 # on later versions), says Simon Leinen: it contains gethostby*
14495 # variants that don't use the name server (or something). -lsocket
14496 # must be given before -lnsl if both are needed. We assume that
14497 # if connect needs -lnsl, so does gethostbyname.
14498 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14499 if test "x$ac_cv_func_connect" = xyes
; then :
14503 if test $ac_cv_func_connect = no
; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14505 $as_echo_n "checking for connect in -lsocket... " >&6; }
14506 if ${ac_cv_lib_socket_connect+:} false
; then :
14507 $as_echo_n "(cached) " >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14510 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
14511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14529 if ac_fn_c_try_link
"$LINENO"; then :
14530 ac_cv_lib_socket_connect
=yes
14532 ac_cv_lib_socket_connect
=no
14534 rm -f core conftest.err conftest.
$ac_objext \
14535 conftest
$ac_exeext conftest.
$ac_ext
14536 LIBS
=$ac_check_lib_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14539 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14540 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
14541 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
14546 # Guillermo Gomez says -lposix is necessary on A/UX.
14547 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
14548 if test "x$ac_cv_func_remove" = xyes
; then :
14552 if test $ac_cv_func_remove = no
; then
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14554 $as_echo_n "checking for remove in -lposix... " >&6; }
14555 if ${ac_cv_lib_posix_remove+:} false
; then :
14556 $as_echo_n "(cached) " >&6
14558 ac_check_lib_save_LIBS
=$LIBS
14559 LIBS
="-lposix $LIBS"
14560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14578 if ac_fn_c_try_link
"$LINENO"; then :
14579 ac_cv_lib_posix_remove
=yes
14581 ac_cv_lib_posix_remove
=no
14583 rm -f core conftest.err conftest.
$ac_objext \
14584 conftest
$ac_exeext conftest.
$ac_ext
14585 LIBS
=$ac_check_lib_save_LIBS
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14588 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14589 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
14590 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
14595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14596 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
14597 if test "x$ac_cv_func_shmat" = xyes
; then :
14601 if test $ac_cv_func_shmat = no
; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14603 $as_echo_n "checking for shmat in -lipc... " >&6; }
14604 if ${ac_cv_lib_ipc_shmat+:} false
; then :
14605 $as_echo_n "(cached) " >&6
14607 ac_check_lib_save_LIBS
=$LIBS
14609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14627 if ac_fn_c_try_link
"$LINENO"; then :
14628 ac_cv_lib_ipc_shmat
=yes
14630 ac_cv_lib_ipc_shmat
=no
14632 rm -f core conftest.err conftest.
$ac_objext \
14633 conftest
$ac_exeext conftest.
$ac_ext
14634 LIBS
=$ac_check_lib_save_LIBS
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14637 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14638 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
14639 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
14645 # Check for libraries that X11R6 Xt/Xaw programs need.
14646 ac_save_LDFLAGS
=$LDFLAGS
14647 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
14648 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14649 # check for ICE first), but we must link in the order -lSM -lICE or
14650 # we get undefined symbols. So assume we have SM if we have ICE.
14651 # These have to be linked with before -lX11, unlike the other
14652 # libraries we check for below, so use a different variable.
14653 # John Interrante, Karl Berry
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14655 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14656 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
14657 $as_echo_n "(cached) " >&6
14659 ac_check_lib_save_LIBS
=$LIBS
14660 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
14661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14664 /* Override any GCC internal prototype to avoid an error.
14665 Use char because int might match the return type of a GCC
14666 builtin and then its argument prototype would still apply. */
14670 char IceConnectionNumber ();
14674 return IceConnectionNumber ();
14679 if ac_fn_c_try_link
"$LINENO"; then :
14680 ac_cv_lib_ICE_IceConnectionNumber
=yes
14682 ac_cv_lib_ICE_IceConnectionNumber
=no
14684 rm -f core conftest.err conftest.
$ac_objext \
14685 conftest
$ac_exeext conftest.
$ac_ext
14686 LIBS
=$ac_check_lib_save_LIBS
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
14691 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
14694 LDFLAGS
=$ac_save_LDFLAGS
14699 if test "x-$no_x" = "x-yes" ; then
14701 if test "x-$x11_hidd" != "x-auto" ; then
14702 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14709 aros_host_x11_cflags
="$X_CFLAGS"
14710 aros_host_x11_ldflags
="$X_LIBS -lX11"
14712 # Check whether --enable-x11_shm was given.
14713 if test "${enable_x11_shm+set}" = set; then :
14714 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14716 x11_hidd_shm
="auto"
14719 case "x-$x11_hidd_shm" in
14720 x-yes|x-no|x-auto
) ;;
14721 *) x11_hidd_shm
="auto" ;;
14726 if test "x-$x11_hidd_shm" != "x-no" ; then
14728 for ac_header
in sys
/ipc.h
14730 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14732 cat >>confdefs.h
<<_ACEOF
14733 #define HAVE_SYS_IPC_H 1
14740 for ac_header
in sys
/shm.h
14742 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14743 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14744 cat >>confdefs.h
<<_ACEOF
14745 #define HAVE_SYS_SHM_H 1
14753 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14755 save_cflags
="$CFLAGS"
14756 save_ldflags
="$LDFLAGS"
14757 CFLAGS
="$CFLAGS $X_CFLAGS"
14758 LDFLAGS
="$LDFLAGS $X_LIBS"
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14760 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14761 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14762 $as_echo_n "(cached) " >&6
14764 ac_check_lib_save_LIBS
=$LIBS
14765 LIBS
="-lXext $LIBS"
14766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14769 /* Override any GCC internal prototype to avoid an error.
14770 Use char because int might match the return type of a GCC
14771 builtin and then its argument prototype would still apply. */
14775 char XShmQueryExtension ();
14779 return XShmQueryExtension ();
14784 if ac_fn_c_try_link
"$LINENO"; then :
14785 ac_cv_lib_Xext_XShmQueryExtension
=yes
14787 ac_cv_lib_Xext_XShmQueryExtension
=no
14789 rm -f core conftest.err conftest.
$ac_objext \
14790 conftest
$ac_exeext conftest.
$ac_ext
14791 LIBS
=$ac_check_lib_save_LIBS
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14794 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14795 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14799 CFLAGS
="$save_cflags"
14800 LDFLAGS
="$save_ldflags"
14804 if test "x-$have_xshm" = "x-yes" ; then
14805 DO_XSHM_SUPPORT
="1"
14806 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14807 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14809 DO_XSHM_SUPPORT
="0"
14813 # Check whether --enable-x11_vidmode was given.
14814 if test "${enable_x11_vidmode+set}" = set; then :
14815 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14817 x11_hidd_vidmode
="auto"
14820 case "x-$x11_hidd_vidmode" in
14821 x-yes|x-no|x-auto
) ;;
14822 *) x11_hidd_vidmode
="auto" ;;
14827 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14829 save_cflags
="$CFLAGS"
14830 save_ldflags
="$LDFLAGS"
14831 CFLAGS
="$CFLAGS $X_CFLAGS"
14832 LDFLAGS
="$LDFLAGS $X_LIBS"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14834 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14835 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14836 $as_echo_n "(cached) " >&6
14838 ac_check_lib_save_LIBS
=$LIBS
14839 LIBS
="-lXxf86vm $LIBS"
14840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14843 /* Override any GCC internal prototype to avoid an error.
14844 Use char because int might match the return type of a GCC
14845 builtin and then its argument prototype would still apply. */
14849 char XF86VidModeQueryExtension ();
14853 return XF86VidModeQueryExtension ();
14858 if ac_fn_c_try_link
"$LINENO"; then :
14859 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14861 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14863 rm -f core conftest.err conftest.
$ac_objext \
14864 conftest
$ac_exeext conftest.
$ac_ext
14865 LIBS
=$ac_check_lib_save_LIBS
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14868 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14869 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14873 CFLAGS
="$save_cflags"
14874 LDFLAGS
="$save_ldflags"
14877 if test "x-$have_vidmode" = "x-yes" ; then
14878 DO_VIDMODE_SUPPORT
="1"
14879 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14880 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14882 DO_VIDMODE_SUPPORT
="0"
14887 # Check whether --enable-sdl_hidd was given.
14888 if test "${enable_sdl_hidd+set}" = set; then :
14889 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14894 case "x-$sdl_hidd" in
14895 x-yes|x-no|x-auto
) ;;
14896 *) sdl_hidd
="auto" ;;
14899 if test "x-$sdl_hidd" != "x-no" ; then
14903 # Check whether --with-sdl-prefix was given.
14904 if test "${with_sdl_prefix+set}" = set; then :
14905 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14911 # Check whether --with-sdl-exec-prefix was given.
14912 if test "${with_sdl_exec_prefix+set}" = set; then :
14913 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14918 # Check whether --enable-sdltest was given.
14919 if test "${enable_sdltest+set}" = set; then :
14920 enableval
=$enable_sdltest;
14926 if test x
$sdl_exec_prefix != x
; then
14927 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14928 if test x
${SDL_CONFIG+set} != xset
; then
14929 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14932 if test x
$sdl_prefix != x
; then
14933 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14934 if test x
${SDL_CONFIG+set} != xset
; then
14935 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14939 as_save_PATH
="$PATH"
14940 if test "x$prefix" != xNONE
; then
14941 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14943 # Extract the first word of "sdl-config", so it can be a program name with args.
14944 set dummy sdl-config
; ac_word
=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946 $as_echo_n "checking for $ac_word... " >&6; }
14947 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14948 $as_echo_n "(cached) " >&6
14950 case $SDL_CONFIG in
14952 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14956 for as_dir
in $PATH
14959 test -z "$as_dir" && as_dir
=.
14960 for ac_exec_ext
in '' $ac_executable_extensions; do
14961 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14970 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14974 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14975 if test -n "$SDL_CONFIG"; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14977 $as_echo "$SDL_CONFIG" >&6; }
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980 $as_echo "no" >&6; }
14984 PATH
="$as_save_PATH"
14985 min_sdl_version
=$SDL_VERSION
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14987 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14989 if test "$SDL_CONFIG" = "no" ; then
14992 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14993 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14995 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14997 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14999 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15001 if test "x$enable_sdltest" = "xyes" ; then
15002 ac_save_CFLAGS
="$CFLAGS"
15003 ac_save_CXXFLAGS
="$CXXFLAGS"
15004 ac_save_LIBS
="$LIBS"
15005 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15006 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15007 LIBS
="$LIBS $SDL_LIBS"
15009 if test "$cross_compiling" = yes; then :
15010 echo $ac_n "cross compiling; assumed OK... $ac_c"
15012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15016 #include <stdlib.h>
15017 #include <string.h>
15021 my_strdup (char *str)
15027 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15028 strcpy (new_str, str);
15036 int main (int argc, char *argv[])
15038 int major, minor, micro;
15041 /* This hangs on some systems (?)
15042 system ("touch conf.sdltest");
15044 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15046 /* HP/UX 9 (%@#!) writes to sscanf strings */
15047 tmp_version = my_strdup("$min_sdl_version");
15048 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15049 printf("%s, bad version string\n", "$min_sdl_version");
15053 if (($sdl_major_version > major) ||
15054 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15055 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15061 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15062 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15063 printf("*** best to upgrade to the required version.\n");
15064 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15065 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15066 printf("*** config.cache before re-running configure\n");
15073 if ac_fn_c_try_run
"$LINENO"; then :
15078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15082 CFLAGS
="$ac_save_CFLAGS"
15083 CXXFLAGS
="$ac_save_CXXFLAGS"
15084 LIBS
="$ac_save_LIBS"
15087 if test "x$no_sdl" = x
; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15089 $as_echo "yes" >&6; }
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15094 if test "$SDL_CONFIG" = "no" ; then
15095 echo "*** The sdl-config script installed by SDL could not be found"
15096 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15097 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15098 echo "*** full path to sdl-config."
15100 if test -f conf.sdltest
; then
15103 echo "*** Could not run SDL test program, checking why..."
15104 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15105 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15106 LIBS
="$LIBS $SDL_LIBS"
15107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15113 int main(int argc, char *argv[])
15116 #define main K_and_R_C_main
15126 if ac_fn_c_try_link
"$LINENO"; then :
15127 echo "*** The test program compiled, but did not run. This usually means"
15128 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15129 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15130 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15131 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15132 echo "*** is required on your system"
15134 echo "*** If you have an old version installed, it is best to remove it, although"
15135 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15137 echo "*** The test program failed to compile or link. See the file config.log for the"
15138 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15139 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15140 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15142 rm -f core conftest.err conftest.
$ac_objext \
15143 conftest
$ac_exeext conftest.
$ac_ext
15144 CFLAGS
="$ac_save_CFLAGS"
15145 CXXFLAGS
="$ac_save_CXXFLAGS"
15146 LIBS
="$ac_save_LIBS"
15158 if test "x-$have_sdl" != "x-yes" ; then
15160 if test "x-$sdl_hidd" != "x-auto" ; then
15161 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15166 aros_host_sdl_cflags
=$SDL_CFLAGS
15167 aros_host_sdl_libs
=$SDL_LIBS
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15175 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15176 # Check whether --enable-dbus was given.
15177 if test "${enable_dbus+set}" = set; then :
15178 enableval
=$enable_dbus; dbus
="yes"
15183 if test "$dbus" = "yes" ; then
15185 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15186 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15187 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15188 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15193 $as_echo "$dbus" >&6; }
15195 if test "$use_kernel_cc_wrapper" = "yes" ; then
15196 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15213 # Compatability with other Amiga-like operation systems
15317 # Hosted Graphics Related
15335 # Native version related
15339 # Palm native version related
15342 # Unix/Hosted version related
15348 # Apple iOS related
15353 # ARM default GCC target related
15381 # Collect-aros stuff: "-ius" to ignore undefined symbols
15384 # C compiler related
15389 #ObjC compiler related
15398 case "$aros_flavour" in
15399 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15400 aros_flavour
="emulation" ;;
15401 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15402 aros_flavour
="emulation" ;;
15403 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15404 aros_flavour
="standalone";;
15405 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15406 aros_flavour
="standalone";;
15407 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15408 aros_flavour
="native" ;;
15409 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15410 aros_flavour
="native" ;;
15411 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15412 aros_flavour
="linklib" ;;
15413 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15414 aros_flavour
="palmnative" ;;
15415 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15416 aros_flavour
="mac68knative" ;;
15417 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15418 aros_flavour
="ppcnative" ;;
15421 if test ! -d ${aros_inc_dir} ; then
15422 ${MKDIR} ${aros_inc_dir}
15424 if test ! -d ${aros_geninc_dir} ; then
15425 ${MKDIR} ${aros_geninc_dir}
15427 if test ! -d ${aros_hostcfg_dir} ; then
15428 ${MKDIR} ${aros_hostcfg_dir}
15430 if test ! -d ${aros_targetcfg_dir} ; then
15431 ${MKDIR} ${aros_targetcfg_dir}
15433 if test ! -d ${aros_tools_dir} ; then
15434 ${MKDIR} ${aros_tools_dir}
15436 if test ! -d ${aros_scripts_dir} ; then
15437 ${MKDIR} ${aros_scripts_dir}
15440 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15443 # Generic build tools (metamake, etc)
15444 ac_config_commands
="$ac_config_commands genmf-executable-support"
15446 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 ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15450 ac_config_commands
="$ac_config_commands binutils-support"
15452 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
15455 # Bare Elf support script and spec
15456 if test "${use_kernel_cc_wrapper}" = "yes"; then
15457 ac_config_commands
="$ac_config_commands elf-compiler-support"
15459 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"
15463 # Host compiler support scripts and spec
15464 if test "${aros_target_toolchain}" = "no"; then
15465 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15467 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"
15472 if test "$aros_target_variant" == "android"; then
15473 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15478 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15481 cat >confcache
<<\_ACEOF
15482 # This file is a shell script that caches the results of configure
15483 # tests run on this system so they can be shared between configure
15484 # scripts and configure runs, see configure's option --config-cache.
15485 # It is not useful on other systems. If it contains results you don't
15486 # want to keep, you may remove or edit it.
15488 # config.status only pays attention to the cache file if you give it
15489 # the --recheck option to rerun configure.
15491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15493 # following values.
15497 # The following way of writing the cache mishandles newlines in values,
15498 # but we know of no workaround that is simple, portable, and efficient.
15499 # So, we kill variables containing newlines.
15500 # Ultrix sh set writes to stderr and can't be redirected directly,
15501 # and sets the high bit in the cache file unless we assign to the vars.
15503 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15504 eval ac_val
=\$
$ac_var
15508 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15512 _ | IFS | as_nl
) ;; #(
15513 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15514 *) { eval $ac_var=; unset $ac_var;} ;;
15520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15521 *${as_nl}ac_space
=\
*)
15522 # `set' does not quote correctly, so add quotes: double-quote
15523 # substitution turns \\\\ into \\, and sed turns \\ into \.
15526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15529 # `set' quotes correctly as required by POSIX, so do not add quotes.
15530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15543 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15544 if test -w "$cache_file"; then
15545 if test "x$cache_file" != "x/dev/null"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15547 $as_echo "$as_me: updating cache $cache_file" >&6;}
15548 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15549 cat confcache
>"$cache_file"
15551 case $cache_file in #(
15553 mv -f confcache
"$cache_file"$$
&&
15554 mv -f "$cache_file"$$
"$cache_file" ;; #(
15556 mv -f confcache
"$cache_file" ;;
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15567 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15568 # Let make expand exec_prefix.
15569 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15571 DEFS
=-DHAVE_CONFIG_H
15576 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15577 # 1. Remove the extension, and $U if already installed.
15578 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15579 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15581 # will be set to the directory where LIBOBJS objects are built.
15582 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15583 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15585 LIBOBJS
=$ac_libobjs
15587 LTLIBOBJS
=$ac_ltlibobjs
15591 : "${CONFIG_STATUS=./config.status}"
15593 ac_clean_files_save
=$ac_clean_files
15594 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15600 # Generated by $as_me.
15601 # Run this file to recreate the current configuration.
15602 # Compiler output produced by configure, useful for debugging
15603 # configure, is in config.log if it exists.
15606 ac_cs_recheck=false
15609 SHELL=\${CONFIG_SHELL-$SHELL}
15612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15613 ## -------------------- ##
15614 ## M4sh Initialization. ##
15615 ## -------------------- ##
15617 # Be more Bourne compatible
15618 DUALCASE
=1; export DUALCASE
# for MKS sh
15619 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15623 # is contrary to our usage. Disable this feature.
15624 alias -g '${1+"$@"}'='"$@"'
15625 setopt NO_GLOB_SUBST
15627 case `(set -o) 2>/dev/null` in #(
15639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15640 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15643 # Prefer a ksh shell builtin over an external printf program on Solaris,
15644 # but without wasting forks for bash or zsh.
15645 if test -z "$BASH_VERSION$ZSH_VERSION" \
15646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15647 as_echo='print
-r --'
15648 as_echo_n='print
-rn --'
15649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15650 as_echo='printf %s
\n'
15651 as_echo_n='printf %s
'
15653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15654 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15655 as_echo_n='/usr
/ucb
/echo -n'
15657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15658 as_echo_n_body='eval
15662 expr "X$arg" : "X\\(.*\\)$as_nl";
15663 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15665 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15667 export as_echo_n_body
15668 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15670 export as_echo_body
15671 as_echo='sh
-c $as_echo_body as_echo
'
15674 # The user is always right.
15675 if test "${PATH_SEPARATOR+set}" != set; then
15677 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15678 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15685 # We need space, tab and new line, in precisely that order. Quoting is
15686 # there to prevent editors from complaining about space-tab.
15687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15688 # splitting by setting IFS to empty value.)
15691 # Find who we are. Look in the path if we contain no directory separator.
15694 *[\\/]* ) as_myself=$0 ;;
15695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696 for as_dir in $PATH
15699 test -z "$as_dir" && as_dir=.
15700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15706 # We did not find ourselves, most probably we were run as `sh COMMAND'
15707 # in which case we are not to be found in the path.
15708 if test "x$as_myself" = x
; then
15711 if test ! -f "$as_myself"; then
15712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15716 # Unset variables that we do not need and which cause bugs (e.g. in
15717 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15718 # suppresses any "Segmentation fault" message there. '((' could
15719 # trigger a bug in pdksh 5.2.14.
15720 for as_var
in BASH_ENV ENV MAIL MAILPATH
15721 do eval test x\
${$as_var+set} = xset \
15722 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15735 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15738 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15739 # ----------------------------------------
15740 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15741 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15742 # script with STATUS, using 1 if that was 0.
15745 as_status
=$1; test $as_status -eq 0 && as_status
=1
15747 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15750 $as_echo "$as_me: error: $2" >&2
15751 as_fn_exit
$as_status
15755 # as_fn_set_status STATUS
15756 # -----------------------
15757 # Set $? to STATUS, without forking.
15758 as_fn_set_status
()
15761 } # as_fn_set_status
15763 # as_fn_exit STATUS
15764 # -----------------
15765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15769 as_fn_set_status
$1
15775 # Portably unset VAR.
15778 { eval $1=; unset $1;}
15780 as_unset
=as_fn_unset
15781 # as_fn_append VAR VALUE
15782 # ----------------------
15783 # Append the text in VALUE to the end of the definition contained in VAR. Take
15784 # advantage of any shell optimizations that allow amortized linear growth over
15785 # repeated appends, instead of the typical quadratic growth present in naive
15787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15788 eval 'as_fn_append ()
15799 # as_fn_arith ARG...
15800 # ------------------
15801 # Perform arithmetic evaluation on the ARGs, and store the result in the
15802 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15803 # must be portable across $(()) and expr.
15804 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15805 eval 'as_fn_arith ()
15812 as_val
=`expr "$@" || test $? -eq 1`
15817 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15818 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15824 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15825 as_basename
=basename
15830 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15836 as_me
=`$as_basename -- "$0" ||
15837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15838 X"$0" : 'X\(//\)$' \| \
15839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15841 sed '/^.*\/\([^/][^/]*\)\/*$/{
15855 # Avoid depending upon Character Ranges.
15856 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15857 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15858 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15859 as_cr_digits
='0123456789'
15860 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15862 ECHO_C
= ECHO_N
= ECHO_T
=
15863 case `echo -n x` in #(((((
15865 case `echo 'xy\c'` in
15866 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15868 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15875 rm -f conf$$ conf$$.exe conf$$.
file
15876 if test -d conf$$.dir
; then
15877 rm -f conf$$.dir
/conf$$.
file
15880 mkdir conf$$.dir
2>/dev
/null
15882 if (echo >conf$$.
file) 2>/dev
/null
; then
15883 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15885 # ... but there are two gotchas:
15886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15888 # In both cases, we have to default to `cp -pR'.
15889 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15891 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15899 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15900 rmdir conf$$.dir
2>/dev
/null
15905 # Create "$as_dir" as a directory, including parents if necessary.
15910 -*) as_dir
=.
/$as_dir;;
15912 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15916 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15917 *) as_qdir
=$as_dir;;
15919 as_dirs
="'$as_qdir' $as_dirs"
15920 as_dir
=`$as_dirname -- "$as_dir" ||
15921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15922 X"$as_dir" : 'X\(//\)[^/]' \| \
15923 X"$as_dir" : 'X\(//\)$' \| \
15924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15925 $as_echo X"$as_dir" |
15926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930 /^X\(\/\/\)[^/].*/{
15943 test -d "$as_dir" && break
15945 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15946 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15950 if mkdir
-p .
2>/dev
/null
; then
15951 as_mkdir_p
='mkdir -p "$as_dir"'
15953 test -d .
/-p && rmdir .
/-p
15958 # as_fn_executable_p FILE
15959 # -----------------------
15960 # Test if FILE is an executable regular file.
15961 as_fn_executable_p
()
15963 test -f "$1" && test -x "$1"
15964 } # as_fn_executable_p
15965 as_test_x
='test -x'
15966 as_executable_p
=as_fn_executable_p
15968 # Sed expression to map a string onto a valid CPP name.
15969 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15971 # Sed expression to map a string onto a valid variable name.
15972 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15976 ## ----------------------------------- ##
15977 ## Main body of $CONFIG_STATUS script. ##
15978 ## ----------------------------------- ##
15980 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15983 # Save the log message, to keep $0 and so on meaningful, and to
15984 # report actual input values of CONFIG_FILES etc. instead of their
15985 # values after options handling.
15987 This file was extended by $as_me, which was
15988 generated by GNU Autoconf 2.69. Invocation command line was
15990 CONFIG_FILES = $CONFIG_FILES
15991 CONFIG_HEADERS = $CONFIG_HEADERS
15992 CONFIG_LINKS = $CONFIG_LINKS
15993 CONFIG_COMMANDS = $CONFIG_COMMANDS
15996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16001 case $ac_config_files in *"
16002 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16005 case $ac_config_headers in *"
16006 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16011 # Files that config.status was made for.
16012 config_files="$ac_config_files"
16013 config_headers="$ac_config_headers"
16014 config_commands="$ac_config_commands"
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16020 \`$as_me' instantiates files and other configuration actions
16021 from templates according to the current configuration. Unless the files
16022 and actions are specified as TAGs, all are instantiated by default.
16024 Usage: $0 [OPTION]... [TAG]...
16026 -h, --help print this help, then exit
16027 -V, --version print version number and configuration settings, then exit
16028 --config print configuration, then exit
16029 -q, --quiet, --silent
16030 do not print progress messages
16031 -d, --debug don't remove temporary files
16032 --recheck update $as_me by reconfiguring in the same conditions
16033 --file=FILE[:TEMPLATE]
16034 instantiate the configuration file FILE
16035 --header=FILE[:TEMPLATE]
16036 instantiate the configuration header FILE
16038 Configuration files:
16041 Configuration headers:
16044 Configuration commands:
16047 Report bugs to the package provider."
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16054 configured by $0, generated by GNU Autoconf 2.69,
16055 with options \\"\$ac_cs_config\\"
16057 Copyright (C) 2012 Free Software Foundation, Inc.
16058 This config.status script is free software; the Free Software Foundation
16059 gives unlimited permission to copy, distribute and modify it."
16063 test -n "\$AWK" || AWK=awk
16066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16067 # The default lists apply if the user does not specify any file.
16073 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16074 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16078 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16090 # Handling of the options.
16091 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16093 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16094 $as_echo "$ac_cs_version"; exit ;;
16095 --config |
--confi |
--conf |
--con |
--co |
--c )
16096 $as_echo "$ac_cs_config"; exit ;;
16097 --debug |
--debu |
--deb |
--de |
--d |
-d )
16099 --file |
--fil |
--fi |
--f )
16102 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16103 '') as_fn_error $?
"missing file argument" ;;
16105 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16106 ac_need_defaults
=false
;;
16107 --header |
--heade |
--head |
--hea )
16110 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16112 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16113 ac_need_defaults
=false
;;
16115 # Conflict between --help and --header
16116 as_fn_error $?
"ambiguous option: \`$1'
16117 Try \`$0 --help' for more information.";;
16118 --help |
--hel |
-h )
16119 $as_echo "$ac_cs_usage"; exit ;;
16120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16121 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16124 # This is an error.
16125 -*) as_fn_error $?
"unrecognized option: \`$1'
16126 Try \`$0 --help' for more information." ;;
16128 *) as_fn_append ac_config_targets
" $1"
16129 ac_need_defaults
=false
;;
16135 ac_configure_extra_args
=
16137 if $ac_cs_silent; then
16139 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 if \$ac_cs_recheck; then
16145 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16147 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16148 CONFIG_SHELL='$SHELL'
16149 export CONFIG_SHELL
16154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16159 ## Running $as_me. ##
16165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 aros_tools_dir=${aros_tools_dir}
16172 aros_host_exe_suffix=${aros_host_exe_suffix}
16173 aros_tools_dir=${aros_tools_dir}
16174 aros_target_cpu=${aros_target_cpu}
16175 aros_target_arch=${aros_target_arch}
16176 aros_target_suffix=${aros_target_suffix}
16177 orig_target_nm=${orig_target_nm}
16178 orig_target_as=${orig_target_as}
16179 orig_target_ar=${orig_target_ar}
16180 orig_target_ranlib=${orig_target_ranlib}
16181 orig_target_objdump=${orig_target_objdump}
16182 orig_target_objcopy=${orig_target_objcopy}
16183 orig_target_strip=${orig_target_strip}
16184 aros_kernel_ld=${aros_kernel_ld}
16188 aros_host_exe_suffix=${aros_host_exe_suffix}
16189 aros_tools_dir=${aros_tools_dir}
16190 aros_target_cpu=${aros_target_cpu}
16191 aros_target_arch=${aros_target_arch}
16192 aros_target_suffix=${aros_target_suffix}
16193 aros_kernel_ld=${aros_kernel_ld}
16197 aros_host_exe_suffix=${aros_host_exe_suffix}
16198 aros_tools_dir=${aros_tools_dir}
16199 aros_target_cpu=${aros_target_cpu}
16200 aros_target_arch=${aros_target_arch}
16201 aros_target_suffix=${aros_target_suffix}
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16209 # Handling of arguments.
16210 for ac_config_target
in $ac_config_targets
16212 case $ac_config_target in
16213 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16214 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16215 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16216 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16217 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16218 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16219 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16220 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16221 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16222 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16223 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16224 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16225 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16226 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16227 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
16228 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16229 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16230 "${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" ;;
16231 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16232 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16233 "${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" ;;
16234 "${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" ;;
16235 "${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" ;;
16236 "${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" ;;
16237 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16239 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16244 # If the user did not use the arguments to specify the items to instantiate,
16245 # then the envvar interface is used. Set only those that are not.
16246 # We use the long form for the default assignment because of an extremely
16247 # bizarre bug on SunOS 4.1.3.
16248 if $ac_need_defaults; then
16249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16254 # Have a temporary directory for convenience. Make it in the build tree
16255 # simply because there is no reason against having it here, and in addition,
16256 # creating and moving files from /tmp can sometimes cause problems.
16257 # Hook for its removal unless debugging.
16258 # Note that there is a small window in which the directory will not be cleaned:
16259 # after its creation but before its name has been assigned to `$tmp'.
16263 trap 'exit_status=$?
16264 : "${ac_tmp:=$tmp}"
16265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16267 trap 'as_fn_exit 1' 1 2 13 15
16269 # Create a (secure) tmp directory for tmp files.
16272 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16276 tmp
=.
/conf$$
-$RANDOM
16277 (umask 077 && mkdir
"$tmp")
16278 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16281 # Set up the scripts for CONFIG_FILES section.
16282 # No need to generate them if there are no CONFIG_FILES.
16283 # This happens for instance with `./config.status config.h'.
16284 if test -n "$CONFIG_FILES"; then
16287 ac_cr
=`echo X | tr X '\015'`
16288 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16289 # But we know of no other shell where ac_cr would be empty at this
16290 # point, so we can use a bashism as a fallback.
16291 if test "x$ac_cr" = x
; then
16292 eval ac_cr
=\$
\'\\r
\'
16294 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16295 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16298 ac_cs_awk_cr
=$ac_cr
16301 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16309 } >conf$$subs.sh ||
16310 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16311 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16313 for ac_last_try in false false false false false :; do
16314 . ./conf$$subs.sh ||
16315 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16317 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16318 if test $ac_delim_n = $ac_delim_num; then
16320 elif $ac_last_try; then
16321 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16323 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16326 rm -f conf$$subs.sh
16328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16329 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16333 s/^/S["/; s
/!.
*/"]=/
16343 s/\(.\{148\}\)..*/\1/
16345 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16350 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16357 s/\(.\{148\}\)..*/\1/
16359 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16363 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16368 ' <conf$$subs.awk | sed '
16373 ' >>$CONFIG_STATUS || ac_write_fail=1
16374 rm -f conf$$subs.awk
16375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16378 for (key in S) S_is_set[key] = 1
16384 nfields = split(line, field, "@
")
16386 len = length(field[1])
16387 for (i = 2; i < nfields; i++) {
16389 keylen = length(key)
16390 if (S_is_set[key]) {
16392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16393 len += length(value) + length(field[++i])
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16406 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16409 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16410 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16413 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16414 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16415 # trailing colons and then remove the whole line if VPATH becomes empty
16416 # (actually we leave an empty line to preserve line numbers).
16417 if test "x
$srcdir" = x.; then
16418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 fi # test -n "$CONFIG_FILES"
16439 # Set up the scripts for CONFIG_HEADERS section.
16440 # No need to generate them if there are no CONFIG_HEADERS.
16441 # This happens for instance with `./config.status Makefile'.
16442 if test -n "$CONFIG_HEADERS"; then
16443 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16447 # Transform confdefs.h into an awk script `defines.awk', embedded as
16448 # here-document in config.status, that substitutes the proper values into
16449 # config.h.in to produce config.h.
16451 # Create a delimiter string that does not exist in confdefs.h, to ease
16452 # handling of long lines.
16454 for ac_last_try in false false :; do
16455 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16456 if test -z "$ac_tt"; then
16458 elif $ac_last_try; then
16459 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16461 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16465 # For the awk script, D is an array of macro values keyed by name,
16466 # likewise P contains macro parameters if any. Preserve backslash
16467 # newline sequences.
16469 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16471 s/.\{148\}/&'"$ac_delim"'/g
16474 s/^[ ]*#[ ]*define[ ][ ]*/ /
16481 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16483 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16487 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16488 D["\
1"]=" \
3\\\\\\n
"\\/p
16490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16495 s/.\{148\}/&'"$ac_delim"'/g
16500 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16503 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16505 ' <confdefs.h | sed '
16506 s/'"$ac_delim"'/"\\\
16507 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 for (key in D) D_is_set[key] = 1
16513 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16515 split(line, arg, " ")
16516 if (arg[1] == "#") {
16520 defundef
= substr
(arg
[1], 2)
16523 split(mac1
, mac2
, "(") #)
16525 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16526 if (D_is_set
[macro
]) {
16527 # Preserve the white space surrounding the "#".
16528 print prefix
"define", macro P
[macro
] D
[macro
]
16531 # Replace #undef with comments. This is necessary, for example,
16532 # in the case of _POSIX_SOURCE, which is predefined and required
16533 # on some systems where configure will not decide to define it.
16534 if (defundef
== "undef") {
16535 print
"/*", prefix defundef
, macro
, "*/"
16543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16544 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16545 fi # test -n "$CONFIG_HEADERS"
16548 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16553 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16555 case $ac_mode$ac_tag in
16557 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16558 :[FH
]-) ac_tag
=-:-;;
16559 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16576 -) ac_f
="$ac_tmp/stdin";;
16577 *) # Look for the file first in the build tree, then in the source tree
16578 # (if the path is not absolute). The absolute path cannot be DOS-style,
16579 # because $ac_f cannot contain `:'.
16583 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16585 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16587 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16588 as_fn_append ac_file_inputs
" '$ac_f'"
16591 # Let's still pretend it is `configure' which instantiates (i.e., don't
16592 # use $as_me), people would be surprised to read:
16593 # /* config.h. Generated by config.status. */
16594 configure_input
='Generated from '`
16595 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16597 if test x
"$ac_file" != x-
; then
16598 configure_input
="$ac_file. $configure_input"
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16600 $as_echo "$as_me: creating $ac_file" >&6;}
16602 # Neutralize special characters interpreted by sed in replacement strings.
16603 case $configure_input in #(
16604 *\
&* |
*\|
* |
*\\* )
16605 ac_sed_conf_input
=`$as_echo "$configure_input" |
16606 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16607 *) ac_sed_conf_input
=$configure_input;;
16611 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16612 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16617 ac_dir
=`$as_dirname -- "$ac_file" ||
16618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16619 X"$ac_file" : 'X\(//\)[^/]' \| \
16620 X"$ac_file" : 'X\(//\)$' \| \
16621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16622 $as_echo X"$ac_file" |
16623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16627 /^X\(\/\/\)[^/].*/{
16640 as_dir
="$ac_dir"; as_fn_mkdir_p
16644 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16646 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16647 # A ".." for each directory in $ac_dir_suffix.
16648 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16649 case $ac_top_builddir_sub in
16650 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16651 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16654 ac_abs_top_builddir
=$ac_pwd
16655 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16656 # for backward compatibility:
16657 ac_top_builddir
=$ac_top_build_prefix
16660 .
) # We are building in place.
16662 ac_top_srcdir
=$ac_top_builddir_sub
16663 ac_abs_top_srcdir
=$ac_pwd ;;
16664 [\\/]* | ?
:[\\/]* ) # Absolute name.
16665 ac_srcdir
=$srcdir$ac_dir_suffix;
16666 ac_top_srcdir
=$srcdir
16667 ac_abs_top_srcdir
=$srcdir ;;
16668 *) # Relative name.
16669 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16670 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16671 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16673 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16685 # If the template does not know about datarootdir, expand it.
16686 # FIXME: This hack should be removed a few years after 2.60.
16687 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16699 *datarootdir
*) ac_datarootdir_seen
=yes;;
16700 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 ac_datarootdir_hack='
16706 s&@datadir@&$datadir&g
16707 s&@docdir@&$docdir&g
16708 s&@infodir@&$infodir&g
16709 s&@localedir@&$localedir&g
16710 s&@mandir@&$mandir&g
16711 s&\\\${datarootdir}&$datarootdir&g' ;;
16715 # Neutralize VPATH when `$srcdir' = `.'.
16716 # Shell code in configure.ac might set extrasub.
16717 # FIXME: do we really want to maintain this feature?
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719 ac_sed_extra="$ac_vpsub
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16724 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16725 s|@configure_input@|
$ac_sed_conf_input|
;t t
16726 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16727 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16728 s
&@srcdir@
&$ac_srcdir&;t t
16729 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16730 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16731 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16732 s
&@builddir@
&$ac_builddir&;t t
16733 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16734 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16735 $ac_datarootdir_hack
16737 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16738 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16741 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16743 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16745 which seems to be undefined. Please make sure it is defined" >&5
16746 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16747 which seems to be undefined. Please make sure it is defined" >&2;}
16749 rm -f "$ac_tmp/stdin"
16751 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16752 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16760 if test x"$ac_file" != x-; then
16762 $as_echo "/* $configure_input */" \
16763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16764 } >"$ac_tmp/config.h" \
16765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16766 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16768 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16771 mv "$ac_tmp/config.h" "$ac_file" \
16772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16775 $as_echo "/* $configure_input */" \
16776 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16777 || as_fn_error $? "could not create -" "$LINENO" 5
16781 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16782 $as_echo "$as_me: executing $ac_file commands" >&6;}
16787 case $ac_file$ac_mode in
16788 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16789 "binutils-support":C)
16790 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16792 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16794 chmod a+x ${prefix2}-ld
16796 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16797 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16798 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16799 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16800 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16801 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16802 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16804 "elf-compiler-support":C)
16805 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16807 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16809 chmod a+x ${prefix2}-gcc
16811 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16813 "host-compiler-wrapper-support":C)
16814 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16816 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16818 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16827 ac_clean_files=$ac_clean_files_save
16829 test $ac_write_fail = 0 ||
16830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16833 # configure is writing to config.log, and then calls config.status.
16834 # config.status does its own redirection, appending to config.log.
16835 # Unfortunately, on DOS this fails, as config.log is still kept open
16836 # by configure, so config.status won't be able to
write to it
; its
16837 # output is simply discarded. So we exec the FD to /dev/null,
16838 # effectively closing config.log, so it can be properly (re)opened and
16839 # appended to by config.status. When coming back to configure, we
16840 # need to make the FD available again.
16841 if test "$no_create" != yes; then
16843 ac_config_status_args
=
16844 test "$silent" = yes &&
16845 ac_config_status_args
="$ac_config_status_args --quiet"
16847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16850 # would make configure fail if this is the last instruction.
16851 $ac_cs_success || as_fn_exit
1
16853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16860 #XXX compatability...
16861 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16863 if test -n "$aros_shared_cflags" ; then
16864 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16865 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg