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_libdirs
658 aros_host_x11_includes
668 aros_cflags_format_security
669 aros_cflags_strict_overflow
670 aros_cflags_enum_compare
671 aros_cflags_array_bounds
672 aros_cflags_unused_but_set_variable
673 crosstools_cxx_target
676 aros_optimization_cflags
677 aros_target_strip_flags
684 aros_kernel_objcflags
706 aros_target_cc_includes
722 aros_target_bootloader
742 aros_amigaos_compliance
748 aros_target_toolchain
761 aros_cflags_iquote_end
763 kernel_cflags_iquote_end
765 host_cflags_iquote_end
767 aros_target_nostdlib_ldflags
768 aros_target_detach_ldflags
769 aros_target_nix_ldflags
770 aros_target_nostartup_ldflags
771 aros_target_nostdinc_cflags
889 program_transform_name
902 enable_option_checking
907 with_kernel_gcc_version
910 enable_target_variant
917 enable_amigaos_compliance
918 with_kernel_toolchain_prefix
919 with_elf_toolchain_prefix
922 with_aros_toolchain_install
923 with_binutils_version
937 enable_palm_debug_hack
939 enable_nesting_supervisor
951 ac_precious_vars
='build_alias
967 # Initialize some variables set by options.
969 ac_init_version
=false
970 ac_unrecognized_opts
=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
981 program_transform_name
=s
,x
,x
,
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir
='${exec_prefix}/bin'
996 sbindir
='${exec_prefix}/sbin'
997 libexecdir
='${exec_prefix}/libexec'
998 datarootdir
='${prefix}/share'
999 datadir
='${datarootdir}'
1000 sysconfdir
='${prefix}/etc'
1001 sharedstatedir
='${prefix}/com'
1002 localstatedir
='${prefix}/var'
1003 includedir
='${prefix}/include'
1004 oldincludedir
='/usr/include'
1005 docdir
='${datarootdir}/doc/${PACKAGE}'
1006 infodir
='${datarootdir}/info'
1011 libdir
='${exec_prefix}/lib'
1012 localedir
='${datarootdir}/locale'
1013 mandir
='${datarootdir}/man'
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\
$ac_option
1027 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 # Accept the important Cygnus configure options, so we can diagnose typos.
1034 case $ac_dashdash$ac_option in
1038 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1040 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1041 bindir
=$ac_optarg ;;
1043 -build |
--build |
--buil |
--bui |
--bu)
1044 ac_prev
=build_alias
;;
1045 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1046 build_alias
=$ac_optarg ;;
1048 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1049 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1050 ac_prev
=cache_file
;;
1051 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1052 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1053 cache_file
=$ac_optarg ;;
1055 --config-cache |
-C)
1056 cache_file
=config.cache
;;
1058 -datadir |
--datadir |
--datadi |
--datad)
1060 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1061 datadir
=$ac_optarg ;;
1063 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1064 |
--dataroo |
--dataro |
--datar)
1065 ac_prev
=datarootdir
;;
1066 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1067 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1068 datarootdir
=$ac_optarg ;;
1070 -disable-* |
--disable-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error $?
"invalid feature name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_
$ac_useropt"
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval enable_
$ac_useropt=no
;;
1086 -docdir |
--docdir |
--docdi |
--doc |
--do)
1088 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1089 docdir
=$ac_optarg ;;
1091 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1093 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1094 dvidir
=$ac_optarg ;;
1096 -enable-* |
--enable-*)
1097 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1100 as_fn_error $?
"invalid feature name: $ac_useropt"
1101 ac_useropt_orig
=$ac_useropt
1102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_
$ac_useropt"
1107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep
=', ';;
1110 eval enable_
$ac_useropt=\
$ac_optarg ;;
1112 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1113 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1114 |
--exec |
--exe |
--ex)
1115 ac_prev
=exec_prefix
;;
1116 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1117 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1118 |
--exec=* |
--exe=* |
--ex=*)
1119 exec_prefix
=$ac_optarg ;;
1121 -gas |
--gas |
--ga |
--g)
1122 # Obsolete; use --with-gas.
1125 -help |
--help |
--hel |
--he |
-h)
1126 ac_init_help
=long
;;
1127 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1128 ac_init_help
=recursive
;;
1129 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1130 ac_init_help
=short
;;
1132 -host |
--host |
--hos |
--ho)
1133 ac_prev
=host_alias
;;
1134 -host=* |
--host=* |
--hos=* |
--ho=*)
1135 host_alias
=$ac_optarg ;;
1137 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1139 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1141 htmldir
=$ac_optarg ;;
1143 -includedir |
--includedir |
--includedi |
--included |
--include \
1144 |
--includ |
--inclu |
--incl |
--inc)
1145 ac_prev
=includedir
;;
1146 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1147 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1148 includedir
=$ac_optarg ;;
1150 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1152 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1153 infodir
=$ac_optarg ;;
1155 -libdir |
--libdir |
--libdi |
--libd)
1157 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1158 libdir
=$ac_optarg ;;
1160 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1161 |
--libexe |
--libex |
--libe)
1162 ac_prev
=libexecdir
;;
1163 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1164 |
--libexe=* |
--libex=* |
--libe=*)
1165 libexecdir
=$ac_optarg ;;
1167 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1168 ac_prev
=localedir
;;
1169 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1170 localedir
=$ac_optarg ;;
1172 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1173 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1174 ac_prev
=localstatedir
;;
1175 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1176 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1177 localstatedir
=$ac_optarg ;;
1179 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1181 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1182 mandir
=$ac_optarg ;;
1184 -nfp |
--nfp |
--nf)
1185 # Obsolete; use --without-fp.
1188 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1189 |
--no-cr |
--no-c |
-n)
1192 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1193 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1196 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1197 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1198 |
--oldin |
--oldi |
--old |
--ol |
--o)
1199 ac_prev
=oldincludedir
;;
1200 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1201 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1202 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1203 oldincludedir
=$ac_optarg ;;
1205 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1207 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1208 prefix
=$ac_optarg ;;
1210 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1211 |
--program-pre |
--program-pr |
--program-p)
1212 ac_prev
=program_prefix
;;
1213 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1214 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1215 program_prefix
=$ac_optarg ;;
1217 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1218 |
--program-suf |
--program-su |
--program-s)
1219 ac_prev
=program_suffix
;;
1220 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1221 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1222 program_suffix
=$ac_optarg ;;
1224 -program-transform-name |
--program-transform-name \
1225 |
--program-transform-nam |
--program-transform-na \
1226 |
--program-transform-n |
--program-transform- \
1227 |
--program-transform |
--program-transfor \
1228 |
--program-transfo |
--program-transf \
1229 |
--program-trans |
--program-tran \
1230 |
--progr-tra |
--program-tr |
--program-t)
1231 ac_prev
=program_transform_name
;;
1232 -program-transform-name=* |
--program-transform-name=* \
1233 |
--program-transform-nam=* |
--program-transform-na=* \
1234 |
--program-transform-n=* |
--program-transform-=* \
1235 |
--program-transform=* |
--program-transfor=* \
1236 |
--program-transfo=* |
--program-transf=* \
1237 |
--program-trans=* |
--program-tran=* \
1238 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1239 program_transform_name
=$ac_optarg ;;
1241 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1243 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1244 pdfdir
=$ac_optarg ;;
1246 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1248 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1251 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1252 |
-silent |
--silent |
--silen |
--sile |
--sil)
1255 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1257 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1259 sbindir
=$ac_optarg ;;
1261 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1262 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1263 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1265 ac_prev
=sharedstatedir
;;
1266 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1267 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1268 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1270 sharedstatedir
=$ac_optarg ;;
1272 -site |
--site |
--sit)
1274 -site=* |
--site=* |
--sit=*)
1277 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1279 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1280 srcdir
=$ac_optarg ;;
1282 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1283 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1284 ac_prev
=sysconfdir
;;
1285 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1286 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1287 sysconfdir
=$ac_optarg ;;
1289 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1290 ac_prev
=target_alias
;;
1291 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1292 target_alias
=$ac_optarg ;;
1294 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1297 -version |
--version |
--versio |
--versi |
--vers |
-V)
1298 ac_init_version
=: ;;
1301 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1304 as_fn_error $?
"invalid package name: $ac_useropt"
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval with_
$ac_useropt=\
$ac_optarg ;;
1316 -without-* |
--without-*)
1317 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1320 as_fn_error $?
"invalid package name: $ac_useropt"
1321 ac_useropt_orig
=$ac_useropt
1322 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1327 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep
=', ';;
1330 eval with_
$ac_useropt=no
;;
1333 # Obsolete; use --with-x.
1336 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1337 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1338 ac_prev
=x_includes
;;
1339 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1340 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1341 x_includes
=$ac_optarg ;;
1343 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1344 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1345 ac_prev
=x_libraries
;;
1346 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1347 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1348 x_libraries
=$ac_optarg ;;
1350 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1351 Try \`$0 --help' for more information"
1355 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1356 # Reject names that are not valid shell variable names.
1357 case $ac_envvar in #(
1358 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1359 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1361 eval $ac_envvar=\
$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1375 if test -n "$ac_prev"; then
1376 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1377 as_fn_error $?
"missing argument to $ac_option"
1380 if test -n "$ac_unrecognized_opts"; then
1381 case $enable_option_checking in
1383 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 # Check all directory arguments for consistency.
1389 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1394 eval ac_val
=\$
$ac_var
1395 # Remove trailing slashes.
1398 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\
$ac_val;;
1401 # Be sure to have absolute directory names.
1403 [\\/$
]* | ?
:[\\/]* ) continue;;
1404 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1406 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1409 # There might be people who depend on the old broken behavior: `$host'
1410 # used to hold the argument of --host etc.
1411 # FIXME: To remove some day.
1414 target
=$target_alias
1416 # FIXME: To remove some day.
1417 if test "x$host_alias" != x
; then
1418 if test "x$build_alias" = x
; then
1419 cross_compiling
=maybe
1420 elif test "x$build_alias" != "x$host_alias"; then
1426 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1428 test "$silent" = yes && exec 6>/dev
/null
1431 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1432 ac_ls_di
=`ls -di .` &&
1433 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1434 as_fn_error $?
"working directory cannot be determined"
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 as_fn_error $?
"pwd does not report name of working directory"
1439 # Find the source files, if location was not specified.
1440 if test -z "$srcdir"; then
1441 ac_srcdir_defaulted
=yes
1442 # Try the directory containing this script, then the parent directory.
1443 ac_confdir
=`$as_dirname -- "$as_myself" ||
1444 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445 X"$as_myself" : 'X\(//\)[^/]' \| \
1446 X"$as_myself" : 'X\(//\)$' \| \
1447 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1448 $as_echo X"$as_myself" |
1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1471 ac_srcdir_defaulted
=no
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1475 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1477 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1481 # When building in place, set srcdir=.
1482 if test "$ac_abs_confdir" = "$ac_pwd"; then
1485 # Remove unnecessary trailing slashes from srcdir.
1486 # Double slashes in file names in object file debugging info
1487 # mess up M-x gdb in Emacs.
1489 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 for ac_var
in $ac_precious_vars; do
1492 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1493 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1494 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1495 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1499 # Report the --help message.
1501 if test "$ac_init_help" = "long"; then
1502 # Omit some internal or obsolete options to make the list less imposing.
1503 # This message is too long to be a string in the A/UX 3.1 sh.
1505 \`configure' configures this package to adapt to many kinds of systems.
1507 Usage: $0 [OPTION]... [VAR=VALUE]...
1509 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1510 VAR=VALUE. See below for descriptions of some of the useful variables.
1512 Defaults for the options are specified in brackets.
1515 -h, --help display this help and exit
1516 --help=short display options specific to this package
1517 --help=recursive display the short help of all the included packages
1518 -V, --version display version information and exit
1519 -q, --quiet, --silent do not print \`checking ...' messages
1520 --cache-file=FILE cache test results in FILE [disabled]
1521 -C, --config-cache alias for \`--cache-file=config.cache'
1522 -n, --no-create do not create output files
1523 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525 Installation directories:
1526 --prefix=PREFIX install architecture-independent files in PREFIX
1527 [$ac_default_prefix]
1528 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1531 By default, \`make install' will install all the files in
1532 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1533 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1534 for instance \`--prefix=\$HOME'.
1536 For better control, use the options below.
1538 Fine tuning of the installation directories:
1539 --bindir=DIR user executables [EPREFIX/bin]
1540 --sbindir=DIR system admin executables [EPREFIX/sbin]
1541 --libexecdir=DIR program executables [EPREFIX/libexec]
1542 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1543 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1544 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1545 --libdir=DIR object code libraries [EPREFIX/lib]
1546 --includedir=DIR C header files [PREFIX/include]
1547 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1548 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1549 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1550 --infodir=DIR info documentation [DATAROOTDIR/info]
1551 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1552 --mandir=DIR man documentation [DATAROOTDIR/man]
1553 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1554 --htmldir=DIR html documentation [DOCDIR]
1555 --dvidir=DIR dvi documentation [DOCDIR]
1556 --pdfdir=DIR pdf documentation [DOCDIR]
1557 --psdir=DIR ps documentation [DOCDIR]
1563 --x-includes=DIR X include files are
in DIR
1564 --x-libraries=DIR X library files are
in DIR
1567 --build=BUILD configure
for building on BUILD
[guessed
]
1568 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1572 if test -n "$ac_init_help"; then
1577 --disable-option-checking ignore unrecognized
--enable/--with options
1578 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1579 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1580 --enable-build-type=TYPE
1581 Select the build
type. Available types are
:
1582 personal
, nightly
, snapshot
, milestone
, release. Do
1583 NOT use this option unless you know what you are
1584 doing
! (default
=personal
)
1585 --enable-debug=list Enable different types of debug. Commas or
1586 whitespaces can be used to separate the items
in the
1587 list. Available types of debug are
: all
, none
,
1588 messages
, stack
, mungwall
, modules
, symbols. If no
1589 list is provided
then "all" is assumed.
1591 --enable-distcc Use distcc as a front end to the compiler
1593 --enable-ccache Use ccache as a front end to the compiler
1595 --enable-target-variant=NAME
1596 Enable a specific target variant
(default
=none
)
1597 --enable-amigaos-compliance=VERSION
1598 Enforce userspace AmigaOS compliance to a specific
1599 KickStart version
(default
=none
).
1600 --disable-crosstools Do not build cross-compiler toolchain
1601 --enable-objc Enable Objectve-C support
(default
=no
)
1602 --enable-java Enable Java support
(default
=no
)
1603 --enable-includes=dir Alternative system include directory
1604 --enable-palm-debug-hack
1605 Enable palm debug output hack
in palm native
1607 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1608 --enable-nesting-supervisor
1609 Enable nesting supervisor support
in unix
1611 --disable-mmu Disable MMU support
(default
=enabled
)
1612 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1613 --enable-x11-shm use X11 shared memory
(default
=auto
)
1614 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1615 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1616 --disable-sdltest Do not try to compile and run a
test SDL program
1617 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1620 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1621 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1622 --with-kernel-gcc-version=VERSION
1623 Use gcc-VERSION
for building bootstrap
1624 --with-optimization=FLAGS
1625 Use optimization flags FLAGS
(default
=-O2).
1626 --with-paranoia=FLAGS CC flags to
enable paranoia
1627 --with-xcode=PATH Specify XCode path
for iOS targets
1628 (default
=/Developer
).
1629 --with-sdk-version=VERSION
1630 Use iOS SDK version VERSION
(default
=4.1).
1631 --with-sdk=PATH Specify Android SDK path
1632 (default
=$default_android_sdk).
1633 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1634 --with-sdk-version=LEVEL
1635 Use Android SDK
for API LEVEL
(default
=12).
1636 --with-ndk-version=LEVEL
1637 Use Android NDK
for API LEVEL
(default
=9).
1638 --with-apk-version=(release|debug
)
1639 Which version of AROSBootstrap.apk to compile.
1640 Release version needs key
for signing
, debug version
1641 will only run
in emulator.
(default
=release
)
1642 --with-kernel-toolchain-prefix=...
1643 Specify crosscompile toolchain prefix
for kernel
1645 --with-elf-toolchain-prefix=...
1646 Specify crosscompile toolchain prefix to wrap
for
1648 --with-aros-toolchain=PREFIX
1649 Specify prebuilt AROS toolchain. Use
yes for default
1651 --with-aros-toolchain-install=DIR
1652 Where to
install or search
for cross tools binaries
1653 --with-binutils-version=VERSION
1654 Use binutils-VERSION
for building AROS
1655 --with-gcc-version=VERSION
1656 Use gcc-VERSION
for building AROS
1657 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1658 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1659 --with-float=<spec
> Specify floating point ABI
1660 (default
=$gcc_default_float_abi).
1661 --with-portssources=DIR Where to download sourcecode
for external ports
1662 --with-bootloader=NAME Use a specific bootloader
1663 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1664 --with-theme=NAME Use a specific GUI Theme
1665 --with-resolution=XRESxYRESxDEPTH
1666 Default resolution of the initial WorkbenchScreen
1667 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1668 --with-x use the X Window System
1669 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1670 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1672 Some influential environment variables
:
1673 CXX C
++ compiler
command
1674 CXXFLAGS C
++ compiler flags
1675 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1676 nonstandard directory
<lib dir
>
1677 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1678 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1679 you have headers
in a nonstandard directory
<include dir
>
1680 CC C compiler
command
1681 CFLAGS C compiler flags
1683 PYTHON the Python interpreter
1684 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1686 Use these variables to override the choices made by
`configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to the package provider.
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1719 .) # We are building in place.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1753 generated by GNU Autoconf 2.69
1755 Copyright (C) 2012 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1776 *) ac_try_echo
=$ac_try;;
1778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err
; then
1783 grep -v '^ *+' conftest.err
>conftest.er1
1784 cat conftest.er1
>&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.
$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.
$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status
$ac_retval
1802 } # ac_fn_cxx_try_compile
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 rm -f conftest.
$ac_objext
1811 if { { ac_try
="$ac_compile"
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1851 *) ac_try_echo
=$ac_try;;
1853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 if test -s conftest.err
; then
1858 grep -v '^ *+' conftest.err
>conftest.er1
1859 cat conftest.er1
>&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i
&& {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status
$ac_retval
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1885 rm -f conftest.
$ac_objext conftest
$ac_exeext
1886 if { { ac_try
="$ac_link"
1888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2002 eval "$3=\$ac_header_compiler"
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_mongrel
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_link"
2021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2022 *) ac_try_echo
=$ac_try;;
2024 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2030 { { case "(($ac_try" in
2031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_try") 2>&5
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; }; }; then :
2042 $as_echo "$as_me: program exited with status $ac_status" >&5
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=$ac_status
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2071 if ac_fn_c_try_compile "$LINENO"; then :
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2086 # ----------------------------------------------------
2087 # Tries to find if the field MEMBER exists in type AGGR, after including
2088 # INCLUDES, setting cache variable VAR accordingly.
2089 ac_fn_c_check_member ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2093 $as_echo_n "checking for $2.$3... " >&6; }
2094 if eval \${$4+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2110 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2120 if (sizeof ac_aggr.$3)
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_member
2142 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2143 # ---------------------------------------------
2144 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2146 ac_fn_c_check_decl ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2150 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2152 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 #ifndef $as_decl_name
2164 (void) $as_decl_use;
2166 (void) $as_decl_name;
2174 if ac_fn_c_try_compile "$LINENO"; then :
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_decl
2188 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2189 # -------------------------------------------
2190 # Tests whether TYPE exists after having included INCLUDES, setting cache
2191 # variable VAR accordingly.
2192 ac_fn_c_check_type ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2226 if ac_fn_c_try_compile "$LINENO"; then :
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 } # ac_fn_c_check_type
2242 # ac_fn_c_check_func LINENO FUNC VAR
2243 # ----------------------------------
2244 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2245 ac_fn_c_check_func ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2257 #define $2 innocuous_$2
2259 /* System header to define __stub macros and hopefully few prototypes,
2260 which can conflict with char $2 (); below.
2261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2262 <limits.h> exists even on freestanding compilers. */
2265 # include <limits.h>
2267 # include <assert.h>
2272 /* Override any GCC internal prototype to avoid an error.
2273 Use char because int might match the return type of a GCC
2274 builtin and then its argument prototype would still apply. */
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined __stub_$2 || defined __stub___$2
2294 if ac_fn_c_try_link "$LINENO"; then :
2299 rm -f core conftest.err conftest.$ac_objext \
2300 conftest$ac_exeext conftest.$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 } # ac_fn_c_check_func
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.69. Invocation command line was
2325 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2326 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2327 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2328 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2329 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2331 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2332 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2334 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2335 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2336 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2337 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2338 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2339 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2340 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_must_keep_next=false
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2384 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402 -* ) ac_must_keep_next=true ;;
2405 as_fn_append ac_configure_args " '$ac_arg'"
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2423 $as_echo "## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##"
2427 # The following way of writing the cache mishandles newlines in values,
2429 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2430 eval ac_val=\$$ac_var
2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438 _ | IFS | as_nl) ;; #(
2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440 *) { eval $ac_var=; unset $ac_var;} ;;
2445 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
2448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 $as_echo "## ----------------- ##
2460 ## Output variables. ##
2461 ## ----------------- ##"
2463 for ac_var in $ac_subst_vars
2465 eval ac_val=\$$ac_var
2467 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 $as_echo "$ac_var='\''$ac_val'\''"
2473 if test -n "$ac_subst_files"; then
2474 $as_echo "## ------------------- ##
2475 ## File substitutions. ##
2476 ## ------------------- ##"
2478 for ac_var in $ac_subst_files
2480 eval ac_val=\$$ac_var
2482 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 $as_echo "$ac_var='\''$ac_val'\''"
2489 if test -s confdefs.h; then
2490 $as_echo "## ----------- ##
2497 test "$ac_signal" != 0 &&
2498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
2501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505 for ac_signal in 1 2 13 15; do
2506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2511 rm -f -r conftest* confdefs.h
2513 $as_echo "/* confdefs.h */" > confdefs.h
2515 # Predefined preprocessor variables.
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_NAME "$PACKAGE_NAME"
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_STRING "$PACKAGE_STRING"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_URL "$PACKAGE_URL"
2542 # Let the site file select an alternate cache file if it wants to.
2543 # Prefer an explicitly selected file to automatically selected ones.
2546 if test -n "$CONFIG_SITE"; then
2547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2553 elif test "x$prefix" != xNONE; then
2554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
2557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562 test "x$ac_site_file" = xNONE && continue
2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site
script $ac_site_file
2571 See \
`config.log' for more details" "$LINENO" 5; }
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 as_fn_append ac_header_list " stdlib.h"
2593 as_fn_append ac_header_list " unistd.h"
2594 as_fn_append ac_header_list " sys/param.h"
2595 # Check that the precious variables saved in the cache have kept the same
2597 ac_cache_corrupted=false
2598 for ac_var in $ac_precious_vars; do
2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
2603 case $ac_old_set,$ac_new_set in
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2606 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2610 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
2615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x
$ac_old_val`
2617 ac_new_val_w=`echo x
$ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2621 ac_cache_corrupted=:
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2624 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2628 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2630 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2637 *) ac_arg=$ac_var=$ac_new_val ;;
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 if $ac_cache_corrupted; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2652 ## -------------------- ##
2653 ## Main body of script. ##
2654 ## -------------------- ##
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2666 if test -f "$ac_dir/install-sh"; then
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2670 elif test -f "$ac_dir/install.sh"; then
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2674 elif test -f "$ac_dir/shtool"; then
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 if test -z "$ac_aux_dir"; then
2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2694 # Check what host we are running on.
2695 # If a target is not suggested, we use this one.
2696 # Note that what we call a target, Autoconf calls a host.
2697 # Make sure we can run config.sub.
2698 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2699 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2702 $as_echo_n "checking build system type... " >&6; }
2703 if ${ac_cv_build+:} false; then :
2704 $as_echo_n "(cached) " >&6
2706 ac_build_alias=$build_alias
2707 test "x$ac_build_alias" = x &&
2708 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2709 test "x$ac_build_alias" = x &&
2710 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2711 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2716 $as_echo "$ac_cv_build" >&6; }
2717 case $ac_cv_build in
2719 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2722 ac_save_IFS=$IFS; IFS='-'
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2732 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2736 $as_echo_n "checking host system type... " >&6; }
2737 if ${ac_cv_host+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 if test "x$host_alias" = x; then
2741 ac_cv_host=$ac_cv_build
2743 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2749 $as_echo "$ac_cv_host" >&6; }
2752 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2755 ac_save_IFS=$IFS; IFS='-'
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2765 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2769 # Default version of gnu tools to use
2770 default_gcc_version="4.6.4"
2771 default_binutils_version="2.23.2"
2773 # The AROS target is slightly different to the normal GNU style
2774 # format. We don't have the middle part, and we reverse the order
2775 # of the $(CPU) and $(OS) bits.
2777 # Don't strip the version of the target yet, it might be
2778 # useful on some systems.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2781 $as_echo_n "checking for AROS style target... " >&6; }
2783 if test "$target" = "NONE" ; then
2784 target=$host_os-$host_cpu
2786 if test "$target" = "" ; then
2787 target=$host_os-$host_cpu
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2791 $as_echo "$target" >&6; }
2793 if test "$host_os" = "mingw32" ; then
2797 # Don't know where else to put this...
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2799 $as_echo_n "checking building AROS in... " >&6; }
2800 AROS_BUILDDIR=`${PWDCMD-pwd}`
2801 AROS_BUILDDIR_UNIX=${PWD}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2803 $as_echo "$AROS_BUILDDIR" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2806 $as_echo_n "checking AROS source in... " >&6; }
2807 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2810 $as_echo "$SRCDIR" >&6; }
2812 # Parse the target field into something useful.
2814 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2815 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2818 # Some debug output, to be removed again.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2820 $as_echo_n "checking for target system (debug output)... " >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2822 $as_echo "$target_os" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2824 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2826 $as_echo "$target_cpu" >&6; }
2828 aros_nominal_width=800
2829 aros_nominal_height=600
2830 aros_nominal_depth=4
2833 # The first step is to find the host binaries.
2834 # Check for a compiler.
2835 # Due to a bug in autoconf check for c++ compiler first.
2836 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2838 ac_cpp='$CXXCPP $CPPFLAGS'
2839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2842 if test -z "$CXX"; then
2843 if test -n "$CCC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CXX+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CXX"; then
2857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CXX"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2879 $as_echo "$CXX" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2886 test -n "$CXX" && break
2889 if test -z "$CXX"; then
2891 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 if test -n "$ac_ct_CXX"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_CXX="$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2921 if test -n "$ac_ct_CXX"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2923 $as_echo "$ac_ct_CXX" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2930 test -n "$ac_ct_CXX" && break
2933 if test "x$ac_ct_CXX" = x; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2948 # Provide some information about the compiler.
2949 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2952 for ac_option in --version -v -V -qversion; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2956 *) ac_try_echo
=$ac_try;;
2958 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2962 if test -s conftest.err
; then
2964 ... rest of stderr output deleted ...
2965 10q' conftest.err
>conftest.er1
2966 cat conftest.er1
>&5
2968 rm -f conftest.er1 conftest.err
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2984 ac_clean_files_save
=$ac_clean_files
2985 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2990 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2991 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2997 for ac_file
in $ac_files
3000 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3001 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3006 if { { ac_try
="$ac_link_default"
3008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3018 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3020 # so that the user can short-circuit this test for compilers unknown to
3022 for ac_file in $ac_files ''
3024 test -f "$ac_file" || continue
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3029 # We found the default executable, but exeext='' is most
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3047 test "$ac_cv_exeext" = no && ac_cv_exeext=
3052 if test -z "$ac_file"; then :
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 $as_echo "$as_me: failed program was:" >&5
3056 sed 's
/^
/|
/' conftest.$ac_ext >&5
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3060 as_fn_error 77 "C++ compiler cannot create executables
3061 See \`config.log
' for more details" "$LINENO" 5; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3067 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069 $as_echo "$ac_file" >&6; }
3070 ac_exeext=$ac_cv_exeext
3072 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073 ac_clean_files=$ac_clean_files_save
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075 $as_echo_n "checking for suffix of executables... " >&6; }
3076 if { { ac_try="$ac_link"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3088 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3089 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3091 for ac_file
in conftest.exe conftest conftest.
*; do
3092 test -f "$ac_file" ||
continue
3094 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3095 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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 $?
"cannot compute suffix of executables: cannot compile and link
3104 See \`config.log' for more details" "$LINENO" 5; }
3106 rm -f conftest conftest
$ac_cv_exeext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108 $as_echo "$ac_cv_exeext" >&6; }
3110 rm -f conftest.
$ac_ext
3111 EXEEXT
=$ac_cv_exeext
3113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3119 FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3126 ac_clean_files
="$ac_clean_files conftest.out"
3127 # Check that the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130 $as_echo_n "checking whether we are cross compiling... " >&6; }
3131 if test "$cross_compiling" != yes; then
3132 { { ac_try
="$ac_link"
3134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143 if { ac_try='./conftest$ac_cv_exeext'
3144 { { case "(($ac_try" in
3145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3146 *) ac_try_echo
=$ac_try;;
3148 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_try") 2>&5
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; }; then
3156 if test "$cross_compiling" = maybe
; then
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $?
"cannot run C++ compiled programs.
3162 If you meant to cross compile, use \`--host'.
3163 See \`config.log' for more details" "$LINENO" 5; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168 $as_echo "$cross_compiling" >&6; }
3170 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3171 ac_clean_files
=$ac_clean_files_save
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173 $as_echo_n "checking for suffix of object files... " >&6; }
3174 if ${ac_cv_objext+:} false
; then :
3175 $as_echo_n "(cached) " >&6
3177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3188 rm -f conftest.o conftest.obj
3189 if { { ac_try
="$ac_compile"
3191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compile") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 for ac_file in conftest.o conftest.obj conftest.*; do
3201 test -f "$ac_file" || continue;
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3215 See \
`config.log' for more details" "$LINENO" 5; }
3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220 $as_echo "$ac_cv_objext" >&6; }
3221 OBJEXT=$ac_cv_objext
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3224 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3225 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3242 if ac_fn_cxx_try_compile "$LINENO"; then :
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3252 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3253 if test $ac_compiler_gnu = yes; then
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3261 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3262 if ${ac_cv_prog_cxx_g+:} false; then :
3263 $as_echo_n "(cached) " >&6
3265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3266 ac_cxx_werror_flag=yes
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 if ac_fn_cxx_try_compile "$LINENO"; then :
3281 ac_cv_prog_cxx_g=yes
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3311 if ac_fn_cxx_try_compile "$LINENO"; then :
3312 ac_cv_prog_cxx_g=yes
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3322 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3323 if test "$ac_test_CXXFLAGS" = set; then
3324 CXXFLAGS=$ac_save_CXXFLAGS
3325 elif test $ac_cv_prog_cxx_g = yes; then
3326 if test "$GXX" = yes; then
3332 if test "$GXX" = yes; then
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3388 if test -z "$ac_cv_prog_CC"; then
3390 # Extract the first word of "gcc", so it can be a program name with args.
3391 set dummy gcc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="gcc"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3426 if test "x$ac_ct_CC" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}cc; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="${ac_tool_prefix}cc"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3482 if test -z "$CC"; then
3483 # Extract the first word of "cc", so it can be a program name with args.
3484 set dummy cc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3502 ac_prog_rejected=yes
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 if test $ac_prog_rejected = yes; then
3514 # We found a bogon in the path, so make sure we never use it.
3515 set dummy $ac_cv_prog_CC
3517 if test $# != 0; then
3518 # We chose a different compiler from the bogus one.
3519 # However, it has the same basename, so the bogon will be chosen
3520 # first if we set CC to just the basename; use the full file name.
3522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3528 if test -n "$CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530 $as_echo "$CC" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 for ac_prog in cl.exe
3542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$CC" && break
3582 if test -z "$CC"; then
3584 for ac_prog in cl.exe
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_ac_ct_CC="$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616 $as_echo "$ac_ct_CC" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3623 test -n "$ac_ct_CC" && break
3626 if test "x$ac_ct_CC" = x; then
3629 case $cross_compiling:$ac_tool_warned in
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3642 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3645 See \
`config.log' for more details" "$LINENO" 5; }
3647 # Provide some information about the compiler.
3648 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3651 for ac_option in --version -v -V -qversion; do
3652 { { ac_try="$ac_compiler $ac_option >&5"
3654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3655 *) ac_try_echo
=$ac_try;;
3657 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3661 if test -s conftest.err
; then
3663 ... rest of stderr output deleted ...
3664 10q' conftest.err
>conftest.er1
3665 cat conftest.er1
>&5
3667 rm -f conftest.er1 conftest.err
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3674 if ${ac_cv_c_compiler_gnu+:} false
; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3691 if ac_fn_c_try_compile
"$LINENO"; then :
3696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3697 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702 if test $ac_compiler_gnu = yes; then
3707 ac_test_CFLAGS
=${CFLAGS+set}
3708 ac_save_CFLAGS
=$CFLAGS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3711 if ${ac_cv_prog_cc_g+:} false
; then :
3712 $as_echo_n "(cached) " >&6
3714 ac_save_c_werror_flag
=$ac_c_werror_flag
3715 ac_c_werror_flag
=yes
3718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 if ac_fn_c_try_compile
"$LINENO"; then :
3733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3744 if ac_fn_c_try_compile
"$LINENO"; then :
3747 ac_c_werror_flag
=$ac_save_c_werror_flag
3749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_c_try_compile
"$LINENO"; then :
3763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3768 ac_c_werror_flag
=$ac_save_c_werror_flag
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3771 $as_echo "$ac_cv_prog_cc_g" >&6; }
3772 if test "$ac_test_CFLAGS" = set; then
3773 CFLAGS
=$ac_save_CFLAGS
3774 elif test $ac_cv_prog_cc_g = yes; then
3775 if test "$GCC" = yes; then
3781 if test "$GCC" = yes; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3789 if ${ac_cv_prog_cc_c89+:} false
; then :
3790 $as_echo_n "(cached) " >&6
3792 ac_cv_prog_cc_c89
=no
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3813 s = g (p, va_arg (v,int));
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3819 function prototypes and stuff, but not '\xHH' hex character constants.
3820 These don't provoke an error unfortunately, instead are silently treated
3821 as 'x'. The following induces an error, until -std is added to get
3822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3823 array size at least. It's necessary to write '\x00'==0 to get something
3824 that's true only with -std. */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828 inside strings and character constants. */
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3846 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849 CC
="$ac_save_CC $ac_arg"
3850 if ac_fn_c_try_compile
"$LINENO"; then :
3851 ac_cv_prog_cc_c89
=$ac_arg
3853 rm -f core conftest.err conftest.
$ac_objext
3854 test "x$ac_cv_prog_cc_c89" != "xno" && break
3856 rm -f conftest.
$ac_ext
3861 case "x$ac_cv_prog_cc_c89" in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3869 CC
="$CC $ac_cv_prog_cc_c89"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3878 ac_cpp
='$CPP $CPPFLAGS'
3879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3883 case $ac_cv_prog_cc_stdc in #(
3885 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3888 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3889 if ${ac_cv_prog_cc_c99+:} false
; then :
3890 $as_echo_n "(cached) " >&6
3892 ac_cv_prog_cc_c99
=no
3894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3897 #include <stdbool.h>
3902 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3903 #define debug(...) fprintf (stderr, __VA_ARGS__)
3904 #define showlist(...) puts (#__VA_ARGS__)
3905 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3907 test_varargs_macros (void)
3912 debug ("X = %d\n", x);
3913 showlist (The first, second, and third items.);
3914 report (x>y, "x is %d but y is %d", x, y);
3917 // Check long long types.
3918 #define BIG64 18446744073709551615ull
3919 #define BIG32 4294967295ul
3920 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3922 your preprocessor is broken;
3926 your preprocessor is broken;
3928 static long long int bignum = -9223372036854775807LL;
3929 static unsigned long long int ubignum = BIG64;
3931 struct incomplete_array
3939 const wchar_t *name;
3943 typedef const char *ccp;
3946 test_restrict (ccp restrict text)
3948 // See if C++-style comments work.
3949 // Iterate through items via the restricted pointer.
3950 // Also check for declarations in for loops.
3951 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3956 // Check varargs and va_copy.
3958 test_varargs (const char *format, ...)
3961 va_start (args, format);
3963 va_copy (args_copy, args);
3974 str = va_arg (args_copy, const char *);
3977 number = va_arg (args_copy, int);
3980 fnumber = va_arg (args_copy, double);
3995 _Bool success = false;
3998 if (test_restrict ("String literal") == 0)
4000 char *restrict newvar = "Another string";
4003 test_varargs ("s, d' f .", "string", 65, 34.234);
4004 test_varargs_macros ();
4006 // Check flexible array members.
4007 struct incomplete_array *ia =
4008 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4010 for (int i = 0; i < ia->datasize; ++i)
4011 ia->data[i] = i * 1.234;
4013 // Check named initializers.
4014 struct named_init ni = {
4016 .name = L"Test wide string",
4017 .average = 543.34343,
4022 int dynamic_array[ni.number];
4023 dynamic_array[ni.number - 1] = 543;
4025 // work around unused variable warnings
4026 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4027 || dynamic_array[ni.number - 1] != 543);
4033 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4035 CC
="$ac_save_CC $ac_arg"
4036 if ac_fn_c_try_compile
"$LINENO"; then :
4037 ac_cv_prog_cc_c99
=$ac_arg
4039 rm -f core conftest.err conftest.
$ac_objext
4040 test "x$ac_cv_prog_cc_c99" != "xno" && break
4042 rm -f conftest.
$ac_ext
4047 case "x$ac_cv_prog_cc_c99" in
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 $as_echo "none needed" >&6; } ;;
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4053 $as_echo "unsupported" >&6; } ;;
4055 CC
="$CC $ac_cv_prog_cc_c99"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4057 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4059 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4060 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4064 if ${ac_cv_prog_cc_c89+:} false
; then :
4065 $as_echo_n "(cached) " >&6
4067 ac_cv_prog_cc_c89
=no
4069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4088 s = g (p, va_arg (v,int));
4093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4094 function prototypes and stuff, but not '\xHH' hex character constants.
4095 These don't provoke an error unfortunately, instead are silently treated
4096 as 'x'. The following induces an error, until -std is added to get
4097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4098 array size at least. It's necessary to write '\x00'==0 to get something
4099 that's true only with -std. */
4100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103 inside strings and character constants. */
4105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4107 int test (int i, double x);
4108 struct s1 {int (*f) (int a);};
4109 struct s2 {int (*f) (double a);};
4110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4121 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4124 CC
="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile
"$LINENO"; then :
4126 ac_cv_prog_cc_c89
=$ac_arg
4128 rm -f core conftest.err conftest.
$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4131 rm -f conftest.
$ac_ext
4136 case "x$ac_cv_prog_cc_c89" in
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4144 CC
="$CC $ac_cv_prog_cc_c89"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4148 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4149 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4151 ac_cv_prog_cc_stdc
=no
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4158 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4159 if ${ac_cv_prog_cc_stdc+:} false
; then :
4160 $as_echo_n "(cached) " >&6
4163 case $ac_cv_prog_cc_stdc in #(
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;; #(
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;; #(
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4172 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4176 ac_cpp
='$CPP $CPPFLAGS'
4177 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4181 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4186 if test -z "$CPP"; then
4187 if ${ac_cv_prog_CPP+:} false
; then :
4188 $as_echo_n "(cached) " >&6
4190 # Double quotes because CPP needs to be expanded
4191 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 for ac_c_preproc_warn_flag
in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if ac_fn_c_try_cpp
"$LINENO"; then :
4214 # Broken: fails on valid input.
4217 rm -f conftest.err conftest.i conftest.
$ac_ext
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if ac_fn_c_try_cpp
"$LINENO"; then :
4226 # Broken: success on invalid input.
4229 # Passes both tests.
4233 rm -f conftest.err conftest.i conftest.
$ac_ext
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.i conftest.err conftest.
$ac_ext
4238 if $ac_preproc_ok; then :
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4251 $as_echo "$CPP" >&6; }
4253 for ac_c_preproc_warn_flag
in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4264 # include <limits.h>
4266 # include <assert.h>
4270 if ac_fn_c_try_cpp
"$LINENO"; then :
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.i conftest.
$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4284 if ac_fn_c_try_cpp
"$LINENO"; then :
4285 # Broken: success on invalid input.
4288 # Passes both tests.
4292 rm -f conftest.err conftest.i conftest.
$ac_ext
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.
$ac_ext
4297 if $ac_preproc_ok; then :
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4303 See \`config.log' for more details" "$LINENO" 5; }
4307 ac_cpp
='$CPP $CPPFLAGS'
4308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4313 # Check for a compatible awk
4314 for ac_prog
in gawk nawk
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy
$ac_prog; ac_word
=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_AWK+:} false
; then :
4321 $as_echo_n "(cached) " >&6
4323 if test -n "$AWK"; then
4324 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_AWK
="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 if test -n "$AWK"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4346 $as_echo "$AWK" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4353 test -n "$AWK" && break
4356 if test "$AWK" = ""; then
4357 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4359 # Extract the first word of "mmake", so it can be a program name with args.
4360 set dummy mmake
; ac_word
=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_MMAKE+:} false
; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$MMAKE"; then
4367 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_MMAKE
="mmake "
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 MMAKE
=$ac_cv_prog_MMAKE
4387 if test -n "$MMAKE"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4389 $as_echo "$MMAKE" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4397 # Perform some default variable assignments. Note all of these will be
4398 # Regenerated from the script, so there is no need to cache them.
4400 aros_host_cpp
="$CPP"
4402 aros_host_cxx
="$CXX"
4403 if test "$GCC" = "yes"; then
4404 aros_gcc_ld
=`$CC -print-prog-name=ld`
4405 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4406 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_path_aros_host_ld+:} false
; then :
4410 $as_echo_n "(cached) " >&6
4412 case $aros_host_ld in
4414 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4418 for as_dir
in `dirname $aros_gcc_ld`
4421 test -z "$as_dir" && as_dir
=.
4422 for ac_exec_ext
in '' $ac_executable_extensions; do
4423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 aros_host_ld
=$ac_cv_path_aros_host_ld
4436 if test -n "$aros_host_ld"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4438 $as_echo "$aros_host_ld" >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4446 if test "$aros_host_ld" = ""; then
4447 # Extract the first word of "ld", so it can be a program name with args.
4448 set dummy ld
; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_path_aros_host_ld+:} false
; then :
4452 $as_echo_n "(cached) " >&6
4454 case $aros_host_ld in
4456 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_exec_ext
in '' $ac_executable_extensions; do
4465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 aros_host_ld
=$ac_cv_path_aros_host_ld
4478 if test -n "$aros_host_ld"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4480 $as_echo "$aros_host_ld" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4488 if test "$aros_host_ld" = ""; then
4489 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4491 aros_host_make
="make"
4492 aros_host_cflags
="$CFLAGS"
4493 aros_host_cxxflags
="$CXXFLAGS"
4494 aros_host_ldflags
="$LDFLAGS"
4495 aros_host_debug
="-g -O0"
4496 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4497 aros_host_mkargs
="--no-print-directory"
4498 aros_host_exe_suffix
="$EXEEXT"
4499 aros_host_lib_suffix
=""
4501 # Ignore all compliance, AROS ROMs = 0
4502 # KickStart v1.0 = 30
4503 # KickStart v1.3 = 34
4504 # KickStart v2.0 = 37
4505 # KickStart v3.0 = 39
4506 # KickStart v3.1 = 40
4508 aros_amigaos_compliance
=0
4510 for ac_prog
in aclocal aclocal19 aclocal-1.9
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy
$ac_prog; ac_word
=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4517 $as_echo_n "(cached) " >&6
4519 if test -n "$aros_host_aclocal"; then
4520 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir
=.
4527 for ac_exec_ext
in '' $ac_executable_extensions; do
4528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4540 if test -n "$aros_host_aclocal"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4542 $as_echo "$aros_host_aclocal" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 test -n "$aros_host_aclocal" && break
4552 for ac_prog
in autoconf autoconf259 autoconf253
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy
$ac_prog; ac_word
=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$aros_host_autoconf"; then
4562 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4582 if test -n "$aros_host_autoconf"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4584 $as_echo "$aros_host_autoconf" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$aros_host_autoconf" && break
4594 for ac_prog
in autoheader autoheader259 autoheader253
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy
$ac_prog; ac_word
=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$aros_host_autoheader"; then
4604 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir
=.
4611 for ac_exec_ext
in '' $ac_executable_extensions; do
4612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4624 if test -n "$aros_host_autoheader"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4626 $as_echo "$aros_host_autoheader" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$aros_host_autoheader" && break
4636 for ac_prog
in automake automake19 automake-1.9
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy
$ac_prog; ac_word
=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -n "$aros_host_automake"; then
4646 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir
=.
4653 for ac_exec_ext
in '' $ac_executable_extensions; do
4654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_aros_host_automake
="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 aros_host_automake
=$ac_cv_prog_aros_host_automake
4666 if test -n "$aros_host_automake"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4668 $as_echo "$aros_host_automake" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$aros_host_automake" && break
4679 if test "$aros_host_aclocal" = ""; then
4680 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4682 if test "$aros_host_automake" = ""; then
4683 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4686 case "$aros_host_cc" in
4688 aros_host_cc_pipe
=""
4691 aros_host_cc_pipe
="-pipe"
4694 aros_host_cc_pipe
=""
4697 aros_host_cc_pipe
=""
4701 aros_kernel_cc_includes
=""
4702 aros_target_cc_includes
=""
4705 # ----------------------------------------------------------------------------------------
4706 # Host-specific defaults
4708 # This is the main host configuration section. It is where the host
4709 # can change the values of any variables it needs to change. We do
4710 # not look at anything that compiles to the target yet, we'll get
4715 aros_host_arch
="aros"
4716 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4719 aros_host_cpu
="i386"
4722 aros_host_cpu
="x86_64"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4729 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4730 aros_host_cpu
="$host_cpu"
4736 aros_host_arch
="linux"
4737 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4738 android_build_os
="linux-x86"
4739 android_tool
="android"
4740 default_android_sdk
="/opt/android-sdk-linux_x86"
4743 aros_host_cpu
="i386"
4746 aros_host_cpu
="x86_64"
4749 aros_host_cpu
="m68k"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4759 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4760 aros_host_cpu
="$host_cpu"
4766 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4767 aros_host_make
="gmake"
4768 aros_host_arch
="freebsd"
4769 aros_host_cpu
="i386"
4771 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4775 aros_object_format
="elf_i386"
4779 aros_object_format
="elf_i386_fbsd"
4786 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4787 aros_host_arch
="darwin"
4789 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4790 android_build_os
="darwin-x86"
4791 android_tool
="android"
4792 default_android_sdk
="/android-sdk-mac_x86"
4795 aros_host_cpu
="i386"
4798 aros_host_cpu
="x86_64"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4806 aros_host_cpu
="$host_cpu"
4810 aros_host_ldflags
="$aros_host_ldflags -liconv"
4815 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4816 aros_host_make
="gmake"
4817 aros_host_arch
="dragonfly"
4820 aros_host_cpu
="i386"
4823 aros_host_cpu
="x86_64"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4827 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4828 aros_host_cpu
="$host_cpu"
4834 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4835 aros_host_make
="gmake"
4836 aros_host_arch
="netbsd"
4839 aros_host_cpu
="i386"
4842 aros_host_cpu
="m68k"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu
="$host_cpu"
4850 aros_host_lib_suffix
=".0.0"
4854 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4855 aros_host_make
="gmake"
4856 aros_host_arch
="openbsd"
4859 aros_host_cpu
="i386"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4863 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4864 aros_host_cpu
="$host_cpu"
4870 aros_host_arch
="solaris"
4871 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4874 aros_host_cpu
="i386"
4877 aros_host_cpu
="sparc"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4881 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4882 aros_host_cpu
="$host_cpu"
4888 aros_host_arch
="morphos"
4894 aros_host_arch
="amiga"
4900 TOUCH
="/gg/bin/touch"
4903 aros_host_cpu
="m68k"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu
="$host_cpu"
4917 aros_host_arch
="cygwin"
4918 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4920 android_build_os
="windows"
4921 android_tool
="android.bat"
4922 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4926 aros_host_cpu
="i386"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4930 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4931 aros_host_cpu
="$host_cpu"
4937 aros_host_arch
="mingw32"
4938 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4940 android_build_os
="windows"
4941 android_tool
="android.bat"
4942 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4948 $as_echo_n "checking for Windows native gcc target... " >&6; }
4949 host_cpu
=`gcc -dumpmachine`
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4951 $as_echo "$host_cpu" >&6; }
4958 aros_host_cpu
="i386"
4962 aros_host_cpu
="i386"
4966 aros_host_cpu
="x86_64"
4967 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4972 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4973 aros_host_cpu
="$host_cpu"
4978 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4982 # Extract the first word of "ar", so it can be a program name with args.
4983 set dummy
ar; ac_word
=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4987 $as_echo_n "(cached) " >&6
4989 if test -n "$aros_host_ar"; then
4990 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir
=.
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_aros_host_ar
="ar cr"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 aros_host_ar
=$ac_cv_prog_aros_host_ar
5010 if test -n "$aros_host_ar"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5012 $as_echo "$aros_host_ar" >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5019 if test "$aros_host_ar" = ""; then
5020 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5022 # Extract the first word of "ranlib", so it can be a program name with args.
5023 set dummy ranlib
; ac_word
=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$aros_host_ranlib"; then
5030 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
5032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir
=.
5037 for ac_exec_ext
in '' $ac_executable_extensions; do
5038 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_aros_host_ranlib
="ranlib "
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
5050 if test -n "$aros_host_ranlib"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5052 $as_echo "$aros_host_ranlib" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5059 if test "$aros_host_ranlib" = ""; then
5060 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5062 # Extract the first word of "strip", so it can be a program name with args.
5063 set dummy strip
; ac_word
=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$aros_host_strip"; then
5070 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir
=.
5077 for ac_exec_ext
in '' $ac_executable_extensions; do
5078 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_aros_host_strip
="strip "
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 aros_host_strip
=$ac_cv_prog_aros_host_strip
5090 if test -n "$aros_host_strip"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5092 $as_echo "$aros_host_strip" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 if test "$aros_host_strip" = ""; then
5100 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "rm", so it can be a program name with args.
5104 set dummy
rm; ac_word
=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_RM+:} false
; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$RM"; then
5111 ac_cv_prog_RM
="$RM" # Let the user override the test.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_RM
="rm -rf"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 if test -n "$RM"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5133 $as_echo "$RM" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 if test "$RM" = ""; then
5141 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 # Extract the first word of "cp", so it can be a program name with args.
5144 set dummy
cp; ac_word
=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_CP+:} false
; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$CP"; then
5151 ac_cv_prog_CP
="$CP" # Let the user override the test.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 if test -n "$CP"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5173 $as_echo "$CP" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 if test "$CP" = ""; then
5181 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5183 # Extract the first word of "mv", so it can be a program name with args.
5184 set dummy
mv; ac_word
=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_MV+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$MV"; then
5191 ac_cv_prog_MV
="$MV" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 if test -n "$MV"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5213 $as_echo "$MV" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 if test "$MV" = ""; then
5221 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5223 # Extract the first word of "echo", so it can be a program name with args.
5224 set dummy
echo; ac_word
=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_ECHO+:} false
; then :
5228 $as_echo_n "(cached) " >&6
5230 if test -n "$ECHO"; then
5231 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir
=.
5238 for ac_exec_ext
in '' $ac_executable_extensions; do
5239 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_ECHO
="echo "
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 ECHO
=$ac_cv_prog_ECHO
5251 if test -n "$ECHO"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5253 $as_echo "$ECHO" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 if test "$ECHO" = ""; then
5261 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5263 # Extract the first word of "mkdir", so it can be a program name with args.
5264 set dummy mkdir
; ac_word
=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_MKDIR+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -n "$MKDIR"; then
5271 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir
=.
5278 for ac_exec_ext
in '' $ac_executable_extensions; do
5279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_MKDIR
="mkdir -p"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 MKDIR
=$ac_cv_prog_MKDIR
5291 if test -n "$MKDIR"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5293 $as_echo "$MKDIR" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 if test "$MKDIR" = ""; then
5301 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5303 # Extract the first word of "touch", so it can be a program name with args.
5304 set dummy
touch; ac_word
=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_TOUCH+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$TOUCH"; then
5311 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir
=.
5318 for ac_exec_ext
in '' $ac_executable_extensions; do
5319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_TOUCH
="touch "
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 TOUCH
=$ac_cv_prog_TOUCH
5331 if test -n "$TOUCH"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5333 $as_echo "$TOUCH" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 if test "$TOUCH" = ""; then
5341 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5343 # Extract the first word of "sort", so it can be a program name with args.
5344 set dummy
sort; ac_word
=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_SORT+:} false
; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -n "$SORT"; then
5351 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir
=.
5358 for ac_exec_ext
in '' $ac_executable_extensions; do
5359 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_SORT
="sort "
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 SORT
=$ac_cv_prog_SORT
5371 if test -n "$SORT"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5373 $as_echo "$SORT" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 if test "$SORT" = ""; then
5381 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 # Extract the first word of "uniq", so it can be a program name with args.
5384 set dummy
uniq; 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_UNIQ+:} false
; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$UNIQ"; then
5391 ac_cv_prog_UNIQ
="$UNIQ" # 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_UNIQ
="uniq "
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 UNIQ
=$ac_cv_prog_UNIQ
5411 if test -n "$UNIQ"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5413 $as_echo "$UNIQ" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 if test "$UNIQ" = ""; then
5421 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5423 # Extract the first word of "true", so it can be a program name with args.
5424 set dummy true
; ac_word
=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_NOP+:} false
; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$NOP"; then
5431 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_exec_ext
in '' $ac_executable_extensions; do
5439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_NOP
="true "
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 if test -n "$NOP"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5453 $as_echo "$NOP" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 if test "$NOP" = ""; then
5461 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5463 # Extract the first word of "cat", so it can be a program name with args.
5464 set dummy
cat; ac_word
=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_CAT+:} false
; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$CAT"; then
5471 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_CAT
="cat "
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 if test -n "$CAT"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5493 $as_echo "$CAT" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5500 if test "$CAT" = ""; then
5501 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5503 # Extract the first word of "bison", so it can be a program name with args.
5504 set dummy bison
; ac_word
=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_BISON+:} false
; then :
5508 $as_echo_n "(cached) " >&6
5510 if test -n "$BISON"; then
5511 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir
=.
5518 for ac_exec_ext
in '' $ac_executable_extensions; do
5519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_BISON
="bison "
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 BISON
=$ac_cv_prog_BISON
5531 if test -n "$BISON"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5533 $as_echo "$BISON" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5540 if test "$BISON" = ""; then
5541 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5543 # Extract the first word of "flex", so it can be a program name with args.
5544 set dummy flex
; ac_word
=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_FLEX+:} false
; then :
5548 $as_echo_n "(cached) " >&6
5550 if test -n "$FLEX"; then
5551 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5557 test -z "$as_dir" && as_dir
=.
5558 for ac_exec_ext
in '' $ac_executable_extensions; do
5559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_FLEX
="flex "
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 FLEX
=$ac_cv_prog_FLEX
5571 if test -n "$FLEX"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5573 $as_echo "$FLEX" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5580 if test "$FLEX" = ""; then
5581 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5583 # Extract the first word of "pngtopnm", so it can be a program name with args.
5584 set dummy pngtopnm
; ac_word
=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5590 if test -n "$PNGTOPNM"; then
5591 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir
=.
5598 for ac_exec_ext
in '' $ac_executable_extensions; do
5599 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_PNGTOPNM
="pngtopnm "
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5611 if test -n "$PNGTOPNM"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5613 $as_echo "$PNGTOPNM" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 if test "$PNGTOPNM" = ""; then
5621 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5623 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5624 set dummy ppmtoilbm
; ac_word
=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$PPMTOILBM"; then
5631 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5651 if test -n "$PPMTOILBM"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5653 $as_echo "$PPMTOILBM" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 if test "$PPMTOILBM" = ""; then
5661 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5663 # Extract the first word of "sed", so it can be a program name with args.
5664 set dummy
sed; ac_word
=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_SED+:} false
; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -n "$SED"; then
5671 ac_cv_prog_SED
="$SED" # Let the user override the test.
5673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir
=.
5678 for ac_exec_ext
in '' $ac_executable_extensions; do
5679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_SED
="sed "
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 if test -n "$SED"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5693 $as_echo "$SED" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5700 if test "$SED" = ""; then
5701 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5703 # Extract the first word of "chmod", so it can be a program name with args.
5704 set dummy
chmod; ac_word
=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_CHMOD+:} false
; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -n "$CHMOD"; then
5711 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir
=.
5718 for ac_exec_ext
in '' $ac_executable_extensions; do
5719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CHMOD
="chmod "
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 CHMOD
=$ac_cv_prog_CHMOD
5731 if test -n "$CHMOD"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5733 $as_echo "$CHMOD" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 if test "$CHMOD" = ""; then
5741 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5743 # Extract the first word of "patch", so it can be a program name with args.
5744 set dummy
patch; ac_word
=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_PATCH+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5750 if test -n "$PATCH"; then
5751 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir
=.
5758 for ac_exec_ext
in '' $ac_executable_extensions; do
5759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_PATCH
="patch "
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 PATCH
=$ac_cv_prog_PATCH
5771 if test -n "$PATCH"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5773 $as_echo "$PATCH" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5780 if test "$PATCH" = ""; then
5781 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5790 if test -n "$PYTHON"; then
5791 # If the user set $PYTHON, use it and don't search something else.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5793 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5795 # split strings by '.' and convert to numeric. Append some zeros
5796 # because we need at least 4 digits for the hex conversion.
5797 # map returns an iterator in Python 3.0 and a list in 2.x
5798 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5800 # xrange is not present in Python 3.0 and range returns an iterator
5801 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5802 sys.exit(sys.hexversion < minverhex)"
5803 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5804 ($PYTHON -c "$prog") >&5 2>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; then :
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809 $as_echo "yes" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5815 am_display_PYTHON
=$PYTHON
5817 # Otherwise, try each interpreter until we find one that satisfies
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5820 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5821 if ${am_cv_pathless_PYTHON+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5825 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
5826 test "$am_cv_pathless_PYTHON" = none
&& break
5828 # split strings by '.' and convert to numeric. Append some zeros
5829 # because we need at least 4 digits for the hex conversion.
5830 # map returns an iterator in Python 3.0 and a list in 2.x
5831 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5833 # xrange is not present in Python 3.0 and range returns an iterator
5834 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5835 sys.exit(sys.hexversion < minverhex)"
5836 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5837 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; then :
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5846 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5847 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5848 if test "$am_cv_pathless_PYTHON" = none
; then
5851 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5852 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_path_PYTHON+:} false
; then :
5856 $as_echo_n "(cached) " >&6
5860 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir
=.
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 PYTHON
=$ac_cv_path_PYTHON
5882 if test -n "$PYTHON"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5884 $as_echo "$PYTHON" >&6; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5892 am_display_PYTHON
=$am_cv_pathless_PYTHON
5896 if test "$PYTHON" = :; then
5897 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5902 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5903 if ${am_cv_python_version+:} false
; then :
5904 $as_echo_n "(cached) " >&6
5906 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5909 $as_echo "$am_cv_python_version" >&6; }
5910 PYTHON_VERSION
=$am_cv_python_version
5914 PYTHON_PREFIX
='${prefix}'
5916 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5921 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5922 if ${am_cv_python_platform+:} false
; then :
5923 $as_echo_n "(cached) " >&6
5925 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5928 $as_echo "$am_cv_python_platform" >&6; }
5929 PYTHON_PLATFORM
=$am_cv_python_platform
5932 # Just factor out some code duplication.
5933 am_python_setup_sysconfig
="\
5935 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5936 # with python 3.x. See automake bug#10227.
5940 can_use_sysconfig = 0
5942 can_use_sysconfig = 1
5943 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5944 # <https://github.com/pypa/virtualenv/issues/118>
5946 from platform import python_implementation
5947 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5948 can_use_sysconfig = 0
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5954 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5955 if ${am_cv_python_pythondir+:} false
; then :
5956 $as_echo_n "(cached) " >&6
5958 if test "x$prefix" = xNONE
5960 am_py_prefix
=$ac_default_prefix
5962 am_py_prefix
=$prefix
5964 am_cv_python_pythondir
=`$PYTHON -c "
5965 $am_python_setup_sysconfig
5966 if can_use_sysconfig:
5967 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5969 from distutils import sysconfig
5970 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5971 sys.stdout.write(sitedir)"`
5972 case $am_cv_python_pythondir in
5974 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
5975 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5978 case $am_py_prefix in
5981 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5989 $as_echo "$am_cv_python_pythondir" >&6; }
5990 pythondir
=$am_cv_python_pythondir
5994 pkgpythondir
=\
${pythondir}/$PACKAGE
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5998 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5999 if ${am_cv_python_pyexecdir+:} false
; then :
6000 $as_echo_n "(cached) " >&6
6002 if test "x$exec_prefix" = xNONE
6004 am_py_exec_prefix
=$am_py_prefix
6006 am_py_exec_prefix
=$exec_prefix
6008 am_cv_python_pyexecdir
=`$PYTHON -c "
6009 $am_python_setup_sysconfig
6010 if can_use_sysconfig:
6011 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6013 from distutils import sysconfig
6014 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6015 sys.stdout.write(sitedir)"`
6016 case $am_cv_python_pyexecdir in
6017 $am_py_exec_prefix*)
6018 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6019 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6022 case $am_py_exec_prefix in
6025 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6033 $as_echo "$am_cv_python_pyexecdir" >&6; }
6034 pyexecdir
=$am_cv_python_pyexecdir
6038 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6048 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6049 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 ac_check_lib_save_LIBS
=$LIBS
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6057 /* Override any GCC internal prototype to avoid an error.
6058 Use char because int might match the return type of a GCC
6059 builtin and then its argument prototype would still apply. */
6063 char png_read_png ();
6067 return png_read_png ();
6072 if ac_fn_c_try_link
"$LINENO"; then :
6073 ac_cv_lib_png_png_read_png
=yes
6075 ac_cv_lib_png_png_read_png
=no
6077 rm -f core conftest.err conftest.
$ac_objext \
6078 conftest
$ac_exeext conftest.
$ac_ext
6079 LIBS
=$ac_check_lib_save_LIBS
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6082 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6083 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6084 cat >>confdefs.h
<<_ACEOF
6085 #define HAVE_LIBPNG 1
6092 if test "$ac_cv_lib_png_png_read_png" = ""; then
6093 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6106 # Check for some includes for the X11 HIDD and the kernel
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6110 if ${ac_cv_path_GREP+:} false
; then :
6111 $as_echo_n "(cached) " >&6
6113 if test -z "$GREP"; then
6114 ac_path_GREP_found
=false
6115 # Loop through the user's path and test for each of PROGNAME-LIST
6116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6117 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6120 test -z "$as_dir" && as_dir
=.
6121 for ac_prog
in grep ggrep
; do
6122 for ac_exec_ext
in '' $ac_executable_extensions; do
6123 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6124 as_fn_executable_p
"$ac_path_GREP" ||
continue
6125 # Check for GNU ac_path_GREP and select it if it is found.
6126 # Check for GNU $ac_path_GREP
6127 case `"$ac_path_GREP" --version 2>&1` in
6129 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6132 $as_echo_n 0123456789 >"conftest.in"
6135 cat "conftest.in" "conftest.in" >"conftest.tmp"
6136 mv "conftest.tmp" "conftest.in"
6137 cp "conftest.in" "conftest.nl"
6138 $as_echo 'GREP' >> "conftest.nl"
6139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6140 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6141 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6143 # Best one so far, save it but keep looking for a better one
6144 ac_cv_path_GREP
="$ac_path_GREP"
6145 ac_path_GREP_max
=$ac_count
6147 # 10*(2^10) chars as input seems more than enough
6148 test $ac_count -gt 10 && break
6150 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6153 $ac_path_GREP_found && break 3
6158 if test -z "$ac_cv_path_GREP"; then
6159 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6162 ac_cv_path_GREP
=$GREP
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6167 $as_echo "$ac_cv_path_GREP" >&6; }
6168 GREP
="$ac_cv_path_GREP"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6172 $as_echo_n "checking for egrep... " >&6; }
6173 if ${ac_cv_path_EGREP+:} false
; then :
6174 $as_echo_n "(cached) " >&6
6176 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6177 then ac_cv_path_EGREP
="$GREP -E"
6179 if test -z "$EGREP"; then
6180 ac_path_EGREP_found
=false
6181 # Loop through the user's path and test for each of PROGNAME-LIST
6182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6183 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6186 test -z "$as_dir" && as_dir
=.
6187 for ac_prog
in egrep; do
6188 for ac_exec_ext
in '' $ac_executable_extensions; do
6189 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6190 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6191 # Check for GNU ac_path_EGREP and select it if it is found.
6192 # Check for GNU $ac_path_EGREP
6193 case `"$ac_path_EGREP" --version 2>&1` in
6195 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6198 $as_echo_n 0123456789 >"conftest.in"
6201 cat "conftest.in" "conftest.in" >"conftest.tmp"
6202 mv "conftest.tmp" "conftest.in"
6203 cp "conftest.in" "conftest.nl"
6204 $as_echo 'EGREP' >> "conftest.nl"
6205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6206 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6207 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6209 # Best one so far, save it but keep looking for a better one
6210 ac_cv_path_EGREP
="$ac_path_EGREP"
6211 ac_path_EGREP_max
=$ac_count
6213 # 10*(2^10) chars as input seems more than enough
6214 test $ac_count -gt 10 && break
6216 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6219 $ac_path_EGREP_found && break 3
6224 if test -z "$ac_cv_path_EGREP"; then
6225 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6228 ac_cv_path_EGREP
=$EGREP
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6234 $as_echo "$ac_cv_path_EGREP" >&6; }
6235 EGREP
="$ac_cv_path_EGREP"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6239 $as_echo_n "checking for ANSI C header files... " >&6; }
6240 if ${ac_cv_header_stdc+:} false
; then :
6241 $as_echo_n "(cached) " >&6
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6258 if ac_fn_c_try_compile
"$LINENO"; then :
6259 ac_cv_header_stdc
=yes
6261 ac_cv_header_stdc
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev
/null
2>&1; then :
6276 ac_cv_header_stdc
=no
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "free" >/dev
/null
2>&1; then :
6293 ac_cv_header_stdc
=no
6299 if test $ac_cv_header_stdc = yes; then
6300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6301 if test "$cross_compiling" = yes; then :
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6308 #if ((' ' & 0x0FF) == 0x020)
6309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6312 # define ISLOWER(c) \
6313 (('a' <= (c) && (c) <= 'i') \
6314 || ('j' <= (c) && (c) <= 'r') \
6315 || ('s' <= (c) && (c) <= 'z'))
6316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6324 for (i = 0; i < 256; i++)
6325 if (XOR (islower (i), ISLOWER (i))
6326 || toupper (i) != TOUPPER (i))
6331 if ac_fn_c_try_run
"$LINENO"; then :
6334 ac_cv_header_stdc
=no
6336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6343 $as_echo "$ac_cv_header_stdc" >&6; }
6344 if test $ac_cv_header_stdc = yes; then
6346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6352 inttypes.h stdint.h unistd.h
6354 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6358 cat >>confdefs.h
<<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6367 for ac_header
in sys
/ipc.h sys
/shm.h \
6368 sys
/mmap.h sys
/mman.h sysexits.h \
6369 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6374 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6375 cat >>confdefs.h
<<_ACEOF
6376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6384 for ac_header
in sys
/mount.h
6386 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6388 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6389 cat >>confdefs.h
<<_ACEOF
6390 #define HAVE_SYS_MOUNT_H 1
6399 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6400 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6402 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6403 if eval \
${$as_ac_Header+:} false
; then :
6404 $as_echo_n "(cached) " >&6
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #include <sys/types.h>
6420 if ac_fn_c_try_compile
"$LINENO"; then :
6421 eval "$as_ac_Header=yes"
6423 eval "$as_ac_Header=no"
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6427 eval ac_res
=\$
$as_ac_Header
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6431 cat >>confdefs.h
<<_ACEOF
6432 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6435 ac_header_dirent
=$ac_hdr; break
6439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6440 if test $ac_header_dirent = dirent.h
; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6442 $as_echo_n "checking for library containing opendir... " >&6; }
6443 if ${ac_cv_search_opendir+:} false
; then :
6444 $as_echo_n "(cached) " >&6
6446 ac_func_search_save_LIBS
=$LIBS
6447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6465 for ac_lib
in '' dir
; do
6466 if test -z "$ac_lib"; then
6467 ac_res
="none required"
6470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6472 if ac_fn_c_try_link
"$LINENO"; then :
6473 ac_cv_search_opendir
=$ac_res
6475 rm -f core conftest.err conftest.
$ac_objext \
6477 if ${ac_cv_search_opendir+:} false
; then :
6481 if ${ac_cv_search_opendir+:} false
; then :
6484 ac_cv_search_opendir
=no
6487 LIBS
=$ac_func_search_save_LIBS
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6490 $as_echo "$ac_cv_search_opendir" >&6; }
6491 ac_res
=$ac_cv_search_opendir
6492 if test "$ac_res" != no
; then :
6493 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6499 $as_echo_n "checking for library containing opendir... " >&6; }
6500 if ${ac_cv_search_opendir+:} false
; then :
6501 $as_echo_n "(cached) " >&6
6503 ac_func_search_save_LIBS
=$LIBS
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 /* Override any GCC internal prototype to avoid an error.
6508 Use char because int might match the return type of a GCC
6509 builtin and then its argument prototype would still apply. */
6522 for ac_lib
in '' x
; do
6523 if test -z "$ac_lib"; then
6524 ac_res
="none required"
6527 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6529 if ac_fn_c_try_link
"$LINENO"; then :
6530 ac_cv_search_opendir
=$ac_res
6532 rm -f core conftest.err conftest.
$ac_objext \
6534 if ${ac_cv_search_opendir+:} false
; then :
6538 if ${ac_cv_search_opendir+:} false
; then :
6541 ac_cv_search_opendir
=no
6544 LIBS
=$ac_func_search_save_LIBS
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6547 $as_echo "$ac_cv_search_opendir" >&6; }
6548 ac_res
=$ac_cv_search_opendir
6549 if test "$ac_res" != no
; then :
6550 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6557 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6558 if ${ac_cv_header_stat_broken+:} false
; then :
6559 $as_echo_n "(cached) " >&6
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #include <sys/types.h>
6564 #include <sys/stat.h>
6566 #if defined S_ISBLK && defined S_IFDIR
6567 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6570 #if defined S_ISBLK && defined S_IFCHR
6571 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6574 #if defined S_ISLNK && defined S_IFREG
6575 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6578 #if defined S_ISSOCK && defined S_IFREG
6579 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6583 if ac_fn_c_try_compile
"$LINENO"; then :
6584 ac_cv_header_stat_broken
=no
6586 ac_cv_header_stat_broken
=yes
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6591 $as_echo "$ac_cv_header_stat_broken" >&6; }
6592 if test $ac_cv_header_stat_broken = yes; then
6594 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6599 $as_echo_n "checking for ANSI C header files... " >&6; }
6600 if ${ac_cv_header_stdc+:} false
; then :
6601 $as_echo_n "(cached) " >&6
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6618 if ac_fn_c_try_compile
"$LINENO"; then :
6619 ac_cv_header_stdc
=yes
6621 ac_cv_header_stdc
=no
6623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6625 if test $ac_cv_header_stdc = yes; then
6626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 $EGREP "memchr" >/dev
/null
2>&1; then :
6636 ac_cv_header_stdc
=no
6642 if test $ac_cv_header_stdc = yes; then
6643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "free" >/dev
/null
2>&1; then :
6653 ac_cv_header_stdc
=no
6659 if test $ac_cv_header_stdc = yes; then
6660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6661 if test "$cross_compiling" = yes; then :
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6668 #if ((' ' & 0x0FF) == 0x020)
6669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672 # define ISLOWER(c) \
6673 (('a' <= (c) && (c) <= 'i') \
6674 || ('j' <= (c) && (c) <= 'r') \
6675 || ('s' <= (c) && (c) <= 'z'))
6676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6684 for (i = 0; i < 256; i++)
6685 if (XOR (islower (i), ISLOWER (i))
6686 || toupper (i) != TOUPPER (i))
6691 if ac_fn_c_try_run
"$LINENO"; then :
6694 ac_cv_header_stdc
=no
6696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6703 $as_echo "$ac_cv_header_stdc" >&6; }
6704 if test $ac_cv_header_stdc = yes; then
6706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6711 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6712 if ${ac_cv_header_sys_wait_h+:} false
; then :
6713 $as_echo_n "(cached) " >&6
6715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 #include <sys/wait.h>
6720 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6723 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6731 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6736 if ac_fn_c_try_compile
"$LINENO"; then :
6737 ac_cv_header_sys_wait_h
=yes
6739 ac_cv_header_sys_wait_h
=no
6741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6744 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6745 if test $ac_cv_header_sys_wait_h = yes; then
6747 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6752 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6753 if ${ac_cv_header_time+:} false
; then :
6754 $as_echo_n "(cached) " >&6
6756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <sys/types.h>
6759 #include <sys/time.h>
6765 if ((struct tm *) 0)
6771 if ac_fn_c_try_compile
"$LINENO"; then :
6772 ac_cv_header_time
=yes
6774 ac_cv_header_time
=no
6776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6779 $as_echo "$ac_cv_header_time" >&6; }
6780 if test $ac_cv_header_time = yes; then
6782 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6786 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6787 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6789 cat >>confdefs.h
<<_ACEOF
6790 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6794 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6799 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6800 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6802 cat >>confdefs.h
<<_ACEOF
6803 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6807 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6810 case " $LIBOBJS " in
6811 *" fileblocks.$ac_objext "* ) ;;
6812 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6819 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6820 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6822 cat >>confdefs.h
<<_ACEOF
6823 #define HAVE_STRUCT_STAT_ST_RDEV 1
6827 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6833 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6834 if ${ac_cv_struct_tm+:} false
; then :
6835 $as_echo_n "(cached) " >&6
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6846 int *p = &tm.tm_sec;
6852 if ac_fn_c_try_compile
"$LINENO"; then :
6853 ac_cv_struct_tm
=time.h
6855 ac_cv_struct_tm
=sys
/time.h
6857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6860 $as_echo "$ac_cv_struct_tm" >&6; }
6861 if test $ac_cv_struct_tm = sys
/time.h
; then
6863 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6867 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6868 #include <$ac_cv_struct_tm>
6871 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6873 cat >>confdefs.h
<<_ACEOF
6874 #define HAVE_STRUCT_TM_TM_ZONE 1
6880 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6882 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6885 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6887 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6893 cat >>confdefs.h
<<_ACEOF
6894 #define HAVE_DECL_TZNAME $ac_have_decl
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6898 $as_echo_n "checking for tzname... " >&6; }
6899 if ${ac_cv_var_tzname+:} false
; then :
6900 $as_echo_n "(cached) " >&6
6902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6905 #if !HAVE_DECL_TZNAME
6906 extern char *tzname[];
6912 return tzname[0][0];
6917 if ac_fn_c_try_link
"$LINENO"; then :
6918 ac_cv_var_tzname
=yes
6922 rm -f core conftest.err conftest.
$ac_objext \
6923 conftest
$ac_exeext conftest.
$ac_ext
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6926 $as_echo "$ac_cv_var_tzname" >&6; }
6927 if test $ac_cv_var_tzname = yes; then
6929 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6934 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6935 if test "x$ac_cv_type_off_t" = xyes
; then :
6939 cat >>confdefs.h
<<_ACEOF
6940 #define off_t long int
6945 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6946 if test "x$ac_cv_type_pid_t" = xyes
; then :
6950 cat >>confdefs.h
<<_ACEOF
6956 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6957 if test "x$ac_cv_type_size_t" = xyes
; then :
6961 cat >>confdefs.h
<<_ACEOF
6962 #define size_t unsigned int
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6968 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6969 if ${ac_cv_type_uid_t+:} false
; then :
6970 $as_echo_n "(cached) " >&6
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "uid_t" >/dev
/null
2>&1; then :
6979 ac_cv_type_uid_t
=yes
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6987 $as_echo "$ac_cv_type_uid_t" >&6; }
6988 if test $ac_cv_type_uid_t = no
; then
6990 $as_echo "#define uid_t int" >>confdefs.h
6993 $as_echo "#define gid_t int" >>confdefs.h
6998 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6999 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7001 cat >>confdefs.h
<<_ACEOF
7002 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7009 # Look for some functions
7010 for ac_func
in getpagesize kqueue statfs statvfs \
7011 clone kse_create rfork_thread thr_create sa_register \
7012 getcontext makecontext setcontext sigaltstack swapcontext
7014 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7015 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7016 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7017 cat >>confdefs.h
<<_ACEOF
7018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7028 for ac_header
in $ac_header_list
7030 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7033 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7034 cat >>confdefs.h
<<_ACEOF
7035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7049 for ac_func
in getpagesize
7051 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7052 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7053 cat >>confdefs.h
<<_ACEOF
7054 #define HAVE_GETPAGESIZE 1
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7061 $as_echo_n "checking for working mmap... " >&6; }
7062 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7063 $as_echo_n "(cached) " >&6
7065 if test "$cross_compiling" = yes; then :
7066 ac_cv_func_mmap_fixed_mapped
=no
7068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 /* malloc might have been renamed as rpl_malloc. */
7074 /* Thanks to Mike Haertel and Jim Avera for this test.
7075 Here is a matrix of mmap possibilities:
7076 mmap private not fixed
7077 mmap private fixed at somewhere currently unmapped
7078 mmap private fixed at somewhere already mapped
7079 mmap shared not fixed
7080 mmap shared fixed at somewhere currently unmapped
7081 mmap shared fixed at somewhere already mapped
7082 For private mappings, we should verify that changes cannot be read()
7083 back from the file, nor mmap's back from the file at a different
7084 address. (There have been systems where private was not correctly
7085 implemented like the infamous i386 svr4.0, and systems where the
7086 VM page cache was not coherent with the file system buffer cache
7087 like early versions of FreeBSD and possibly contemporary NetBSD.)
7088 For shared mappings, we should conversely verify that changes get
7089 propagated back to all the places they're supposed to be.
7091 Grep wants private fixed already mapped.
7092 The main things grep needs to know about mmap are:
7093 * does it exist and is it safe to write into the mmap'd area
7094 * how to use it (BSD variants) */
7097 #include <sys/mman.h>
7099 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7103 /* This mess was copied from the GNU getpagesize.h. */
7104 #ifndef HAVE_GETPAGESIZE
7105 # ifdef _SC_PAGESIZE
7106 # define getpagesize() sysconf(_SC_PAGESIZE)
7107 # else /* no _SC_PAGESIZE */
7108 # ifdef HAVE_SYS_PARAM_H
7109 # include <sys/param.h>
7110 # ifdef EXEC_PAGESIZE
7111 # define getpagesize() EXEC_PAGESIZE
7112 # else /* no EXEC_PAGESIZE */
7114 # define getpagesize() NBPG * CLSIZE
7117 # endif /* no CLSIZE */
7118 # else /* no NBPG */
7120 # define getpagesize() NBPC
7121 # else /* no NBPC */
7123 # define getpagesize() PAGESIZE
7124 # endif /* PAGESIZE */
7125 # endif /* no NBPC */
7126 # endif /* no NBPG */
7127 # endif /* no EXEC_PAGESIZE */
7128 # else /* no HAVE_SYS_PARAM_H */
7129 # define getpagesize() 8192 /* punt totally */
7130 # endif /* no HAVE_SYS_PARAM_H */
7131 # endif /* no _SC_PAGESIZE */
7133 #endif /* no HAVE_GETPAGESIZE */
7138 char *data, *data2, *data3;
7143 pagesize = getpagesize ();
7145 /* First, make a file with some known garbage in it. */
7146 data = (char *) malloc (pagesize);
7149 for (i = 0; i < pagesize; ++i)
7150 *(data + i) = rand ();
7152 fd = creat ("conftest.mmap", 0600);
7155 if (write (fd, data, pagesize) != pagesize)
7159 /* Next, check that the tail of a page is zero-filled. File must have
7160 non-zero length, otherwise we risk SIGBUS for entire page. */
7161 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7165 if (write (fd2, cdata2, 1) != 1)
7167 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7168 if (data2 == MAP_FAILED)
7170 for (i = 0; i < pagesize; ++i)
7174 if (munmap (data2, pagesize))
7177 /* Next, try to mmap the file at a fixed address which already has
7178 something else allocated at it. If we can, also make sure that
7179 we see the same garbage. */
7180 fd = open ("conftest.mmap", O_RDWR);
7183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7186 for (i = 0; i < pagesize; ++i)
7187 if (*(data + i) != *(data2 + i))
7190 /* Finally, make sure that changes to the mapped area do not
7191 percolate back to the file as seen by read(). (This is a bug on
7192 some variants of i386 svr4.0.) */
7193 for (i = 0; i < pagesize; ++i)
7194 *(data2 + i) = *(data2 + i) + 1;
7195 data3 = (char *) malloc (pagesize);
7198 if (read (fd, data3, pagesize) != pagesize)
7200 for (i = 0; i < pagesize; ++i)
7201 if (*(data + i) != *(data3 + i))
7207 if ac_fn_c_try_run
"$LINENO"; then :
7208 ac_cv_func_mmap_fixed_mapped
=yes
7210 ac_cv_func_mmap_fixed_mapped
=no
7212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7218 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7221 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7224 rm -f conftest.mmap conftest.txt
7229 aros_config_cflags
="-Wall -Werror-implicit-function-declaration -Wno-parentheses"
7230 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7231 aros_config_ldflags
=""
7233 aros_shared_default
=yes
7235 aros_shared_cflags
="-fPIC"
7236 aros_shared_aflags
=""
7237 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7238 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7240 aros_kernel_ar_flags
="cr"
7241 aros_target_ar_flags
="cr"
7242 aros_target_nm_flags
="-C -ul"
7243 aros_target_strip_flags
="--strip-unneeded -R.comment"
7248 aros_target_genmap
="-Wl,-Map -Xlinker"
7250 # Native flavour stuff
7251 aros_serial_debug
="0"
7253 # Palm native flavour stuff
7254 aros_palm_debug_hack
="0"
7256 # Unix flavour stuff
7257 aros_nesting_supervisor
="0"
7259 # Collect-aros stuff: "-ius" to ignore undefined symbols
7260 ignore_undefined_symbols
=""
7262 # Check for X11 by default
7269 #-----------------------------------------------------------------------------
7272 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7273 # it switched on by default, and we use the host compiler, so it compiles AROS
7274 # code with this enabled resulting in link failures as we don't have support
7277 # We use two methods to disable it. For the host compiler (used to compile
7278 # some hosted modules), we test to see if the compiler supports stack
7279 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7280 # work on all platforms.
7282 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7283 # (this is done unconditionally, as it should have no effect on compilers
7284 # without the stack protection feature). This may be specific to the way that
7285 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7286 # strong enough to disable it in a generic way though, so we'll live with it
7287 # until another vendor ships GCC with it enabled in a different way, and deal
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7292 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7293 save_cflags
="$CFLAGS"
7294 CFLAGS
="$CFLAGS -fno-stack-protector"
7295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7306 if ac_fn_c_try_compile
"$LINENO"; then :
7307 use_no_stack_protector
="yes"
7309 use_no_stack_protector
="no"
7311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7313 $as_echo "$use_no_stack_protector" >&6; }
7314 if test "x-$use_no_stack_protector" = "x-yes" ; then
7315 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7317 CFLAGS
="$save_cflags"
7319 #-----------------------------------------------------------------------------
7321 # Disable pointer-signedness warnings if the compiler recognises the option
7322 # (this only works for the host compiler at the moment)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7325 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7326 save_cflags
="$CFLAGS"
7327 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7339 if ac_fn_c_try_compile
"$LINENO"; then :
7340 use_no_sign_warning
="yes"
7342 use_no_sign_warning
="no"
7344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7346 $as_echo "$use_no_sign_warning" >&6; }
7347 if test "x-$use_no_sign_warning" = "x-yes" ; then
7348 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7350 CFLAGS
="$save_cflags"
7352 #-----------------------------------------------------------------------------
7354 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7357 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7358 save_cflags
="$CFLAGS"
7359 CFLAGS
="$CFLAGS -fgnu89-inline"
7360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7371 if ac_fn_c_try_compile
"$LINENO"; then :
7372 use_gnu89_inline
="yes"
7374 use_gnu89_inline
="no"
7376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7378 $as_echo "$use_gnu89_inline" >&6; }
7379 if test "x-$use_gnu89_inline" = "x-yes" ; then
7380 gnu89_inline
="-fgnu89-inline"
7382 CFLAGS
="$save_cflags"
7384 #-----------------------------------------------------------------------------
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7387 $as_echo_n "checking for type of build... " >&6; }
7388 # Check whether --enable-build_type was given.
7389 if test "${enable_build_type+set}" = set; then :
7390 enableval
=$enable_build_type; build_type
=$enableval
7392 build_type
="personal"
7396 if test "$build_type" = "nightly"; then
7397 build_type_string
="NIGHTLY"
7398 elif test "$build_type" = "snapshot"; then
7399 build_type_string
="SNAPSHOT"
7400 elif test "$build_type" = "milestone"; then
7401 build_type_string
="MILESTONE"
7402 elif test "$build_type" = "release"; then
7403 build_type_string
="RELEASE"
7405 build_type_string
="PERSONAL"
7406 build_type
="personal"
7409 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7412 $as_echo "$build_type" >&6; }
7414 #-----------------------------------------------------------------------------
7415 all_debug_types
="messages stack modules mungwall symbols"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7418 $as_echo_n "checking which debug types to enable... " >&6; }
7419 # Check whether --enable-debug was given.
7420 if test "${enable_debug+set}" = set; then :
7421 enableval
=$enable_debug; debug
="$enableval"
7427 if test "$debug" = "" -o "$debug" = "no"; then
7429 elif test "$debug" = "yes"; then
7433 if test "$debug" = "all" ; then
7434 debug
="messages stack modules symbols"
7435 for d
in $all_debug_types; do
7436 export aros_
${d}_debug
="1"
7439 for d
in $all_debug_types; do
7440 export aros_
${d}_debug
="0"
7444 if test "$debug" != "none"; then
7445 debug
=`echo $debug | sed s/,/\ /g`
7448 for d2
in $all_debug_types; do
7449 if test "$d2" = "$d"; then
7454 if test "$found" = "0"; then
7455 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7457 export aros_
${d}_debug
="1"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7462 $as_echo "$debug" >&6; }
7464 if test "$aros_messages_debug" = "1"; then
7465 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7467 aros_messages_debug
=""
7469 if test "$aros_symbols_debug" = "1"; then
7470 aros_symbols_debug
="-g"
7472 aros_symbols_debug
=""
7475 # These are the flags to pass when compiling debugged programs
7476 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7477 aros_debug_aflags
=""
7478 aros_debug_ldflags
="$aros_symbols_debug"
7480 #-----------------------------------------------------------------------------
7481 # Checking for distcc and ccache.
7483 # Always apply the transforms in this particular order. Basically you should
7484 # always run 'ccache distcc compiler' in that order for the best performance.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7487 $as_echo_n "checking whether to enable distcc... " >&6; }
7488 # Check whether --enable-distcc was given.
7489 if test "${enable_distcc+set}" = set; then :
7490 enableval
=$enable_distcc; distcc
="$enableval"
7495 if test "$distcc" != "" -a "$distcc" != "no"; then
7496 # AC_CHECK_PROG will print out the result in this case
7497 # Extract the first word of "distcc", so it can be a program name with args.
7498 set dummy distcc
; ac_word
=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_path_DISTCC+:} false
; then :
7502 $as_echo_n "(cached) " >&6
7506 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir
=.
7514 for ac_exec_ext
in '' $ac_executable_extensions; do
7515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7528 DISTCC
=$ac_cv_path_DISTCC
7529 if test -n "$DISTCC"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7531 $as_echo "$DISTCC" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7544 $as_echo_n "checking whether to enable ccache... " >&6; }
7545 # Check whether --enable-ccache was given.
7546 if test "${enable_ccache+set}" = set; then :
7547 enableval
=$enable_ccache; ccache
="$enableval"
7552 if test "$ccache" != "" -a "$ccache" != "no"; then
7553 # AC_CHECK_PROG will print out the result in this case
7554 # Extract the first word of "ccache", so it can be a program name with args.
7555 set dummy ccache
; ac_word
=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_CCACHE+:} false
; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$CCACHE"; then
7562 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir
=.
7569 for ac_exec_ext
in '' $ac_executable_extensions; do
7570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_CCACHE
="ccache"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 CCACHE
=$ac_cv_prog_CCACHE
7582 if test -n "$CCACHE"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7584 $as_echo "$CCACHE" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7596 #-----------------------------------------------------------------------------
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7598 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7600 # Check whether --with-kernel-gcc-version was given.
7601 if test "${with_kernel_gcc_version+set}" = set; then :
7602 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7604 kernel_tool_version
=""
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7608 $as_echo "$kernel_tool_version" >&6; }
7610 #-----------------------------------------------------------------------------
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7612 $as_echo_n "checking what optimization flags to use... " >&6; }
7614 # Check whether --with-optimization was given.
7615 if test "${with_optimization+set}" = set; then :
7616 withval
=$with_optimization; optimization
="$withval"
7618 optimization
="unknown"
7621 if test "$optimization" = "unknown"; then
7622 if test "$debug" != "none"; then
7628 aros_optimization_cflags
="$optimization"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7630 $as_echo "$optimization" >&6; }
7632 #-----------------------------------------------------------------------------
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7634 $as_echo_n "checking what paranoia flags to use... " >&6; }
7636 # Check whether --with-paranoia was given.
7637 if test "${with_paranoia+set}" = set; then :
7638 withval
=$with_paranoia; paranoia_flags
="$withval"
7640 paranoia_flags
="default"
7643 if test "$paranoia_flags" = "default"; then
7645 else if test "$paranoia_flags" = "yes"; then
7646 paranoia_flags
="-Wall -Werror"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7649 $as_echo "$paranoia_flags" >&6; }
7650 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7652 #-----------------------------------------------------------------------------
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7654 $as_echo_n "checking what target variant to enable... " >&6; }
7655 # Check whether --enable-target_variant was given.
7656 if test "${enable_target_variant+set}" = set; then :
7657 enableval
=$enable_target_variant; target_variant
=$enableval
7662 if test "$target_variant" = ""; then
7663 aros_target_variant
=""
7664 aros_target_suffix
=""
7667 aros_target_variant
="$target_variant"
7668 aros_target_suffix
="-$target_variant"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7671 $as_echo "$enableval" >&6; }
7673 #-----------------------------------------------------------------------------
7674 # Target-specific defaults. You can override then on a per-target basis.
7676 # Bootloader name. Currently used by PC target.
7677 target_bootloader
="none"
7680 #-----------------------------------------------------------------------------
7681 # Additional options for some specific targets
7683 case "$aros_target_variant" in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7686 $as_echo_n "checking XCode path... " >&6; }
7688 # Check whether --with-xcode was given.
7689 if test "${with_xcode+set}" = set; then :
7690 withval
=$with_xcode; aros_xcode_path
="$withval"
7692 aros_xcode_path
="/Developer"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7696 $as_echo "$aros_xcode_path" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7699 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7701 # Check whether --with-sdk-version was given.
7702 if test "${with_sdk_version+set}" = set; then :
7703 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7705 aros_sdk_version
="4.1"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7709 $as_echo "$aros_sdk_version" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7715 $as_echo_n "checking Android SDK path... " >&6; }
7717 # Check whether --with-sdk was given.
7718 if test "${with_sdk+set}" = set; then :
7719 withval
=$with_sdk; aros_android_sdk
="$withval"
7721 aros_android_sdk
=$default_android_sdk
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7725 $as_echo "$aros_android_sdk" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7728 $as_echo_n "checking Android NDK path... " >&6; }
7730 # Check whether --with-ndk was given.
7731 if test "${with_ndk+set}" = set; then :
7732 withval
=$with_ndk; aros_android_ndk
="$withval"
7734 aros_android_ndk
="none"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7738 $as_echo "$aros_android_ndk" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7741 $as_echo_n "checking what Android SDK version to use... " >&6; }
7743 # Check whether --with-sdk-version was given.
7744 if test "${with_sdk_version+set}" = set; then :
7745 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7747 aros_sdk_version
="12"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7751 $as_echo "$aros_sdk_version" >&6; }
7753 aros_android_level
=android-
$aros_sdk_version
7754 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7755 echo "Platform $aros_android_level is not installed in your SDK"
7756 echo "Use --with-sdk-version=<API level number> to select another platform version"
7757 echo "You can check what plaform versions are installed in your SDK"
7758 echo "by examining contents of $aros_android_sdk/platforms directory"
7759 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7762 export PATH
="$aros_android_sdk/tools:$PATH"
7763 # Extract the first word of "$android_tool", so it can be a program name with args.
7764 set dummy
$android_tool; ac_word
=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_path_android_tool+:} false
; then :
7768 $as_echo_n "(cached) " >&6
7770 case $android_tool in
7772 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir
=.
7780 for ac_exec_ext
in '' $ac_executable_extensions; do
7781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 android_tool
=$ac_cv_path_android_tool
7794 if test -n "$android_tool"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7796 $as_echo "$android_tool" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 if test "$android_tool" = ""; then
7804 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7807 if test "$aros_android_ndk" != "none"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7809 $as_echo_n "checking what Android NDK version to use... " >&6; }
7811 # Check whether --with-ndk-version was given.
7812 if test "${with_ndk_version+set}" = set; then :
7813 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7815 aros_ndk_version
="9"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7819 $as_echo "$aros_ndk_version" >&6; }
7822 # Extract the first word of "ant", so it can be a program name with args.
7823 set dummy ant
; ac_word
=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_path_ant+:} false
; then :
7827 $as_echo_n "(cached) " >&6
7831 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir
=.
7839 for ac_exec_ext
in '' $ac_executable_extensions; do
7840 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 if test -n "$ant"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7855 $as_echo "$ant" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 if test "$ant" = ""; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7864 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7868 $as_echo_n "checking Build debug or release apk... " >&6; }
7870 # Check whether --with-apk-version was given.
7871 if test "${with_apk_version+set}" = set; then :
7872 withval
=$with_apk_version; aros_android_antapk
=$withval
7874 aros_android_antapk
=release
7877 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
7878 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7881 $as_echo "$aros_android_antapk" >&6; }
7883 if test "$host_os" = "mingw32"; then
7884 android_tool
="cmd //c $android_tool"
7892 #-----------------------------------------------------------------------------
7893 # External toolchains
7894 kernel_tool_prefix
="none"
7895 aros_tool_prefix
="none"
7896 elf_tool_prefix
="${target_cpu}-elf-"
7898 # This is the target configuration switch.
7899 case "$target_os" in
7901 aros_target_arch
="linux"
7902 aros_target_family
="unix"
7903 case "$target_cpu" in
7905 aros_target_cpu
="m68k"
7906 aros_object_format
="m68kelf"
7907 aros_flavour
="emulcompat"
7908 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7909 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7910 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7911 gcc_target_cpu
="mc68000"
7914 aros_target_cpu
="i386"
7915 aros_object_format
="elf_i386"
7916 aros_flavour
="emulation"
7917 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7918 aros_kernel_ldflags
="-Wl,-melf_i386"
7919 aros_nominal_depth
=8
7920 gcc_target_cpu
="i386"
7921 pci_hidd_target
="hidd-pci-linux"
7922 android_tool_dir_prefix
="x86"
7923 android_tool_prefix
="i686-android-linux"
7924 android_ndk_arch
="x86"
7927 aros_target_cpu
="x86_64"
7928 aros_object_format
="elf_x86_64"
7929 aros_flavour
="emulation"
7930 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7931 aros_config_cflags
="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
7932 aros_nominal_depth
=8
7933 pci_hidd_target
="hidd-pci-linux"
7936 aros_target_cpu
="ppc"
7937 aros_object_format
="elf32ppc"
7938 aros_flavour
="emulation"
7939 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7940 aros_nominal_depth
=8
7941 gcc_target_cpu
="ppc"
7944 # Same as powerpc, but I need this for the nightly build to work again.
7945 # Actually, the nightly should be made working with powerpc target.
7946 # That just was too much work for the moment, another week or two.
7948 aros_target_cpu
="ppc"
7949 aros_object_format
="elf32ppc"
7950 aros_flavour
="emulation"
7951 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7952 aros_nominal_depth
=8
7953 gcc_target_cpu
="ppc"
7956 aros_target_cpu
="arm"
7958 aros_object_format
="armelf_aros"
7959 aros_flavour
="emulation"
7960 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7961 gcc_target_cpu
="arm"
7962 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7963 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7964 aros_arch_libs
="-laeabi"
7965 gcc_default_float_abi
="hard"
7966 android_tool_dir_prefix
="arm-linux-androideabi"
7967 android_tool_prefix
="arm-linux-androideabi"
7968 android_ndk_arch
="arm"
7969 kernel_tool_prefix
="arm-linux-gnueabihf-"
7972 aros_target_cpu
="arm"
7973 aros_object_format
="armelf_aros"
7974 aros_flavour
="emulation"
7975 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7976 gcc_target_cpu
="arm"
7977 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7978 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7979 aros_arch_libs
="-laeabi"
7980 android_tool_dir_prefix
="arm-linux-androideabi"
7981 android_tool_prefix
="arm-linux-androideabi"
7982 android_ndk_arch
="arm"
7983 kernel_tool_prefix
="arm-linux-gnueabi-"
7986 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7989 case "$aros_target_variant" in
7992 if test "$android_ndk_arch" = ""; then
7993 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7996 aros_nominal_width
=320
7997 aros_nominal_height
=480
7998 if test "$aros_android_ndk" = "none"; then
7999 aros_kernel_cflags
="-mandroid"
8000 aros_kernel_ldflags
="-mandroid"
8003 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8004 kernel_tool_version
=""
8005 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8006 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8007 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8008 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8009 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8012 host_android_gfx
=yes
8013 # Disable implicit PIC mode
8014 aros_target_cflags
="$aros_target_cflags -fno-pic"
8015 kernel_tool_prefix
="$android_tool_prefix-"
8021 aros_target_arch
="pc"
8022 aros_shared_default
="no"
8023 target_bootloader
="grub2"
8024 case "$target_cpu" in
8026 aros_target_cpu
="i386"
8029 if test "$aros_object_format" = "" ; then
8030 aros_object_format
="elf_i386"
8032 aros_flavour
="standalone"
8033 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8034 aros_kernel_ldflags
="-Wl,-melf_i386"
8035 aros_nominal_width
=640
8036 aros_nominal_height
=480
8037 gcc_target_cpu
="i386"
8040 aros_target_cpu
="x86_64"
8042 if test "$aros_object_format" = "" ; then
8043 aros_object_format
="elf_x86_64"
8045 aros_flavour
="standalone"
8046 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8047 aros_config_cflags
="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8048 aros_kernel_ldflags
=""
8049 aros_nominal_width
=640
8050 aros_nominal_height
=480
8051 case "$aros_target_variant" in
8053 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8058 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8064 aros_target_arch
="prep"
8065 aros_shared_default
="no"
8066 aros_target_cpu
="ppc"
8067 aros_object_format
="elf32ppc"
8068 aros_flavour
="ppcnative"
8069 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8070 aros_kernel_ldflags
=""
8071 aros_nominal_width
=640
8072 aros_nominal_height
=480
8073 gcc_target_cpu
="ppc"
8077 aros_target_arch
="freebsd"
8078 aros_target_family
="unix"
8079 aros_target_cpu
="i386"
8080 aros_flavour
="emulation"
8081 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8082 gcc_target_cpu
="i386"
8084 aros_target_strip_flags
="-x"
8088 aros_target_arch
="darwin"
8089 aros_target_family
="unix"
8090 aros_flavour
="emulation"
8091 case "$target_cpu" in
8093 aros_ios_platform
="iPhoneSimulator"
8094 aros_target_cpu
="i386"
8095 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8096 aros_kernel_ldflags
=""
8097 aros_macosx_version
="10.4"
8098 aros_nominal_depth
=8
8099 gcc_target_cpu
="i386"
8100 aros_object_format
="elf_i386"
8101 aros_kernel_ar_flags
="-cr"
8102 aros_target_strip_flags
="-x"
8103 kernel_tool_flags
="-m32"
8106 aros_target_cpu
="x86_64"
8107 aros_object_format
="elf_x86_64"
8108 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8109 aros_macosx_version
="10.6"
8110 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8111 aros_kernel_cflags
="-m64"
8112 aros_kernel_ldflags
="-m64"
8113 aros_target_cflags
="-mcmodel=large"
8114 aros_nominal_depth
=8
8116 aros_kernel_ar_flags
="-cr"
8119 aros_kernel_ranlib
="ranlib"
8121 aros_kernel_strip
="strip"
8122 kernel_tool_prefix
="i686-apple-darwin10-"
8125 aros_target_cpu
="ppc"
8126 aros_object_format
="elf32ppc"
8127 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8128 aros_kernel_ldflags
=""
8129 aros_macosx_version
="10.0"
8130 aros_nominal_depth
=8
8131 gcc_target_cpu
="ppc"
8133 aros_kernel_ar_flags
="-cr"
8134 aros_kernel_ld
="ld -arch ppc"
8135 aros_kernel_as
="as -arch ppc"
8136 aros_kernel_ranlib
="ranlib -arch ppc"
8137 aros_kernel_nm
="nm -arch ppc"
8138 aros_kernel_strip
="strip -arch ppc"
8139 kernel_tool_prefix
="powerpc-apple-darwin10-"
8142 aros_ios_platform
="iPhoneOS"
8143 aros_target_cpu
="arm"
8144 aros_object_format
="armelf_aros"
8145 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8146 aros_arch_libs
="-laeabi"
8147 aros_nominal_depth
=8
8148 gcc_target_cpu
="arm"
8150 aros_kernel_ar_flags
="-cr"
8151 aros_kernel_ld
="ld -arch arm"
8152 aros_kernel_ranlib
="ranlib -arch arm"
8153 kernel_tool_prefix
="arm-apple-darwin10-"
8154 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8157 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8160 case "$aros_target_variant" in
8162 aros_ios_version
="3.0"
8163 aros_nominal_width
=320
8164 aros_nominal_height
=480
8165 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8166 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8167 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8169 # This is here because it may depend on iOS or SDK version
8170 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8171 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8172 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8175 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8176 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8182 aros_target_arch
="dragonfly"
8183 aros_target_family
="unix"
8184 aros_flavour
="emulation"
8185 case "$target_cpu" in
8187 aros_target_cpu
="i386"
8188 aros_object_format
="elf_i386"
8189 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8192 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8193 aros_target_cpu
="x86_64"
8194 aros_object_format
="elf_x86_64"
8195 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8198 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8204 aros_target_arch
="netbsd"
8205 aros_target_family
="unix"
8206 case "$target_cpu" in
8208 aros_target_cpu
="m68k"
8209 aros_object_format
="m68kelf"
8210 aros_flavour
="emulcompat"
8211 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8212 gcc_target_cpu
="mc68000"
8215 aros_target_cpu
="i386"
8216 aros_object_format
="elf_i386"
8217 aros_flavour
="emulation"
8218 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8219 aros_nominal_depth
=8
8220 gcc_target_cpu
="i386"
8223 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8226 aros_target_genmap
="-Wl,-M -Xlinker >"
8227 aros_flavour
="emulation"
8228 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8232 aros_target_arch
="openbsd"
8233 aros_target_family
="unix"
8234 case "$target_cpu" in
8236 aros_target_cpu
="i386"
8237 aros_object_format
="elf_i386"
8238 aros_flavour
="emulation"
8239 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8240 gcc_target_cpu
="i386"
8243 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8246 aros_target_genmap
="-Wl,-M -Xlinker >"
8247 aros_target_nm_flags
="-u"
8248 aros_flavour
="emulation"
8252 aros_target_arch
="solaris"
8253 aros_target_family
="unix"
8254 case "$target_cpu" in
8256 aros_target_cpu
="i386"
8257 aros_object_format
="elf_i386"
8258 aros_flavour
="emulation"
8259 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8260 aros_nominal_depth
=8
8261 gcc_target_cpu
="i386"
8264 aros_target_cpu
="sparc"
8265 aros_object_format
="elf_sparc"
8266 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8267 gcc_target_cpu
="sparc"
8270 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8273 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8274 aros_flavour
="emulation"
8278 aros_target_arch
="morphos"
8279 aros_shared_default
="no"
8280 aros_target_cpu
="ppc"
8281 aros_object_format
="elf_ppc"
8282 aros_flavour
="nativecompat"
8283 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8284 gcc_target_cpu
="ppc"
8288 aros_target_arch
="sam440"
8289 aros_shared_default
="no"
8290 aros_target_cpu
="ppc"
8291 aros_object_format
="elf32ppc"
8292 aros_flavour
="ppcnative"
8293 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8294 aros_kernel_ldflags
=""
8295 aros_nominal_width
=1024
8296 aros_nominal_height
=768
8297 aros_nominal_depth
=24
8298 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8299 gcc_target_cpu
="powerpc"
8303 aros_target_arch
="efika"
8304 aros_shared_default
="no"
8305 aros_target_cpu
="arm"
8306 aros_object_format
="armelf_aros"
8307 aros_flavour
="standalone"
8308 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8309 aros_kernel_ldflags
=""
8310 aros_nominal_width
=1024
8311 aros_nominal_height
=600
8312 aros_arch_libs
="-laeabi"
8313 gcc_default_cpu
="armv7-a"
8314 gcc_default_fpu
="vfpv3"
8315 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8316 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8317 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8318 case "$target_cpu" in
8320 gcc_default_float_abi
="hard"
8325 gcc_default_float_abi
="softfp"
8328 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8334 aros_target_arch
="chrp"
8335 aros_shared_default
="no"
8336 aros_target_cpu
="ppc"
8337 aros_object_format
="elf32ppc"
8338 aros_flavour
="ppcnative"
8339 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8340 aros_kernel_ldflags
=""
8341 aros_nominal_width
=640
8342 aros_nominal_height
=480
8343 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8344 gcc_target_cpu
="powerpc"
8345 case "$aros_target_variant" in
8347 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8353 aros_flavour
="standalone"
8354 aros_target_arch
="raspi"
8355 aros_target_cpu
="arm"
8356 aros_object_format
="armelf_aros"
8357 aros_shared_default
="no"
8358 aros_arch_libs
="-laeabi"
8360 gcc_default_cpu
="armv6zk"
8361 gcc_default_cpu_tune
="arm1176jzf-s"
8363 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8364 aros_config_cflags
="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8365 aros_config_aflags
="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8366 aros_kernel_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8367 aros_target_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8368 case "$aros_target_variant" in
8370 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8376 aros_flavour
="standalone"
8377 aros_target_arch
="stm32f7_discovery"
8378 aros_target_cpu
="arm"
8379 aros_target_cpu_mode
="thumb2"
8380 aros_object_format
="armelf_aros"
8381 aros_shared_default
="no"
8383 # stm32f7 has DSP opcode support
8384 gcc_default_cpu
="armv7e-m"
8385 # gcc_default_cpu="armv7-m"
8386 gcc_default_cpu_tune
="cortex-m7"
8387 gcc_default_fpu
="fpv4-sp-d16"
8388 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8389 # gcc_default_fpu="fpv5-sp-d16"
8390 gcc_default_float_abi
="hard"
8392 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8396 aros_target_arch
="amiga"
8397 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8398 aros_shared_default
="no"
8400 case "$target_cpu" in
8402 # Check whether --enable-amigaos_compliance was given.
8403 if test "${enable_amigaos_compliance+set}" = set; then :
8404 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8408 aros_target_cpu
="m68k"
8409 aros_object_format
="m68kelf"
8410 aros_flavour
="standcompat"
8411 gcc_target_cpu
="m68000"
8412 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8413 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8414 aros_config_aflags
="$aros_config_aflags"
8415 aros_target_strip_flags
="-R.comment --strip-debug"
8416 aros_nominal_width
=640
8417 aros_nominal_height
=256
8418 aros_nominal_depth
=2
8422 aros_flavour
="native"
8423 gcc_target_cpu
="ppc"
8426 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8432 aros_target_arch
="mingw32"
8433 aros_shared_default
="no"
8434 aros_flavour
="emulation"
8435 aros_shared_cflags
=""
8436 need_crosstools
="yes"
8439 case "$target_cpu" in
8441 aros_target_cpu
="i386"
8442 aros_object_format
="elf_i386"
8443 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8444 aros_nominal_depth
=8
8445 gcc_target_cpu
="i386"
8447 kernel_tool_prefix
="i386-mingw32-"
8450 aros_target_cpu
="x86_64"
8451 aros_object_format
="elf_x86_64"
8452 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8453 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8454 aros_nominal_depth
=8
8455 kernel_tool_prefix
="x86_64-w64-mingw32-"
8458 aros_target_cpu
="arm"
8459 aros_object_format
="armelf_aros"
8460 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8461 aros_arch_libs
="-laeabi"
8462 aros_nominal_depth
=8
8463 gcc_target_cpu
="arm"
8464 gcc_default_float_abi
="soft"
8465 kernel_tool_prefix
="arm-mingw32ce-"
8466 aros_nominal_width
=160
8467 aros_nominal_height
=160
8470 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8473 if test $host_os = "cygwin"; then
8474 aros_kernel_cflags
="-mno-cygwin"
8478 aros_target_arch
="pp"
8479 aros_shared_default
="no"
8480 case "$target_cpu" in
8482 aros_target_cpu
="m68k"
8483 aros_object_format
="m68kelf"
8484 aros_flavour
="palmnative"
8485 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8486 aros_nominal_width
=160
8487 aros_nominal_height
=160
8488 aros_nominal_depth
=1
8489 aros_target_ar_flags
="cru"
8490 aros_compiler_libs
="-lgcc1"
8491 aros_shared_default
=no
8492 aros_shared_cflags
="-fpic"
8493 aros_shared_aflags
=""
8494 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8495 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8496 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8497 aros_debug_aflags
=""
8498 aros_debug_ldflags
="$aros_symbols_debug"
8499 aros_mungwall_debug
="0"
8500 aros_modules_debug
="0"
8501 gcc_target_cpu
="mc68000"
8502 ignore_undefined_symbols
="-ius"
8505 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8511 aros_target_arch
="mac"
8512 aros_shared_default
="no"
8513 case "$target_cpu" in
8515 aros_target_cpu
="m68k"
8516 aros_object_format
="m68kelf"
8517 aros_flavour
="mac68knative"
8518 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8519 aros_nominal_width
=512
8520 aros_nominal_height
=384
8521 aros_nominal_depth
=8
8522 aros_target_ar_flags
="cru"
8523 aros_compiler_libs
="-lgcc1"
8524 aros_shared_default
=no
8525 aros_shared_cflags
="-fpic"
8526 aros_shared_aflags
=""
8527 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8528 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8529 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8530 aros_debug_aflags
=""
8531 aros_debug_ldflags
="$aros_symbols_debug"
8532 aros_mungwall_debug
="0"
8533 aros_modules_debug
="0"
8534 gcc_target_cpu
="mc68000"
8535 ignore_undefined_symbols
="-ius"
8538 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8544 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8548 #-----------------------------------------------------------------------------
8549 crosstools_guess
="yes"
8550 aros_target_toolchain
="no"
8551 aros_config_sysroot
=""
8552 aros_kernel_sysroot
=""
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8555 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8557 # Check whether --with-kernel-toolchain-prefix was given.
8558 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8559 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8563 $as_echo "$kernel_tool_prefix" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8566 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8568 # Check whether --with-elf-toolchain-prefix was given.
8569 if test "${with_elf_toolchain_prefix+set}" = set; then :
8570 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8571 crosstools_guess
="no"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8575 $as_echo "$elf_tool_prefix" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8578 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8580 # Check whether --with-aros-toolchain was given.
8581 if test "${with_aros_toolchain+set}" = set; then :
8582 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8583 crosstools_guess
="no"
8586 if test "$aros_tool_prefix" = "yes" ; then
8587 aros_tool_prefix
=$aros_target_cpu-aros-
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8590 $as_echo "$aros_tool_prefix" >&6; }
8592 #-----------------------------------------------------------------------------
8593 # Checking if we should build crosstools..
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8595 $as_echo_n "checking whether to build crosstools... " >&6; }
8596 # Check whether --enable-crosstools was given.
8597 if test "${enable_crosstools+set}" = set; then :
8598 enableval
=$enable_crosstools; crosstools
="$enableval"
8600 crosstools
="$crosstools_guess"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8604 $as_echo "$crosstools" >&6; }
8606 if test "${crosstools}" = "yes"; then
8607 if test "${crosstools_guess}" = "no"; then
8608 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8612 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8613 aros_target_toolchain
="yes"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8617 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8619 # Check whether --with-aros-toolchain-install was given.
8620 if test "${with_aros_toolchain_install+set}" = set; then :
8621 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8624 if test "x$aros_toolchain_install" = "x"; then
8625 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8627 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8628 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8629 if test "$crosstools_guess" = "no" ; then
8630 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8632 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8633 aros_kernel_sysroot
= $aros_config_sysroot
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8638 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8640 #-----------------------------------------------------------------------------
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8642 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8644 # Check whether --with-binutils-version was given.
8645 if test "${with_binutils_version+set}" = set; then :
8646 withval
=$with_binutils_version; use_binutils_version
="$withval"
8648 use_binutils_version
=""
8651 if test "$use_binutils_version" = ""; then
8652 target_binutils_version
="$default_binutils_version"
8654 target_binutils_version
="$use_binutils_version"
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8657 $as_echo "$target_binutils_version" >&6; }
8660 # Helper to identify gcc version
8663 #-----------------------------------------------------------------------------
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8665 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8667 # Check whether --with-gcc-version was given.
8668 if test "${with_gcc_version+set}" = set; then :
8669 withval
=$with_gcc_version; use_gcc_version
="$withval"
8674 if test "$use_gcc_version" = ""; then
8675 if test "${crosstools}" = "no"; then
8676 if test "x$aros_toolchain_install" != "x"; then
8678 target_gcc_version
=""
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8680 $as_echo_n "checking gcc version... " >&6; }
8681 if ${ax_cv_gcc_version+:} false
; then :
8682 $as_echo_n "(cached) " >&6
8685 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8686 if test "x$ax_cv_gcc_version" = "x"; then :
8688 ax_cv_gcc_version
=""
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8694 $as_echo "$ax_cv_gcc_version" >&6; }
8695 target_gcc_version
=$ax_cv_gcc_version
8700 if test "$use_gcc_version" = ""; then
8701 target_gcc_version
="$default_gcc_version"
8704 target_gcc_version
="$use_gcc_version"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8707 $as_echo "$target_gcc_version" >&6; }
8709 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
8710 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
8711 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
8713 gcc_fix_bitfields
="false"
8714 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8715 gcc_fix_bitfields
="true"
8717 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8718 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8719 gcc_fix_bitfields
="true"
8724 if test "$gcc_fix_bitfields" = "true" ; then
8725 case "$aros_target_cpu" in
8727 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8728 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8731 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8732 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8738 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8739 # Check whether --enable-objc was given.
8740 if test "${enable_objc+set}" = set; then :
8741 enableval
=$enable_objc; objc
="$enableval"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8747 $as_echo "$objc" >&6; }
8748 if test "x$objc" = "xyes"; then
8751 objc_target
="no-objc"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8755 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8756 # Check whether --enable-java was given.
8757 if test "${enable_java+set}" = set; then :
8758 enableval
=$enable_java; java
="$enableval"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8764 $as_echo "$java" >&6; }
8765 if test "x$java" != "xno"; then
8768 java_target
="no-java"
8771 spec_obj_format
="-m $aros_object_format"
8772 # Now process extra architecture-specific options.
8773 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8774 # as well as floating-point ABI.
8775 case "$aros_target_cpu" in
8777 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8780 if test "$gcc_default_cpu" = ""; then
8781 gcc_default_cpu
="armv6"
8783 if test "$gcc_default_fpu" = ""; then
8784 gcc_default_fpu
="vfp"
8786 if test "$gcc_default_float_abi" = ""; then
8787 if test "$target_cpu" = "armhf"; then
8788 gcc_default_float_abi
="hard"
8790 gcc_default_float_abi
="softfp"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8795 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8797 # Check whether --with-cpu was given.
8798 if test "${with_cpu+set}" = set; then :
8799 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8801 aros_gcc_cpu
=$gcc_default_cpu
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8805 $as_echo "$aros_gcc_cpu" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8808 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8810 # Check whether --with-fpu was given.
8811 if test "${with_fpu+set}" = set; then :
8812 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8814 aros_gcc_fpu
=$gcc_default_fpu
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8818 $as_echo "$aros_gcc_fpu" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8821 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8823 # Check whether --with-float was given.
8824 if test "${with_float+set}" = set; then :
8825 withval
=$with_float; aros_gcc_float_abi
="$withval"
8827 aros_gcc_float_abi
=$gcc_default_float_abi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8831 $as_echo "$aros_gcc_float_abi" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8834 $as_echo_n "checking Which ARM mode to use... " >&6; }
8835 if test "$aros_target_cpu_mode" = ""; then
8836 aros_target_cpu_mode
="arm32"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8838 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8841 $as_echo "$aros_target_cpu_mode" >&6; }
8844 case "$aros_target_cpu_mode" in
8846 gcc_default_mode
="arm"
8847 aros_isa_flags
="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8850 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
8853 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
8856 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
8859 gcc_default_mode
="thumb"
8860 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
8861 aros_isa_flags
="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8864 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
8868 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8869 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8872 aros_isa_flags
="-m32 -march=i486"
8873 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
8874 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
8878 # Some architectures may need custom ELF specs.
8879 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
8880 elf_specs_in
=config
/${aros_object_format}-specs.
in
8882 elf_specs_in
=config
/elf-specs.
in
8885 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8886 # Since we override specs, we may need to put these defines there
8887 if test "$gcc_target_cpu" != ""; then
8888 gcc_target_cpu
="-D__${gcc_target_cpu}__"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8892 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8894 # Check whether --with-portssources was given.
8895 if test "${with_portssources+set}" = set; then :
8896 withval
=$with_portssources; with_portssrcdir
=$withval
8898 with_portssrcdir
="default"
8901 if test "$with_portssrcdir" = "default"; then
8902 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
8904 AROS_PORTSSRCDIR
="$with_portssrcdir"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8907 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8910 $as_echo_n "checking which bootloader to use... " >&6; }
8912 # Check whether --with-bootloader was given.
8913 if test "${with_bootloader+set}" = set; then :
8914 withval
=$with_bootloader; target_bootloader
=$withval
8916 target_bootloader
=$target_bootloader
8919 if test "$target_bootloader" = "none"; then
8920 aros_target_bootloader
=""
8922 aros_target_bootloader
="$target_bootloader"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8925 $as_echo "$target_bootloader" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8928 $as_echo_n "checking which icon-set to use... " >&6; }
8930 # Check whether --with-iconset was given.
8931 if test "${with_iconset+set}" = set; then :
8932 withval
=$with_iconset; target_iconset
=$withval
8934 target_iconset
="default"
8937 if test "$target_iconset" = "default"; then
8938 aros_target_iconset
="Gorilla"
8939 target_iconset
="default (Gorilla)"
8941 aros_target_iconset
="$target_iconset"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8944 $as_echo "$target_iconset" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8947 $as_echo_n "checking which GUI Theme to use... " >&6; }
8949 # Check whether --with-theme was given.
8950 if test "${with_theme+set}" = set; then :
8951 withval
=$with_theme; target_guitheme
=$withval
8953 target_guitheme
="default"
8956 if test "$target_guitheme" = "default"; then
8957 aros_target_guitheme
="Ice"
8959 aros_target_guitheme
="$target_guitheme"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8962 $as_echo "$aros_target_guitheme" >&6; }
8964 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8968 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8972 if test "$aros_host_cpu" == "x86_64" ; then
8973 if test "$aros_target_cpu" == "i386" ; then
8978 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8979 if test "$aros_host_arch" != "$aros_target_arch" ; then
8983 if test "$host_cc_elf" = "no" ; then
8988 if test "$cross_compiling" = "no" ; then
8989 kernel_tool_prefix
=""
8990 if test "$host_cc_elf" = "yes" ; then
8995 if test "$kernel_tool_version" != ""; then
8996 kernel_tool_version
="-$kernel_tool_version"
8999 #######################################################################
9000 ## Compute what toolchains to use, and their paths ##
9001 #######################################################################
9003 # This takes, as input:
9004 # crosstools {yes,no}
9005 # kernel_tool_version {"",[version]}
9006 # target_tool_version {"",[version]}
9007 # kernel_tool_prefix {none,[some-arch-os-]}
9008 # target_tool_prefix ${aros_target_cpu}-aros-
9009 # aros_tool_prefix ${aros_target_cpu}-aros-
9012 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9013 # Where the 'kernel' binaries are located
9014 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9015 # Where the 'target' binaries are located
9016 # (not the symlink farm - that is aros_target_*!)
9019 # if crosstools then
9020 # if kernel_tools_prefix = "no-kernel-prefix-"
9021 # aros_kernel_* = crosstools cc paths
9022 # aros_kernel_cc = elf cc wrapper around crosstools cc
9024 # VALIDATE(${kernel_tools_prefix}*)
9025 # aros_kernel_* = ${kernel_tools_prefix}*
9026 # if ${kernel_tools_prefix}cc is an AROS gcc
9027 # aros_kernel_cc = ${kernel_tools_prefix}cc
9029 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9033 # orig_target_* = aros built crosstools
9034 # orig_target_cc = elf cc wrapper around crosstools cc
9036 # VALIDATE(${kernel_tools_prefix}*)
9038 # orig_target_* = aros_kernel_*
9039 # if aros_kernel_cc is an AROS gcc
9040 # orig_target_cc = aros_kernel_cc
9042 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9046 target_tool_prefix
="${aros_target_cpu}-aros-"
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9049 $as_echo_n "checking which kernel tools... " >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9051 $as_echo "$kernel_tool_prefix" >&6; };
9053 if test "$kernel_tool_prefix" = "none" ; then
9054 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9055 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9058 # Kernel tools required - find them
9059 # Note that 'normally', aros_kernel_* overrides will be
9060 # empty, unless specified in the per-arch sections above.
9061 if test "x$aros_kernel_cpp" = "x"; then
9062 aros_kernel_cpp
=${kernel_tool_prefix}cpp
9065 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9066 if test "$cross_compiling" = "yes" ; then
9067 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9068 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9072 $as_echo_n "(cached) " >&6
9074 case $aros_kernel_cpp in
9076 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9083 test -z "$as_dir" && as_dir
=.
9084 for ac_exec_ext
in '' $ac_executable_extensions; do
9085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9086 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9098 if test -n "$aros_kernel_cpp"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9100 $as_echo "$aros_kernel_cpp" >&6; }
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9108 if test "$GCC" = "yes"; then
9109 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9110 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9111 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9115 $as_echo_n "(cached) " >&6
9117 case $aros_kernel_cpp in
9119 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9123 for as_dir
in `dirname $aros_gcc_cpp`
9126 test -z "$as_dir" && as_dir
=.
9127 for ac_exec_ext
in '' $ac_executable_extensions; do
9128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9141 if test -n "$aros_kernel_cpp"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9143 $as_echo "$aros_kernel_cpp" >&6; }
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9151 if test "$aros_kernel_cpp" = ""; then
9152 # Extract the first word of "cpp", so it can be a program name with args.
9153 set dummy cpp
; ac_word
=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9157 $as_echo_n "(cached) " >&6
9159 case $aros_kernel_cpp in
9161 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9168 test -z "$as_dir" && as_dir
=.
9169 for ac_exec_ext
in '' $ac_executable_extensions; do
9170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9183 if test -n "$aros_kernel_cpp"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9185 $as_echo "$aros_kernel_cpp" >&6; }
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9195 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9196 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9200 $as_echo_n "(cached) " >&6
9202 case $aros_kernel_cpp in
9204 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9211 test -z "$as_dir" && as_dir
=.
9212 for ac_exec_ext
in '' $ac_executable_extensions; do
9213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9214 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9226 if test -n "$aros_kernel_cpp"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9228 $as_echo "$aros_kernel_cpp" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9237 if test "$aros_kernel_cpp" = ""; then
9238 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9240 if test "x$aros_kernel_cc" = "x"; then
9241 aros_kernel_cc
=${kernel_tool_prefix}gcc
9244 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9245 if test "$cross_compiling" = "yes" ; then
9246 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9247 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9251 $as_echo_n "(cached) " >&6
9253 case $aros_kernel_cc in
9255 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9262 test -z "$as_dir" && as_dir
=.
9263 for ac_exec_ext
in '' $ac_executable_extensions; do
9264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9265 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9277 if test -n "$aros_kernel_cc"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9279 $as_echo "$aros_kernel_cc" >&6; }
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9287 if test "$GCC" = "yes"; then
9288 aros_gcc_cc
=`$CC -print-prog-name=cc`
9289 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9290 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9294 $as_echo_n "(cached) " >&6
9296 case $aros_kernel_cc in
9298 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9302 for as_dir
in `dirname $aros_gcc_cc`
9305 test -z "$as_dir" && as_dir
=.
9306 for ac_exec_ext
in '' $ac_executable_extensions; do
9307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9320 if test -n "$aros_kernel_cc"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9322 $as_echo "$aros_kernel_cc" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9330 if test "$aros_kernel_cc" = ""; then
9331 # Extract the first word of "cc", so it can be a program name with args.
9332 set dummy cc
; 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_cc+:} false
; then :
9336 $as_echo_n "(cached) " >&6
9338 case $aros_kernel_cc in
9340 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # 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_cc
="$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_cc
=$ac_cv_path_aros_kernel_cc
9362 if test -n "$aros_kernel_cc"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9364 $as_echo "$aros_kernel_cc" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9374 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9375 set dummy
$aros_kernel_cc${kernel_tool_version}; 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_cc+:} false
; then :
9379 $as_echo_n "(cached) " >&6
9381 case $aros_kernel_cc in
9383 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_cc
="$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_cc
=$ac_cv_path_aros_kernel_cc
9405 if test -n "$aros_kernel_cc"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9407 $as_echo "$aros_kernel_cc" >&6; }
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9416 if test "$aros_kernel_cc" = ""; then
9417 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9419 if test "x$aros_kernel_cxx" = "x"; then
9420 aros_kernel_cxx
=${kernel_tool_prefix}g
++
9423 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9424 if test "$cross_compiling" = "yes" ; then
9425 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9426 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9430 $as_echo_n "(cached) " >&6
9432 case $aros_kernel_cxx in
9434 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9441 test -z "$as_dir" && as_dir
=.
9442 for ac_exec_ext
in '' $ac_executable_extensions; do
9443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9444 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9456 if test -n "$aros_kernel_cxx"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9458 $as_echo "$aros_kernel_cxx" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9466 if test "$GCC" = "yes"; then
9467 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9468 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9469 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9473 $as_echo_n "(cached) " >&6
9475 case $aros_kernel_cxx in
9477 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9481 for as_dir
in `dirname $aros_gcc_cxx`
9484 test -z "$as_dir" && as_dir
=.
9485 for ac_exec_ext
in '' $ac_executable_extensions; do
9486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9499 if test -n "$aros_kernel_cxx"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9501 $as_echo "$aros_kernel_cxx" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9509 if test "$aros_kernel_cxx" = ""; then
9510 # Extract the first word of "cxx", so it can be a program name with args.
9511 set dummy cxx
; ac_word
=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9515 $as_echo_n "(cached) " >&6
9517 case $aros_kernel_cxx in
9519 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9526 test -z "$as_dir" && as_dir
=.
9527 for ac_exec_ext
in '' $ac_executable_extensions; do
9528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9529 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9541 if test -n "$aros_kernel_cxx"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9543 $as_echo "$aros_kernel_cxx" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9553 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9554 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9558 $as_echo_n "(cached) " >&6
9560 case $aros_kernel_cxx in
9562 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9569 test -z "$as_dir" && as_dir
=.
9570 for ac_exec_ext
in '' $ac_executable_extensions; do
9571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9584 if test -n "$aros_kernel_cxx"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9586 $as_echo "$aros_kernel_cxx" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9595 # If it's set, make sure it's really there
9596 if test "x$aros_kernel_cxx" != "x" ; then
9597 if test "$aros_kernel_cxx" = ""; then
9598 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9602 if test "$aros_kernel_ld" = ""; then
9603 if test "$cross_compiling" = "yes" ; then
9604 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9605 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9609 $as_echo_n "(cached) " >&6
9611 case $aros_kernel_ld in
9613 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9620 test -z "$as_dir" && as_dir
=.
9621 for ac_exec_ext
in '' $ac_executable_extensions; do
9622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9635 if test -n "$aros_kernel_ld"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9637 $as_echo "$aros_kernel_ld" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9645 if test "$GCC" = "yes"; then
9646 aros_gcc_ld
=`$CC -print-prog-name=ld`
9647 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9648 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9652 $as_echo_n "(cached) " >&6
9654 case $aros_kernel_ld in
9656 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9660 for as_dir
in `dirname $aros_gcc_ld`
9663 test -z "$as_dir" && as_dir
=.
9664 for ac_exec_ext
in '' $ac_executable_extensions; do
9665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9678 if test -n "$aros_kernel_ld"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9680 $as_echo "$aros_kernel_ld" >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test "$aros_kernel_ld" = ""; then
9689 # Extract the first word of "ld", so it can be a program name with args.
9690 set dummy ld
; ac_word
=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9694 $as_echo_n "(cached) " >&6
9696 case $aros_kernel_ld in
9698 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9705 test -z "$as_dir" && as_dir
=.
9706 for ac_exec_ext
in '' $ac_executable_extensions; do
9707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9708 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9720 if test -n "$aros_kernel_ld"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9722 $as_echo "$aros_kernel_ld" >&6; }
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9732 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9733 set dummy
$aros_kernel_ld; ac_word
=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9737 $as_echo_n "(cached) " >&6
9739 case $aros_kernel_ld in
9741 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir
=.
9749 for ac_exec_ext
in '' $ac_executable_extensions; do
9750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9763 if test -n "$aros_kernel_ld"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9765 $as_echo "$aros_kernel_ld" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9774 if test "$aros_kernel_ld" = ""; then
9775 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9778 if test "$aros_kernel_as" = ""; then
9779 if test "$cross_compiling" = "yes" ; then
9780 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9781 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9785 $as_echo_n "(cached) " >&6
9787 case $aros_kernel_as in
9789 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9796 test -z "$as_dir" && as_dir
=.
9797 for ac_exec_ext
in '' $ac_executable_extensions; do
9798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9799 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9811 if test -n "$aros_kernel_as"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9813 $as_echo "$aros_kernel_as" >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9821 if test "$GCC" = "yes"; then
9822 aros_gcc_as
=`$CC -print-prog-name=as`
9823 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9824 set dummy
`basename $aros_gcc_as`; ac_word
=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9828 $as_echo_n "(cached) " >&6
9830 case $aros_kernel_as in
9832 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9836 for as_dir
in `dirname $aros_gcc_as`
9839 test -z "$as_dir" && as_dir
=.
9840 for ac_exec_ext
in '' $ac_executable_extensions; do
9841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9854 if test -n "$aros_kernel_as"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9856 $as_echo "$aros_kernel_as" >&6; }
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9864 if test "$aros_kernel_as" = ""; then
9865 # Extract the first word of "as", so it can be a program name with args.
9866 set dummy as
; ac_word
=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9870 $as_echo_n "(cached) " >&6
9872 case $aros_kernel_as in
9874 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9881 test -z "$as_dir" && as_dir
=.
9882 for ac_exec_ext
in '' $ac_executable_extensions; do
9883 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9896 if test -n "$aros_kernel_as"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9898 $as_echo "$aros_kernel_as" >&6; }
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9908 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9909 set dummy
$aros_kernel_as; ac_word
=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9913 $as_echo_n "(cached) " >&6
9915 case $aros_kernel_as in
9917 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9924 test -z "$as_dir" && as_dir
=.
9925 for ac_exec_ext
in '' $ac_executable_extensions; do
9926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9927 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9939 if test -n "$aros_kernel_as"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9941 $as_echo "$aros_kernel_as" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9950 if test "$aros_kernel_as" = ""; then
9951 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
9954 if test "$aros_kernel_ar" = ""; then
9955 if test "$cross_compiling" = "yes" ; then
9956 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9957 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9961 $as_echo_n "(cached) " >&6
9963 case $aros_kernel_ar in
9965 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9972 test -z "$as_dir" && as_dir
=.
9973 for ac_exec_ext
in '' $ac_executable_extensions; do
9974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9987 if test -n "$aros_kernel_ar"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9989 $as_echo "$aros_kernel_ar" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9997 if test "$GCC" = "yes"; then
9998 aros_gcc_ar
=`$CC -print-prog-name=ar`
9999 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10000 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10004 $as_echo_n "(cached) " >&6
10006 case $aros_kernel_ar in
10008 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10012 for as_dir
in `dirname $aros_gcc_ar`
10015 test -z "$as_dir" && as_dir
=.
10016 for ac_exec_ext
in '' $ac_executable_extensions; do
10017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10030 if test -n "$aros_kernel_ar"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10032 $as_echo "$aros_kernel_ar" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 if test "$aros_kernel_ar" = ""; then
10041 # Extract the first word of "ar", so it can be a program name with args.
10042 set dummy
ar; ac_word
=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10046 $as_echo_n "(cached) " >&6
10048 case $aros_kernel_ar in
10050 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10054 for as_dir
in $PATH
10057 test -z "$as_dir" && as_dir
=.
10058 for ac_exec_ext
in '' $ac_executable_extensions; do
10059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10072 if test -n "$aros_kernel_ar"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10074 $as_echo "$aros_kernel_ar" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10084 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10085 set dummy
$aros_kernel_ar; ac_word
=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10089 $as_echo_n "(cached) " >&6
10091 case $aros_kernel_ar in
10093 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10097 for as_dir
in $PATH
10100 test -z "$as_dir" && as_dir
=.
10101 for ac_exec_ext
in '' $ac_executable_extensions; do
10102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10115 if test -n "$aros_kernel_ar"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10117 $as_echo "$aros_kernel_ar" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10126 if test "$aros_kernel_ar" = ""; then
10127 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10130 if test "$aros_kernel_ranlib" = ""; then
10131 if test "$cross_compiling" = "yes" ; then
10132 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10133 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10137 $as_echo_n "(cached) " >&6
10139 case $aros_kernel_ranlib in
10141 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10145 for as_dir
in $PATH
10148 test -z "$as_dir" && as_dir
=.
10149 for ac_exec_ext
in '' $ac_executable_extensions; do
10150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10163 if test -n "$aros_kernel_ranlib"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10165 $as_echo "$aros_kernel_ranlib" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test "$GCC" = "yes"; then
10174 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10175 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10176 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10180 $as_echo_n "(cached) " >&6
10182 case $aros_kernel_ranlib in
10184 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10188 for as_dir
in `dirname $aros_gcc_ranlib`
10191 test -z "$as_dir" && as_dir
=.
10192 for ac_exec_ext
in '' $ac_executable_extensions; do
10193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10206 if test -n "$aros_kernel_ranlib"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10208 $as_echo "$aros_kernel_ranlib" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10216 if test "$aros_kernel_ranlib" = ""; then
10217 # Extract the first word of "ranlib", so it can be a program name with args.
10218 set dummy ranlib
; ac_word
=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10222 $as_echo_n "(cached) " >&6
10224 case $aros_kernel_ranlib in
10226 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10230 for as_dir
in $PATH
10233 test -z "$as_dir" && as_dir
=.
10234 for ac_exec_ext
in '' $ac_executable_extensions; do
10235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10248 if test -n "$aros_kernel_ranlib"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10250 $as_echo "$aros_kernel_ranlib" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10260 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10261 set dummy
$aros_kernel_ranlib; ac_word
=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10265 $as_echo_n "(cached) " >&6
10267 case $aros_kernel_ranlib in
10269 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10273 for as_dir
in $PATH
10276 test -z "$as_dir" && as_dir
=.
10277 for ac_exec_ext
in '' $ac_executable_extensions; do
10278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10279 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10291 if test -n "$aros_kernel_ranlib"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10293 $as_echo "$aros_kernel_ranlib" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10302 if test "$aros_kernel_ranlib" = ""; then
10303 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10306 if test "$aros_kernel_nm" = ""; then
10307 if test "$cross_compiling" = "yes" ; then
10308 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10309 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10313 $as_echo_n "(cached) " >&6
10315 case $aros_kernel_nm in
10317 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10321 for as_dir
in $PATH
10324 test -z "$as_dir" && as_dir
=.
10325 for ac_exec_ext
in '' $ac_executable_extensions; do
10326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10339 if test -n "$aros_kernel_nm"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10341 $as_echo "$aros_kernel_nm" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 if test "$GCC" = "yes"; then
10350 aros_gcc_nm
=`$CC -print-prog-name=nm`
10351 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10352 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10356 $as_echo_n "(cached) " >&6
10358 case $aros_kernel_nm in
10360 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10364 for as_dir
in `dirname $aros_gcc_nm`
10367 test -z "$as_dir" && as_dir
=.
10368 for ac_exec_ext
in '' $ac_executable_extensions; do
10369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10382 if test -n "$aros_kernel_nm"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10384 $as_echo "$aros_kernel_nm" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10392 if test "$aros_kernel_nm" = ""; then
10393 # Extract the first word of "nm", so it can be a program name with args.
10394 set dummy nm
; ac_word
=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10398 $as_echo_n "(cached) " >&6
10400 case $aros_kernel_nm in
10402 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10406 for as_dir
in $PATH
10409 test -z "$as_dir" && as_dir
=.
10410 for ac_exec_ext
in '' $ac_executable_extensions; do
10411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10424 if test -n "$aros_kernel_nm"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10426 $as_echo "$aros_kernel_nm" >&6; }
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10436 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10437 set dummy
$aros_kernel_nm; ac_word
=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10441 $as_echo_n "(cached) " >&6
10443 case $aros_kernel_nm in
10445 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10449 for as_dir
in $PATH
10452 test -z "$as_dir" && as_dir
=.
10453 for ac_exec_ext
in '' $ac_executable_extensions; do
10454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10467 if test -n "$aros_kernel_nm"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10469 $as_echo "$aros_kernel_nm" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10478 if test "$aros_kernel_nm" = ""; then
10479 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10482 if test "$aros_kernel_strip" = ""; then
10483 if test "$cross_compiling" = "yes" ; then
10484 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10485 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10489 $as_echo_n "(cached) " >&6
10491 case $aros_kernel_strip in
10493 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10497 for as_dir
in $PATH
10500 test -z "$as_dir" && as_dir
=.
10501 for ac_exec_ext
in '' $ac_executable_extensions; do
10502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10515 if test -n "$aros_kernel_strip"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10517 $as_echo "$aros_kernel_strip" >&6; }
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10525 if test "$GCC" = "yes"; then
10526 aros_gcc_strip
=`$CC -print-prog-name=strip`
10527 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10528 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10532 $as_echo_n "(cached) " >&6
10534 case $aros_kernel_strip in
10536 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10540 for as_dir
in `dirname $aros_gcc_strip`
10543 test -z "$as_dir" && as_dir
=.
10544 for ac_exec_ext
in '' $ac_executable_extensions; do
10545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10558 if test -n "$aros_kernel_strip"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10560 $as_echo "$aros_kernel_strip" >&6; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10568 if test "$aros_kernel_strip" = ""; then
10569 # Extract the first word of "strip", so it can be a program name with args.
10570 set dummy strip
; ac_word
=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10574 $as_echo_n "(cached) " >&6
10576 case $aros_kernel_strip in
10578 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10582 for as_dir
in $PATH
10585 test -z "$as_dir" && as_dir
=.
10586 for ac_exec_ext
in '' $ac_executable_extensions; do
10587 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10600 if test -n "$aros_kernel_strip"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10602 $as_echo "$aros_kernel_strip" >&6; }
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10612 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10613 set dummy
$aros_kernel_strip; ac_word
=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10617 $as_echo_n "(cached) " >&6
10619 case $aros_kernel_strip in
10621 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10625 for as_dir
in $PATH
10628 test -z "$as_dir" && as_dir
=.
10629 for ac_exec_ext
in '' $ac_executable_extensions; do
10630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10643 if test -n "$aros_kernel_strip"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10645 $as_echo "$aros_kernel_strip" >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10654 if test "$aros_kernel_strip" = ""; then
10655 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10658 # Objcopy and objdump are not required for the kernel
10659 # toolchain on many architectures.
10660 # So we'll look for them, but not make them strictly required.
10662 if test "$aros_kernel_objcopy" = ""; then
10663 if test "$cross_compiling" = "yes" ; then
10664 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10665 set dummy
${kernel_tool_prefix}objcopy
; 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_objcopy+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10671 case $aros_kernel_objcopy in
10673 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10677 for as_dir
in $PATH
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_objcopy
="$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_objcopy
=$ac_cv_path_aros_kernel_objcopy
10695 if test -n "$aros_kernel_objcopy"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10697 $as_echo "$aros_kernel_objcopy" >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 if test "$GCC" = "yes"; then
10706 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10707 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10708 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10712 $as_echo_n "(cached) " >&6
10714 case $aros_kernel_objcopy in
10716 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10720 for as_dir
in `dirname $aros_gcc_objcopy`
10723 test -z "$as_dir" && as_dir
=.
10724 for ac_exec_ext
in '' $ac_executable_extensions; do
10725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10738 if test -n "$aros_kernel_objcopy"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10740 $as_echo "$aros_kernel_objcopy" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10748 if test "$aros_kernel_objcopy" = ""; then
10749 # Extract the first word of "objcopy", so it can be a program name with args.
10750 set dummy objcopy
; 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_objcopy+:} false
; then :
10754 $as_echo_n "(cached) " >&6
10756 case $aros_kernel_objcopy in
10758 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # 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_objcopy
="$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_objcopy
=$ac_cv_path_aros_kernel_objcopy
10780 if test -n "$aros_kernel_objcopy"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10782 $as_echo "$aros_kernel_objcopy" >&6; }
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10792 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10793 set dummy
$aros_kernel_objcopy; ac_word
=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10797 $as_echo_n "(cached) " >&6
10799 case $aros_kernel_objcopy in
10801 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10805 for as_dir
in $PATH
10808 test -z "$as_dir" && as_dir
=.
10809 for ac_exec_ext
in '' $ac_executable_extensions; do
10810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10823 if test -n "$aros_kernel_objcopy"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10825 $as_echo "$aros_kernel_objcopy" >&6; }
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10835 if test "$aros_kernel_objdump" = ""; then
10836 if test "$cross_compiling" = "yes" ; then
10837 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10838 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840 $as_echo_n "checking for $ac_word... " >&6; }
10841 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10842 $as_echo_n "(cached) " >&6
10844 case $aros_kernel_objdump in
10846 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10850 for as_dir
in $PATH
10853 test -z "$as_dir" && as_dir
=.
10854 for ac_exec_ext
in '' $ac_executable_extensions; do
10855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10868 if test -n "$aros_kernel_objdump"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10870 $as_echo "$aros_kernel_objdump" >&6; }
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10878 if test "$GCC" = "yes"; then
10879 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
10880 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10881 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10885 $as_echo_n "(cached) " >&6
10887 case $aros_kernel_objdump in
10889 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10893 for as_dir
in `dirname $aros_gcc_objdump`
10896 test -z "$as_dir" && as_dir
=.
10897 for ac_exec_ext
in '' $ac_executable_extensions; do
10898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10899 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10911 if test -n "$aros_kernel_objdump"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10913 $as_echo "$aros_kernel_objdump" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10921 if test "$aros_kernel_objdump" = ""; then
10922 # Extract the first word of "objdump", so it can be a program name with args.
10923 set dummy objdump
; ac_word
=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10927 $as_echo_n "(cached) " >&6
10929 case $aros_kernel_objdump in
10931 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10935 for as_dir
in $PATH
10938 test -z "$as_dir" && as_dir
=.
10939 for ac_exec_ext
in '' $ac_executable_extensions; do
10940 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10953 if test -n "$aros_kernel_objdump"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10955 $as_echo "$aros_kernel_objdump" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10965 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10966 set dummy
$aros_kernel_objdump; ac_word
=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10970 $as_echo_n "(cached) " >&6
10972 case $aros_kernel_objdump in
10974 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10978 for as_dir
in $PATH
10981 test -z "$as_dir" && as_dir
=.
10982 for ac_exec_ext
in '' $ac_executable_extensions; do
10983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10996 if test -n "$aros_kernel_objdump"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10998 $as_echo "$aros_kernel_objdump" >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11007 if test "x${crosstools}" != "xyes" ; then
11008 if test "$aros_kernel_objcopy" = ""; then
11009 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11011 if test "$aros_kernel_objdump" = ""; then
11012 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11018 $as_echo_n "checking which target tools to use... " >&6; }
11019 if test "$aros_target_toolchain" = "yes"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
11021 $as_echo "$target_tool_prefix" >&6; }
11022 # We are building AROS crosstools
11023 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11024 orig_target_cc
="${tmp_tool_prefix}gcc${target_tool_version}"
11025 orig_target_cxx
="${tmp_tool_prefix}g++${target_tool_version}"
11026 orig_target_cpp
="${tmp_tool_prefix}cpp"
11027 orig_target_ld
="${tmp_tool_prefix}ld"
11028 orig_target_as
="${tmp_tool_prefix}as"
11029 orig_target_ar
="${tmp_tool_prefix}ar"
11030 orig_target_ranlib
="${tmp_tool_prefix}ranlib"
11031 orig_target_nm
="${tmp_tool_prefix}nm"
11032 orig_target_strip
="${tmp_tool_prefix}strip"
11033 orig_target_objcopy
="${tmp_tool_prefix}objcopy"
11034 orig_target_objdump
="${tmp_tool_prefix}objdump"
11036 # Determine whether AROS or ELF tools should be used
11037 if test "$aros_tool_prefix" = "none"; then
11038 aros_tool_prefix
="${elf_tool_prefix}"
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11042 $as_echo "$aros_tool_prefix" >&6; }
11043 # We are *not* building AROS crosstools - use the AROS or ELF tools
11045 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
11046 if test "$cross_compiling" = "yes" ; then
11047 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11048 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11052 $as_echo_n "(cached) " >&6
11054 case $orig_target_cpp in
11056 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11060 for as_dir
in $PATH
11063 test -z "$as_dir" && as_dir
=.
11064 for ac_exec_ext
in '' $ac_executable_extensions; do
11065 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11078 if test -n "$orig_target_cpp"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11080 $as_echo "$orig_target_cpp" >&6; }
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11088 if test "$GCC" = "yes"; then
11089 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11090 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11091 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11095 $as_echo_n "(cached) " >&6
11097 case $orig_target_cpp in
11099 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11103 for as_dir
in `dirname $aros_gcc_cpp`
11106 test -z "$as_dir" && as_dir
=.
11107 for ac_exec_ext
in '' $ac_executable_extensions; do
11108 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11121 if test -n "$orig_target_cpp"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11123 $as_echo "$orig_target_cpp" >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11131 if test "$orig_target_cpp" = ""; then
11132 # Extract the first word of "cpp", so it can be a program name with args.
11133 set dummy cpp
; ac_word
=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11137 $as_echo_n "(cached) " >&6
11139 case $orig_target_cpp in
11141 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11145 for as_dir
in $PATH
11148 test -z "$as_dir" && as_dir
=.
11149 for ac_exec_ext
in '' $ac_executable_extensions; do
11150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11163 if test -n "$orig_target_cpp"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11165 $as_echo "$orig_target_cpp" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11175 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11176 set dummy
${aros_tool_prefix}cpp
${target_tool_version}; ac_word
=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11180 $as_echo_n "(cached) " >&6
11182 case $orig_target_cpp in
11184 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11188 for as_dir
in $PATH
11191 test -z "$as_dir" && as_dir
=.
11192 for ac_exec_ext
in '' $ac_executable_extensions; do
11193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11206 if test -n "$orig_target_cpp"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11208 $as_echo "$orig_target_cpp" >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11217 if test "$orig_target_cpp" = ""; then
11218 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11221 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11222 if test "$cross_compiling" = "yes" ; then
11223 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11224 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_path_orig_target_cc+:} false
; then :
11228 $as_echo_n "(cached) " >&6
11230 case $orig_target_cc in
11232 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11236 for as_dir
in $PATH
11239 test -z "$as_dir" && as_dir
=.
11240 for ac_exec_ext
in '' $ac_executable_extensions; do
11241 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 orig_target_cc
=$ac_cv_path_orig_target_cc
11254 if test -n "$orig_target_cc"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11256 $as_echo "$orig_target_cc" >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11264 if test "$GCC" = "yes"; then
11265 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11266 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11267 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_orig_target_cc+:} false
; then :
11271 $as_echo_n "(cached) " >&6
11273 case $orig_target_cc in
11275 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11279 for as_dir
in `dirname $aros_gcc_gcc`
11282 test -z "$as_dir" && as_dir
=.
11283 for ac_exec_ext
in '' $ac_executable_extensions; do
11284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11285 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 orig_target_cc
=$ac_cv_path_orig_target_cc
11297 if test -n "$orig_target_cc"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11299 $as_echo "$orig_target_cc" >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11307 if test "$orig_target_cc" = ""; then
11308 # Extract the first word of "gcc", so it can be a program name with args.
11309 set dummy gcc
; ac_word
=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_orig_target_cc+:} false
; then :
11313 $as_echo_n "(cached) " >&6
11315 case $orig_target_cc in
11317 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11321 for as_dir
in $PATH
11324 test -z "$as_dir" && as_dir
=.
11325 for ac_exec_ext
in '' $ac_executable_extensions; do
11326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 orig_target_cc
=$ac_cv_path_orig_target_cc
11339 if test -n "$orig_target_cc"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11341 $as_echo "$orig_target_cc" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11351 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11352 set dummy
${aros_tool_prefix}gcc
${target_tool_version}; ac_word
=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_path_orig_target_cc+:} false
; then :
11356 $as_echo_n "(cached) " >&6
11358 case $orig_target_cc in
11360 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11364 for as_dir
in $PATH
11367 test -z "$as_dir" && as_dir
=.
11368 for ac_exec_ext
in '' $ac_executable_extensions; do
11369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 orig_target_cc
=$ac_cv_path_orig_target_cc
11382 if test -n "$orig_target_cc"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11384 $as_echo "$orig_target_cc" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11393 if test "$orig_target_cc" = ""; then
11394 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11397 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11398 if test "$cross_compiling" = "yes" ; then
11399 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11400 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11404 $as_echo_n "(cached) " >&6
11406 case $orig_target_cxx in
11408 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11412 for as_dir
in $PATH
11415 test -z "$as_dir" && as_dir
=.
11416 for ac_exec_ext
in '' $ac_executable_extensions; do
11417 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11430 if test -n "$orig_target_cxx"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11432 $as_echo "$orig_target_cxx" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11440 if test "$GCC" = "yes"; then
11441 aros_gcc_g
++=`$CC -print-prog-name=g++`
11442 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11443 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11447 $as_echo_n "(cached) " >&6
11449 case $orig_target_cxx in
11451 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11455 for as_dir
in `dirname $aros_gcc_g++`
11458 test -z "$as_dir" && as_dir
=.
11459 for ac_exec_ext
in '' $ac_executable_extensions; do
11460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11473 if test -n "$orig_target_cxx"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11475 $as_echo "$orig_target_cxx" >&6; }
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11483 if test "$orig_target_cxx" = ""; then
11484 # Extract the first word of "g++", so it can be a program name with args.
11485 set dummy g
++; ac_word
=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11489 $as_echo_n "(cached) " >&6
11491 case $orig_target_cxx in
11493 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11497 for as_dir
in $PATH
11500 test -z "$as_dir" && as_dir
=.
11501 for ac_exec_ext
in '' $ac_executable_extensions; do
11502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11515 if test -n "$orig_target_cxx"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11517 $as_echo "$orig_target_cxx" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11527 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11528 set dummy
${aros_tool_prefix}g
++${target_tool_version}; ac_word
=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11532 $as_echo_n "(cached) " >&6
11534 case $orig_target_cxx in
11536 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11540 for as_dir
in $PATH
11543 test -z "$as_dir" && as_dir
=.
11544 for ac_exec_ext
in '' $ac_executable_extensions; do
11545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11546 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11558 if test -n "$orig_target_cxx"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11560 $as_echo "$orig_target_cxx" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11569 if test "$orig_target_cxx" = ""; then
11570 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11573 if test "${aros_tool_prefix}ld" = ""; then
11574 if test "$cross_compiling" = "yes" ; then
11575 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11576 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_path_orig_target_ld+:} false
; then :
11580 $as_echo_n "(cached) " >&6
11582 case $orig_target_ld in
11584 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11588 for as_dir
in $PATH
11591 test -z "$as_dir" && as_dir
=.
11592 for ac_exec_ext
in '' $ac_executable_extensions; do
11593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11594 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 orig_target_ld
=$ac_cv_path_orig_target_ld
11606 if test -n "$orig_target_ld"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11608 $as_echo "$orig_target_ld" >&6; }
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11616 if test "$GCC" = "yes"; then
11617 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11618 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11619 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if ${ac_cv_path_orig_target_ld+:} false
; then :
11623 $as_echo_n "(cached) " >&6
11625 case $orig_target_ld in
11627 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11631 for as_dir
in `dirname $aros_gcc_gcc`
11634 test -z "$as_dir" && as_dir
=.
11635 for ac_exec_ext
in '' $ac_executable_extensions; do
11636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 orig_target_ld
=$ac_cv_path_orig_target_ld
11649 if test -n "$orig_target_ld"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11651 $as_echo "$orig_target_ld" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11659 if test "$orig_target_ld" = ""; then
11660 # Extract the first word of "gcc", so it can be a program name with args.
11661 set dummy gcc
; ac_word
=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if ${ac_cv_path_orig_target_ld+:} false
; then :
11665 $as_echo_n "(cached) " >&6
11667 case $orig_target_ld in
11669 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11673 for as_dir
in $PATH
11676 test -z "$as_dir" && as_dir
=.
11677 for ac_exec_ext
in '' $ac_executable_extensions; do
11678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11679 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 orig_target_ld
=$ac_cv_path_orig_target_ld
11691 if test -n "$orig_target_ld"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11693 $as_echo "$orig_target_ld" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11703 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11704 set dummy
${aros_tool_prefix}ld
; ac_word
=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_path_orig_target_ld+:} false
; then :
11708 $as_echo_n "(cached) " >&6
11710 case $orig_target_ld in
11712 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11716 for as_dir
in $PATH
11719 test -z "$as_dir" && as_dir
=.
11720 for ac_exec_ext
in '' $ac_executable_extensions; do
11721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 orig_target_ld
=$ac_cv_path_orig_target_ld
11734 if test -n "$orig_target_ld"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11736 $as_echo "$orig_target_ld" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11745 if test "$orig_target_ld" = ""; then
11746 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11749 if test "${aros_tool_prefix}as" = ""; then
11750 if test "$cross_compiling" = "yes" ; then
11751 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11752 set dummy
${target_tool_prefix}as
; ac_word
=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_path_orig_target_as+:} false
; then :
11756 $as_echo_n "(cached) " >&6
11758 case $orig_target_as in
11760 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11764 for as_dir
in $PATH
11767 test -z "$as_dir" && as_dir
=.
11768 for ac_exec_ext
in '' $ac_executable_extensions; do
11769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 orig_target_as
=$ac_cv_path_orig_target_as
11782 if test -n "$orig_target_as"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11784 $as_echo "$orig_target_as" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11792 if test "$GCC" = "yes"; then
11793 aros_gcc_as
=`$CC -print-prog-name=as`
11794 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11795 set dummy
`basename $aros_gcc_as`; ac_word
=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_path_orig_target_as+:} false
; then :
11799 $as_echo_n "(cached) " >&6
11801 case $orig_target_as in
11803 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11807 for as_dir
in `dirname $aros_gcc_as`
11810 test -z "$as_dir" && as_dir
=.
11811 for ac_exec_ext
in '' $ac_executable_extensions; do
11812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 orig_target_as
=$ac_cv_path_orig_target_as
11825 if test -n "$orig_target_as"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11827 $as_echo "$orig_target_as" >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$orig_target_as" = ""; then
11836 # Extract the first word of "as", so it can be a program name with args.
11837 set dummy as
; ac_word
=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_as+:} false
; then :
11841 $as_echo_n "(cached) " >&6
11843 case $orig_target_as in
11845 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11849 for as_dir
in $PATH
11852 test -z "$as_dir" && as_dir
=.
11853 for ac_exec_ext
in '' $ac_executable_extensions; do
11854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 orig_target_as
=$ac_cv_path_orig_target_as
11867 if test -n "$orig_target_as"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11869 $as_echo "$orig_target_as" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11879 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11880 set dummy
${aros_tool_prefix}as
; ac_word
=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_as+:} false
; then :
11884 $as_echo_n "(cached) " >&6
11886 case $orig_target_as in
11888 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11892 for as_dir
in $PATH
11895 test -z "$as_dir" && as_dir
=.
11896 for ac_exec_ext
in '' $ac_executable_extensions; do
11897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 orig_target_as
=$ac_cv_path_orig_target_as
11910 if test -n "$orig_target_as"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11912 $as_echo "$orig_target_as" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11921 if test "$orig_target_as" = ""; then
11922 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
11925 if test "${aros_tool_prefix}ar" = ""; then
11926 if test "$cross_compiling" = "yes" ; then
11927 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11928 set dummy
${target_tool_prefix}ar; ac_word
=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_orig_target_ar+:} false
; then :
11932 $as_echo_n "(cached) " >&6
11934 case $orig_target_ar in
11936 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11940 for as_dir
in $PATH
11943 test -z "$as_dir" && as_dir
=.
11944 for ac_exec_ext
in '' $ac_executable_extensions; do
11945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 orig_target_ar
=$ac_cv_path_orig_target_ar
11958 if test -n "$orig_target_ar"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11960 $as_echo "$orig_target_ar" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11968 if test "$GCC" = "yes"; then
11969 aros_gcc_ar
=`$CC -print-prog-name=ar`
11970 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11971 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_orig_target_ar+:} false
; then :
11975 $as_echo_n "(cached) " >&6
11977 case $orig_target_ar in
11979 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11983 for as_dir
in `dirname $aros_gcc_ar`
11986 test -z "$as_dir" && as_dir
=.
11987 for ac_exec_ext
in '' $ac_executable_extensions; do
11988 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 orig_target_ar
=$ac_cv_path_orig_target_ar
12001 if test -n "$orig_target_ar"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12003 $as_echo "$orig_target_ar" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12011 if test "$orig_target_ar" = ""; then
12012 # Extract the first word of "ar", so it can be a program name with args.
12013 set dummy
ar; ac_word
=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_path_orig_target_ar+:} false
; then :
12017 $as_echo_n "(cached) " >&6
12019 case $orig_target_ar in
12021 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12025 for as_dir
in $PATH
12028 test -z "$as_dir" && as_dir
=.
12029 for ac_exec_ext
in '' $ac_executable_extensions; do
12030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 orig_target_ar
=$ac_cv_path_orig_target_ar
12043 if test -n "$orig_target_ar"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12045 $as_echo "$orig_target_ar" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12055 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
12056 set dummy
${aros_tool_prefix}ar; ac_word
=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_orig_target_ar+:} false
; then :
12060 $as_echo_n "(cached) " >&6
12062 case $orig_target_ar in
12064 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12068 for as_dir
in $PATH
12071 test -z "$as_dir" && as_dir
=.
12072 for ac_exec_ext
in '' $ac_executable_extensions; do
12073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 orig_target_ar
=$ac_cv_path_orig_target_ar
12086 if test -n "$orig_target_ar"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12088 $as_echo "$orig_target_ar" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12097 if test "$orig_target_ar" = ""; then
12098 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12101 if test "${aros_tool_prefix}ranlib" = ""; then
12102 if test "$cross_compiling" = "yes" ; then
12103 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12104 set dummy
${target_tool_prefix}ar; ac_word
=$2
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106 $as_echo_n "checking for $ac_word... " >&6; }
12107 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12108 $as_echo_n "(cached) " >&6
12110 case $orig_target_ranlib in
12112 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12116 for as_dir
in $PATH
12119 test -z "$as_dir" && as_dir
=.
12120 for ac_exec_ext
in '' $ac_executable_extensions; do
12121 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12134 if test -n "$orig_target_ranlib"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12136 $as_echo "$orig_target_ranlib" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12144 if test "$GCC" = "yes"; then
12145 aros_gcc_ar
=`$CC -print-prog-name=ar`
12146 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12147 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12151 $as_echo_n "(cached) " >&6
12153 case $orig_target_ranlib in
12155 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12159 for as_dir
in `dirname $aros_gcc_ar`
12162 test -z "$as_dir" && as_dir
=.
12163 for ac_exec_ext
in '' $ac_executable_extensions; do
12164 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12177 if test -n "$orig_target_ranlib"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12179 $as_echo "$orig_target_ranlib" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12187 if test "$orig_target_ranlib" = ""; then
12188 # Extract the first word of "ar", so it can be a program name with args.
12189 set dummy
ar; ac_word
=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12193 $as_echo_n "(cached) " >&6
12195 case $orig_target_ranlib in
12197 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12201 for as_dir
in $PATH
12204 test -z "$as_dir" && as_dir
=.
12205 for ac_exec_ext
in '' $ac_executable_extensions; do
12206 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12219 if test -n "$orig_target_ranlib"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12221 $as_echo "$orig_target_ranlib" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12231 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12232 set dummy
${aros_tool_prefix}ranlib
; ac_word
=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12236 $as_echo_n "(cached) " >&6
12238 case $orig_target_ranlib in
12240 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12244 for as_dir
in $PATH
12247 test -z "$as_dir" && as_dir
=.
12248 for ac_exec_ext
in '' $ac_executable_extensions; do
12249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12262 if test -n "$orig_target_ranlib"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12264 $as_echo "$orig_target_ranlib" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12273 if test "$orig_target_ranlib" = ""; then
12274 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12277 if test "${aros_tool_prefix}nm" = ""; then
12278 if test "$cross_compiling" = "yes" ; then
12279 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12280 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if ${ac_cv_path_orig_target_nm+:} false
; then :
12284 $as_echo_n "(cached) " >&6
12286 case $orig_target_nm in
12288 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12292 for as_dir
in $PATH
12295 test -z "$as_dir" && as_dir
=.
12296 for ac_exec_ext
in '' $ac_executable_extensions; do
12297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 orig_target_nm
=$ac_cv_path_orig_target_nm
12310 if test -n "$orig_target_nm"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12312 $as_echo "$orig_target_nm" >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12320 if test "$GCC" = "yes"; then
12321 aros_gcc_nm
=`$CC -print-prog-name=nm`
12322 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12323 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_path_orig_target_nm+:} false
; then :
12327 $as_echo_n "(cached) " >&6
12329 case $orig_target_nm in
12331 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12335 for as_dir
in `dirname $aros_gcc_nm`
12338 test -z "$as_dir" && as_dir
=.
12339 for ac_exec_ext
in '' $ac_executable_extensions; do
12340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 orig_target_nm
=$ac_cv_path_orig_target_nm
12353 if test -n "$orig_target_nm"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12355 $as_echo "$orig_target_nm" >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12363 if test "$orig_target_nm" = ""; then
12364 # Extract the first word of "nm", so it can be a program name with args.
12365 set dummy nm
; ac_word
=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_orig_target_nm+:} false
; then :
12369 $as_echo_n "(cached) " >&6
12371 case $orig_target_nm in
12373 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12377 for as_dir
in $PATH
12380 test -z "$as_dir" && as_dir
=.
12381 for ac_exec_ext
in '' $ac_executable_extensions; do
12382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 orig_target_nm
=$ac_cv_path_orig_target_nm
12395 if test -n "$orig_target_nm"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12397 $as_echo "$orig_target_nm" >&6; }
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12407 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12408 set dummy
${aros_tool_prefix}nm
; ac_word
=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_path_orig_target_nm+:} false
; then :
12412 $as_echo_n "(cached) " >&6
12414 case $orig_target_nm in
12416 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12420 for as_dir
in $PATH
12423 test -z "$as_dir" && as_dir
=.
12424 for ac_exec_ext
in '' $ac_executable_extensions; do
12425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 orig_target_nm
=$ac_cv_path_orig_target_nm
12438 if test -n "$orig_target_nm"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12440 $as_echo "$orig_target_nm" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12449 if test "$orig_target_nm" = ""; then
12450 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12453 if test "${aros_tool_prefix}strip" = ""; then
12454 if test "$cross_compiling" = "yes" ; then
12455 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12456 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_path_orig_target_strip+:} false
; then :
12460 $as_echo_n "(cached) " >&6
12462 case $orig_target_strip in
12464 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12468 for as_dir
in $PATH
12471 test -z "$as_dir" && as_dir
=.
12472 for ac_exec_ext
in '' $ac_executable_extensions; do
12473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12474 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 orig_target_strip
=$ac_cv_path_orig_target_strip
12486 if test -n "$orig_target_strip"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12488 $as_echo "$orig_target_strip" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12496 if test "$GCC" = "yes"; then
12497 aros_gcc_strip
=`$CC -print-prog-name=strip`
12498 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12499 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if ${ac_cv_path_orig_target_strip+:} false
; then :
12503 $as_echo_n "(cached) " >&6
12505 case $orig_target_strip in
12507 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12511 for as_dir
in `dirname $aros_gcc_strip`
12514 test -z "$as_dir" && as_dir
=.
12515 for ac_exec_ext
in '' $ac_executable_extensions; do
12516 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12517 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 orig_target_strip
=$ac_cv_path_orig_target_strip
12529 if test -n "$orig_target_strip"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12531 $as_echo "$orig_target_strip" >&6; }
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12539 if test "$orig_target_strip" = ""; then
12540 # Extract the first word of "strip", so it can be a program name with args.
12541 set dummy strip
; ac_word
=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if ${ac_cv_path_orig_target_strip+:} false
; then :
12545 $as_echo_n "(cached) " >&6
12547 case $orig_target_strip in
12549 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12553 for as_dir
in $PATH
12556 test -z "$as_dir" && as_dir
=.
12557 for ac_exec_ext
in '' $ac_executable_extensions; do
12558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 orig_target_strip
=$ac_cv_path_orig_target_strip
12571 if test -n "$orig_target_strip"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12573 $as_echo "$orig_target_strip" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12583 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12584 set dummy
${aros_tool_prefix}strip
; ac_word
=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_strip+:} false
; then :
12588 $as_echo_n "(cached) " >&6
12590 case $orig_target_strip in
12592 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12596 for as_dir
in $PATH
12599 test -z "$as_dir" && as_dir
=.
12600 for ac_exec_ext
in '' $ac_executable_extensions; do
12601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 orig_target_strip
=$ac_cv_path_orig_target_strip
12614 if test -n "$orig_target_strip"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12616 $as_echo "$orig_target_strip" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12625 if test "$orig_target_strip" = ""; then
12626 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12629 if test "${aros_tool_prefix}objcopy" = ""; then
12630 if test "$cross_compiling" = "yes" ; then
12631 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12632 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12636 $as_echo_n "(cached) " >&6
12638 case $orig_target_objcopy in
12640 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12644 for as_dir
in $PATH
12647 test -z "$as_dir" && as_dir
=.
12648 for ac_exec_ext
in '' $ac_executable_extensions; do
12649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12662 if test -n "$orig_target_objcopy"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12664 $as_echo "$orig_target_objcopy" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12672 if test "$GCC" = "yes"; then
12673 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
12674 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12675 set dummy
`basename $aros_gcc_objcopy`; 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_objcopy+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 case $orig_target_objcopy in
12683 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12687 for as_dir
in `dirname $aros_gcc_objcopy`
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_objcopy
="$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_objcopy
=$ac_cv_path_orig_target_objcopy
12705 if test -n "$orig_target_objcopy"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12707 $as_echo "$orig_target_objcopy" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$orig_target_objcopy" = ""; then
12716 # Extract the first word of "objcopy", so it can be a program name with args.
12717 set dummy objcopy
; ac_word
=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12721 $as_echo_n "(cached) " >&6
12723 case $orig_target_objcopy in
12725 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12729 for as_dir
in $PATH
12732 test -z "$as_dir" && as_dir
=.
12733 for ac_exec_ext
in '' $ac_executable_extensions; do
12734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12747 if test -n "$orig_target_objcopy"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12749 $as_echo "$orig_target_objcopy" >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12759 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12760 set dummy
${aros_tool_prefix}objcopy
; 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_objcopy+:} false
; then :
12764 $as_echo_n "(cached) " >&6
12766 case $orig_target_objcopy in
12768 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # 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_objcopy
="$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_objcopy
=$ac_cv_path_orig_target_objcopy
12790 if test -n "$orig_target_objcopy"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12792 $as_echo "$orig_target_objcopy" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12801 if test "$orig_target_objcopy" = ""; then
12802 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12805 if test "${aros_tool_prefix}objdump" = ""; then
12806 if test "$cross_compiling" = "yes" ; then
12807 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12808 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12812 $as_echo_n "(cached) " >&6
12814 case $orig_target_objdump in
12816 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12820 for as_dir
in $PATH
12823 test -z "$as_dir" && as_dir
=.
12824 for ac_exec_ext
in '' $ac_executable_extensions; do
12825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12826 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12838 if test -n "$orig_target_objdump"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12840 $as_echo "$orig_target_objdump" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12848 if test "$GCC" = "yes"; then
12849 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
12850 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12851 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12855 $as_echo_n "(cached) " >&6
12857 case $orig_target_objdump in
12859 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12863 for as_dir
in `dirname $aros_gcc_objdump`
12866 test -z "$as_dir" && as_dir
=.
12867 for ac_exec_ext
in '' $ac_executable_extensions; do
12868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12881 if test -n "$orig_target_objdump"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12883 $as_echo "$orig_target_objdump" >&6; }
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12891 if test "$orig_target_objdump" = ""; then
12892 # Extract the first word of "objdump", so it can be a program name with args.
12893 set dummy objdump
; ac_word
=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12897 $as_echo_n "(cached) " >&6
12899 case $orig_target_objdump in
12901 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12905 for as_dir
in $PATH
12908 test -z "$as_dir" && as_dir
=.
12909 for ac_exec_ext
in '' $ac_executable_extensions; do
12910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12923 if test -n "$orig_target_objdump"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12925 $as_echo "$orig_target_objdump" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12935 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12936 set dummy
${aros_tool_prefix}objdump
; ac_word
=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12940 $as_echo_n "(cached) " >&6
12942 case $orig_target_objdump in
12944 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12948 for as_dir
in $PATH
12951 test -z "$as_dir" && as_dir
=.
12952 for ac_exec_ext
in '' $ac_executable_extensions; do
12953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12966 if test -n "$orig_target_objdump"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12968 $as_echo "$orig_target_objdump" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12977 if test "$orig_target_objdump" = ""; then
12978 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12982 if test "$kernel_tool_prefix" = "none" ; then
12983 # No kernel tools specified
12984 # Assume target tools == kernel tools with ELF wrapper
12985 aros_kernel_cc
=$orig_target_cc
12986 aros_kernel_cxx
=$orig_target_cxx
12987 aros_kernel_cpp
=$orig_target_cpp
12988 aros_kernel_ld
=$orig_target_ld
12989 aros_kernel_as
=$orig_target_as
12990 aros_kernel_ar
=$orig_target_ar
12991 aros_kernel_ranlib
=$orig_target_ranlib
12992 aros_kernel_nm
=$orig_target_nm
12993 aros_kernel_strip
=$orig_target_strip
12994 aros_kernel_objcopy
=$orig_target_objcopy
12995 aros_kernel_objdump
=$orig_target_objdump
12996 use_kernel_cc_wrapper
=yes
12999 # At this point, all aros_kernel_* and aros_target_*
13000 # tools should be set up correctly
13002 CC
="$aros_kernel_cc $kernel_tool_flags"
13003 CPP
="$aros_kernel_cpp"
13005 #-----------------------------------------------------------------------------
13007 # Disable pointer-signedness warnings if the compiler recognises the option
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
13010 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
13011 save_cflags
="$CFLAGS"
13012 if test "$crosstools" != "yes" ; then
13013 CFLAGS
="$CFLAGS -Wno-pointer-sign"
13014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13025 if ac_fn_c_try_compile
"$LINENO"; then :
13026 use_no_sign_warning
="yes"
13028 use_no_sign_warning
="no"
13030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13032 # we do know it is supported for the smallest version of gcc we are going to build
13033 # we assume it's also supported by later versions
13034 use_no_sign_warning
=yes
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
13037 $as_echo "$use_no_sign_warning" >&6; }
13038 if test "x-$use_no_sign_warning" = "x-yes" ; then
13039 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
13041 CFLAGS
="$save_cflags"
13043 #-----------------------------------------------------------------------------
13045 # Find all the tools we need to compile. This could be cross-compiling
13046 # though! If that is the case we use the GNU form of the target and
13047 # simply add this to the front of the binary name. This is rather simple,
13048 # but it should work under most circumstances.
13050 # The default tools are to use the same as the host, but only if the
13051 # host and target CPU are the same. With GCC this is normally enough.
13055 aros_shared_ld
="$aros_host_ld"
13057 aros_target_mkdep
="$aros_host_mkdep"
13059 # The default tools executables to be linked to.
13060 if test "$rescomp" != ""; then
13061 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13062 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13066 $as_echo_n "(cached) " >&6
13068 case $aros_kernel_rescomp in
13070 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13074 for as_dir
in $PATH
13077 test -z "$as_dir" && as_dir
=.
13078 for ac_exec_ext
in '' $ac_executable_extensions; do
13079 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13080 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13092 if test -n "$aros_kernel_rescomp"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13094 $as_echo "$aros_kernel_rescomp" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 if test "$aros_kernel_rescomp" = ""; then
13102 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13106 # Set up the sources for the symlink farm
13107 if test "$crosstools" = "yes"; then
13108 crosstools_target
=tools-crosstools
13111 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13112 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13114 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13115 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13116 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13117 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13118 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13119 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13120 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13122 # aros_cc_pre is a variable that is added to the front of the compiler name
13123 # in the generated aros-gcc shell script. We need this to enable the cache
13124 # to work across cleaned builds. Also, support DISTCC using the correct
13125 # environment variable.
13128 if test "x${DISTCC}" != "x" ; then
13129 if test "x${CCACHE}" != "x" ; then
13130 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13132 aros_cc_pre
="${DISTCC} "
13135 if test "x${CCACHE}" != "x" ; then
13136 aros_cc_pre
="${CCACHE} "
13140 aros_target_nostdinc_cflags
=-nostdinc
13142 aros_target_nostartup_ldflags
=-nostartfiles
13144 aros_target_nix_ldflags
=-nix
13146 aros_target_detach_ldflags
=-detach
13148 aros_target_nostdlib_ldflags
=-nostdlib
13152 if test "$aros_target_toolchain" != "yes"; then
13153 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13154 if test "$GCC" = "yes"; then
13155 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13158 # We do not know which gcc version we are going to build and what we need to know
13159 # here is different for different versions so this will be set later during the
13160 # build of crosstools.
13161 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13162 aros_target_cc_path
=@aros_target_cc_path@
13164 aros_target_cpp
="${prefix}cpp"
13165 aros_target_cc
="${prefix}gcc"
13166 aros_target_cxx
="${prefix}g++"
13167 aros_target_as
="${prefix}as"
13168 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13169 aros_target_ar
="${prefix}ar $aros_target_ar_flags"
13170 aros_target_objcopy
="${prefix}objcopy"
13171 aros_target_objdump
="${prefix}objdump"
13172 aros_target_ranlib
="${prefix}ranlib $aros_target_ranlib_flags"
13173 aros_target_nm
="${prefix}nm $aros_target_nm_flags"
13174 aros_target_strip
="${prefix}strip"
13175 aros_plain_nm
="${prefix}nm"
13176 aros_plain_ar
="${prefix}ar"
13178 # Check whether --enable-includes was given.
13179 if test "${enable_includes+set}" = set; then :
13180 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13182 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13186 if test "$aros_kernel_includes" = ""; then
13187 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13188 aros_kernel_includes
="-isystem $aros_target_incl"
13192 if test "$aros_kernel_includes" != "" ; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13194 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13195 if test "$aros_kernel_cc_includes" = "" ; then
13196 # Try to guess where the directory is.
13197 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13198 if test -d $aros_kernel_cc_includes; then
13199 # Check if there is also an include-fixed directory and add it
13200 # to kernel compiler's include path as it may contain some of
13201 # the headers we need.
13202 if test -d "$aros_kernel_cc_includes"-fixed; then
13203 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13205 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13206 case ${host_cpu} in
13208 host_cpu_glibc
=i386
13211 host_cpu_glibc
=${host_cpu}
13214 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13215 aros_kernel_cc_includes
+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13218 # The directory doesn't exist, we need to do some more work.
13219 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13221 # These are the headers we're looking for.
13222 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13223 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13227 for h
in $headers; do
13228 # Which other headers are needed by each of the above?
13229 deps
=$
(echo "#include <$h>" | \
13230 $aros_kernel_cc -E -M - 2>/dev
/null | \
13231 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13233 # Copy all the needed headers to a directory beneath gendir.
13236 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13237 sed -n "s,^.*/include\(/.*\),\1,p")
13238 ! test -d $dir && mkdir
-p $dir
13239 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13245 $as_echo "$aros_kernel_cc_includes" >&6; }
13246 # Adding -nostdinc to kernel includes as they are always used together.
13247 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13250 if test "$crosstools" != "yes"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13252 $as_echo_n "checking for the target compiler's include path... " >&6; }
13253 if test "$aros_target_cc_includes" = "" ; then
13254 #try to guess where the directory is
13255 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13256 if ! test -d $aros_target_cc_includes; then
13257 #the directory doesn't exist, we need to do some more work
13258 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13260 #these are the headers we're looking for
13261 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13262 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13266 for h
in $headers; do
13267 #which other headers each of the above headers needs?
13268 deps
=$
(echo "#include <$h>" | \
13269 $orig_target_cc -E -M - 2>/dev
/null | \
13270 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13272 #copy all the needed headers to a directory beneath gendir
13275 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13276 sed -n "s,^.*/include\(/.*\),\1,p")
13277 ! test -d $dir && mkdir
-p $dir
13278 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13284 $as_echo "$aros_target_cc_includes" >&6; }
13286 # We do not know which gcc version we are going to build and what we need to know
13287 # here is different for different versions so this will be set later during the
13288 # build of crosstools.
13289 aros_target_cc_includes
=@aros_target_cc_includes@
13293 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13294 # On GCC >= 4.0 -iquote should be used
13298 save_cflags
="$CFLAGS"
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13301 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13302 if test "x-$crosstools" != "x-yes"; then
13303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13314 if ac_fn_c_try_compile
"$LINENO"; then :
13319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13321 # we do know it is supported for the smallest version of gcc we are going to build
13322 # we assume it's also supported by later versions
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13326 $as_echo "$has_iquote" >&6; }
13327 if test "x-$has_iquote" = "x-yes" ; then
13328 host_cflags_iquote
=-iquote
13329 host_cflags_iquote_end
=
13331 host_cflags_iquote
=-I
13332 host_cflags_iquote_end
=-I-
13334 kernel_cflags_iquote
=$host_cflags_iquote
13335 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13336 if test "x-$cross_compiling" = "x-yes"; then
13337 CC
="$aros_kernel_cc"
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13339 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13340 if test "x-$crosstools" != "x-yes"; then
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13352 if ac_fn_c_try_compile
"$LINENO"; then :
13353 use_no_stack_protector
="yes"
13355 use_no_stack_protector
="no"
13357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13359 # we do know it is supported for the smallest version of gcc we are going to build
13360 # we assume it's also supported by later versions
13361 use_no_stack_protector
=yes
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13364 $as_echo "$use_no_stack_protector" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13366 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13367 if test "x-$crosstools" != "x-yes"; then
13368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13379 if ac_fn_c_try_compile
"$LINENO"; then :
13384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 # we do know it is supported for the smallest version of gcc we are going to build
13387 # we assume it's also supported by later versions
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13391 $as_echo "$has_iquote" >&6; }
13392 if test "x-$has_iquote" = "x-yes" ; then
13393 kernel_cflags_iquote
=-iquote
13394 kernel_cflags_iquote_end
=
13396 kernel_cflags_iquote
=-I
13397 kernel_cflags_iquote_end
=-I-
13400 aros_cflags_iquote
=$kernel_cflags_iquote
13401 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
13402 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13403 CC
="$orig_target_cc"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13405 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13406 if test "x-$crosstools" != "x-yes"; then
13407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13418 if ac_fn_c_try_compile
"$LINENO"; then :
13423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13425 # we do know it is supported for the smallest version of gcc we are going to build
13426 # we assume it's also supported by later versions
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13430 $as_echo "$has_iquote" >&6; }
13431 if test "x-$has_iquote" = "x-yes" ; then
13432 aros_cflags_iquote
=-iquote
13433 aros_cflags_iquote_end
=
13435 aros_cflags_iquote
=-I
13436 aros_cflags_iquote_end
=-I-
13439 if test "x-$use_no_stack_protector" = "x-yes" ; then
13440 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13444 #-----------------------------------------------------------------------------
13446 # Check if the target compiler supports some options used for delinting:
13447 # -Wunused-but-set-variable
13450 # -Wstrict-overflow
13451 # -Wformat-security
13453 if test "x-$crosstools" != "x-yes"; then
13454 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13455 CC
="$orig_target_cc"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13458 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13459 CFLAGS
=-Wunused-but-set-variable
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13471 if ac_fn_c_try_compile
"$LINENO"; then :
13472 aros_unused_but_set_variable
="yes"
13474 aros_unused_but_set_variable
="no"
13476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13478 $as_echo "$aros_unused_but_set_variable" >&6; }
13479 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13480 aros_cflags_unused_but_set_variable
=-Wno-unused-but-set-variable
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13484 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13485 CFLAGS
=-Warray-bounds
13486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13497 if ac_fn_c_try_compile
"$LINENO"; then :
13498 aros_array_bounds
="yes"
13500 aros_array_bounds
="no"
13502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13504 $as_echo "$aros_array_bounds" >&6; }
13505 if test "x-$aros_array_bounds" = "x-yes" ; then
13506 aros_cflags_array_bounds
=-Wno-array-bounds
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13510 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13511 CFLAGS
=-Wenum-compare
13512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13523 if ac_fn_c_try_compile
"$LINENO"; then :
13524 aros_enum_compare
="yes"
13526 aros_enum_compare
="no"
13528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13530 $as_echo "$aros_enum_compare" >&6; }
13531 if test "x-$aros_enum_compare" = "x-yes" ; then
13532 aros_cflags_enum_compare
=-Wno-enum-compare
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13536 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13537 CFLAGS
=-Wstrict-overflow
13538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13549 if ac_fn_c_try_compile
"$LINENO"; then :
13550 aros_strict_overflow
="yes"
13552 aros_strict_overflow
="no"
13554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13556 $as_echo "$aros_strict_overflow" >&6; }
13557 if test "x-$aros_strict_overflow" = "x-yes" ; then
13558 aros_cflags_strict_overflow
=-Wno-strict-overflow
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13562 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13563 CFLAGS
=-Wformat-security
13564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13575 if ac_fn_c_try_compile
"$LINENO"; then :
13576 aros_format_security
="yes"
13578 aros_format_security
="no"
13580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13582 $as_echo "$aros_format_security" >&6; }
13583 if test "x-$aros_format_security" = "x-yes" ; then
13584 aros_cflags_format_security
=-Wno-format-security
13587 # We do not know which gcc version we are going to build and what we need to know
13588 # here is different for different versions so this will be set later during the
13589 # build of crosstools.
13590 aros_cflags_unused_but_set_variable
=@aros_cflags_unused_but_set_variable@
13591 aros_cflags_array_bounds
=@aros_cflags_array_bounds@
13592 aros_cflags_enum_compare
=@aros_cflags_enum_compare@
13593 aros_cflags_strict_overflow
=@aros_cflags_strict_overflow@
13594 aros_cflags_format_security
=@aros_cflags_format_security@
13597 #-----------------------------------------------------------------------------
13599 # Check if we can explicitly choose older version of symbol hashing
13601 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13602 CC
="$aros_kernel_cc"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13604 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13616 if ac_fn_c_try_link
"$LINENO"; then :
13617 use_hash_style
="yes"
13619 use_hash_style
="no"
13621 rm -f core conftest.err conftest.
$ac_objext \
13622 conftest
$ac_exeext conftest.
$ac_ext
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13624 $as_echo "$use_hash_style" >&6; }
13625 if test "x-$use_hash_style" = "x-yes" ; then
13626 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13629 CFLAGS
="$save_cflags"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13640 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13642 # Check whether --with-resolution was given.
13643 if test "${with_resolution+set}" = set; then :
13644 withval
=$with_resolution; resolution
=$withval
13649 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13650 if test "$resolution" = "yes" ; then
13653 if test "$resolution" = "no" ; then
13656 if test "$resolution" != "none" ; then
13657 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
13658 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
13659 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13662 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13663 aros_cv_nominal_width
=$aros_nominal_width
13664 aros_cv_nominal_height
=$aros_nominal_height
13665 aros_cv_nominal_depth
=$aros_nominal_depth
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13668 $as_echo_n "checking if serial debug is enabled... " >&6; }
13670 # Check whether --with-serial-debug was given.
13671 if test "${with_serial_debug+set}" = set; then :
13672 withval
=$with_serial_debug; serial_debug
=$withval
13677 if test "$aros_serial_debug" = 0 ; then
13678 serial_debug_forced
=""
13679 if test "$serial_debug" = "yes" ; then
13682 if test "$serial_debug" = "no" ; then
13683 serial_debug
="none"
13686 serial_debug_forced
="(forced)"
13687 serial_debug
=$aros_serial_debug
13689 if test "$serial_debug" != "none" ; then
13690 aros_serial_debug
=$serial_debug
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13692 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13699 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13700 # Check whether --enable-palm_debug_hack was given.
13701 if test "${enable_palm_debug_hack+set}" = set; then :
13702 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13704 palm_debug_hack
="no"
13707 if test "$palm_debug_hack" = "yes" ; then
13708 aros_palm_debug_hack
="1"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13711 $as_echo "$palm_debug_hack" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13714 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13715 # Check whether --enable-usb30_code was given.
13716 if test "${enable_usb30_code+set}" = set; then :
13717 enableval
=$enable_usb30_code; usb30_code
="yes"
13722 if test "$usb30_code" = "yes" ; then
13723 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13724 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13727 $as_echo "$usb30_code" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13730 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13731 # Check whether --enable-nesting_supervisor was given.
13732 if test "${enable_nesting_supervisor+set}" = set; then :
13733 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13735 nesting_supervisor
="no"
13738 if test "$nesting_supervisor" = "yes" ; then
13739 aros_nesting_supervisor
="1"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13742 $as_echo "$nesting_supervisor" >&6; }
13744 if test "$aros_enable_mmu" = "" ; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13746 $as_echo_n "checking if MMU support is enabled... " >&6; }
13747 # Check whether --enable-mmu was given.
13748 if test "${enable_mmu+set}" = set; then :
13749 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13751 aros_enable_mmu
="yes"
13754 if test "$aros_enable_mmu" = "" ; then
13755 aros_enable_mmu
="yes"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13758 $as_echo "$aros_enable_mmu" >&6; }
13760 if test "$aros_enable_mmu" = "no" ; then
13761 aros_enable_mmu
="0"
13763 aros_enable_mmu
="1"
13767 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13769 if test "x-$need_dlopen" != "x-no" ; then
13772 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13773 if test "x$ac_cv_func_dlopen" = xyes
; then :
13779 if test "x-$have_dl" = "x-no" ; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13782 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13783 $as_echo_n "(cached) " >&6
13785 ac_check_lib_save_LIBS
=$LIBS
13787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13805 if ac_fn_c_try_link
"$LINENO"; then :
13806 ac_cv_lib_dl_dlopen
=yes
13808 ac_cv_lib_dl_dlopen
=no
13810 rm -f core conftest.err conftest.
$ac_objext \
13811 conftest
$ac_exeext conftest.
$ac_ext
13812 LIBS
=$ac_check_lib_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13815 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13816 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13818 aros_host_ldflags
="$aros_host_ldflags -ldl"
13824 if test "x-$have_dl" = "x-no" ; then
13825 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
13831 # Check whether --enable-x11_hidd was given.
13832 if test "${enable_x11_hidd+set}" = set; then :
13833 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
13835 x11_hidd
="$need_x11"
13838 case "x-$x11_hidd" in
13839 x-yes|x-no|x-auto
) ;;
13840 *) x11_hidd
="$need_x11" ;;
13845 if test "x-$x11_hidd" != "x-no" ; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13848 $as_echo_n "checking for X... " >&6; }
13851 # Check whether --with-x was given.
13852 if test "${with_x+set}" = set; then :
13856 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13857 if test "x$with_x" = xno
; then
13858 # The user explicitly disabled X.
13861 case $x_includes,$x_libraries in #(
13862 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13863 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13864 $as_echo_n "(cached) " >&6
13866 # One or both of the vars are not set, and there is no cached value.
13867 ac_x_includes
=no ac_x_libraries
=no
13868 rm -f -r conftest.dir
13869 if mkdir conftest.dir
; then
13871 cat >Imakefile
<<'_ACEOF'
13873 @echo incroot='${INCROOT}'
13875 @echo usrlibdir='${USRLIBDIR}'
13877 @echo libdir='${LIBDIR}'
13879 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13881 for ac_var
in incroot usrlibdir libdir
; do
13882 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13885 for ac_extension
in a so sl dylib la dll
; do
13886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13888 ac_im_usrlibdir
=$ac_im_libdir; break
13891 # Screen out bogus values from the imake configuration. They are
13892 # bogus both because they are the default anyway, and because
13893 # using them would break gcc on systems where it needs fixed includes.
13894 case $ac_im_incroot in
13895 /usr
/include
) ac_x_includes
= ;;
13896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13898 case $ac_im_usrlibdir in
13899 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13904 rm -f -r conftest.dir
13907 # Standard set of common directories for X headers.
13908 # Check X11 before X11Rn because it is often a symlink to the current release.
13922 /usr/local/X11/include
13923 /usr/local/X11R7/include
13924 /usr/local/X11R6/include
13925 /usr/local/X11R5/include
13926 /usr/local/X11R4/include
13928 /usr/local/include/X11
13929 /usr/local/include/X11R7
13930 /usr/local/include/X11R6
13931 /usr/local/include/X11R5
13932 /usr/local/include/X11R4
13936 /usr/XFree86/include/X11
13940 /usr/unsupported/include
13941 /usr/athena/include
13942 /usr/local/x11r5/include
13943 /usr/lpp/Xamples/include
13945 /usr/openwin/include
13946 /usr/openwin/share/include'
13948 if test "$ac_x_includes" = no
; then
13949 # Guess where to find include files, by looking for Xlib.h.
13950 # First, try using that file with no special directory specified.
13951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953 #include <X11/Xlib.h>
13955 if ac_fn_c_try_cpp
"$LINENO"; then :
13956 # We can compile using X headers with no special include directory.
13959 for ac_dir
in $ac_x_header_dirs; do
13960 if test -r "$ac_dir/X11/Xlib.h"; then
13961 ac_x_includes
=$ac_dir
13966 rm -f conftest.err conftest.i conftest.
$ac_ext
13967 fi # $ac_x_includes = no
13969 if test "$ac_x_libraries" = no
; then
13970 # Check for the libraries.
13971 # See if we find them without any special options.
13972 # Don't add to $LIBS permanently.
13975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 #include <X11/Xlib.h>
13986 if ac_fn_c_try_link
"$LINENO"; then :
13988 # We can link X programs with no special library path.
13992 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13994 # Don't even attempt the hair of trying to link an X program!
13995 for ac_extension
in a so sl dylib la dll
; do
13996 if test -r "$ac_dir/libX11.$ac_extension"; then
13997 ac_x_libraries
=$ac_dir
14003 rm -f core conftest.err conftest.
$ac_objext \
14004 conftest
$ac_exeext conftest.
$ac_ext
14005 fi # $ac_x_libraries = no
14007 case $ac_x_includes,$ac_x_libraries in #(
14008 no
,* |
*,no |
*\'*)
14009 # Didn't find X, or a directory has "'" in its name.
14010 ac_cv_have_x
="have_x=no";; #(
14012 # Record where we found X for the cache.
14013 ac_cv_have_x
="have_x=yes\
14014 ac_x_includes='$ac_x_includes'\
14015 ac_x_libraries='$ac_x_libraries'"
14021 eval "$ac_cv_have_x"
14024 if test "$have_x" != yes; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14026 $as_echo "$have_x" >&6; }
14029 # If each of the values was on the command line, it overrides each guess.
14030 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14031 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14032 # Update the cache value to reflect the command line values.
14033 ac_cv_have_x
="have_x=yes\
14034 ac_x_includes='$x_includes'\
14035 ac_x_libraries='$x_libraries'"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14037 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14042 for path
in $x_libraries
14044 x_cflags
="$x_cflags -L$path"
14047 for path
in $x_includes
14049 x_cflags
="$x_cflags -I$path"
14052 if test "x-$no_x" = "x-yes" ; then
14054 if test "x-$x11_hidd" != "x-auto" ; then
14055 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14062 # Check whether --enable-x11_shm was given.
14063 if test "${enable_x11_shm+set}" = set; then :
14064 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14066 x11_hidd_shm
="auto"
14069 case "x-$x11_hidd_shm" in
14070 x-yes|x-no|x-auto
) ;;
14071 *) x11_hidd_shm
="auto" ;;
14076 if test "x-$x11_hidd_shm" != "x-no" ; then
14078 for ac_header
in sys
/ipc.h
14080 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14081 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14082 cat >>confdefs.h
<<_ACEOF
14083 #define HAVE_SYS_IPC_H 1
14090 for ac_header
in sys
/shm.h
14092 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14093 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14094 cat >>confdefs.h
<<_ACEOF
14095 #define HAVE_SYS_SHM_H 1
14103 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14105 save_cflags
="$CFLAGS"
14106 CFLAGS
="$CFLAGS $x_cflags"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14108 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14109 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14110 $as_echo_n "(cached) " >&6
14112 ac_check_lib_save_LIBS
=$LIBS
14113 LIBS
="-lXext $LIBS"
14114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14123 char XShmQueryExtension ();
14127 return XShmQueryExtension ();
14132 if ac_fn_c_try_link
"$LINENO"; then :
14133 ac_cv_lib_Xext_XShmQueryExtension
=yes
14135 ac_cv_lib_Xext_XShmQueryExtension
=no
14137 rm -f core conftest.err conftest.
$ac_objext \
14138 conftest
$ac_exeext conftest.
$ac_ext
14139 LIBS
=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14142 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14143 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14147 CFLAGS
="$save_cflags"
14151 if test "x-$have_xshm" = "x-yes" ; then
14152 DO_XSHM_SUPPORT
="1"
14153 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14154 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14156 DO_XSHM_SUPPORT
="0"
14160 # Check whether --enable-x11_vidmode was given.
14161 if test "${enable_x11_vidmode+set}" = set; then :
14162 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14164 x11_hidd_vidmode
="auto"
14167 case "x-$x11_hidd_vidmode" in
14168 x-yes|x-no|x-auto
) ;;
14169 *) x11_hidd_vidmode
="auto" ;;
14174 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14176 save_cflags
="$CFLAGS"
14177 CFLAGS
="$CFLAGS $x_cflags"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14179 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14180 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14181 $as_echo_n "(cached) " >&6
14183 ac_check_lib_save_LIBS
=$LIBS
14184 LIBS
="-lXxf86vm $LIBS"
14185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14194 char XF86VidModeQueryExtension ();
14198 return XF86VidModeQueryExtension ();
14203 if ac_fn_c_try_link
"$LINENO"; then :
14204 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14206 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14208 rm -f core conftest.err conftest.
$ac_objext \
14209 conftest
$ac_exeext conftest.
$ac_ext
14210 LIBS
=$ac_check_lib_save_LIBS
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14213 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14214 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14218 CFLAGS
="$save_cflags"
14221 if test "x-$have_vidmode" = "x-yes" ; then
14222 DO_VIDMODE_SUPPORT
="1"
14223 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14224 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14226 DO_VIDMODE_SUPPORT
="0"
14230 aros_host_x11_includes
=$x_includes
14231 aros_host_x11_libdirs
=$x_libraries
14235 # Check whether --enable-sdl_hidd was given.
14236 if test "${enable_sdl_hidd+set}" = set; then :
14237 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14242 case "x-$sdl_hidd" in
14243 x-yes|x-no|x-auto
) ;;
14244 *) sdl_hidd
="auto" ;;
14247 if test "x-$sdl_hidd" != "x-no" ; then
14251 # Check whether --with-sdl-prefix was given.
14252 if test "${with_sdl_prefix+set}" = set; then :
14253 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14259 # Check whether --with-sdl-exec-prefix was given.
14260 if test "${with_sdl_exec_prefix+set}" = set; then :
14261 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14266 # Check whether --enable-sdltest was given.
14267 if test "${enable_sdltest+set}" = set; then :
14268 enableval
=$enable_sdltest;
14274 if test x
$sdl_exec_prefix != x
; then
14275 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14276 if test x
${SDL_CONFIG+set} != xset
; then
14277 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14280 if test x
$sdl_prefix != x
; then
14281 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14282 if test x
${SDL_CONFIG+set} != xset
; then
14283 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14287 as_save_PATH
="$PATH"
14288 if test "x$prefix" != xNONE
; then
14289 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14291 # Extract the first word of "sdl-config", so it can be a program name with args.
14292 set dummy sdl-config
; ac_word
=$2
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14294 $as_echo_n "checking for $ac_word... " >&6; }
14295 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14296 $as_echo_n "(cached) " >&6
14298 case $SDL_CONFIG in
14300 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14304 for as_dir
in $PATH
14307 test -z "$as_dir" && as_dir
=.
14308 for ac_exec_ext
in '' $ac_executable_extensions; do
14309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14310 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14322 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14323 if test -n "$SDL_CONFIG"; then
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14325 $as_echo "$SDL_CONFIG" >&6; }
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14332 PATH
="$as_save_PATH"
14333 min_sdl_version
=$SDL_VERSION
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14335 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14337 if test "$SDL_CONFIG" = "no" ; then
14340 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14341 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14343 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14344 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14345 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14346 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14347 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14348 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14349 if test "x$enable_sdltest" = "xyes" ; then
14350 ac_save_CFLAGS
="$CFLAGS"
14351 ac_save_CXXFLAGS
="$CXXFLAGS"
14352 ac_save_LIBS
="$LIBS"
14353 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14354 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14355 LIBS
="$LIBS $SDL_LIBS"
14357 if test "$cross_compiling" = yes; then :
14358 echo $ac_n "cross compiling; assumed OK... $ac_c"
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14364 #include <stdlib.h>
14365 #include <string.h>
14369 my_strdup (char *str)
14375 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14376 strcpy (new_str, str);
14384 int main (int argc, char *argv[])
14386 int major, minor, micro;
14389 /* This hangs on some systems (?)
14390 system ("touch conf.sdltest");
14392 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14394 /* HP/UX 9 (%@#!) writes to sscanf strings */
14395 tmp_version = my_strdup("$min_sdl_version");
14396 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14397 printf("%s, bad version string\n", "$min_sdl_version");
14401 if (($sdl_major_version > major) ||
14402 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14403 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14409 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14410 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14411 printf("*** best to upgrade to the required version.\n");
14412 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14413 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14414 printf("*** config.cache before re-running configure\n");
14421 if ac_fn_c_try_run
"$LINENO"; then :
14426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14430 CFLAGS
="$ac_save_CFLAGS"
14431 CXXFLAGS
="$ac_save_CXXFLAGS"
14432 LIBS
="$ac_save_LIBS"
14435 if test "x$no_sdl" = x
; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442 if test "$SDL_CONFIG" = "no" ; then
14443 echo "*** The sdl-config script installed by SDL could not be found"
14444 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14445 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14446 echo "*** full path to sdl-config."
14448 if test -f conf.sdltest
; then
14451 echo "*** Could not run SDL test program, checking why..."
14452 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14453 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14454 LIBS
="$LIBS $SDL_LIBS"
14455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14461 int main(int argc, char *argv[])
14464 #define main K_and_R_C_main
14474 if ac_fn_c_try_link
"$LINENO"; then :
14475 echo "*** The test program compiled, but did not run. This usually means"
14476 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14477 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14478 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14479 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14480 echo "*** is required on your system"
14482 echo "*** If you have an old version installed, it is best to remove it, although"
14483 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14485 echo "*** The test program failed to compile or link. See the file config.log for the"
14486 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14487 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14488 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14490 rm -f core conftest.err conftest.
$ac_objext \
14491 conftest
$ac_exeext conftest.
$ac_ext
14492 CFLAGS
="$ac_save_CFLAGS"
14493 CXXFLAGS
="$ac_save_CXXFLAGS"
14494 LIBS
="$ac_save_LIBS"
14506 if test "x-$have_sdl" != "x-yes" ; then
14508 if test "x-$sdl_hidd" != "x-auto" ; then
14509 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14514 aros_host_sdl_cflags
=$SDL_CFLAGS
14515 aros_host_sdl_libs
=$SDL_LIBS
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14523 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14524 # Check whether --enable-dbus was given.
14525 if test "${enable_dbus+set}" = set; then :
14526 enableval
=$enable_dbus; dbus
="yes"
14531 if test "$dbus" = "yes" ; then
14533 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14534 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14535 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14536 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14541 $as_echo "$dbus" >&6; }
14543 if test "$use_kernel_cc_wrapper" = "yes" ; then
14544 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14560 # Compatability with other Amiga-like operation systems
14662 # Delinting target compiler flags
14669 # Hosted Graphics Related
14686 # Native version related
14690 # Palm native version related
14693 # Unix/Hosted version related
14699 # Apple iOS related
14704 # ARM default GCC target related
14732 # Collect-aros stuff: "-ius" to ignore undefined symbols
14735 # C compiler related
14740 #ObjC compiler related
14749 case "$aros_flavour" in
14750 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
14751 aros_flavour
="emulation" ;;
14752 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14753 aros_flavour
="emulation" ;;
14754 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
14755 aros_flavour
="standalone";;
14756 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14757 aros_flavour
="standalone";;
14758 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
14759 aros_flavour
="native" ;;
14760 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14761 aros_flavour
="native" ;;
14762 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
14763 aros_flavour
="linklib" ;;
14764 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14765 aros_flavour
="palmnative" ;;
14766 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14767 aros_flavour
="mac68knative" ;;
14768 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14769 aros_flavour
="ppcnative" ;;
14772 if test ! -d ${aros_inc_dir} ; then
14773 ${MKDIR} ${aros_inc_dir}
14775 if test ! -d ${aros_geninc_dir} ; then
14776 ${MKDIR} ${aros_geninc_dir}
14778 if test ! -d ${aros_hostcfg_dir} ; then
14779 ${MKDIR} ${aros_hostcfg_dir}
14781 if test ! -d ${aros_targetcfg_dir} ; then
14782 ${MKDIR} ${aros_targetcfg_dir}
14784 if test ! -d ${aros_tools_dir} ; then
14785 ${MKDIR} ${aros_tools_dir}
14787 if test ! -d ${aros_scripts_dir} ; then
14788 ${MKDIR} ${aros_scripts_dir}
14791 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14794 # Generic build tools (metamake, etc)
14795 ac_config_commands
="$ac_config_commands genmf-executable-support"
14797 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"
14801 ac_config_commands
="$ac_config_commands binutils-support"
14803 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14806 # Bare Elf support script and spec
14807 if test "${use_kernel_cc_wrapper}" = "yes"; then
14808 ac_config_commands
="$ac_config_commands elf-compiler-support"
14810 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"
14814 # Host compiler support scripts and spec
14815 if test "${aros_target_toolchain}" = "no"; then
14816 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
14818 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-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14823 if test "$aros_target_variant" == "android"; then
14824 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14829 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14832 cat >confcache
<<\_ACEOF
14833 # This file is a shell script that caches the results of configure
14834 # tests run on this system so they can be shared between configure
14835 # scripts and configure runs, see configure's option --config-cache.
14836 # It is not useful on other systems. If it contains results you don't
14837 # want to keep, you may remove or edit it.
14839 # config.status only pays attention to the cache file if you give it
14840 # the --recheck option to rerun configure.
14842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14844 # following values.
14848 # The following way of writing the cache mishandles newlines in values,
14849 # but we know of no workaround that is simple, portable, and efficient.
14850 # So, we kill variables containing newlines.
14851 # Ultrix sh set writes to stderr and can't be redirected directly,
14852 # and sets the high bit in the cache file unless we assign to the vars.
14854 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14855 eval ac_val
=\$
$ac_var
14859 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14863 _ | IFS | as_nl
) ;; #(
14864 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14865 *) { eval $ac_var=; unset $ac_var;} ;;
14871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14872 *${as_nl}ac_space
=\
*)
14873 # `set' does not quote correctly, so add quotes: double-quote
14874 # substitution turns \\\\ into \\, and sed turns \\ into \.
14877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14880 # `set' quotes correctly as required by POSIX, so do not add quotes.
14881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14894 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14895 if test -w "$cache_file"; then
14896 if test "x$cache_file" != "x/dev/null"; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14898 $as_echo "$as_me: updating cache $cache_file" >&6;}
14899 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14900 cat confcache
>"$cache_file"
14902 case $cache_file in #(
14904 mv -f confcache
"$cache_file"$$
&&
14905 mv -f "$cache_file"$$
"$cache_file" ;; #(
14907 mv -f confcache
"$cache_file" ;;
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14918 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14919 # Let make expand exec_prefix.
14920 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14922 DEFS
=-DHAVE_CONFIG_H
14927 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14928 # 1. Remove the extension, and $U if already installed.
14929 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14930 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14932 # will be set to the directory where LIBOBJS objects are built.
14933 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14934 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14936 LIBOBJS
=$ac_libobjs
14938 LTLIBOBJS
=$ac_ltlibobjs
14942 : "${CONFIG_STATUS=./config.status}"
14944 ac_clean_files_save
=$ac_clean_files
14945 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14947 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14951 # Generated by $as_me.
14952 # Run this file to recreate the current configuration.
14953 # Compiler output produced by configure, useful for debugging
14954 # configure, is in config.log if it exists.
14957 ac_cs_recheck=false
14960 SHELL=\${CONFIG_SHELL-$SHELL}
14963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14964 ## -------------------- ##
14965 ## M4sh Initialization. ##
14966 ## -------------------- ##
14968 # Be more Bourne compatible
14969 DUALCASE
=1; export DUALCASE
# for MKS sh
14970 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14974 # is contrary to our usage. Disable this feature.
14975 alias -g '${1+"$@"}'='"$@"'
14976 setopt NO_GLOB_SUBST
14978 case `(set -o) 2>/dev/null` in #(
14990 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14991 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14994 # Prefer a ksh shell builtin over an external printf program on Solaris,
14995 # but without wasting forks for bash or zsh.
14996 if test -z "$BASH_VERSION$ZSH_VERSION" \
14997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14998 as_echo='print
-r --'
14999 as_echo_n='print
-rn --'
15000 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15001 as_echo='printf %s
\n'
15002 as_echo_n='printf %s
'
15004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15005 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15006 as_echo_n='/usr
/ucb
/echo -n'
15008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15009 as_echo_n_body='eval
15013 expr "X$arg" : "X\\(.*\\)$as_nl";
15014 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15016 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15018 export as_echo_n_body
15019 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15021 export as_echo_body
15022 as_echo='sh
-c $as_echo_body as_echo
'
15025 # The user is always right.
15026 if test "${PATH_SEPARATOR+set}" != set; then
15028 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15029 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15036 # We need space, tab and new line, in precisely that order. Quoting is
15037 # there to prevent editors from complaining about space-tab.
15038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15039 # splitting by setting IFS to empty value.)
15042 # Find who we are. Look in the path if we contain no directory separator.
15045 *[\\/]* ) as_myself=$0 ;;
15046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 for as_dir in $PATH
15050 test -z "$as_dir" && as_dir=.
15051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15057 # We did not find ourselves, most probably we were run as `sh COMMAND'
15058 # in which case we are not to be found in the path.
15059 if test "x$as_myself" = x
; then
15062 if test ! -f "$as_myself"; then
15063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15067 # Unset variables that we do not need and which cause bugs (e.g. in
15068 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15069 # suppresses any "Segmentation fault" message there. '((' could
15070 # trigger a bug in pdksh 5.2.14.
15071 for as_var
in BASH_ENV ENV MAIL MAILPATH
15072 do eval test x\
${$as_var+set} = xset \
15073 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15086 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15089 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15090 # ----------------------------------------
15091 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15092 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15093 # script with STATUS, using 1 if that was 0.
15096 as_status
=$1; test $as_status -eq 0 && as_status
=1
15098 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15101 $as_echo "$as_me: error: $2" >&2
15102 as_fn_exit
$as_status
15106 # as_fn_set_status STATUS
15107 # -----------------------
15108 # Set $? to STATUS, without forking.
15109 as_fn_set_status
()
15112 } # as_fn_set_status
15114 # as_fn_exit STATUS
15115 # -----------------
15116 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15120 as_fn_set_status
$1
15126 # Portably unset VAR.
15129 { eval $1=; unset $1;}
15131 as_unset
=as_fn_unset
15132 # as_fn_append VAR VALUE
15133 # ----------------------
15134 # Append the text in VALUE to the end of the definition contained in VAR. Take
15135 # advantage of any shell optimizations that allow amortized linear growth over
15136 # repeated appends, instead of the typical quadratic growth present in naive
15138 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15139 eval 'as_fn_append ()
15150 # as_fn_arith ARG...
15151 # ------------------
15152 # Perform arithmetic evaluation on the ARGs, and store the result in the
15153 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15154 # must be portable across $(()) and expr.
15155 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15156 eval 'as_fn_arith ()
15163 as_val
=`expr "$@" || test $? -eq 1`
15168 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15169 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15175 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15176 as_basename
=basename
15181 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15187 as_me
=`$as_basename -- "$0" ||
15188 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15189 X"$0" : 'X\(//\)$' \| \
15190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15192 sed '/^.*\/\([^/][^/]*\)\/*$/{
15206 # Avoid depending upon Character Ranges.
15207 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15208 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15209 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15210 as_cr_digits
='0123456789'
15211 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15213 ECHO_C
= ECHO_N
= ECHO_T
=
15214 case `echo -n x` in #(((((
15216 case `echo 'xy\c'` in
15217 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15219 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15226 rm -f conf$$ conf$$.exe conf$$.
file
15227 if test -d conf$$.dir
; then
15228 rm -f conf$$.dir
/conf$$.
file
15231 mkdir conf$$.dir
2>/dev
/null
15233 if (echo >conf$$.
file) 2>/dev
/null
; then
15234 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15236 # ... but there are two gotchas:
15237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15239 # In both cases, we have to default to `cp -pR'.
15240 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15242 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15250 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15251 rmdir conf$$.dir
2>/dev
/null
15256 # Create "$as_dir" as a directory, including parents if necessary.
15261 -*) as_dir
=.
/$as_dir;;
15263 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15267 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15268 *) as_qdir
=$as_dir;;
15270 as_dirs
="'$as_qdir' $as_dirs"
15271 as_dir
=`$as_dirname -- "$as_dir" ||
15272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15273 X"$as_dir" : 'X\(//\)[^/]' \| \
15274 X"$as_dir" : 'X\(//\)$' \| \
15275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15276 $as_echo X"$as_dir" |
15277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15281 /^X\(\/\/\)[^/].*/{
15294 test -d "$as_dir" && break
15296 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15297 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15301 if mkdir
-p .
2>/dev
/null
; then
15302 as_mkdir_p
='mkdir -p "$as_dir"'
15304 test -d .
/-p && rmdir .
/-p
15309 # as_fn_executable_p FILE
15310 # -----------------------
15311 # Test if FILE is an executable regular file.
15312 as_fn_executable_p
()
15314 test -f "$1" && test -x "$1"
15315 } # as_fn_executable_p
15316 as_test_x
='test -x'
15317 as_executable_p
=as_fn_executable_p
15319 # Sed expression to map a string onto a valid CPP name.
15320 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15322 # Sed expression to map a string onto a valid variable name.
15323 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15327 ## ----------------------------------- ##
15328 ## Main body of $CONFIG_STATUS script. ##
15329 ## ----------------------------------- ##
15331 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15334 # Save the log message, to keep $0 and so on meaningful, and to
15335 # report actual input values of CONFIG_FILES etc. instead of their
15336 # values after options handling.
15338 This file was extended by $as_me, which was
15339 generated by GNU Autoconf 2.69. Invocation command line was
15341 CONFIG_FILES = $CONFIG_FILES
15342 CONFIG_HEADERS = $CONFIG_HEADERS
15343 CONFIG_LINKS = $CONFIG_LINKS
15344 CONFIG_COMMANDS = $CONFIG_COMMANDS
15347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15352 case $ac_config_files in *"
15353 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15356 case $ac_config_headers in *"
15357 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 # Files that config.status was made for.
15363 config_files="$ac_config_files"
15364 config_headers="$ac_config_headers"
15365 config_commands="$ac_config_commands"
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15371 \`$as_me' instantiates files and other configuration actions
15372 from templates according to the current configuration. Unless the files
15373 and actions are specified as TAGs, all are instantiated by default.
15375 Usage: $0 [OPTION]... [TAG]...
15377 -h, --help print this help, then exit
15378 -V, --version print version number and configuration settings, then exit
15379 --config print configuration, then exit
15380 -q, --quiet, --silent
15381 do not print progress messages
15382 -d, --debug don't remove temporary files
15383 --recheck update $as_me by reconfiguring in the same conditions
15384 --file=FILE[:TEMPLATE]
15385 instantiate the configuration file FILE
15386 --header=FILE[:TEMPLATE]
15387 instantiate the configuration header FILE
15389 Configuration files:
15392 Configuration headers:
15395 Configuration commands:
15398 Report bugs to the package provider."
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15405 configured by $0, generated by GNU Autoconf 2.69,
15406 with options \\"\$ac_cs_config\\"
15408 Copyright (C) 2012 Free Software Foundation, Inc.
15409 This config.status script is free software; the Free Software Foundation
15410 gives unlimited permission to copy, distribute and modify it."
15414 test -n "\$AWK" || AWK=awk
15417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15418 # The default lists apply if the user does not specify any file.
15424 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15425 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15429 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15441 # Handling of the options.
15442 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15444 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15445 $as_echo "$ac_cs_version"; exit ;;
15446 --config |
--confi |
--conf |
--con |
--co |
--c )
15447 $as_echo "$ac_cs_config"; exit ;;
15448 --debug |
--debu |
--deb |
--de |
--d |
-d )
15450 --file |
--fil |
--fi |
--f )
15453 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15454 '') as_fn_error $?
"missing file argument" ;;
15456 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15457 ac_need_defaults
=false
;;
15458 --header |
--heade |
--head |
--hea )
15461 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15463 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15464 ac_need_defaults
=false
;;
15466 # Conflict between --help and --header
15467 as_fn_error $?
"ambiguous option: \`$1'
15468 Try \`$0 --help' for more information.";;
15469 --help |
--hel |
-h )
15470 $as_echo "$ac_cs_usage"; exit ;;
15471 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15472 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15475 # This is an error.
15476 -*) as_fn_error $?
"unrecognized option: \`$1'
15477 Try \`$0 --help' for more information." ;;
15479 *) as_fn_append ac_config_targets
" $1"
15480 ac_need_defaults
=false
;;
15486 ac_configure_extra_args
=
15488 if $ac_cs_silent; then
15490 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 if \$ac_cs_recheck; then
15496 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15498 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15499 CONFIG_SHELL='$SHELL'
15500 export CONFIG_SHELL
15505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15510 ## Running $as_me. ##
15516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520 aros_tools_dir=${aros_tools_dir}
15523 aros_host_exe_suffix=${aros_host_exe_suffix}
15524 aros_tools_dir=${aros_tools_dir}
15525 aros_target_cpu=${aros_target_cpu}
15526 aros_target_arch=${aros_target_arch}
15527 aros_target_suffix=${aros_target_suffix}
15528 orig_target_nm=${orig_target_nm}
15529 orig_target_as=${orig_target_as}
15530 orig_target_ar=${orig_target_ar}
15531 orig_target_ranlib=${orig_target_ranlib}
15532 orig_target_objdump=${orig_target_objdump}
15533 orig_target_objcopy=${orig_target_objcopy}
15534 orig_target_strip=${orig_target_strip}
15535 aros_kernel_ld=${aros_kernel_ld}
15539 aros_host_exe_suffix=${aros_host_exe_suffix}
15540 aros_tools_dir=${aros_tools_dir}
15541 aros_target_cpu=${aros_target_cpu}
15542 aros_target_arch=${aros_target_arch}
15543 aros_target_suffix=${aros_target_suffix}
15544 aros_kernel_ld=${aros_kernel_ld}
15548 aros_host_exe_suffix=${aros_host_exe_suffix}
15549 aros_tools_dir=${aros_tools_dir}
15550 aros_target_cpu=${aros_target_cpu}
15551 aros_target_arch=${aros_target_arch}
15552 aros_target_suffix=${aros_target_suffix}
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15560 # Handling of arguments.
15561 for ac_config_target
in $ac_config_targets
15563 case $ac_config_target in
15564 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15565 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15566 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15567 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15568 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15569 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15570 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15571 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15572 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15573 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15574 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15575 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15576 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15577 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15578 "${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" ;;
15579 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15580 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15581 "${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" ;;
15582 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15583 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15584 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15585 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15586 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15587 "${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" ;;
15588 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15590 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15595 # If the user did not use the arguments to specify the items to instantiate,
15596 # then the envvar interface is used. Set only those that are not.
15597 # We use the long form for the default assignment because of an extremely
15598 # bizarre bug on SunOS 4.1.3.
15599 if $ac_need_defaults; then
15600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15601 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15605 # Have a temporary directory for convenience. Make it in the build tree
15606 # simply because there is no reason against having it here, and in addition,
15607 # creating and moving files from /tmp can sometimes cause problems.
15608 # Hook for its removal unless debugging.
15609 # Note that there is a small window in which the directory will not be cleaned:
15610 # after its creation but before its name has been assigned to `$tmp'.
15614 trap 'exit_status=$?
15615 : "${ac_tmp:=$tmp}"
15616 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15618 trap 'as_fn_exit 1' 1 2 13 15
15620 # Create a (secure) tmp directory for tmp files.
15623 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15627 tmp
=.
/conf$$
-$RANDOM
15628 (umask 077 && mkdir
"$tmp")
15629 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15632 # Set up the scripts for CONFIG_FILES section.
15633 # No need to generate them if there are no CONFIG_FILES.
15634 # This happens for instance with `./config.status config.h'.
15635 if test -n "$CONFIG_FILES"; then
15638 ac_cr
=`echo X | tr X '\015'`
15639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15640 # But we know of no other shell where ac_cr would be empty at this
15641 # point, so we can use a bashism as a fallback.
15642 if test "x$ac_cr" = x
; then
15643 eval ac_cr
=\$
\'\\r
\'
15645 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15649 ac_cs_awk_cr
=$ac_cr
15652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15657 echo "cat >conf$$subs.awk <<_ACEOF" &&
15658 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15660 } >conf$$subs.sh ||
15661 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15662 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15664 for ac_last_try in false false false false false :; do
15665 . ./conf$$subs.sh ||
15666 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15668 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15669 if test $ac_delim_n = $ac_delim_num; then
15671 elif $ac_last_try; then
15672 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15674 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15677 rm -f conf$$subs.sh
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15684 s/^/S["/; s
/!.
*/"]=/
15694 s/\(.\{148\}\)..*/\1/
15696 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15701 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15708 s/\(.\{148\}\)..*/\1/
15710 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15714 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15719 ' <conf$$subs.awk | sed '
15724 ' >>$CONFIG_STATUS || ac_write_fail=1
15725 rm -f conf$$subs.awk
15726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15729 for (key in S) S_is_set[key] = 1
15735 nfields = split(line, field, "@
")
15737 len = length(field[1])
15738 for (i = 2; i < nfields; i++) {
15740 keylen = length(key)
15741 if (S_is_set[key]) {
15743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15744 len += length(value) + length(field[++i])
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15757 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15760 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15761 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15764 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15765 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15766 # trailing colons and then remove the whole line if VPATH becomes empty
15767 # (actually we leave an empty line to preserve line numbers).
15768 if test "x
$srcdir" = x.; then
15769 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15788 fi # test -n "$CONFIG_FILES"
15790 # Set up the scripts for CONFIG_HEADERS section.
15791 # No need to generate them if there are no CONFIG_HEADERS.
15792 # This happens for instance with `./config.status Makefile'.
15793 if test -n "$CONFIG_HEADERS"; then
15794 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15798 # Transform confdefs.h into an awk script `defines.awk', embedded as
15799 # here-document in config.status, that substitutes the proper values into
15800 # config.h.in to produce config.h.
15802 # Create a delimiter string that does not exist in confdefs.h, to ease
15803 # handling of long lines.
15805 for ac_last_try in false false :; do
15806 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15807 if test -z "$ac_tt"; then
15809 elif $ac_last_try; then
15810 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15812 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15816 # For the awk script, D is an array of macro values keyed by name,
15817 # likewise P contains macro parameters if any. Preserve backslash
15818 # newline sequences.
15820 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15822 s/.\{148\}/&'"$ac_delim"'/g
15825 s/^[ ]*#[ ]*define[ ][ ]*/ /
15832 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15834 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15838 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15839 D["\
1"]=" \
3\\\\\\n
"\\/p
15841 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15846 s/.\{148\}/&'"$ac_delim"'/g
15851 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15854 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15856 ' <confdefs.h | sed '
15857 s/'"$ac_delim"'/"\\\
15858 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 for (key in D) D_is_set[key] = 1
15864 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15866 split(line, arg, " ")
15867 if (arg[1] == "#") {
15871 defundef
= substr
(arg
[1], 2)
15874 split(mac1
, mac2
, "(") #)
15876 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15877 if (D_is_set
[macro
]) {
15878 # Preserve the white space surrounding the "#".
15879 print prefix
"define", macro P
[macro
] D
[macro
]
15882 # Replace #undef with comments. This is necessary, for example,
15883 # in the case of _POSIX_SOURCE, which is predefined and required
15884 # on some systems where configure will not decide to define it.
15885 if (defundef
== "undef") {
15886 print
"/*", prefix defundef
, macro
, "*/"
15894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15895 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15896 fi # test -n "$CONFIG_HEADERS"
15899 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15904 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15906 case $ac_mode$ac_tag in
15908 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15909 :[FH
]-) ac_tag
=-:-;;
15910 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15927 -) ac_f
="$ac_tmp/stdin";;
15928 *) # Look for the file first in the build tree, then in the source tree
15929 # (if the path is not absolute). The absolute path cannot be DOS-style,
15930 # because $ac_f cannot contain `:'.
15934 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15936 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15938 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15939 as_fn_append ac_file_inputs
" '$ac_f'"
15942 # Let's still pretend it is `configure' which instantiates (i.e., don't
15943 # use $as_me), people would be surprised to read:
15944 # /* config.h. Generated by config.status. */
15945 configure_input
='Generated from '`
15946 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15948 if test x
"$ac_file" != x-
; then
15949 configure_input
="$ac_file. $configure_input"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15951 $as_echo "$as_me: creating $ac_file" >&6;}
15953 # Neutralize special characters interpreted by sed in replacement strings.
15954 case $configure_input in #(
15955 *\
&* |
*\|
* |
*\\* )
15956 ac_sed_conf_input
=`$as_echo "$configure_input" |
15957 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15958 *) ac_sed_conf_input
=$configure_input;;
15962 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15963 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15968 ac_dir
=`$as_dirname -- "$ac_file" ||
15969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15970 X"$ac_file" : 'X\(//\)[^/]' \| \
15971 X"$ac_file" : 'X\(//\)$' \| \
15972 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15973 $as_echo X"$ac_file" |
15974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15978 /^X\(\/\/\)[^/].*/{
15991 as_dir
="$ac_dir"; as_fn_mkdir_p
15995 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15997 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15998 # A ".." for each directory in $ac_dir_suffix.
15999 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16000 case $ac_top_builddir_sub in
16001 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16002 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16005 ac_abs_top_builddir
=$ac_pwd
16006 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16007 # for backward compatibility:
16008 ac_top_builddir
=$ac_top_build_prefix
16011 .
) # We are building in place.
16013 ac_top_srcdir
=$ac_top_builddir_sub
16014 ac_abs_top_srcdir
=$ac_pwd ;;
16015 [\\/]* | ?
:[\\/]* ) # Absolute name.
16016 ac_srcdir
=$srcdir$ac_dir_suffix;
16017 ac_top_srcdir
=$srcdir
16018 ac_abs_top_srcdir
=$srcdir ;;
16019 *) # Relative name.
16020 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16021 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16022 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16024 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16036 # If the template does not know about datarootdir, expand it.
16037 # FIXME: This hack should be removed a few years after 2.60.
16038 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16050 *datarootdir
*) ac_datarootdir_seen
=yes;;
16051 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16053 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 ac_datarootdir_hack='
16057 s&@datadir@&$datadir&g
16058 s&@docdir@&$docdir&g
16059 s&@infodir@&$infodir&g
16060 s&@localedir@&$localedir&g
16061 s&@mandir@&$mandir&g
16062 s&\\\${datarootdir}&$datarootdir&g' ;;
16066 # Neutralize VPATH when `$srcdir' = `.'.
16067 # Shell code in configure.ac might set extrasub.
16068 # FIXME: do we really want to maintain this feature?
16069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 ac_sed_extra="$ac_vpsub
16073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16075 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16076 s|@configure_input@|
$ac_sed_conf_input|
;t t
16077 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16078 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16079 s
&@srcdir@
&$ac_srcdir&;t t
16080 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16081 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16082 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16083 s
&@builddir@
&$ac_builddir&;t t
16084 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16085 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16086 $ac_datarootdir_hack
16088 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16089 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16091 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16092 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16093 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16094 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16096 which seems to be undefined. Please make sure it is defined" >&5
16097 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16098 which seems to be undefined. Please make sure it is defined" >&2;}
16100 rm -f "$ac_tmp/stdin"
16102 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16103 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16111 if test x"$ac_file" != x-; then
16113 $as_echo "/* $configure_input */" \
16114 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16115 } >"$ac_tmp/config.h" \
16116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16117 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16119 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16122 mv "$ac_tmp/config.h" "$ac_file" \
16123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16126 $as_echo "/* $configure_input */" \
16127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16128 || as_fn_error $? "could not create -" "$LINENO" 5
16132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16133 $as_echo "$as_me: executing $ac_file commands" >&6;}
16138 case $ac_file$ac_mode in
16139 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16140 "binutils-support":C)
16141 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16143 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16145 chmod a+x ${prefix2}-ld
16147 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16148 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16149 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16150 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16151 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16152 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16153 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16155 "elf-compiler-support":C)
16156 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16158 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16160 chmod a+x ${prefix2}-gcc
16162 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16164 "host-compiler-wrapper-support":C)
16165 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16167 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16169 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16178 ac_clean_files=$ac_clean_files_save
16180 test $ac_write_fail = 0 ||
16181 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16184 # configure is writing to config.log, and then calls config.status.
16185 # config.status does its own redirection, appending to config.log.
16186 # Unfortunately, on DOS this fails, as config.log is still kept open
16187 # by configure, so config.status won't be able to
write to it
; its
16188 # output is simply discarded. So we exec the FD to /dev/null,
16189 # effectively closing config.log, so it can be properly (re)opened and
16190 # appended to by config.status. When coming back to configure, we
16191 # need to make the FD available again.
16192 if test "$no_create" != yes; then
16194 ac_config_status_args
=
16195 test "$silent" = yes &&
16196 ac_config_status_args
="$ac_config_status_args --quiet"
16198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16201 # would make configure fail if this is the last instruction.
16202 $ac_cs_success || as_fn_exit
1
16204 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16206 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16211 #XXX compatability...
16212 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16214 if test -n "$aros_shared_cflags" ; then
16215 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16216 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg