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
642 gcc_default_float_abi
650 aros_nesting_supervisor
655 aros_host_x11_libdirs
656 aros_host_x11_includes
660 aros_default_wbheight
666 aros_cflags_format_security
667 aros_cflags_strict_overflow
668 aros_cflags_enum_compare
669 aros_cflags_array_bounds
670 aros_cflags_unused_but_set_variable
671 crosstools_cxx_target
674 aros_optimization_cflags
675 aros_target_strip_flags
682 aros_kernel_objcflags
704 aros_target_cc_includes
719 aros_target_bootloader
739 aros_amigaos_compliance
745 aros_target_toolchain
754 aros_cflags_iquote_end
756 kernel_cflags_iquote_end
758 host_cflags_iquote_end
760 aros_target_nostdlib_ldflags
761 aros_target_detach_ldflags
762 aros_target_nix_ldflags
763 aros_target_nostartup_ldflags
764 aros_target_nostdinc_cflags
882 program_transform_name
895 enable_option_checking
900 with_kernel_gcc_version
903 enable_target_variant
910 enable_amigaos_compliance
911 with_kernel_toolchain_prefix
912 with_elf_toolchain_prefix
915 with_aros_toolchain_install
916 with_binutils_version
930 enable_palm_debug_hack
932 enable_nesting_supervisor
944 ac_precious_vars
='build_alias
960 # Initialize some variables set by options.
962 ac_init_version
=false
963 ac_unrecognized_opts
=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name
=s
,x
,x
,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir
='${exec_prefix}/bin'
989 sbindir
='${exec_prefix}/sbin'
990 libexecdir
='${exec_prefix}/libexec'
991 datarootdir
='${prefix}/share'
992 datadir
='${datarootdir}'
993 sysconfdir
='${prefix}/etc'
994 sharedstatedir
='${prefix}/com'
995 localstatedir
='${prefix}/var'
996 includedir
='${prefix}/include'
997 oldincludedir
='/usr/include'
998 docdir
='${datarootdir}/doc/${PACKAGE}'
999 infodir
='${datarootdir}/info'
1004 libdir
='${exec_prefix}/lib'
1005 localedir
='${datarootdir}/locale'
1006 mandir
='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\
$ac_option
1020 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1033 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1034 bindir
=$ac_optarg ;;
1036 -build |
--build |
--buil |
--bui |
--bu)
1037 ac_prev
=build_alias
;;
1038 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1039 build_alias
=$ac_optarg ;;
1041 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1042 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1043 ac_prev
=cache_file
;;
1044 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1045 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1046 cache_file
=$ac_optarg ;;
1048 --config-cache |
-C)
1049 cache_file
=config.cache
;;
1051 -datadir |
--datadir |
--datadi |
--datad)
1053 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1054 datadir
=$ac_optarg ;;
1056 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1057 |
--dataroo |
--dataro |
--datar)
1058 ac_prev
=datarootdir
;;
1059 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1060 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1061 datarootdir
=$ac_optarg ;;
1063 -disable-* |
--disable-*)
1064 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error $?
"invalid feature name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_
$ac_useropt"
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval enable_
$ac_useropt=no
;;
1079 -docdir |
--docdir |
--docdi |
--doc |
--do)
1081 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1082 docdir
=$ac_optarg ;;
1084 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1086 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1087 dvidir
=$ac_optarg ;;
1089 -enable-* |
--enable-*)
1090 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1093 as_fn_error $?
"invalid feature name: $ac_useropt"
1094 ac_useropt_orig
=$ac_useropt
1095 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_
$ac_useropt"
1100 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep
=', ';;
1103 eval enable_
$ac_useropt=\
$ac_optarg ;;
1105 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1106 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1107 |
--exec |
--exe |
--ex)
1108 ac_prev
=exec_prefix
;;
1109 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1110 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1111 |
--exec=* |
--exe=* |
--ex=*)
1112 exec_prefix
=$ac_optarg ;;
1114 -gas |
--gas |
--ga |
--g)
1115 # Obsolete; use --with-gas.
1118 -help |
--help |
--hel |
--he |
-h)
1119 ac_init_help
=long
;;
1120 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1121 ac_init_help
=recursive
;;
1122 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1123 ac_init_help
=short
;;
1125 -host |
--host |
--hos |
--ho)
1126 ac_prev
=host_alias
;;
1127 -host=* |
--host=* |
--hos=* |
--ho=*)
1128 host_alias
=$ac_optarg ;;
1130 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1132 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1134 htmldir
=$ac_optarg ;;
1136 -includedir |
--includedir |
--includedi |
--included |
--include \
1137 |
--includ |
--inclu |
--incl |
--inc)
1138 ac_prev
=includedir
;;
1139 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1140 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1141 includedir
=$ac_optarg ;;
1143 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1145 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1146 infodir
=$ac_optarg ;;
1148 -libdir |
--libdir |
--libdi |
--libd)
1150 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1151 libdir
=$ac_optarg ;;
1153 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1154 |
--libexe |
--libex |
--libe)
1155 ac_prev
=libexecdir
;;
1156 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1157 |
--libexe=* |
--libex=* |
--libe=*)
1158 libexecdir
=$ac_optarg ;;
1160 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1161 ac_prev
=localedir
;;
1162 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1163 localedir
=$ac_optarg ;;
1165 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1166 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1167 ac_prev
=localstatedir
;;
1168 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1169 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1170 localstatedir
=$ac_optarg ;;
1172 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1174 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1175 mandir
=$ac_optarg ;;
1177 -nfp |
--nfp |
--nf)
1178 # Obsolete; use --without-fp.
1181 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1182 |
--no-cr |
--no-c |
-n)
1185 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1186 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1189 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1190 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1191 |
--oldin |
--oldi |
--old |
--ol |
--o)
1192 ac_prev
=oldincludedir
;;
1193 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1194 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1195 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1196 oldincludedir
=$ac_optarg ;;
1198 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1200 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1201 prefix
=$ac_optarg ;;
1203 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1204 |
--program-pre |
--program-pr |
--program-p)
1205 ac_prev
=program_prefix
;;
1206 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1207 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1208 program_prefix
=$ac_optarg ;;
1210 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1211 |
--program-suf |
--program-su |
--program-s)
1212 ac_prev
=program_suffix
;;
1213 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1214 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1215 program_suffix
=$ac_optarg ;;
1217 -program-transform-name |
--program-transform-name \
1218 |
--program-transform-nam |
--program-transform-na \
1219 |
--program-transform-n |
--program-transform- \
1220 |
--program-transform |
--program-transfor \
1221 |
--program-transfo |
--program-transf \
1222 |
--program-trans |
--program-tran \
1223 |
--progr-tra |
--program-tr |
--program-t)
1224 ac_prev
=program_transform_name
;;
1225 -program-transform-name=* |
--program-transform-name=* \
1226 |
--program-transform-nam=* |
--program-transform-na=* \
1227 |
--program-transform-n=* |
--program-transform-=* \
1228 |
--program-transform=* |
--program-transfor=* \
1229 |
--program-transfo=* |
--program-transf=* \
1230 |
--program-trans=* |
--program-tran=* \
1231 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1232 program_transform_name
=$ac_optarg ;;
1234 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1236 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1237 pdfdir
=$ac_optarg ;;
1239 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1241 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1244 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1245 |
-silent |
--silent |
--silen |
--sile |
--sil)
1248 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1250 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1252 sbindir
=$ac_optarg ;;
1254 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1255 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1256 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1258 ac_prev
=sharedstatedir
;;
1259 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1260 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1261 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1263 sharedstatedir
=$ac_optarg ;;
1265 -site |
--site |
--sit)
1267 -site=* |
--site=* |
--sit=*)
1270 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1272 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1273 srcdir
=$ac_optarg ;;
1275 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1276 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1277 ac_prev
=sysconfdir
;;
1278 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1279 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1280 sysconfdir
=$ac_optarg ;;
1282 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1283 ac_prev
=target_alias
;;
1284 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1285 target_alias
=$ac_optarg ;;
1287 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1290 -version |
--version |
--versio |
--versi |
--vers |
-V)
1291 ac_init_version
=: ;;
1294 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error $?
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=\
$ac_optarg ;;
1309 -without-* |
--without-*)
1310 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1313 as_fn_error $?
"invalid package name: $ac_useropt"
1314 ac_useropt_orig
=$ac_useropt
1315 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep
=', ';;
1323 eval with_
$ac_useropt=no
;;
1326 # Obsolete; use --with-x.
1329 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1330 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1331 ac_prev
=x_includes
;;
1332 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1333 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1334 x_includes
=$ac_optarg ;;
1336 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1337 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1338 ac_prev
=x_libraries
;;
1339 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1340 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1341 x_libraries
=$ac_optarg ;;
1343 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information"
1348 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1352 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1354 eval $ac_envvar=\
$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368 if test -n "$ac_prev"; then
1369 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error $?
"missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1376 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 # Check all directory arguments for consistency.
1382 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val
=\$
$ac_var
1388 # Remove trailing slashes.
1391 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\
$ac_val;;
1394 # Be sure to have absolute directory names.
1396 [\\/$
]* | ?
:[\\/]* ) continue;;
1397 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1399 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1407 target
=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x
; then
1411 if test "x$build_alias" = x
; then
1412 cross_compiling
=maybe
1413 elif test "x$build_alias" != "x$host_alias"; then
1419 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1421 test "$silent" = yes && exec 6>/dev
/null
1424 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di
=`ls -di .` &&
1426 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error $?
"working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error $?
"pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted
=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir
=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1464 ac_srcdir_defaulted
=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1468 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1482 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 for ac_var
in $ac_precious_vars; do
1485 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1487 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1498 \`configure' configures this package to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking ...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1556 --x-includes=DIR X include files are
in DIR
1557 --x-libraries=DIR X library files are
in DIR
1560 --build=BUILD configure
for building on BUILD
[guessed
]
1561 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 if test -n "$ac_init_help"; then
1570 --disable-option-checking ignore unrecognized
--enable/--with options
1571 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1572 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1573 --enable-build-type=TYPE
1574 Select the build
type. Available types are
:
1575 personal
, nightly
, snapshot
, milestone
, release. Do
1576 NOT use this option unless you know what you are
1577 doing
! (default
=personal
)
1578 --enable-debug=list Enable different types of debug. Commas or
1579 whitespaces can be used to separate the items
in the
1580 list. Available types of debug are
: all
, none
,
1581 messages
, stack
, mungwall
, modules
, symbols. If no
1582 list is provided
then "all" is assumed.
1584 --enable-distcc Use distcc as a front end to the compiler
1586 --enable-ccache Use ccache as a front end to the compiler
1588 --enable-target-variant=NAME
1589 Enable a specific target variant
(default
=none
)
1590 --enable-amigaos-compliance=VERSION
1591 Enforce userspace AmigaOS compliance to a specific
1592 KickStart version
(default
=none
).
1593 --disable-crosstools Do not build cross-compiler toolchain
1594 --enable-objc Enable Objectve-C support
(default
=no
)
1595 --enable-java Enable Java support
(default
=no
)
1596 --enable-includes=dir Alternative system include directory
1597 --enable-palm-debug-hack
1598 Enable palm debug output hack
in palm native
1600 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1601 --enable-nesting-supervisor
1602 Enable nesting supervisor support
in unix
1604 --disable-mmu Disable MMU support
(default
=enabled
)
1605 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1606 --enable-x11-shm use X11 shared memory
(default
=auto
)
1607 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1608 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1609 --disable-sdltest Do not try to compile and run a
test SDL program
1610 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1613 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1614 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1615 --with-kernel-gcc-version=VERSION
1616 Use gcc-VERSION
for building bootstrap
1617 --with-optimization=FLAGS
1618 Use optimization flags FLAGS
(default
=-O2).
1619 --with-paranoia=FLAGS CC flags to
enable paranoia
1620 --with-xcode=PATH Specify XCode path
for iOS targets
1621 (default
=/Developer
).
1622 --with-sdk-version=VERSION
1623 Use iOS SDK version VERSION
(default
=4.1).
1624 --with-sdk=PATH Specify Android SDK path
1625 (default
=$default_android_sdk).
1626 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1627 --with-sdk-version=LEVEL
1628 Use Android SDK
for API LEVEL
(default
=12).
1629 --with-ndk-version=LEVEL
1630 Use Android NDK
for API LEVEL
(default
=9).
1631 --with-apk-version=(release|debug
)
1632 Which version of AROSBootstrap.apk to compile.
1633 Release version needs key
for signing
, debug version
1634 will only run
in emulator.
(default
=release
)
1635 --with-kernel-toolchain-prefix=...
1636 Specify crosscompile toolchain prefix
for kernel
1638 --with-elf-toolchain-prefix=...
1639 Specify crosscompile toolchain prefix to wrap
for
1641 --with-aros-toolchain=PREFIX
1642 Specify prebuilt AROS toolchain. Use
yes for default
1644 --with-aros-toolchain-install=DIR
1645 Where to
install or search
for cross tools binaries
1646 --with-binutils-version=VERSION
1647 Use binutils-VERSION
for building AROS
1648 --with-gcc-version=VERSION
1649 Use gcc-VERSION
for building AROS
1650 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1651 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1652 --with-float=<spec
> Specify floating point ABI
1653 (default
=$gcc_default_float_abi).
1654 --with-portssources=DIR Where to download sourcecode
for external ports
1655 --with-bootloader=NAME Use a specific bootloader
1656 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1657 --with-theme=NAME Use a specific GUI Theme
1658 --with-resolution=XRESxYRESxDEPTH
1659 Default resolution of the initial WorkbenchScreen
1660 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1661 --with-x use the X Window System
1662 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1663 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1665 Some influential environment variables
:
1666 CXX C
++ compiler
command
1667 CXXFLAGS C
++ compiler flags
1668 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1669 nonstandard directory
<lib dir
>
1670 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1671 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1672 you have headers
in a nonstandard directory
<include dir
>
1673 CC C compiler
command
1674 CFLAGS C compiler flags
1676 PYTHON the Python interpreter
1677 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1679 Use these variables to override the choices made by
`configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to the package provider.
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1712 .) # We are building in place.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1746 generated by GNU Autoconf 2.69
1748 Copyright (C) 2012 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1769 *) ac_try_echo
=$ac_try;;
1771 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1775 if test -s conftest.err
; then
1776 grep -v '^ *+' conftest.err
>conftest.er1
1777 cat conftest.er1
>&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.
$ac_objext; then :
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.
$ac_ext >&5
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status
$ac_retval
1795 } # ac_fn_cxx_try_compile
1797 # ac_fn_c_try_compile LINENO
1798 # --------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_compile
()
1802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1803 rm -f conftest.
$ac_objext
1804 if { { ac_try
="$ac_compile"
1806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_c_try_compile
1835 # ac_fn_c_try_cpp LINENO
1836 # ----------------------
1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1844 *) ac_try_echo
=$ac_try;;
1846 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 if test -s conftest.err
; then
1851 grep -v '^ *+' conftest.err
>conftest.er1
1852 cat conftest.er1
>&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } > conftest.i
&& {
1857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.
$ac_ext >&5
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status
$ac_retval
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1878 rm -f conftest.
$ac_objext conftest
$ac_exeext
1879 if { { ac_try
="$ac_link"
1881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 test -x conftest$ac_exeext
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_c_try_link
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1923 ac_fn_c_check_header_mongrel ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if eval \${$3+:} false; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1947 ac_header_compiler=no
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1963 ac_header_preproc=no
1965 rm -f conftest.err conftest.i conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 eval "$3=\$ac_header_compiler"
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_link"
2014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2015 *) ac_try_echo
=$ac_try;;
2017 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>&5
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2023 { { case "(($ac_try" in
2024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_try") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; }; }; then :
2035 $as_echo "$as_me: program exited with status $ac_status" >&5
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2039 ac_retval=$ac_status
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_header_compile
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2113 if (sizeof ac_aggr.$3)
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_member
2135 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2136 # ---------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2139 ac_fn_c_check_decl ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2143 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2145 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 #ifndef $as_decl_name
2157 (void) $as_decl_use;
2159 (void) $as_decl_name;
2167 if ac_fn_c_try_compile "$LINENO"; then :
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_decl
2181 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182 # -------------------------------------------
2183 # Tests whether TYPE exists after having included INCLUDES, setting cache
2184 # variable VAR accordingly.
2185 ac_fn_c_check_type ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2219 if ac_fn_c_try_compile "$LINENO"; then :
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_type
2235 # ac_fn_c_check_func LINENO FUNC VAR
2236 # ----------------------------------
2237 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2238 ac_fn_c_check_func ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2250 #define $2 innocuous_$2
2252 /* System header to define __stub macros and hopefully few prototypes,
2253 which can conflict with char $2 (); below.
2254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2255 <limits.h> exists even on freestanding compilers. */
2258 # include <limits.h>
2260 # include <assert.h>
2265 /* Override any GCC internal prototype to avoid an error.
2266 Use char because int might match the return type of a GCC
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined __stub_$2 || defined __stub___$2
2287 if ac_fn_c_try_link "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext \
2293 conftest$ac_exeext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_func
2301 cat >config.log <<_ACEOF
2302 This file contains any messages produced by compilers while
2303 running configure, to aid debugging if configure makes a mistake.
2305 It was created by $as_me, which was
2306 generated by GNU Autoconf 2.69. Invocation command line was
2318 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2319 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2320 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2321 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2322 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2324 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2325 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2327 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2328 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2329 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2330 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2331 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2332 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2333 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 $as_echo "PATH: $as_dir"
2358 # Keep a trace of the command line.
2359 # Strip out --no-create and --no-recursion so they do not pile up.
2360 # Strip out --silent because we don't want to record it for future runs.
2361 # Also quote any args containing shell meta-characters.
2362 # Make two passes to allow for proper duplicate-argument suppression.
2366 ac_must_keep_next=false
2372 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374 | -silent | --silent | --silen | --sile | --sil)
2377 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2380 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 as_fn_append ac_configure_args1 " '$ac_arg'"
2383 if test $ac_must_keep_next = true; then
2384 ac_must_keep_next=false # Got value, back to normal.
2387 *=* | --config-cache | -C | -disable-* | --disable-* \
2388 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390 | -with-* | --with-* | -without-* | --without-* | --x)
2391 case "$ac_configure_args0 " in
2392 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 -* ) ac_must_keep_next=true ;;
2398 as_fn_append ac_configure_args " '$ac_arg'"
2403 { ac_configure_args0=; unset ac_configure_args0;}
2404 { ac_configure_args1=; unset ac_configure_args1;}
2406 # When interrupted or exit'd, cleanup temporary files, and complete
2407 # config.log. We remove comments because anyway the quotes in there
2408 # would cause problems or look ugly.
2409 # WARNING: Use '\'' to represent an apostrophe within the trap.
2410 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411 trap 'exit_status=$?
2412 # Save into config.log some information that might help in debugging.
2416 $as_echo "## ---------------- ##
2417 ## Cache variables. ##
2418 ## ---------------- ##"
2420 # The following way of writing the cache mishandles newlines in values,
2422 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2423 eval ac_val=\$$ac_var
2427 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2428 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 _ | IFS | as_nl) ;; #(
2432 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2433 *) { eval $ac_var=; unset $ac_var;} ;;
2438 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2439 *${as_nl}ac_space=\ *)
2441 "s/'\''/'\''\\\\'\'''\''/g;
2442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452 $as_echo "## ----------------- ##
2453 ## Output variables. ##
2454 ## ----------------- ##"
2456 for ac_var in $ac_subst_vars
2458 eval ac_val=\$$ac_var
2460 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 $as_echo "$ac_var='\''$ac_val'\''"
2466 if test -n "$ac_subst_files"; then
2467 $as_echo "## ------------------- ##
2468 ## File substitutions. ##
2469 ## ------------------- ##"
2471 for ac_var in $ac_subst_files
2473 eval ac_val=\$$ac_var
2475 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 $as_echo "$ac_var='\''$ac_val'\''"
2482 if test -s confdefs.h; then
2483 $as_echo "## ----------- ##
2490 test "$ac_signal" != 0 &&
2491 $as_echo "$as_me: caught signal $ac_signal"
2492 $as_echo "$as_me: exit $exit_status"
2494 rm -f core *.core core.conftest.* &&
2495 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 for ac_signal in 1 2 13 15; do
2499 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2504 rm -f -r conftest* confdefs.h
2506 $as_echo "/* confdefs.h */" > confdefs.h
2508 # Predefined preprocessor variables.
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_NAME "$PACKAGE_NAME"
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_STRING "$PACKAGE_STRING"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_URL "$PACKAGE_URL"
2535 # Let the site file select an alternate cache file if it wants to.
2536 # Prefer an explicitly selected file to automatically selected ones.
2539 if test -n "$CONFIG_SITE"; then
2540 # We do not want a PATH search for config.site.
2541 case $CONFIG_SITE in #((
2542 -*) ac_site_file1=./$CONFIG_SITE;;
2543 */*) ac_site_file1=$CONFIG_SITE;;
2544 *) ac_site_file1=./$CONFIG_SITE;;
2546 elif test "x$prefix" != xNONE; then
2547 ac_site_file1=$prefix/share/config.site
2548 ac_site_file2=$prefix/etc/config.site
2550 ac_site_file1=$ac_default_prefix/share/config.site
2551 ac_site_file2=$ac_default_prefix/etc/config.site
2553 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555 test "x$ac_site_file" = xNONE && continue
2556 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2558 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2559 sed 's/^/| /' "$ac_site_file" >&5
2561 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 as_fn_error $? "failed to load site
script $ac_site_file
2564 See \
`config.log' for more details" "$LINENO" 5; }
2568 if test -r "$cache_file"; then
2569 # Some versions of bash will fail to source /dev/null (special files
2570 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2571 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2573 $as_echo "$as_me: loading cache $cache_file" >&6;}
2575 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2576 *) . "./$cache_file";;
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2581 $as_echo "$as_me: creating cache $cache_file" >&6;}
2585 as_fn_append ac_header_list " stdlib.h"
2586 as_fn_append ac_header_list " unistd.h"
2587 as_fn_append ac_header_list " sys/param.h"
2588 # Check that the precious variables saved in the cache have kept the same
2590 ac_cache_corrupted=false
2591 for ac_var in $ac_precious_vars; do
2592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593 eval ac_new_set=\$ac_env_${ac_var}_set
2594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595 eval ac_new_val=\$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2599 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2603 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w=`echo x
$ac_old_val`
2610 ac_new_val_w=`echo x
$ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2614 ac_cache_corrupted=:
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\$ac_old_val
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2629 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2630 *) ac_arg=$ac_var=$ac_new_val ;;
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 if $ac_cache_corrupted; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2645 ## -------------------- ##
2646 ## Main body of script. ##
2647 ## -------------------- ##
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2659 if test -f "$ac_dir/install-sh"; then
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2663 elif test -f "$ac_dir/install.sh"; then
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2667 elif test -f "$ac_dir/shtool"; then
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2673 if test -z "$ac_aux_dir"; then
2674 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2677 # These three variables are undocumented and unsupported,
2678 # and are intended to be withdrawn in a future Autoconf release.
2679 # They can cause serious problems if a builder's source tree is in a directory
2680 # whose full name contains unusual characters.
2681 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687 # Check what host we are running on.
2688 # If a target is not suggested, we use this one.
2689 # Note that what we call a target, Autoconf calls a host.
2690 # Make sure we can run config.sub.
2691 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2692 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2695 $as_echo_n "checking build system type... " >&6; }
2696 if ${ac_cv_build+:} false; then :
2697 $as_echo_n "(cached) " >&6
2699 ac_build_alias=$build_alias
2700 test "x$ac_build_alias" = x &&
2701 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2702 test "x$ac_build_alias" = x &&
2703 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2704 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2709 $as_echo "$ac_cv_build" >&6; }
2710 case $ac_cv_build in
2712 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2715 ac_save_IFS=$IFS; IFS='-'
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2725 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2729 $as_echo_n "checking host system type... " >&6; }
2730 if ${ac_cv_host+:} false; then :
2731 $as_echo_n "(cached) " >&6
2733 if test "x$host_alias" = x; then
2734 ac_cv_host=$ac_cv_build
2736 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2737 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2742 $as_echo "$ac_cv_host" >&6; }
2745 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2748 ac_save_IFS=$IFS; IFS='-'
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2758 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2762 # Default version of gnu tools to use
2763 default_gcc_version="4.6.4"
2764 default_binutils_version="2.23.2"
2766 # The AROS target is slightly different to the normal GNU style
2767 # format. We don't have the middle part, and we reverse the order
2768 # of the $(CPU) and $(OS) bits.
2770 # Don't strip the version of the target yet, it might be
2771 # useful on some systems.
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2774 $as_echo_n "checking for AROS style target... " >&6; }
2776 if test "$target" = "NONE" ; then
2777 target=$host_os-$host_cpu
2779 if test "$target" = "" ; then
2780 target=$host_os-$host_cpu
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2784 $as_echo "$target" >&6; }
2786 if test "$host_os" = "mingw32" ; then
2790 # Don't know where else to put this...
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2792 $as_echo_n "checking building AROS in... " >&6; }
2793 AROS_BUILDDIR=`${PWDCMD-pwd}`
2794 AROS_BUILDDIR_UNIX=${PWD}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2796 $as_echo "$AROS_BUILDDIR" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2799 $as_echo_n "checking AROS source in... " >&6; }
2800 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2803 $as_echo "$SRCDIR" >&6; }
2805 # Parse the target field into something useful.
2807 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2808 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2811 # Some debug output, to be removed again.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2813 $as_echo_n "checking for target system (debug output)... " >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2815 $as_echo "$target_os" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2817 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2819 $as_echo "$target_cpu" >&6; }
2821 aros_default_wbwidth=800
2822 aros_default_wbheight=600
2823 aros_default_wbdepth=4
2826 # The first step is to find the host binaries.
2827 # Check for a compiler.
2828 # Due to a bug in autoconf check for c++ compiler first.
2829 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2831 ac_cpp='$CXXCPP $CPPFLAGS'
2832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2835 if test -z "$CXX"; then
2836 if test -n "$CCC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CXX+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$CXX"; then
2850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test -n "$CXX"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2872 $as_echo "$CXX" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2879 test -n "$CXX" && break
2882 if test -z "$CXX"; then
2884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$ac_ct_CXX"; then
2894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CXX="$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2914 if test -n "$ac_ct_CXX"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2916 $as_echo "$ac_ct_CXX" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2923 test -n "$ac_ct_CXX" && break
2926 if test "x$ac_ct_CXX" = x; then
2929 case $cross_compiling:$ac_tool_warned in
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2949 *) ac_try_echo
=$ac_try;;
2951 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 if test -s conftest.err
; then
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err
>conftest.er1
2959 cat conftest.er1
>&5
2961 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2977 ac_clean_files_save
=$ac_clean_files
2978 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2983 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2984 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 # The possible output files:
2987 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990 for ac_file
in $ac_files
2993 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2994 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2999 if { { ac_try
="$ac_link_default"
3001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3011 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3015 for ac_file in $ac_files ''
3017 test -f "$ac_file" || continue
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 # We found the default executable, but exeext='' is most
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3045 if test -z "$ac_file"; then :
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's
/^
/|
/' conftest.$ac_ext >&5
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3053 as_fn_error 77 "C++ compiler cannot create executables
3054 See \`config.log
' for more details" "$LINENO" 5; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3060 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062 $as_echo "$ac_file" >&6; }
3063 ac_exeext=$ac_cv_exeext
3065 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068 $as_echo_n "checking for suffix of executables... " >&6; }
3069 if { { ac_try="$ac_link"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3081 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3082 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3084 for ac_file
in conftest.exe conftest conftest.
*; do
3085 test -f "$ac_file" ||
continue
3087 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3088 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details" "$LINENO" 5; }
3099 rm -f conftest conftest
$ac_cv_exeext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3101 $as_echo "$ac_cv_exeext" >&6; }
3103 rm -f conftest.
$ac_ext
3104 EXEEXT
=$ac_cv_exeext
3106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3112 FILE *f = fopen ("conftest.out", "w");
3113 return ferror (f) || fclose (f) != 0;
3119 ac_clean_files
="$ac_clean_files conftest.out"
3120 # Check that the compiler produces executables we can run. If not, either
3121 # the compiler is broken, or we cross compile.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3123 $as_echo_n "checking whether we are cross compiling... " >&6; }
3124 if test "$cross_compiling" != yes; then
3125 { { ac_try
="$ac_link"
3127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 if { ac_try='./conftest$ac_cv_exeext'
3137 { { case "(($ac_try" in
3138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3139 *) ac_try_echo
=$ac_try;;
3141 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_try") 2>&5
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; }; then
3149 if test "$cross_compiling" = maybe
; then
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $?
"cannot run C++ compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3161 $as_echo "$cross_compiling" >&6; }
3163 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3164 ac_clean_files
=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3166 $as_echo_n "checking for suffix of object files... " >&6; }
3167 if ${ac_cv_objext+:} false
; then :
3168 $as_echo_n "(cached) " >&6
3170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3181 rm -f conftest.o conftest.obj
3182 if { { ac_try
="$ac_compile"
3184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compile") 2>&5
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 for ac_file in conftest.o conftest.obj conftest.*; do
3194 test -f "$ac_file" || continue;
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3208 See \
`config.log' for more details" "$LINENO" 5; }
3210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3213 $as_echo "$ac_cv_objext" >&6; }
3214 OBJEXT=$ac_cv_objext
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3217 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3218 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3235 if ac_fn_cxx_try_compile "$LINENO"; then :
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3255 if ${ac_cv_prog_cxx_g+:} false; then :
3256 $as_echo_n "(cached) " >&6
3258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3259 ac_cxx_werror_flag=yes
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 if ac_fn_cxx_try_compile "$LINENO"; then :
3274 ac_cv_prog_cxx_g=yes
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 if ac_fn_cxx_try_compile "$LINENO"; then :
3291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3304 if ac_fn_cxx_try_compile "$LINENO"; then :
3305 ac_cv_prog_cxx_g=yes
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3315 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3316 if test "$ac_test_CXXFLAGS" = set; then
3317 CXXFLAGS=$ac_save_CXXFLAGS
3318 elif test $ac_cv_prog_cxx_g = yes; then
3319 if test "$GXX" = yes; then
3325 if test "$GXX" = yes; then
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$ac_cv_prog_CC"; then
3383 # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 if test "x$ac_ct_CC" = x; then
3422 case $cross_compiling:$ac_tool_warned in
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC="${ac_tool_prefix}cc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3475 if test -z "$CC"; then
3476 # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected=yes
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy $ac_cv_prog_CC
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$CC" && break
3575 if test -z "$CC"; then
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$ac_ct_CC" && break
3619 if test "x$ac_ct_CC" = x; then
3622 case $cross_compiling:$ac_tool_warned in
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3638 See \
`config.log' for more details" "$LINENO" 5; }
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 for ac_option in --version -v -V -qversion; do
3645 { { ac_try="$ac_compiler $ac_option >&5"
3647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3648 *) ac_try_echo
=$ac_try;;
3650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 if test -s conftest.err
; then
3656 ... rest of stderr output deleted ...
3657 10q' conftest.err
>conftest.er1
3658 cat conftest.er1
>&5
3660 rm -f conftest.er1 conftest.err
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false
; then :
3668 $as_echo_n "(cached) " >&6
3670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3684 if ac_fn_c_try_compile
"$LINENO"; then :
3689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3690 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3700 ac_test_CFLAGS
=${CFLAGS+set}
3701 ac_save_CFLAGS
=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false
; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_save_c_werror_flag
=$ac_c_werror_flag
3708 ac_c_werror_flag
=yes
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile
"$LINENO"; then :
3726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile
"$LINENO"; then :
3740 ac_c_werror_flag
=$ac_save_c_werror_flag
3742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 if ac_fn_c_try_compile
"$LINENO"; then :
3756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3761 ac_c_werror_flag
=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS
=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3774 if test "$GCC" = yes; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false
; then :
3783 $as_echo_n "(cached) " >&6
3785 ac_cv_prog_cc_c89
=no
3787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3806 s = g (p, va_arg (v,int));
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3839 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC
="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile
"$LINENO"; then :
3844 ac_cv_prog_cc_c89
=$ac_arg
3846 rm -f core conftest.err conftest.
$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 rm -f conftest.
$ac_ext
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC
="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3871 ac_cpp
='$CPP $CPPFLAGS'
3872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3876 case $ac_cv_prog_cc_stdc in #(
3878 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3881 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3882 if ${ac_cv_prog_cc_c99+:} false
; then :
3883 $as_echo_n "(cached) " >&6
3885 ac_cv_prog_cc_c99
=no
3887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3890 #include <stdbool.h>
3895 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3896 #define debug(...) fprintf (stderr, __VA_ARGS__)
3897 #define showlist(...) puts (#__VA_ARGS__)
3898 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3900 test_varargs_macros (void)
3905 debug ("X = %d\n", x);
3906 showlist (The first, second, and third items.);
3907 report (x>y, "x is %d but y is %d", x, y);
3910 // Check long long types.
3911 #define BIG64 18446744073709551615ull
3912 #define BIG32 4294967295ul
3913 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3915 your preprocessor is broken;
3919 your preprocessor is broken;
3921 static long long int bignum = -9223372036854775807LL;
3922 static unsigned long long int ubignum = BIG64;
3924 struct incomplete_array
3932 const wchar_t *name;
3936 typedef const char *ccp;
3939 test_restrict (ccp restrict text)
3941 // See if C++-style comments work.
3942 // Iterate through items via the restricted pointer.
3943 // Also check for declarations in for loops.
3944 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3949 // Check varargs and va_copy.
3951 test_varargs (const char *format, ...)
3954 va_start (args, format);
3956 va_copy (args_copy, args);
3967 str = va_arg (args_copy, const char *);
3970 number = va_arg (args_copy, int);
3973 fnumber = va_arg (args_copy, double);
3988 _Bool success = false;
3991 if (test_restrict ("String literal") == 0)
3993 char *restrict newvar = "Another string";
3996 test_varargs ("s, d' f .", "string", 65, 34.234);
3997 test_varargs_macros ();
3999 // Check flexible array members.
4000 struct incomplete_array *ia =
4001 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4003 for (int i = 0; i < ia->datasize; ++i)
4004 ia->data[i] = i * 1.234;
4006 // Check named initializers.
4007 struct named_init ni = {
4009 .name = L"Test wide string",
4010 .average = 543.34343,
4015 int dynamic_array[ni.number];
4016 dynamic_array[ni.number - 1] = 543;
4018 // work around unused variable warnings
4019 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4020 || dynamic_array[ni.number - 1] != 543);
4026 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4028 CC
="$ac_save_CC $ac_arg"
4029 if ac_fn_c_try_compile
"$LINENO"; then :
4030 ac_cv_prog_cc_c99
=$ac_arg
4032 rm -f core conftest.err conftest.
$ac_objext
4033 test "x$ac_cv_prog_cc_c99" != "xno" && break
4035 rm -f conftest.
$ac_ext
4040 case "x$ac_cv_prog_cc_c99" in
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 $as_echo "none needed" >&6; } ;;
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046 $as_echo "unsupported" >&6; } ;;
4048 CC
="$CC $ac_cv_prog_cc_c99"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4050 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4052 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4053 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false
; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_prog_cc_c89
=no
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4081 s = g (p, va_arg (v,int));
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4087 function prototypes and stuff, but not '\xHH' hex character constants.
4088 These don't provoke an error unfortunately, instead are silently treated
4089 as 'x'. The following induces an error, until -std is added to get
4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4091 array size at least. It's necessary to write '\x00'==0 to get something
4092 that's true only with -std. */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096 inside strings and character constants. */
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4114 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 CC
="$ac_save_CC $ac_arg"
4118 if ac_fn_c_try_compile
"$LINENO"; then :
4119 ac_cv_prog_cc_c89
=$ac_arg
4121 rm -f core conftest.err conftest.
$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 rm -f conftest.
$ac_ext
4129 case "x$ac_cv_prog_cc_c89" in
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4137 CC
="$CC $ac_cv_prog_cc_c89"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4142 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4144 ac_cv_prog_cc_stdc
=no
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4151 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4152 if ${ac_cv_prog_cc_stdc+:} false
; then :
4153 $as_echo_n "(cached) " >&6
4156 case $ac_cv_prog_cc_stdc in #(
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;; #(
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4162 $as_echo "none needed" >&6; } ;; #(
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4165 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4169 ac_cpp
='$CPP $CPPFLAGS'
4170 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4175 # On Suns, sometimes $CPP names a directory.
4176 if test -n "$CPP" && test -d "$CPP"; then
4179 if test -z "$CPP"; then
4180 if ${ac_cv_prog_CPP+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 # Double quotes because CPP needs to be expanded
4184 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4187 for ac_c_preproc_warn_flag
in '' yes
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4198 # include <limits.h>
4200 # include <assert.h>
4204 if ac_fn_c_try_cpp
"$LINENO"; then :
4207 # Broken: fails on valid input.
4210 rm -f conftest.err conftest.i conftest.
$ac_ext
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if ac_fn_c_try_cpp
"$LINENO"; then :
4219 # Broken: success on invalid input.
4222 # Passes both tests.
4226 rm -f conftest.err conftest.i conftest.
$ac_ext
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.
$ac_ext
4231 if $ac_preproc_ok; then :
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4244 $as_echo "$CPP" >&6; }
4246 for ac_c_preproc_warn_flag
in '' yes
4248 # Use a header file that comes with gcc, so configuring glibc
4249 # with a fresh cross-compiler works.
4250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 # <limits.h> exists even on freestanding compilers.
4252 # On the NeXT, cc -E runs the code through the compiler's parser,
4253 # not just through cpp. "Syntax error" is here to catch this case.
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4257 # include <limits.h>
4259 # include <assert.h>
4263 if ac_fn_c_try_cpp
"$LINENO"; then :
4266 # Broken: fails on valid input.
4269 rm -f conftest.err conftest.i conftest.
$ac_ext
4271 # OK, works on sane cases. Now check whether nonexistent headers
4272 # can be detected and how.
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <ac_nonexistent.h>
4277 if ac_fn_c_try_cpp
"$LINENO"; then :
4278 # Broken: success on invalid input.
4281 # Passes both tests.
4285 rm -f conftest.err conftest.i conftest.
$ac_ext
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.i conftest.err conftest.
$ac_ext
4290 if $ac_preproc_ok; then :
4293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4295 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details" "$LINENO" 5; }
4300 ac_cpp
='$CPP $CPPFLAGS'
4301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4306 # Check for a compatible awk
4307 for ac_prog
in gawk nawk
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy
$ac_prog; ac_word
=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_AWK+:} false
; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$AWK"; then
4317 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir
=.
4324 for ac_exec_ext
in '' $ac_executable_extensions; do
4325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_AWK
="$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 if test -n "$AWK"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4339 $as_echo "$AWK" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 test -n "$AWK" && break
4349 if test "$AWK" = ""; then
4350 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4352 # Extract the first word of "mmake", so it can be a program name with args.
4353 set dummy mmake
; ac_word
=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_MMAKE+:} false
; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$MMAKE"; then
4360 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir
=.
4367 for ac_exec_ext
in '' $ac_executable_extensions; do
4368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_MMAKE
="mmake "
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 MMAKE
=$ac_cv_prog_MMAKE
4380 if test -n "$MMAKE"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4382 $as_echo "$MMAKE" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4390 # Perform some default variable assignments. Note all of these will be
4391 # Regenerated from the script, so there is no need to cache them.
4393 aros_host_cpp
="$CPP"
4395 aros_host_cxx
="$CXX"
4396 if test "$GCC" = "yes"; then
4397 aros_gcc_ld
=`$CC -print-prog-name=ld`
4398 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4399 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_path_aros_host_ld+:} false
; then :
4403 $as_echo_n "(cached) " >&6
4405 case $aros_host_ld in
4407 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 for as_dir
in `dirname $aros_gcc_ld`
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_exec_ext
in '' $ac_executable_extensions; do
4416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 aros_host_ld
=$ac_cv_path_aros_host_ld
4429 if test -n "$aros_host_ld"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4431 $as_echo "$aros_host_ld" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4439 if test "$aros_host_ld" = ""; then
4440 # Extract the first word of "ld", so it can be a program name with args.
4441 set dummy ld
; ac_word
=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_aros_host_ld+:} false
; then :
4445 $as_echo_n "(cached) " >&6
4447 case $aros_host_ld in
4449 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 aros_host_ld
=$ac_cv_path_aros_host_ld
4471 if test -n "$aros_host_ld"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4473 $as_echo "$aros_host_ld" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4481 if test "$aros_host_ld" = ""; then
4482 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4484 aros_host_make
="make"
4485 aros_host_cflags
="$CFLAGS"
4486 aros_host_cxxflags
="$CXXFLAGS"
4487 aros_host_ldflags
="$LDFLAGS"
4488 aros_host_debug
="-g -O0"
4489 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4490 aros_host_mkargs
="--no-print-directory"
4491 aros_host_exe_suffix
="$EXEEXT"
4492 aros_host_lib_suffix
=""
4494 # Ignore all compliance, AROS ROMs = 0
4495 # KickStart v1.0 = 30
4496 # KickStart v1.3 = 34
4497 # KickStart v2.0 = 37
4498 # KickStart v3.0 = 39
4499 # KickStart v3.1 = 40
4501 aros_amigaos_compliance
=0
4503 for ac_prog
in aclocal aclocal19 aclocal-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy
$ac_prog; ac_word
=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$aros_host_aclocal"; then
4513 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir
=.
4520 for ac_exec_ext
in '' $ac_executable_extensions; do
4521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4533 if test -n "$aros_host_aclocal"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4535 $as_echo "$aros_host_aclocal" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_aclocal" && break
4545 for ac_prog
in autoconf autoconf259 autoconf253
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy
$ac_prog; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$aros_host_autoconf"; then
4555 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4575 if test -n "$aros_host_autoconf"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4577 $as_echo "$aros_host_autoconf" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$aros_host_autoconf" && break
4587 for ac_prog
in autoheader autoheader259 autoheader253
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy
$ac_prog; ac_word
=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -n "$aros_host_autoheader"; then
4597 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir
=.
4604 for ac_exec_ext
in '' $ac_executable_extensions; do
4605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4617 if test -n "$aros_host_autoheader"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4619 $as_echo "$aros_host_autoheader" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$aros_host_autoheader" && break
4629 for ac_prog
in automake automake19 automake-1.9
4631 # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 set dummy
$ac_prog; ac_word
=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$aros_host_automake"; then
4639 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_exec_ext
in '' $ac_executable_extensions; do
4647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_aros_host_automake
="$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 aros_host_automake
=$ac_cv_prog_aros_host_automake
4659 if test -n "$aros_host_automake"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4661 $as_echo "$aros_host_automake" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 test -n "$aros_host_automake" && break
4672 if test "$aros_host_aclocal" = ""; then
4673 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4675 if test "$aros_host_automake" = ""; then
4676 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4679 case "$aros_host_cc" in
4681 aros_host_cc_pipe
=""
4684 aros_host_cc_pipe
="-pipe"
4687 aros_host_cc_pipe
=""
4690 aros_host_cc_pipe
=""
4694 aros_kernel_cc_includes
=""
4695 aros_target_cc_includes
=""
4698 # ----------------------------------------------------------------------------------------
4699 # Host-specific defaults
4701 # This is the main host configuration section. It is where the host
4702 # can change the values of any variables it needs to change. We do
4703 # not look at anything that compiles to the target yet, we'll get
4708 aros_host_arch
="aros"
4709 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4712 aros_host_cpu
="i386"
4715 aros_host_cpu
="x86_64"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4722 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4723 aros_host_cpu
="$host_cpu"
4729 aros_host_arch
="linux"
4730 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4731 android_build_os
="linux-x86"
4732 android_tool
="android"
4733 default_android_sdk
="/opt/android-sdk-linux_x86"
4736 aros_host_cpu
="i386"
4739 aros_host_cpu
="x86_64"
4742 aros_host_cpu
="m68k"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4752 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4753 aros_host_cpu
="$host_cpu"
4759 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4760 aros_host_make
="gmake"
4761 aros_host_arch
="freebsd"
4762 aros_host_cpu
="i386"
4764 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4768 aros_object_format
="elf_i386"
4772 aros_object_format
="elf_i386_fbsd"
4779 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4780 aros_host_arch
="darwin"
4782 android_build_os
="darwin-x86"
4783 android_tool
="android"
4784 default_android_sdk
="/android-sdk-mac_x86"
4787 aros_host_cpu
="i386"
4790 aros_host_cpu
="x86_64"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4797 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4798 aros_host_cpu
="$host_cpu"
4802 aros_host_ldflags
="$aros_host_ldflags -liconv"
4807 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4808 aros_host_make
="gmake"
4809 aros_host_arch
="dragonfly"
4812 aros_host_cpu
="i386"
4815 aros_host_cpu
="x86_64"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu
="$host_cpu"
4826 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4827 aros_host_make
="gmake"
4828 aros_host_arch
="netbsd"
4831 aros_host_cpu
="i386"
4834 aros_host_cpu
="m68k"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu
="$host_cpu"
4842 aros_host_lib_suffix
=".0.0"
4846 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4847 aros_host_make
="gmake"
4848 aros_host_arch
="openbsd"
4851 aros_host_cpu
="i386"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4855 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4856 aros_host_cpu
="$host_cpu"
4862 aros_host_arch
="solaris"
4863 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4866 aros_host_cpu
="i386"
4869 aros_host_cpu
="sparc"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4873 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4874 aros_host_cpu
="$host_cpu"
4880 aros_host_arch
="morphos"
4886 aros_host_arch
="amiga"
4892 TOUCH
="/gg/bin/touch"
4895 aros_host_cpu
="m68k"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4902 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4903 aros_host_cpu
="$host_cpu"
4909 aros_host_arch
="cygwin"
4910 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4912 android_build_os
="windows"
4913 android_tool
="android.bat"
4914 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4918 aros_host_cpu
="i386"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4922 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4923 aros_host_cpu
="$host_cpu"
4929 aros_host_arch
="mingw32"
4930 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4932 android_build_os
="windows"
4933 android_tool
="android.bat"
4934 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4940 $as_echo_n "checking for Windows native gcc target... " >&6; }
4941 host_cpu
=`gcc -dumpmachine`
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4943 $as_echo "$host_cpu" >&6; }
4950 aros_host_cpu
="i386"
4954 aros_host_cpu
="i386"
4958 aros_host_cpu
="x86_64"
4959 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4964 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4965 aros_host_cpu
="$host_cpu"
4970 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4974 # Extract the first word of "ar", so it can be a program name with args.
4975 set dummy
ar; ac_word
=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -n "$aros_host_ar"; then
4982 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir
=.
4989 for ac_exec_ext
in '' $ac_executable_extensions; do
4990 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_aros_host_ar
="ar cr"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 aros_host_ar
=$ac_cv_prog_aros_host_ar
5002 if test -n "$aros_host_ar"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5004 $as_echo "$aros_host_ar" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5011 if test "$aros_host_ar" = ""; then
5012 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5014 # Extract the first word of "ranlib", so it can be a program name with args.
5015 set dummy ranlib
; ac_word
=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$aros_host_ranlib"; then
5022 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
5024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir
=.
5029 for ac_exec_ext
in '' $ac_executable_extensions; do
5030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_aros_host_ranlib
="ranlib "
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
5042 if test -n "$aros_host_ranlib"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5044 $as_echo "$aros_host_ranlib" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 if test "$aros_host_ranlib" = ""; then
5052 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5054 # Extract the first word of "strip", so it can be a program name with args.
5055 set dummy strip
; ac_word
=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$aros_host_strip"; then
5062 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_aros_host_strip
="strip "
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 aros_host_strip
=$ac_cv_prog_aros_host_strip
5082 if test -n "$aros_host_strip"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5084 $as_echo "$aros_host_strip" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 if test "$aros_host_strip" = ""; then
5092 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "rm", so it can be a program name with args.
5096 set dummy
rm; ac_word
=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_RM+:} false
; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$RM"; then
5103 ac_cv_prog_RM
="$RM" # Let the user override the test.
5105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir
=.
5110 for ac_exec_ext
in '' $ac_executable_extensions; do
5111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_RM
="rm -rf"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 if test -n "$RM"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5125 $as_echo "$RM" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 if test "$RM" = ""; then
5133 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "cp", so it can be a program name with args.
5136 set dummy
cp; ac_word
=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_CP+:} false
; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$CP"; then
5143 ac_cv_prog_CP
="$CP" # Let the user override the test.
5145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir
=.
5150 for ac_exec_ext
in '' $ac_executable_extensions; do
5151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 if test -n "$CP"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5165 $as_echo "$CP" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 if test "$CP" = ""; then
5173 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "mv", so it can be a program name with args.
5176 set dummy
mv; ac_word
=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_MV+:} false
; then :
5180 $as_echo_n "(cached) " >&6
5182 if test -n "$MV"; then
5183 ac_cv_prog_MV
="$MV" # Let the user override the test.
5185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir
=.
5190 for ac_exec_ext
in '' $ac_executable_extensions; do
5191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 if test -n "$MV"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5205 $as_echo "$MV" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 if test "$MV" = ""; then
5213 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5215 # Extract the first word of "echo", so it can be a program name with args.
5216 set dummy
echo; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_ECHO+:} false
; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -n "$ECHO"; then
5223 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir
=.
5230 for ac_exec_ext
in '' $ac_executable_extensions; do
5231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ECHO
="echo "
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 ECHO
=$ac_cv_prog_ECHO
5243 if test -n "$ECHO"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5245 $as_echo "$ECHO" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "$ECHO" = ""; then
5253 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5255 # Extract the first word of "mkdir", so it can be a program name with args.
5256 set dummy mkdir
; ac_word
=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_MKDIR+:} false
; then :
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$MKDIR"; then
5263 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir
=.
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_MKDIR
="mkdir -p"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 MKDIR
=$ac_cv_prog_MKDIR
5283 if test -n "$MKDIR"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5285 $as_echo "$MKDIR" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 if test "$MKDIR" = ""; then
5293 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5295 # Extract the first word of "touch", so it can be a program name with args.
5296 set dummy
touch; ac_word
=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_TOUCH+:} false
; then :
5300 $as_echo_n "(cached) " >&6
5302 if test -n "$TOUCH"; then
5303 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5309 test -z "$as_dir" && as_dir
=.
5310 for ac_exec_ext
in '' $ac_executable_extensions; do
5311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_TOUCH
="touch "
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 TOUCH
=$ac_cv_prog_TOUCH
5323 if test -n "$TOUCH"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5325 $as_echo "$TOUCH" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5332 if test "$TOUCH" = ""; then
5333 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5335 # Extract the first word of "sort", so it can be a program name with args.
5336 set dummy
sort; ac_word
=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_SORT+:} false
; then :
5340 $as_echo_n "(cached) " >&6
5342 if test -n "$SORT"; then
5343 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5349 test -z "$as_dir" && as_dir
=.
5350 for ac_exec_ext
in '' $ac_executable_extensions; do
5351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_SORT
="sort "
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 SORT
=$ac_cv_prog_SORT
5363 if test -n "$SORT"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5365 $as_echo "$SORT" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 if test "$SORT" = ""; then
5373 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5375 # Extract the first word of "uniq", so it can be a program name with args.
5376 set dummy
uniq; ac_word
=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_UNIQ+:} false
; then :
5380 $as_echo_n "(cached) " >&6
5382 if test -n "$UNIQ"; then
5383 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir
=.
5390 for ac_exec_ext
in '' $ac_executable_extensions; do
5391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_UNIQ
="uniq "
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 UNIQ
=$ac_cv_prog_UNIQ
5403 if test -n "$UNIQ"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5405 $as_echo "$UNIQ" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 if test "$UNIQ" = ""; then
5413 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5415 # Extract the first word of "true", so it can be a program name with args.
5416 set dummy true
; ac_word
=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_NOP+:} false
; then :
5420 $as_echo_n "(cached) " >&6
5422 if test -n "$NOP"; then
5423 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5429 test -z "$as_dir" && as_dir
=.
5430 for ac_exec_ext
in '' $ac_executable_extensions; do
5431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_NOP
="true "
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 if test -n "$NOP"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5445 $as_echo "$NOP" >&6; }
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5452 if test "$NOP" = ""; then
5453 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5455 # Extract the first word of "cat", so it can be a program name with args.
5456 set dummy
cat; ac_word
=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_CAT+:} false
; then :
5460 $as_echo_n "(cached) " >&6
5462 if test -n "$CAT"; then
5463 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5469 test -z "$as_dir" && as_dir
=.
5470 for ac_exec_ext
in '' $ac_executable_extensions; do
5471 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_CAT
="cat "
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 if test -n "$CAT"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5485 $as_echo "$CAT" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5492 if test "$CAT" = ""; then
5493 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5495 # Extract the first word of "bison", so it can be a program name with args.
5496 set dummy bison
; ac_word
=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_BISON+:} false
; then :
5500 $as_echo_n "(cached) " >&6
5502 if test -n "$BISON"; then
5503 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir
=.
5510 for ac_exec_ext
in '' $ac_executable_extensions; do
5511 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_BISON
="bison "
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 BISON
=$ac_cv_prog_BISON
5523 if test -n "$BISON"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5525 $as_echo "$BISON" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 if test "$BISON" = ""; then
5533 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5535 # Extract the first word of "flex", so it can be a program name with args.
5536 set dummy flex
; ac_word
=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_FLEX+:} false
; then :
5540 $as_echo_n "(cached) " >&6
5542 if test -n "$FLEX"; then
5543 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir
=.
5550 for ac_exec_ext
in '' $ac_executable_extensions; do
5551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_FLEX
="flex "
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 FLEX
=$ac_cv_prog_FLEX
5563 if test -n "$FLEX"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5565 $as_echo "$FLEX" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5572 if test "$FLEX" = ""; then
5573 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5575 # Extract the first word of "pngtopnm", so it can be a program name with args.
5576 set dummy pngtopnm
; ac_word
=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$PNGTOPNM"; then
5583 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir
=.
5590 for ac_exec_ext
in '' $ac_executable_extensions; do
5591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_PNGTOPNM
="pngtopnm "
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5603 if test -n "$PNGTOPNM"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5605 $as_echo "$PNGTOPNM" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 if test "$PNGTOPNM" = ""; then
5613 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5616 set dummy ppmtoilbm
; ac_word
=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$PPMTOILBM"; then
5623 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir
=.
5630 for ac_exec_ext
in '' $ac_executable_extensions; do
5631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5643 if test -n "$PPMTOILBM"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5645 $as_echo "$PPMTOILBM" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 if test "$PPMTOILBM" = ""; then
5653 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5655 # Extract the first word of "sed", so it can be a program name with args.
5656 set dummy
sed; ac_word
=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_SED+:} false
; then :
5660 $as_echo_n "(cached) " >&6
5662 if test -n "$SED"; then
5663 ac_cv_prog_SED
="$SED" # Let the user override the test.
5665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5669 test -z "$as_dir" && as_dir
=.
5670 for ac_exec_ext
in '' $ac_executable_extensions; do
5671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5672 ac_cv_prog_SED
="sed "
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 if test -n "$SED"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5685 $as_echo "$SED" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5692 if test "$SED" = ""; then
5693 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5695 # Extract the first word of "chmod", so it can be a program name with args.
5696 set dummy
chmod; ac_word
=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CHMOD+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$CHMOD"; then
5703 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir
=.
5710 for ac_exec_ext
in '' $ac_executable_extensions; do
5711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CHMOD
="chmod "
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 CHMOD
=$ac_cv_prog_CHMOD
5723 if test -n "$CHMOD"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5725 $as_echo "$CHMOD" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 if test "$CHMOD" = ""; then
5733 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5735 # Extract the first word of "patch", so it can be a program name with args.
5736 set dummy
patch; ac_word
=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_PATCH+:} false
; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$PATCH"; then
5743 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir
=.
5750 for ac_exec_ext
in '' $ac_executable_extensions; do
5751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_PATCH
="patch "
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 PATCH
=$ac_cv_prog_PATCH
5763 if test -n "$PATCH"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5765 $as_echo "$PATCH" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5772 if test "$PATCH" = ""; then
5773 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5782 if test -n "$PYTHON"; then
5783 # If the user set $PYTHON, use it and don't search something else.
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5785 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5787 # split strings by '.' and convert to numeric. Append some zeros
5788 # because we need at least 4 digits for the hex conversion.
5789 # map returns an iterator in Python 3.0 and a list in 2.x
5790 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5792 # xrange is not present in Python 3.0 and range returns an iterator
5793 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5794 sys.exit(sys.hexversion < minverhex)"
5795 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5796 ($PYTHON -c "$prog") >&5 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; then :
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801 $as_echo "yes" >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5807 am_display_PYTHON
=$PYTHON
5809 # Otherwise, try each interpreter until we find one that satisfies
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5812 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5813 if ${am_cv_pathless_PYTHON+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5817 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
5818 test "$am_cv_pathless_PYTHON" = none
&& break
5820 # split strings by '.' and convert to numeric. Append some zeros
5821 # because we need at least 4 digits for the hex conversion.
5822 # map returns an iterator in Python 3.0 and a list in 2.x
5823 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5825 # xrange is not present in Python 3.0 and range returns an iterator
5826 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5827 sys.exit(sys.hexversion < minverhex)"
5828 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5829 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; then :
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5838 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5839 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5840 if test "$am_cv_pathless_PYTHON" = none
; then
5843 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5844 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_path_PYTHON+:} false
; then :
5848 $as_echo_n "(cached) " >&6
5852 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir
=.
5860 for ac_exec_ext
in '' $ac_executable_extensions; do
5861 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 PYTHON
=$ac_cv_path_PYTHON
5874 if test -n "$PYTHON"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5876 $as_echo "$PYTHON" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5884 am_display_PYTHON
=$am_cv_pathless_PYTHON
5888 if test "$PYTHON" = :; then
5889 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5894 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5895 if ${am_cv_python_version+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5901 $as_echo "$am_cv_python_version" >&6; }
5902 PYTHON_VERSION
=$am_cv_python_version
5906 PYTHON_PREFIX
='${prefix}'
5908 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5913 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5914 if ${am_cv_python_platform+:} false
; then :
5915 $as_echo_n "(cached) " >&6
5917 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5920 $as_echo "$am_cv_python_platform" >&6; }
5921 PYTHON_PLATFORM
=$am_cv_python_platform
5924 # Just factor out some code duplication.
5925 am_python_setup_sysconfig
="\
5927 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5928 # with python 3.x. See automake bug#10227.
5932 can_use_sysconfig = 0
5934 can_use_sysconfig = 1
5935 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5936 # <https://github.com/pypa/virtualenv/issues/118>
5938 from platform import python_implementation
5939 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5940 can_use_sysconfig = 0
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5946 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5947 if ${am_cv_python_pythondir+:} false
; then :
5948 $as_echo_n "(cached) " >&6
5950 if test "x$prefix" = xNONE
5952 am_py_prefix
=$ac_default_prefix
5954 am_py_prefix
=$prefix
5956 am_cv_python_pythondir
=`$PYTHON -c "
5957 $am_python_setup_sysconfig
5958 if can_use_sysconfig:
5959 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5961 from distutils import sysconfig
5962 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5963 sys.stdout.write(sitedir)"`
5964 case $am_cv_python_pythondir in
5966 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
5967 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5970 case $am_py_prefix in
5973 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5981 $as_echo "$am_cv_python_pythondir" >&6; }
5982 pythondir
=$am_cv_python_pythondir
5986 pkgpythondir
=\
${pythondir}/$PACKAGE
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5990 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5991 if ${am_cv_python_pyexecdir+:} false
; then :
5992 $as_echo_n "(cached) " >&6
5994 if test "x$exec_prefix" = xNONE
5996 am_py_exec_prefix
=$am_py_prefix
5998 am_py_exec_prefix
=$exec_prefix
6000 am_cv_python_pyexecdir
=`$PYTHON -c "
6001 $am_python_setup_sysconfig
6002 if can_use_sysconfig:
6003 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6005 from distutils import sysconfig
6006 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6007 sys.stdout.write(sitedir)"`
6008 case $am_cv_python_pyexecdir in
6009 $am_py_exec_prefix*)
6010 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6011 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6014 case $am_py_exec_prefix in
6017 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6025 $as_echo "$am_cv_python_pyexecdir" >&6; }
6026 pyexecdir
=$am_cv_python_pyexecdir
6030 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6040 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6041 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6042 $as_echo_n "(cached) " >&6
6044 ac_check_lib_save_LIBS
=$LIBS
6046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6055 char png_read_png ();
6059 return png_read_png ();
6064 if ac_fn_c_try_link
"$LINENO"; then :
6065 ac_cv_lib_png_png_read_png
=yes
6067 ac_cv_lib_png_png_read_png
=no
6069 rm -f core conftest.err conftest.
$ac_objext \
6070 conftest
$ac_exeext conftest.
$ac_ext
6071 LIBS
=$ac_check_lib_save_LIBS
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6074 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6075 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6076 cat >>confdefs.h
<<_ACEOF
6077 #define HAVE_LIBPNG 1
6084 if test "$ac_cv_lib_png_png_read_png" = ""; then
6085 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6098 # Check for some includes for the X11 HIDD and the kernel
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6102 if ${ac_cv_path_GREP+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -z "$GREP"; then
6106 ac_path_GREP_found
=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6109 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6112 test -z "$as_dir" && as_dir
=.
6113 for ac_prog
in grep ggrep
; do
6114 for ac_exec_ext
in '' $ac_executable_extensions; do
6115 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6116 as_fn_executable_p
"$ac_path_GREP" ||
continue
6117 # Check for GNU ac_path_GREP and select it if it is found.
6118 # Check for GNU $ac_path_GREP
6119 case `"$ac_path_GREP" --version 2>&1` in
6121 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6124 $as_echo_n 0123456789 >"conftest.in"
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 $as_echo 'GREP' >> "conftest.nl"
6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6132 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6133 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_GREP
="$ac_path_GREP"
6137 ac_path_GREP_max
=$ac_count
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6142 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6145 $ac_path_GREP_found && break 3
6150 if test -z "$ac_cv_path_GREP"; then
6151 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6154 ac_cv_path_GREP
=$GREP
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159 $as_echo "$ac_cv_path_GREP" >&6; }
6160 GREP
="$ac_cv_path_GREP"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164 $as_echo_n "checking for egrep... " >&6; }
6165 if ${ac_cv_path_EGREP+:} false
; then :
6166 $as_echo_n "(cached) " >&6
6168 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6169 then ac_cv_path_EGREP
="$GREP -E"
6171 if test -z "$EGREP"; then
6172 ac_path_EGREP_found
=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6178 test -z "$as_dir" && as_dir
=.
6179 for ac_prog
in egrep; do
6180 for ac_exec_ext
in '' $ac_executable_extensions; do
6181 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6182 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6183 # Check for GNU ac_path_EGREP and select it if it is found.
6184 # Check for GNU $ac_path_EGREP
6185 case `"$ac_path_EGREP" --version 2>&1` in
6187 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6190 $as_echo_n 0123456789 >"conftest.in"
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo 'EGREP' >> "conftest.nl"
6197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_EGREP
="$ac_path_EGREP"
6203 ac_path_EGREP_max
=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6211 $ac_path_EGREP_found && break 3
6216 if test -z "$ac_cv_path_EGREP"; then
6217 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 ac_cv_path_EGREP
=$EGREP
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6226 $as_echo "$ac_cv_path_EGREP" >&6; }
6227 EGREP
="$ac_cv_path_EGREP"
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231 $as_echo_n "checking for ANSI C header files... " >&6; }
6232 if ${ac_cv_header_stdc+:} false
; then :
6233 $as_echo_n "(cached) " >&6
6235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6250 if ac_fn_c_try_compile
"$LINENO"; then :
6251 ac_cv_header_stdc
=yes
6253 ac_cv_header_stdc
=no
6255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 if test $ac_cv_header_stdc = yes; then
6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "memchr" >/dev
/null
2>&1; then :
6268 ac_cv_header_stdc
=no
6274 if test $ac_cv_header_stdc = yes; then
6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev
/null
2>&1; then :
6285 ac_cv_header_stdc
=no
6291 if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then :
6296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6300 #if ((' ' & 0x0FF) == 0x020)
6301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 # define ISLOWER(c) \
6305 (('a' <= (c) && (c) <= 'i') \
6306 || ('j' <= (c) && (c) <= 'r') \
6307 || ('s' <= (c) && (c) <= 'z'))
6308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 for (i = 0; i < 256; i++)
6317 if (XOR (islower (i), ISLOWER (i))
6318 || toupper (i) != TOUPPER (i))
6323 if ac_fn_c_try_run
"$LINENO"; then :
6326 ac_cv_header_stdc
=no
6328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335 $as_echo "$ac_cv_header_stdc" >&6; }
6336 if test $ac_cv_header_stdc = yes; then
6338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6343 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6344 inttypes.h stdint.h unistd.h
6346 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6349 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6350 cat >>confdefs.h
<<_ACEOF
6351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6359 for ac_header
in sys
/ipc.h sys
/shm.h \
6360 sys
/mmap.h sys
/mman.h sysexits.h \
6361 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6364 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6366 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6367 cat >>confdefs.h
<<_ACEOF
6368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376 for ac_header
in sys
/mount.h
6378 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6380 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6381 cat >>confdefs.h
<<_ACEOF
6382 #define HAVE_SYS_MOUNT_H 1
6391 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6392 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6394 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6395 if eval \
${$as_ac_Header+:} false
; then :
6396 $as_echo_n "(cached) " >&6
6398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <sys/types.h>
6412 if ac_fn_c_try_compile
"$LINENO"; then :
6413 eval "$as_ac_Header=yes"
6415 eval "$as_ac_Header=no"
6417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 eval ac_res
=\$
$as_ac_Header
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421 $as_echo "$ac_res" >&6; }
6422 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6423 cat >>confdefs.h
<<_ACEOF
6424 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6427 ac_header_dirent
=$ac_hdr; break
6431 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6432 if test $ac_header_dirent = dirent.h
; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6434 $as_echo_n "checking for library containing opendir... " >&6; }
6435 if ${ac_cv_search_opendir+:} false
; then :
6436 $as_echo_n "(cached) " >&6
6438 ac_func_search_save_LIBS
=$LIBS
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6442 /* Override any GCC internal prototype to avoid an error.
6443 Use char because int might match the return type of a GCC
6444 builtin and then its argument prototype would still apply. */
6457 for ac_lib
in '' dir
; do
6458 if test -z "$ac_lib"; then
6459 ac_res
="none required"
6462 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6464 if ac_fn_c_try_link
"$LINENO"; then :
6465 ac_cv_search_opendir
=$ac_res
6467 rm -f core conftest.err conftest.
$ac_objext \
6469 if ${ac_cv_search_opendir+:} false
; then :
6473 if ${ac_cv_search_opendir+:} false
; then :
6476 ac_cv_search_opendir
=no
6479 LIBS
=$ac_func_search_save_LIBS
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6482 $as_echo "$ac_cv_search_opendir" >&6; }
6483 ac_res
=$ac_cv_search_opendir
6484 if test "$ac_res" != no
; then :
6485 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6491 $as_echo_n "checking for library containing opendir... " >&6; }
6492 if ${ac_cv_search_opendir+:} false
; then :
6493 $as_echo_n "(cached) " >&6
6495 ac_func_search_save_LIBS
=$LIBS
6496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6499 /* Override any GCC internal prototype to avoid an error.
6500 Use char because int might match the return type of a GCC
6501 builtin and then its argument prototype would still apply. */
6514 for ac_lib
in '' x
; do
6515 if test -z "$ac_lib"; then
6516 ac_res
="none required"
6519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6521 if ac_fn_c_try_link
"$LINENO"; then :
6522 ac_cv_search_opendir
=$ac_res
6524 rm -f core conftest.err conftest.
$ac_objext \
6526 if ${ac_cv_search_opendir+:} false
; then :
6530 if ${ac_cv_search_opendir+:} false
; then :
6533 ac_cv_search_opendir
=no
6536 LIBS
=$ac_func_search_save_LIBS
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6539 $as_echo "$ac_cv_search_opendir" >&6; }
6540 ac_res
=$ac_cv_search_opendir
6541 if test "$ac_res" != no
; then :
6542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6549 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6550 if ${ac_cv_header_stat_broken+:} false
; then :
6551 $as_echo_n "(cached) " >&6
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 #include <sys/types.h>
6556 #include <sys/stat.h>
6558 #if defined S_ISBLK && defined S_IFDIR
6559 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6562 #if defined S_ISBLK && defined S_IFCHR
6563 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6566 #if defined S_ISLNK && defined S_IFREG
6567 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6570 #if defined S_ISSOCK && defined S_IFREG
6571 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6575 if ac_fn_c_try_compile
"$LINENO"; then :
6576 ac_cv_header_stat_broken
=no
6578 ac_cv_header_stat_broken
=yes
6580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6583 $as_echo "$ac_cv_header_stat_broken" >&6; }
6584 if test $ac_cv_header_stat_broken = yes; then
6586 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6591 $as_echo_n "checking for ANSI C header files... " >&6; }
6592 if ${ac_cv_header_stdc+:} false
; then :
6593 $as_echo_n "(cached) " >&6
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6610 if ac_fn_c_try_compile
"$LINENO"; then :
6611 ac_cv_header_stdc
=yes
6613 ac_cv_header_stdc
=no
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 if test $ac_cv_header_stdc = yes; then
6618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6625 $EGREP "memchr" >/dev
/null
2>&1; then :
6628 ac_cv_header_stdc
=no
6634 if test $ac_cv_header_stdc = yes; then
6635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "free" >/dev
/null
2>&1; then :
6645 ac_cv_header_stdc
=no
6651 if test $ac_cv_header_stdc = yes; then
6652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6653 if test "$cross_compiling" = yes; then :
6656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6660 #if ((' ' & 0x0FF) == 0x020)
6661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6664 # define ISLOWER(c) \
6665 (('a' <= (c) && (c) <= 'i') \
6666 || ('j' <= (c) && (c) <= 'r') \
6667 || ('s' <= (c) && (c) <= 'z'))
6668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6676 for (i = 0; i < 256; i++)
6677 if (XOR (islower (i), ISLOWER (i))
6678 || toupper (i) != TOUPPER (i))
6683 if ac_fn_c_try_run
"$LINENO"; then :
6686 ac_cv_header_stdc
=no
6688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6695 $as_echo "$ac_cv_header_stdc" >&6; }
6696 if test $ac_cv_header_stdc = yes; then
6698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6703 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6704 if ${ac_cv_header_sys_wait_h+:} false
; then :
6705 $as_echo_n "(cached) " >&6
6707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #include <sys/types.h>
6710 #include <sys/wait.h>
6712 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6715 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6728 if ac_fn_c_try_compile
"$LINENO"; then :
6729 ac_cv_header_sys_wait_h
=yes
6731 ac_cv_header_sys_wait_h
=no
6733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6736 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6737 if test $ac_cv_header_sys_wait_h = yes; then
6739 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6744 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6745 if ${ac_cv_header_time+:} false
; then :
6746 $as_echo_n "(cached) " >&6
6748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <sys/time.h>
6757 if ((struct tm *) 0)
6763 if ac_fn_c_try_compile
"$LINENO"; then :
6764 ac_cv_header_time
=yes
6766 ac_cv_header_time
=no
6768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6771 $as_echo "$ac_cv_header_time" >&6; }
6772 if test $ac_cv_header_time = yes; then
6774 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6778 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6779 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6781 cat >>confdefs.h
<<_ACEOF
6782 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6786 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6791 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6792 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6799 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6802 case " $LIBOBJS " in
6803 *" fileblocks.$ac_objext "* ) ;;
6804 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6811 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6812 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6814 cat >>confdefs.h
<<_ACEOF
6815 #define HAVE_STRUCT_STAT_ST_RDEV 1
6819 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6825 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6826 if ${ac_cv_struct_tm+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6838 int *p = &tm.tm_sec;
6844 if ac_fn_c_try_compile
"$LINENO"; then :
6845 ac_cv_struct_tm
=time.h
6847 ac_cv_struct_tm
=sys
/time.h
6849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6852 $as_echo "$ac_cv_struct_tm" >&6; }
6853 if test $ac_cv_struct_tm = sys
/time.h
; then
6855 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6859 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6860 #include <$ac_cv_struct_tm>
6863 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6865 cat >>confdefs.h
<<_ACEOF
6866 #define HAVE_STRUCT_TM_TM_ZONE 1
6872 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6874 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6877 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6879 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6885 cat >>confdefs.h
<<_ACEOF
6886 #define HAVE_DECL_TZNAME $ac_have_decl
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6890 $as_echo_n "checking for tzname... " >&6; }
6891 if ${ac_cv_var_tzname+:} false
; then :
6892 $as_echo_n "(cached) " >&6
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6897 #if !HAVE_DECL_TZNAME
6898 extern char *tzname[];
6904 return tzname[0][0];
6909 if ac_fn_c_try_link
"$LINENO"; then :
6910 ac_cv_var_tzname
=yes
6914 rm -f core conftest.err conftest.
$ac_objext \
6915 conftest
$ac_exeext conftest.
$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6918 $as_echo "$ac_cv_var_tzname" >&6; }
6919 if test $ac_cv_var_tzname = yes; then
6921 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6926 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6927 if test "x$ac_cv_type_off_t" = xyes
; then :
6931 cat >>confdefs.h
<<_ACEOF
6932 #define off_t long int
6937 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6938 if test "x$ac_cv_type_pid_t" = xyes
; then :
6942 cat >>confdefs.h
<<_ACEOF
6948 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6949 if test "x$ac_cv_type_size_t" = xyes
; then :
6953 cat >>confdefs.h
<<_ACEOF
6954 #define size_t unsigned int
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6960 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6961 if ${ac_cv_type_uid_t+:} false
; then :
6962 $as_echo_n "(cached) " >&6
6964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 #include <sys/types.h>
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "uid_t" >/dev
/null
2>&1; then :
6971 ac_cv_type_uid_t
=yes
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6979 $as_echo "$ac_cv_type_uid_t" >&6; }
6980 if test $ac_cv_type_uid_t = no
; then
6982 $as_echo "#define uid_t int" >>confdefs.h
6985 $as_echo "#define gid_t int" >>confdefs.h
6990 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6991 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6993 cat >>confdefs.h
<<_ACEOF
6994 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7001 # Look for some functions
7002 for ac_func
in getpagesize kqueue statfs statvfs \
7003 clone kse_create rfork_thread thr_create sa_register \
7004 getcontext makecontext setcontext sigaltstack swapcontext
7006 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7007 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7008 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7020 for ac_header
in $ac_header_list
7022 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7025 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7026 cat >>confdefs.h
<<_ACEOF
7027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 for ac_func
in getpagesize
7043 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7044 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7045 cat >>confdefs.h
<<_ACEOF
7046 #define HAVE_GETPAGESIZE 1
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7053 $as_echo_n "checking for working mmap... " >&6; }
7054 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7055 $as_echo_n "(cached) " >&6
7057 if test "$cross_compiling" = yes; then :
7058 ac_cv_func_mmap_fixed_mapped
=no
7060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 /* malloc might have been renamed as rpl_malloc. */
7066 /* Thanks to Mike Haertel and Jim Avera for this test.
7067 Here is a matrix of mmap possibilities:
7068 mmap private not fixed
7069 mmap private fixed at somewhere currently unmapped
7070 mmap private fixed at somewhere already mapped
7071 mmap shared not fixed
7072 mmap shared fixed at somewhere currently unmapped
7073 mmap shared fixed at somewhere already mapped
7074 For private mappings, we should verify that changes cannot be read()
7075 back from the file, nor mmap's back from the file at a different
7076 address. (There have been systems where private was not correctly
7077 implemented like the infamous i386 svr4.0, and systems where the
7078 VM page cache was not coherent with the file system buffer cache
7079 like early versions of FreeBSD and possibly contemporary NetBSD.)
7080 For shared mappings, we should conversely verify that changes get
7081 propagated back to all the places they're supposed to be.
7083 Grep wants private fixed already mapped.
7084 The main things grep needs to know about mmap are:
7085 * does it exist and is it safe to write into the mmap'd area
7086 * how to use it (BSD variants) */
7089 #include <sys/mman.h>
7091 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7095 /* This mess was copied from the GNU getpagesize.h. */
7096 #ifndef HAVE_GETPAGESIZE
7097 # ifdef _SC_PAGESIZE
7098 # define getpagesize() sysconf(_SC_PAGESIZE)
7099 # else /* no _SC_PAGESIZE */
7100 # ifdef HAVE_SYS_PARAM_H
7101 # include <sys/param.h>
7102 # ifdef EXEC_PAGESIZE
7103 # define getpagesize() EXEC_PAGESIZE
7104 # else /* no EXEC_PAGESIZE */
7106 # define getpagesize() NBPG * CLSIZE
7109 # endif /* no CLSIZE */
7110 # else /* no NBPG */
7112 # define getpagesize() NBPC
7113 # else /* no NBPC */
7115 # define getpagesize() PAGESIZE
7116 # endif /* PAGESIZE */
7117 # endif /* no NBPC */
7118 # endif /* no NBPG */
7119 # endif /* no EXEC_PAGESIZE */
7120 # else /* no HAVE_SYS_PARAM_H */
7121 # define getpagesize() 8192 /* punt totally */
7122 # endif /* no HAVE_SYS_PARAM_H */
7123 # endif /* no _SC_PAGESIZE */
7125 #endif /* no HAVE_GETPAGESIZE */
7130 char *data, *data2, *data3;
7135 pagesize = getpagesize ();
7137 /* First, make a file with some known garbage in it. */
7138 data = (char *) malloc (pagesize);
7141 for (i = 0; i < pagesize; ++i)
7142 *(data + i) = rand ();
7144 fd = creat ("conftest.mmap", 0600);
7147 if (write (fd, data, pagesize) != pagesize)
7151 /* Next, check that the tail of a page is zero-filled. File must have
7152 non-zero length, otherwise we risk SIGBUS for entire page. */
7153 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7157 if (write (fd2, cdata2, 1) != 1)
7159 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7160 if (data2 == MAP_FAILED)
7162 for (i = 0; i < pagesize; ++i)
7166 if (munmap (data2, pagesize))
7169 /* Next, try to mmap the file at a fixed address which already has
7170 something else allocated at it. If we can, also make sure that
7171 we see the same garbage. */
7172 fd = open ("conftest.mmap", O_RDWR);
7175 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7176 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7178 for (i = 0; i < pagesize; ++i)
7179 if (*(data + i) != *(data2 + i))
7182 /* Finally, make sure that changes to the mapped area do not
7183 percolate back to the file as seen by read(). (This is a bug on
7184 some variants of i386 svr4.0.) */
7185 for (i = 0; i < pagesize; ++i)
7186 *(data2 + i) = *(data2 + i) + 1;
7187 data3 = (char *) malloc (pagesize);
7190 if (read (fd, data3, pagesize) != pagesize)
7192 for (i = 0; i < pagesize; ++i)
7193 if (*(data + i) != *(data3 + i))
7199 if ac_fn_c_try_run
"$LINENO"; then :
7200 ac_cv_func_mmap_fixed_mapped
=yes
7202 ac_cv_func_mmap_fixed_mapped
=no
7204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7210 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7211 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7213 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7216 rm -f conftest.mmap conftest.txt
7221 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7222 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7223 aros_config_ldflags
=""
7225 aros_shared_default
=yes
7227 aros_shared_cflags
="-fPIC"
7228 aros_shared_aflags
=""
7229 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7230 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7232 aros_kernel_ar_flags
="cr"
7233 aros_target_ar_flags
="cr"
7234 aros_target_nm_flags
="-C -ul"
7235 aros_target_strip_flags
="--strip-unneeded -R.comment"
7240 aros_target_genmap
="-Wl,-Map -Xlinker"
7242 # Native flavour stuff
7243 aros_serial_debug
="0"
7245 # Palm native flavour stuff
7246 aros_palm_debug_hack
="0"
7248 # Unix flavour stuff
7249 aros_nesting_supervisor
="0"
7251 # Collect-aros stuff: "-ius" to ignore undefined symbols
7252 ignore_undefined_symbols
=""
7254 # Check for X11 by default
7257 #-----------------------------------------------------------------------------
7260 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7261 # it switched on by default, and we use the host compiler, so it compiles AROS
7262 # code with this enabled resulting in link failures as we don't have support
7265 # We use two methods to disable it. For the host compiler (used to compile
7266 # some hosted modules), we test to see if the compiler supports stack
7267 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7268 # work on all platforms.
7270 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7271 # (this is done unconditionally, as it should have no effect on compilers
7272 # without the stack protection feature). This may be specific to the way that
7273 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7274 # strong enough to disable it in a generic way though, so we'll live with it
7275 # until another vendor ships GCC with it enabled in a different way, and deal
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7280 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7281 save_cflags
="$CFLAGS"
7282 CFLAGS
="$CFLAGS -fno-stack-protector"
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7294 if ac_fn_c_try_compile
"$LINENO"; then :
7295 use_no_stack_protector
="yes"
7297 use_no_stack_protector
="no"
7299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7301 $as_echo "$use_no_stack_protector" >&6; }
7302 if test "x-$use_no_stack_protector" = "x-yes" ; then
7303 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7305 CFLAGS
="$save_cflags"
7307 #-----------------------------------------------------------------------------
7309 # Disable pointer-signedness warnings if the compiler recognises the option
7310 # (this only works for the host compiler at the moment)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7313 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7314 save_cflags
="$CFLAGS"
7315 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7327 if ac_fn_c_try_compile
"$LINENO"; then :
7328 use_no_sign_warning
="yes"
7330 use_no_sign_warning
="no"
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7334 $as_echo "$use_no_sign_warning" >&6; }
7335 if test "x-$use_no_sign_warning" = "x-yes" ; then
7336 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7338 CFLAGS
="$save_cflags"
7340 #-----------------------------------------------------------------------------
7342 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7345 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7346 save_cflags
="$CFLAGS"
7347 CFLAGS
="$CFLAGS -fgnu89-inline"
7348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7359 if ac_fn_c_try_compile
"$LINENO"; then :
7360 use_gnu89_inline
="yes"
7362 use_gnu89_inline
="no"
7364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7366 $as_echo "$use_gnu89_inline" >&6; }
7367 if test "x-$use_gnu89_inline" = "x-yes" ; then
7368 gnu89_inline
="-fgnu89-inline"
7370 CFLAGS
="$save_cflags"
7372 #-----------------------------------------------------------------------------
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7375 $as_echo_n "checking for type of build... " >&6; }
7376 # Check whether --enable-build_type was given.
7377 if test "${enable_build_type+set}" = set; then :
7378 enableval
=$enable_build_type; build_type
=$enableval
7380 build_type
="personal"
7384 if test "$build_type" = "nightly"; then
7385 build_type_string
="NIGHTLY"
7386 elif test "$build_type" = "snapshot"; then
7387 build_type_string
="SNAPSHOT"
7388 elif test "$build_type" = "milestone"; then
7389 build_type_string
="MILESTONE"
7390 elif test "$build_type" = "release"; then
7391 build_type_string
="RELEASE"
7393 build_type_string
="PERSONAL"
7394 build_type
="personal"
7397 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7400 $as_echo "$build_type" >&6; }
7402 #-----------------------------------------------------------------------------
7403 all_debug_types
="messages stack modules mungwall symbols"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7406 $as_echo_n "checking which debug types to enable... " >&6; }
7407 # Check whether --enable-debug was given.
7408 if test "${enable_debug+set}" = set; then :
7409 enableval
=$enable_debug; debug
="$enableval"
7415 if test "$debug" = "" -o "$debug" = "no"; then
7417 elif test "$debug" = "yes"; then
7421 if test "$debug" = "all" ; then
7422 debug
="messages stack modules symbols"
7423 for d
in $all_debug_types; do
7424 export aros_
${d}_debug
="1"
7427 for d
in $all_debug_types; do
7428 export aros_
${d}_debug
="0"
7432 if test "$debug" != "none"; then
7433 debug
=`echo $debug | sed s/,/\ /g`
7436 for d2
in $all_debug_types; do
7437 if test "$d2" = "$d"; then
7442 if test "$found" = "0"; then
7443 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7445 export aros_
${d}_debug
="1"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7450 $as_echo "$debug" >&6; }
7452 if test "$aros_messages_debug" = "1"; then
7453 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7455 aros_messages_debug
=""
7457 if test "$aros_symbols_debug" = "1"; then
7458 aros_symbols_debug
="-g"
7460 aros_symbols_debug
=""
7463 # These are the flags to pass when compiling debugged programs
7464 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7465 aros_debug_aflags
=""
7466 aros_debug_ldflags
="$aros_symbols_debug"
7468 #-----------------------------------------------------------------------------
7469 # Checking for distcc and ccache.
7471 # Always apply the transforms in this particular order. Basically you should
7472 # always run 'ccache distcc compiler' in that order for the best performance.
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7475 $as_echo_n "checking whether to enable distcc... " >&6; }
7476 # Check whether --enable-distcc was given.
7477 if test "${enable_distcc+set}" = set; then :
7478 enableval
=$enable_distcc; distcc
="$enableval"
7483 if test "$distcc" != "" -a "$distcc" != "no"; then
7484 # AC_CHECK_PROG will print out the result in this case
7485 # Extract the first word of "distcc", so it can be a program name with args.
7486 set dummy distcc
; ac_word
=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_DISTCC+:} false
; then :
7490 $as_echo_n "(cached) " >&6
7494 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir
=.
7502 for ac_exec_ext
in '' $ac_executable_extensions; do
7503 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7516 DISTCC
=$ac_cv_path_DISTCC
7517 if test -n "$DISTCC"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7519 $as_echo "$DISTCC" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7532 $as_echo_n "checking whether to enable ccache... " >&6; }
7533 # Check whether --enable-ccache was given.
7534 if test "${enable_ccache+set}" = set; then :
7535 enableval
=$enable_ccache; ccache
="$enableval"
7540 if test "$ccache" != "" -a "$ccache" != "no"; then
7541 # AC_CHECK_PROG will print out the result in this case
7542 # Extract the first word of "ccache", so it can be a program name with args.
7543 set dummy ccache
; ac_word
=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_CCACHE+:} false
; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$CCACHE"; then
7550 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir
=.
7557 for ac_exec_ext
in '' $ac_executable_extensions; do
7558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_CCACHE
="ccache"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 CCACHE
=$ac_cv_prog_CCACHE
7570 if test -n "$CCACHE"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7572 $as_echo "$CCACHE" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 #-----------------------------------------------------------------------------
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7586 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7588 # Check whether --with-kernel-gcc-version was given.
7589 if test "${with_kernel_gcc_version+set}" = set; then :
7590 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7592 kernel_tool_version
=""
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7596 $as_echo "$kernel_tool_version" >&6; }
7598 #-----------------------------------------------------------------------------
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7600 $as_echo_n "checking what optimization flags to use... " >&6; }
7602 # Check whether --with-optimization was given.
7603 if test "${with_optimization+set}" = set; then :
7604 withval
=$with_optimization; optimization
="$withval"
7606 optimization
="unknown"
7609 if test "$optimization" = "unknown"; then
7610 if test "$debug" != "none"; then
7616 aros_optimization_cflags
="$optimization"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7618 $as_echo "$optimization" >&6; }
7620 #-----------------------------------------------------------------------------
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7622 $as_echo_n "checking what paranoia flags to use... " >&6; }
7624 # Check whether --with-paranoia was given.
7625 if test "${with_paranoia+set}" = set; then :
7626 withval
=$with_paranoia; paranoia_flags
="$withval"
7628 paranoia_flags
="default"
7631 if test "$paranoia_flags" = "default"; then
7633 else if test "$paranoia_flags" = "yes"; then
7634 paranoia_flags
="-Wall -Werror"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7637 $as_echo "$paranoia_flags" >&6; }
7638 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7640 #-----------------------------------------------------------------------------
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7642 $as_echo_n "checking what target variant to enable... " >&6; }
7643 # Check whether --enable-target_variant was given.
7644 if test "${enable_target_variant+set}" = set; then :
7645 enableval
=$enable_target_variant; target_variant
=$enableval
7650 if test "$target_variant" = ""; then
7651 aros_target_variant
=""
7652 aros_target_suffix
=""
7655 aros_target_variant
="$target_variant"
7656 aros_target_suffix
="-$target_variant"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7659 $as_echo "$enableval" >&6; }
7661 #-----------------------------------------------------------------------------
7662 # Target-specific defaults. You can override then on a per-target basis.
7664 # Bootloader name. Currently used by PC target.
7665 target_bootloader
="none"
7667 #-----------------------------------------------------------------------------
7668 # Additional options for some specific targets
7670 case "$aros_target_variant" in
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7673 $as_echo_n "checking XCode path... " >&6; }
7675 # Check whether --with-xcode was given.
7676 if test "${with_xcode+set}" = set; then :
7677 withval
=$with_xcode; aros_xcode_path
="$withval"
7679 aros_xcode_path
="/Developer"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7683 $as_echo "$aros_xcode_path" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7686 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7688 # Check whether --with-sdk-version was given.
7689 if test "${with_sdk_version+set}" = set; then :
7690 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7692 aros_sdk_version
="4.1"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7696 $as_echo "$aros_sdk_version" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7702 $as_echo_n "checking Android SDK path... " >&6; }
7704 # Check whether --with-sdk was given.
7705 if test "${with_sdk+set}" = set; then :
7706 withval
=$with_sdk; aros_android_sdk
="$withval"
7708 aros_android_sdk
=$default_android_sdk
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7712 $as_echo "$aros_android_sdk" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7715 $as_echo_n "checking Android NDK path... " >&6; }
7717 # Check whether --with-ndk was given.
7718 if test "${with_ndk+set}" = set; then :
7719 withval
=$with_ndk; aros_android_ndk
="$withval"
7721 aros_android_ndk
="none"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7725 $as_echo "$aros_android_ndk" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7728 $as_echo_n "checking what Android SDK version to use... " >&6; }
7730 # Check whether --with-sdk-version was given.
7731 if test "${with_sdk_version+set}" = set; then :
7732 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7734 aros_sdk_version
="12"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7738 $as_echo "$aros_sdk_version" >&6; }
7740 aros_android_level
=android-
$aros_sdk_version
7741 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7742 echo "Platform $aros_android_level is not installed in your SDK"
7743 echo "Use --with-sdk-version=<API level number> to select another platform version"
7744 echo "You can check what plaform versions are installed in your SDK"
7745 echo "by examining contents of $aros_android_sdk/platforms directory"
7746 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7749 export PATH
="$aros_android_sdk/tools:$PATH"
7750 # Extract the first word of "$android_tool", so it can be a program name with args.
7751 set dummy
$android_tool; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_path_android_tool+:} false
; then :
7755 $as_echo_n "(cached) " >&6
7757 case $android_tool in
7759 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 android_tool
=$ac_cv_path_android_tool
7781 if test -n "$android_tool"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7783 $as_echo "$android_tool" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 if test "$android_tool" = ""; then
7791 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7794 if test "$aros_android_ndk" != "none"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7796 $as_echo_n "checking what Android NDK version to use... " >&6; }
7798 # Check whether --with-ndk-version was given.
7799 if test "${with_ndk_version+set}" = set; then :
7800 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7802 aros_ndk_version
="9"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7806 $as_echo "$aros_ndk_version" >&6; }
7809 # Extract the first word of "ant", so it can be a program name with args.
7810 set dummy ant
; ac_word
=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_path_ant+:} false
; then :
7814 $as_echo_n "(cached) " >&6
7818 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 for ac_exec_ext
in '' $ac_executable_extensions; do
7827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 if test -n "$ant"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7842 $as_echo "$ant" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 if test "$ant" = ""; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7851 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7855 $as_echo_n "checking Build debug or release apk... " >&6; }
7857 # Check whether --with-apk-version was given.
7858 if test "${with_apk_version+set}" = set; then :
7859 withval
=$with_apk_version; aros_android_antapk
=$withval
7861 aros_android_antapk
=release
7864 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
7865 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7868 $as_echo "$aros_android_antapk" >&6; }
7870 if test "$host_os" = "mingw32"; then
7871 android_tool
="cmd //c $android_tool"
7879 #-----------------------------------------------------------------------------
7880 # External toolchains
7881 kernel_tool_prefix
="none"
7882 aros_tool_prefix
="none"
7883 elf_tool_prefix
="${target_cpu}-elf-"
7885 # This is the target configuration switch.
7886 case "$target_os" in
7888 aros_target_arch
="linux"
7889 aros_target_family
="unix"
7890 case "$target_cpu" in
7892 aros_target_cpu
="m68k"
7893 aros_object_format
="m68kelf"
7894 aros_flavour
="emulcompat"
7895 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7896 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7897 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7898 gcc_target_cpu
="mc68000"
7901 aros_target_cpu
="i386"
7902 aros_object_format
="elf_i386"
7903 aros_flavour
="emulation"
7904 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7905 aros_kernel_ldflags
="-Wl,-melf_i386"
7906 aros_default_wbdepth
=8
7907 gcc_target_cpu
="i386"
7908 pci_hidd_target
="hidd-pci-linux"
7909 android_tool_dir_prefix
="x86"
7910 android_tool_prefix
="i686-android-linux"
7911 android_ndk_arch
="x86"
7914 aros_target_cpu
="x86_64"
7915 aros_object_format
="elf_x86_64"
7916 aros_flavour
="emulation"
7917 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7918 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7919 aros_default_wbdepth
=8
7920 pci_hidd_target
="hidd-pci-linux"
7923 aros_target_cpu
="ppc"
7924 aros_object_format
="elf32ppc"
7925 aros_flavour
="emulation"
7926 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7927 aros_default_wbdepth
=8
7928 gcc_target_cpu
="ppc"
7931 # Same as powerpc, but I need this for the nightly build to work again.
7932 # Actually, the nightly should be made working with powerpc target.
7933 # That just was too much work for the moment, another week or two.
7935 aros_target_cpu
="ppc"
7936 aros_object_format
="elf32ppc"
7937 aros_flavour
="emulation"
7938 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7939 aros_default_wbdepth
=8
7940 gcc_target_cpu
="ppc"
7943 aros_target_cpu
="arm"
7945 aros_object_format
="armelf_aros"
7946 aros_flavour
="emulation"
7947 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7948 gcc_target_cpu
="arm"
7949 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7950 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7951 aros_arch_libs
="-laeabi"
7952 gcc_default_float_abi
="hard"
7953 android_tool_dir_prefix
="arm-linux-androideabi"
7954 android_tool_prefix
="arm-linux-androideabi"
7955 android_ndk_arch
="arm"
7956 kernel_tool_prefix
="arm-linux-gnueabihf-"
7959 aros_target_cpu
="arm"
7960 aros_object_format
="armelf_aros"
7961 aros_flavour
="emulation"
7962 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7963 gcc_target_cpu
="arm"
7964 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7965 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7966 aros_arch_libs
="-laeabi"
7967 android_tool_dir_prefix
="arm-linux-androideabi"
7968 android_tool_prefix
="arm-linux-androideabi"
7969 android_ndk_arch
="arm"
7970 kernel_tool_prefix
="arm-linux-gnueabi-"
7973 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7976 case "$aros_target_variant" in
7979 if test "$android_ndk_arch" = ""; then
7980 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7983 aros_default_wbwidth
=320
7984 aros_default_wbheight
=480
7985 if test "$aros_android_ndk" = "none"; then
7986 aros_kernel_cflags
="-mandroid"
7987 aros_kernel_ldflags
="-mandroid"
7990 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7991 kernel_tool_version
=""
7992 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7993 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7994 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7995 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7996 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7999 unixgfx_hidd_target
=kernel-hidd-androidgfx
8000 # Disable implicit PIC mode
8001 aros_target_cflags
="$aros_target_cflags -fno-pic"
8002 kernel_tool_prefix
="$android_tool_prefix-"
8008 aros_target_arch
="pc"
8009 aros_shared_default
="no"
8010 target_bootloader
="grub2"
8011 case "$target_cpu" in
8013 aros_target_cpu
="i386"
8016 if test "$aros_object_format" = "" ; then
8017 aros_object_format
="elf_i386"
8019 aros_flavour
="standalone"
8020 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8021 aros_kernel_ldflags
="-Wl,-melf_i386"
8022 aros_default_wbwidth
=640
8023 aros_default_wbheight
=480
8024 gcc_target_cpu
="i386"
8027 aros_target_cpu
="x86_64"
8029 if test "$aros_object_format" = "" ; then
8030 aros_object_format
="elf_x86_64"
8032 aros_flavour
="standalone"
8033 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8034 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8035 aros_kernel_ldflags
=""
8036 aros_default_wbwidth
=640
8037 aros_default_wbheight
=480
8040 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8046 aros_target_arch
="prep"
8047 aros_shared_default
="no"
8048 aros_target_cpu
="ppc"
8049 aros_object_format
="elf32ppc"
8050 aros_flavour
="ppcnative"
8051 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8052 aros_kernel_ldflags
=""
8053 aros_default_wbwidth
=640
8054 aros_default_wbheight
=480
8055 gcc_target_cpu
="ppc"
8059 aros_target_arch
="freebsd"
8060 aros_target_family
="unix"
8061 aros_target_cpu
="i386"
8062 aros_flavour
="emulation"
8063 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8064 gcc_target_cpu
="i386"
8066 aros_target_strip_flags
="-x"
8070 aros_target_arch
="darwin"
8071 aros_target_family
="unix"
8072 aros_flavour
="emulation"
8073 case "$target_cpu" in
8075 aros_ios_platform
="iPhoneSimulator"
8076 aros_target_cpu
="i386"
8077 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8078 aros_kernel_ldflags
=""
8079 aros_macosx_version
="10.4"
8080 aros_default_wbdepth
=8
8081 gcc_target_cpu
="i386"
8082 aros_object_format
="elf_i386"
8083 aros_kernel_ar_flags
="-cr"
8084 aros_target_strip_flags
="-x"
8085 kernel_tool_flags
="-m32"
8088 aros_target_cpu
="x86_64"
8089 aros_object_format
="elf_x86_64"
8090 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8091 aros_macosx_version
="10.6"
8092 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8093 aros_kernel_cflags
="-m64"
8094 aros_kernel_ldflags
="-m64"
8095 aros_target_cflags
="-mcmodel=large"
8096 aros_default_wbdepth
=8
8098 aros_kernel_ar_flags
="-cr"
8101 aros_kernel_ranlib
="ranlib"
8103 aros_kernel_strip
="strip"
8104 kernel_tool_prefix
="i686-apple-darwin10-"
8107 aros_target_cpu
="ppc"
8108 aros_object_format
="elf32ppc"
8109 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8110 aros_kernel_ldflags
=""
8111 aros_macosx_version
="10.0"
8112 aros_default_wbdepth
=8
8113 gcc_target_cpu
="ppc"
8115 aros_kernel_ar_flags
="-cr"
8116 aros_kernel_ld
="ld -arch ppc"
8117 aros_kernel_as
="as -arch ppc"
8118 aros_kernel_ranlib
="ranlib -arch ppc"
8119 aros_kernel_nm
="nm -arch ppc"
8120 aros_kernel_strip
="strip -arch ppc"
8121 kernel_tool_prefix
="powerpc-apple-darwin10-"
8124 aros_ios_platform
="iPhoneOS"
8125 aros_target_cpu
="arm"
8126 aros_object_format
="armelf_aros"
8127 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8128 aros_arch_libs
="-laeabi"
8129 aros_default_wbdepth
=8
8130 gcc_target_cpu
="arm"
8132 aros_kernel_ar_flags
="-cr"
8133 aros_kernel_ld
="ld -arch arm"
8134 aros_kernel_ranlib
="ranlib -arch arm"
8135 kernel_tool_prefix
="arm-apple-darwin10-"
8136 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8139 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8142 case "$aros_target_variant" in
8144 aros_ios_version
="3.0"
8145 aros_default_wbwidth
=320
8146 aros_default_wbheight
=480
8147 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8148 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8149 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8151 # This is here because it may depend on iOS or SDK version
8152 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8153 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8154 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8157 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8158 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8164 aros_target_arch
="dragonfly"
8165 aros_target_family
="unix"
8166 aros_flavour
="emulation"
8167 case "$target_cpu" in
8169 aros_target_cpu
="i386"
8170 aros_object_format
="elf_i386"
8171 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8174 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8175 aros_target_cpu
="x86_64"
8176 aros_object_format
="elf_x86_64"
8177 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8180 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8186 aros_target_arch
="netbsd"
8187 aros_target_family
="unix"
8188 case "$target_cpu" in
8190 aros_target_cpu
="m68k"
8191 aros_object_format
="m68kelf"
8192 aros_flavour
="emulcompat"
8193 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8194 gcc_target_cpu
="mc68000"
8197 aros_target_cpu
="i386"
8198 aros_object_format
="elf_i386"
8199 aros_flavour
="emulation"
8200 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8201 aros_default_wbdepth
=8
8202 gcc_target_cpu
="i386"
8205 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8208 aros_target_genmap
="-Wl,-M -Xlinker >"
8209 aros_flavour
="emulation"
8210 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8214 aros_target_arch
="openbsd"
8215 aros_target_family
="unix"
8216 case "$target_cpu" in
8218 aros_target_cpu
="i386"
8219 aros_object_format
="elf_i386"
8220 aros_flavour
="emulation"
8221 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8222 gcc_target_cpu
="i386"
8225 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8228 aros_target_genmap
="-Wl,-M -Xlinker >"
8229 aros_target_nm_flags
="-u"
8230 aros_flavour
="emulation"
8234 aros_target_arch
="solaris"
8235 aros_target_family
="unix"
8236 case "$target_cpu" in
8238 aros_target_cpu
="i386"
8239 aros_object_format
="elf_i386"
8240 aros_flavour
="emulation"
8241 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8242 aros_default_wbdepth
=8
8243 gcc_target_cpu
="i386"
8246 aros_target_cpu
="sparc"
8247 aros_object_format
="elf_sparc"
8248 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8249 gcc_target_cpu
="sparc"
8252 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8255 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8256 aros_flavour
="emulation"
8260 aros_target_arch
="morphos"
8261 aros_shared_default
="no"
8262 aros_target_cpu
="ppc"
8263 aros_object_format
="elf_ppc"
8264 aros_flavour
="nativecompat"
8265 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8266 gcc_target_cpu
="ppc"
8270 aros_target_arch
="sam440"
8271 aros_shared_default
="no"
8272 aros_target_cpu
="ppc"
8273 aros_object_format
="elf32ppc"
8274 aros_flavour
="ppcnative"
8275 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8276 aros_kernel_ldflags
=""
8277 aros_default_wbwidth
=1024
8278 aros_default_wbheight
=768
8279 aros_default_wbdepth
=24
8280 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8281 gcc_target_cpu
="powerpc"
8285 aros_target_arch
="efika"
8286 aros_shared_default
="no"
8287 aros_target_cpu
="arm"
8288 aros_object_format
="armelf_aros"
8289 aros_flavour
="standalone"
8290 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8291 aros_kernel_ldflags
=""
8292 aros_default_wbwidth
=1024
8293 aros_default_wbheight
=600
8294 aros_arch_libs
="-laeabi"
8295 gcc_default_cpu
="armv7-a"
8296 gcc_default_fpu
="vfpv3"
8297 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8298 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8299 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8300 case "$target_cpu" in
8302 gcc_default_float_abi
="hard"
8307 gcc_default_float_abi
="softfp"
8310 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8316 aros_target_arch
="chrp"
8317 aros_shared_default
="no"
8318 aros_target_cpu
="ppc"
8319 aros_object_format
="elf32ppc"
8320 aros_flavour
="ppcnative"
8321 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8322 aros_kernel_ldflags
=""
8323 aros_default_wbwidth
=640
8324 aros_default_wbheight
=480
8325 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8326 gcc_target_cpu
="powerpc"
8327 case "$aros_target_variant" in
8329 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8335 aros_flavour
="standalone"
8336 aros_target_arch
="raspi"
8337 aros_target_cpu
="arm"
8338 aros_object_format
="armelf_aros"
8339 aros_shared_default
="no"
8340 aros_arch_libs
="-laeabi"
8342 gcc_default_cpu
="armv6"
8343 gcc_default_cpu_tune
="arm1176jzf-s"
8345 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8346 aros_config_cflags
="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_config_aflags
="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8348 aros_kernel_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8349 aros_target_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8353 aros_flavour
="standalone"
8354 aros_target_arch
="sun4i"
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
="armv7-a"
8361 gcc_default_fpu
="neon"
8362 gcc_default_cpu_tune
="cortex-a8"
8363 gcc_default_float_abi
="hard"
8365 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8366 aros_optimization_cflags
=""
8367 aros_config_cflags
="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8368 aros_config_aflags
="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8372 aros_target_arch
="amiga"
8373 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8374 aros_shared_default
="no"
8376 case "$target_cpu" in
8378 # Check whether --enable-amigaos_compliance was given.
8379 if test "${enable_amigaos_compliance+set}" = set; then :
8380 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8384 aros_target_cpu
="m68k"
8385 aros_object_format
="m68kelf"
8386 aros_flavour
="standcompat"
8387 gcc_target_cpu
="m68000"
8388 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8389 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8390 aros_config_aflags
="$aros_config_aflags"
8391 aros_target_strip_flags
="-R.comment --strip-debug"
8392 aros_default_wbwidth
=640
8393 aros_default_wbheight
=256
8394 aros_default_wbdepth
=2
8398 aros_flavour
="native"
8399 gcc_target_cpu
="ppc"
8402 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8408 aros_target_arch
="mingw32"
8409 aros_shared_default
="no"
8410 aros_flavour
="emulation"
8411 aros_shared_cflags
=""
8412 need_crosstools
="yes"
8415 case "$target_cpu" in
8417 aros_target_cpu
="i386"
8418 aros_object_format
="elf_i386"
8419 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8420 aros_default_wbdepth
=8
8421 gcc_target_cpu
="i386"
8423 kernel_tool_prefix
="i386-mingw32-"
8426 aros_target_cpu
="x86_64"
8427 aros_object_format
="elf_x86_64"
8428 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8429 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8430 aros_default_wbdepth
=8
8431 kernel_tool_prefix
="x86_64-w64-mingw32-"
8434 aros_target_cpu
="arm"
8435 aros_object_format
="armelf_aros"
8436 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8437 aros_arch_libs
="-laeabi"
8438 aros_default_wbdepth
=8
8439 gcc_target_cpu
="arm"
8440 gcc_default_float_abi
="soft"
8441 kernel_tool_prefix
="arm-mingw32ce-"
8442 aros_default_wbwidth
=160
8443 aros_default_wbheight
=160
8446 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8449 if test $host_os = "cygwin"; then
8450 aros_kernel_cflags
="-mno-cygwin"
8454 aros_target_arch
="pp"
8455 aros_shared_default
="no"
8456 case "$target_cpu" in
8458 aros_target_cpu
="m68k"
8459 aros_object_format
="m68kelf"
8460 aros_flavour
="palmnative"
8461 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8462 aros_default_wbwidth
=160
8463 aros_default_wbheight
=160
8464 aros_default_wbdepth
=1
8465 aros_target_ar_flags
="cru"
8466 aros_compiler_libs
="-lgcc1"
8467 aros_shared_default
=no
8468 aros_shared_cflags
="-fpic"
8469 aros_shared_aflags
=""
8470 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8471 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8472 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8473 aros_debug_aflags
=""
8474 aros_debug_ldflags
="$aros_symbols_debug"
8475 aros_mungwall_debug
="0"
8476 aros_modules_debug
="0"
8477 gcc_target_cpu
="mc68000"
8478 ignore_undefined_symbols
="-ius"
8481 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8487 aros_target_arch
="mac"
8488 aros_shared_default
="no"
8489 case "$target_cpu" in
8491 aros_target_cpu
="m68k"
8492 aros_object_format
="m68kelf"
8493 aros_flavour
="mac68knative"
8494 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8495 aros_default_wbwidth
=512
8496 aros_default_wbheight
=384
8497 aros_default_wbdepth
=8
8498 aros_target_ar_flags
="cru"
8499 aros_compiler_libs
="-lgcc1"
8500 aros_shared_default
=no
8501 aros_shared_cflags
="-fpic"
8502 aros_shared_aflags
=""
8503 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8504 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8505 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8506 aros_debug_aflags
=""
8507 aros_debug_ldflags
="$aros_symbols_debug"
8508 aros_mungwall_debug
="0"
8509 aros_modules_debug
="0"
8510 gcc_target_cpu
="mc68000"
8511 ignore_undefined_symbols
="-ius"
8514 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8520 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8524 #-----------------------------------------------------------------------------
8525 crosstools_guess
="yes"
8526 aros_target_toolchain
="no"
8527 aros_config_sysroot
=""
8528 aros_kernel_sysroot
=""
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8531 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8533 # Check whether --with-kernel-toolchain-prefix was given.
8534 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8535 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8539 $as_echo "$kernel_tool_prefix" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8542 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8544 # Check whether --with-elf-toolchain-prefix was given.
8545 if test "${with_elf_toolchain_prefix+set}" = set; then :
8546 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8547 crosstools_guess
="no"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8551 $as_echo "$elf_tool_prefix" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8554 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8556 # Check whether --with-aros-toolchain was given.
8557 if test "${with_aros_toolchain+set}" = set; then :
8558 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8559 crosstools_guess
="no"
8562 if test "$aros_tool_prefix" = "yes" ; then
8563 aros_tool_prefix
=$aros_target_cpu-aros-
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8566 $as_echo "$aros_tool_prefix" >&6; }
8568 #-----------------------------------------------------------------------------
8569 # Checking if we should build crosstools..
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8571 $as_echo_n "checking whether to build crosstools... " >&6; }
8572 # Check whether --enable-crosstools was given.
8573 if test "${enable_crosstools+set}" = set; then :
8574 enableval
=$enable_crosstools; crosstools
="$enableval"
8576 crosstools
="$crosstools_guess"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8580 $as_echo "$crosstools" >&6; }
8582 if test "${crosstools}" = "yes"; then
8583 if test "${crosstools_guess}" = "no"; then
8584 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8588 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8589 aros_target_toolchain
="yes"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8593 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8595 # Check whether --with-aros-toolchain-install was given.
8596 if test "${with_aros_toolchain_install+set}" = set; then :
8597 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8600 if test "x$aros_toolchain_install" = "x"; then
8601 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8603 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8604 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8605 if test "$crosstools_guess" = "no" ; then
8606 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8608 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8609 aros_kernel_sysroot
= $aros_config_sysroot
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8614 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8616 #-----------------------------------------------------------------------------
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8618 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8620 # Check whether --with-binutils-version was given.
8621 if test "${with_binutils_version+set}" = set; then :
8622 withval
=$with_binutils_version; use_binutils_version
="$withval"
8624 use_binutils_version
=""
8627 if test "$use_binutils_version" = ""; then
8628 target_binutils_version
="$default_binutils_version"
8630 target_binutils_version
="$use_binutils_version"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8633 $as_echo "$target_binutils_version" >&6; }
8636 # Helper to identify gcc version
8639 #-----------------------------------------------------------------------------
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8641 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8643 # Check whether --with-gcc-version was given.
8644 if test "${with_gcc_version+set}" = set; then :
8645 withval
=$with_gcc_version; use_gcc_version
="$withval"
8650 if test "$use_gcc_version" = ""; then
8651 if test "${crosstools}" = "no"; then
8652 if test "x$aros_toolchain_install" != "x"; then
8654 target_gcc_version
=""
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8656 $as_echo_n "checking gcc version... " >&6; }
8657 if ${ax_cv_gcc_version+:} false
; then :
8658 $as_echo_n "(cached) " >&6
8661 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8662 if test "x$ax_cv_gcc_version" = "x"; then :
8664 ax_cv_gcc_version
=""
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8670 $as_echo "$ax_cv_gcc_version" >&6; }
8671 target_gcc_version
=$ax_cv_gcc_version
8676 if test "$use_gcc_version" = ""; then
8677 target_gcc_version
="$default_gcc_version"
8680 target_gcc_version
="$use_gcc_version"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8683 $as_echo "$target_gcc_version" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8686 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8687 # Check whether --enable-objc was given.
8688 if test "${enable_objc+set}" = set; then :
8689 enableval
=$enable_objc; objc
="$enableval"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8695 $as_echo "$objc" >&6; }
8696 if test "x$objc" = "xyes"; then
8699 objc_target
="no-objc"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8703 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8704 # Check whether --enable-java was given.
8705 if test "${enable_java+set}" = set; then :
8706 enableval
=$enable_java; java
="$enableval"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8712 $as_echo "$java" >&6; }
8713 if test "x$java" != "xno"; then
8716 java_target
="no-java"
8719 spec_obj_format
="-m $aros_object_format"
8720 # Now process extra architecture-specific options.
8721 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8722 # as well as floating-point ABI.
8723 case "$aros_target_cpu" in
8725 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8728 if test "$gcc_default_cpu" = ""; then
8729 gcc_default_cpu
="armv6"
8731 if test "$gcc_default_fpu" = ""; then
8732 gcc_default_fpu
="vfp"
8734 if test "$gcc_default_float_abi" = ""; then
8735 if test "$target_cpu" = "armhf"; then
8736 gcc_default_float_abi
="hard"
8738 gcc_default_float_abi
="softfp"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8743 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8745 # Check whether --with-cpu was given.
8746 if test "${with_cpu+set}" = set; then :
8747 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8749 aros_gcc_cpu
=$gcc_default_cpu
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8753 $as_echo "$aros_gcc_cpu" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8756 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8758 # Check whether --with-fpu was given.
8759 if test "${with_fpu+set}" = set; then :
8760 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8762 aros_gcc_fpu
=$gcc_default_fpu
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8766 $as_echo "$aros_gcc_fpu" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8769 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8771 # Check whether --with-float was given.
8772 if test "${with_float+set}" = set; then :
8773 withval
=$with_float; aros_gcc_float_abi
="$withval"
8775 aros_gcc_float_abi
=$gcc_default_float_abi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8779 $as_echo "$aros_gcc_float_abi" >&6; }
8781 aros_isa_flags
="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8782 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8783 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8786 aros_isa_flags
="-m32 -march=i486"
8787 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
8788 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
8792 # Some architectures may need custom ELF specs.
8793 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
8794 elf_specs_in
=config
/${aros_object_format}-specs.
in
8796 elf_specs_in
=config
/elf-specs.
in
8799 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8800 # Since we override specs, we may need to put these defines there
8801 if test "$gcc_target_cpu" != ""; then
8802 gcc_target_cpu
="-D__${gcc_target_cpu}__"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8806 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8808 # Check whether --with-portssources was given.
8809 if test "${with_portssources+set}" = set; then :
8810 withval
=$with_portssources; with_portssrcdir
=$withval
8812 with_portssrcdir
="default"
8815 if test "$with_portssrcdir" = "default"; then
8816 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
8818 AROS_PORTSSRCDIR
="$with_portssrcdir"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8821 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8824 $as_echo_n "checking which bootloader to use... " >&6; }
8826 # Check whether --with-bootloader was given.
8827 if test "${with_bootloader+set}" = set; then :
8828 withval
=$with_bootloader; target_bootloader
=$withval
8830 target_bootloader
=$target_bootloader
8833 if test "$target_bootloader" = "none"; then
8834 aros_target_bootloader
=""
8836 aros_target_bootloader
="$target_bootloader"
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8839 $as_echo "$target_bootloader" >&6; }
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8842 $as_echo_n "checking which icon-set to use... " >&6; }
8844 # Check whether --with-iconset was given.
8845 if test "${with_iconset+set}" = set; then :
8846 withval
=$with_iconset; target_iconset
=$withval
8848 target_iconset
="default"
8851 if test "$target_iconset" = "default"; then
8852 aros_target_iconset
="Gorilla"
8853 target_iconset
="default (Gorilla)"
8855 aros_target_iconset
="$target_iconset"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8858 $as_echo "$target_iconset" >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8861 $as_echo_n "checking which GUI Theme to use... " >&6; }
8863 # Check whether --with-theme was given.
8864 if test "${with_theme+set}" = set; then :
8865 withval
=$with_theme; target_guitheme
=$withval
8867 target_guitheme
="default"
8870 if test "$target_guitheme" = "default"; then
8871 aros_target_guitheme
="Ice"
8873 aros_target_guitheme
="$target_guitheme"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8876 $as_echo "$aros_target_guitheme" >&6; }
8878 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8882 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8886 if test "$aros_host_cpu" == "x86_64" ; then
8887 if test "$aros_target_cpu" == "i386" ; then
8892 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8893 if test "$aros_host_arch" != "$aros_target_arch" ; then
8897 if test "$host_cc_elf" = "no" ; then
8902 if test "$cross_compiling" = "no" ; then
8903 kernel_tool_prefix
=""
8904 if test "$host_cc_elf" = "yes" ; then
8909 if test "$kernel_tool_version" != ""; then
8910 kernel_tool_version
="-$kernel_tool_version"
8913 #######################################################################
8914 ## Compute what toolchains to use, and their paths ##
8915 #######################################################################
8917 # This takes, as input:
8918 # crosstools {yes,no}
8919 # kernel_tool_version {"",[version]}
8920 # target_tool_version {"",[version]}
8921 # kernel_tool_prefix {none,[some-arch-os-]}
8922 # target_tool_prefix ${aros_target_cpu}-aros-
8923 # aros_tool_prefix ${aros_target_cpu}-aros-
8926 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8927 # Where the 'kernel' binaries are located
8928 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8929 # Where the 'target' binaries are located
8930 # (not the symlink farm - that is aros_target_*!)
8933 # if crosstools then
8934 # if kernel_tools_prefix = "no-kernel-prefix-"
8935 # aros_kernel_* = crosstools cc paths
8936 # aros_kernel_cc = elf cc wrapper around crosstools cc
8938 # VALIDATE(${kernel_tools_prefix}*)
8939 # aros_kernel_* = ${kernel_tools_prefix}*
8940 # if ${kernel_tools_prefix}cc is an AROS gcc
8941 # aros_kernel_cc = ${kernel_tools_prefix}cc
8943 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8947 # orig_target_* = aros built crosstools
8948 # orig_target_cc = elf cc wrapper around crosstools cc
8950 # VALIDATE(${kernel_tools_prefix}*)
8952 # orig_target_* = aros_kernel_*
8953 # if aros_kernel_cc is an AROS gcc
8954 # orig_target_cc = aros_kernel_cc
8956 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8960 target_tool_prefix
="${aros_target_cpu}-aros-"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8963 $as_echo_n "checking which kernel tools... " >&6; }
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8965 $as_echo "$kernel_tool_prefix" >&6; };
8967 if test "$kernel_tool_prefix" = "none" ; then
8968 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8969 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8972 # Kernel tools required - find them
8973 # Note that 'normally', aros_kernel_* overrides will be
8974 # empty, unless specified in the per-arch sections above.
8975 if test "x$aros_kernel_cpp" = "x"; then
8976 aros_kernel_cpp
=${kernel_tool_prefix}cpp
8979 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8980 if test "$cross_compiling" = "yes" ; then
8981 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8982 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8986 $as_echo_n "(cached) " >&6
8988 case $aros_kernel_cpp in
8990 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8997 test -z "$as_dir" && as_dir
=.
8998 for ac_exec_ext
in '' $ac_executable_extensions; do
8999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9012 if test -n "$aros_kernel_cpp"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9014 $as_echo "$aros_kernel_cpp" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9022 if test "$GCC" = "yes"; then
9023 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9024 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9025 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9029 $as_echo_n "(cached) " >&6
9031 case $aros_kernel_cpp in
9033 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9037 for as_dir
in `dirname $aros_gcc_cpp`
9040 test -z "$as_dir" && as_dir
=.
9041 for ac_exec_ext
in '' $ac_executable_extensions; do
9042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9043 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9055 if test -n "$aros_kernel_cpp"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9057 $as_echo "$aros_kernel_cpp" >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9065 if test "$aros_kernel_cpp" = ""; then
9066 # Extract the first word of "cpp", so it can be a program name with args.
9067 set dummy cpp
; ac_word
=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 case $aros_kernel_cpp in
9075 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir
=.
9083 for ac_exec_ext
in '' $ac_executable_extensions; do
9084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9085 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9097 if test -n "$aros_kernel_cpp"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9099 $as_echo "$aros_kernel_cpp" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9109 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9110 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 case $aros_kernel_cpp in
9118 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9125 test -z "$as_dir" && as_dir
=.
9126 for ac_exec_ext
in '' $ac_executable_extensions; do
9127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9140 if test -n "$aros_kernel_cpp"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9142 $as_echo "$aros_kernel_cpp" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9151 if test "$aros_kernel_cpp" = ""; then
9152 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9154 if test "x$aros_kernel_cc" = "x"; then
9155 aros_kernel_cc
=${kernel_tool_prefix}gcc
9158 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9159 if test "$cross_compiling" = "yes" ; then
9160 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9161 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9165 $as_echo_n "(cached) " >&6
9167 case $aros_kernel_cc in
9169 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9176 test -z "$as_dir" && as_dir
=.
9177 for ac_exec_ext
in '' $ac_executable_extensions; do
9178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9179 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9191 if test -n "$aros_kernel_cc"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9193 $as_echo "$aros_kernel_cc" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9201 if test "$GCC" = "yes"; then
9202 aros_gcc_cc
=`$CC -print-prog-name=cc`
9203 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9204 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9208 $as_echo_n "(cached) " >&6
9210 case $aros_kernel_cc in
9212 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9216 for as_dir
in `dirname $aros_gcc_cc`
9219 test -z "$as_dir" && as_dir
=.
9220 for ac_exec_ext
in '' $ac_executable_extensions; do
9221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9222 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9234 if test -n "$aros_kernel_cc"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9236 $as_echo "$aros_kernel_cc" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9244 if test "$aros_kernel_cc" = ""; then
9245 # Extract the first word of "cc", so it can be a program name with args.
9246 set dummy cc
; ac_word
=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9250 $as_echo_n "(cached) " >&6
9252 case $aros_kernel_cc in
9254 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9261 test -z "$as_dir" && as_dir
=.
9262 for ac_exec_ext
in '' $ac_executable_extensions; do
9263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9264 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9276 if test -n "$aros_kernel_cc"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9278 $as_echo "$aros_kernel_cc" >&6; }
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9288 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9289 set dummy
$aros_kernel_cc${kernel_tool_version}; ac_word
=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; }
9292 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9293 $as_echo_n "(cached) " >&6
9295 case $aros_kernel_cc in
9297 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9304 test -z "$as_dir" && as_dir
=.
9305 for ac_exec_ext
in '' $ac_executable_extensions; do
9306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9319 if test -n "$aros_kernel_cc"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9321 $as_echo "$aros_kernel_cc" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9330 if test "$aros_kernel_cc" = ""; then
9331 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9333 if test "x$aros_kernel_cxx" = "x"; then
9334 aros_kernel_cxx
=${kernel_tool_prefix}g
++
9337 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9338 if test "$cross_compiling" = "yes" ; then
9339 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9340 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9344 $as_echo_n "(cached) " >&6
9346 case $aros_kernel_cxx in
9348 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9355 test -z "$as_dir" && as_dir
=.
9356 for ac_exec_ext
in '' $ac_executable_extensions; do
9357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9370 if test -n "$aros_kernel_cxx"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9372 $as_echo "$aros_kernel_cxx" >&6; }
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9380 if test "$GCC" = "yes"; then
9381 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9382 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9383 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9387 $as_echo_n "(cached) " >&6
9389 case $aros_kernel_cxx in
9391 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9395 for as_dir
in `dirname $aros_gcc_cxx`
9398 test -z "$as_dir" && as_dir
=.
9399 for ac_exec_ext
in '' $ac_executable_extensions; do
9400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9401 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9413 if test -n "$aros_kernel_cxx"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9415 $as_echo "$aros_kernel_cxx" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9423 if test "$aros_kernel_cxx" = ""; then
9424 # Extract the first word of "cxx", so it can be a program name with args.
9425 set dummy cxx
; ac_word
=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9429 $as_echo_n "(cached) " >&6
9431 case $aros_kernel_cxx in
9433 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9440 test -z "$as_dir" && as_dir
=.
9441 for ac_exec_ext
in '' $ac_executable_extensions; do
9442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9443 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9455 if test -n "$aros_kernel_cxx"; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9457 $as_echo "$aros_kernel_cxx" >&6; }
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9467 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9468 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9472 $as_echo_n "(cached) " >&6
9474 case $aros_kernel_cxx in
9476 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9483 test -z "$as_dir" && as_dir
=.
9484 for ac_exec_ext
in '' $ac_executable_extensions; do
9485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9486 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9498 if test -n "$aros_kernel_cxx"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9500 $as_echo "$aros_kernel_cxx" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9509 # If it's set, make sure it's really there
9510 if test "x$aros_kernel_cxx" != "x" ; then
9511 if test "$aros_kernel_cxx" = ""; then
9512 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9516 if test "$aros_kernel_ld" = ""; then
9517 if test "$cross_compiling" = "yes" ; then
9518 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9519 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9523 $as_echo_n "(cached) " >&6
9525 case $aros_kernel_ld in
9527 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir
=.
9535 for ac_exec_ext
in '' $ac_executable_extensions; do
9536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9549 if test -n "$aros_kernel_ld"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9551 $as_echo "$aros_kernel_ld" >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9559 if test "$GCC" = "yes"; then
9560 aros_gcc_ld
=`$CC -print-prog-name=ld`
9561 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9562 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9566 $as_echo_n "(cached) " >&6
9568 case $aros_kernel_ld in
9570 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9574 for as_dir
in `dirname $aros_gcc_ld`
9577 test -z "$as_dir" && as_dir
=.
9578 for ac_exec_ext
in '' $ac_executable_extensions; do
9579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9592 if test -n "$aros_kernel_ld"; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9594 $as_echo "$aros_kernel_ld" >&6; }
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9602 if test "$aros_kernel_ld" = ""; then
9603 # Extract the first word of "ld", so it can be a program name with args.
9604 set dummy ld
; ac_word
=$2
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606 $as_echo_n "checking for $ac_word... " >&6; }
9607 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9608 $as_echo_n "(cached) " >&6
9610 case $aros_kernel_ld in
9612 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9619 test -z "$as_dir" && as_dir
=.
9620 for ac_exec_ext
in '' $ac_executable_extensions; do
9621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9622 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9634 if test -n "$aros_kernel_ld"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9636 $as_echo "$aros_kernel_ld" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9646 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9647 set dummy
$aros_kernel_ld; ac_word
=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9651 $as_echo_n "(cached) " >&6
9653 case $aros_kernel_ld in
9655 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9662 test -z "$as_dir" && as_dir
=.
9663 for ac_exec_ext
in '' $ac_executable_extensions; do
9664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9665 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9677 if test -n "$aros_kernel_ld"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9679 $as_echo "$aros_kernel_ld" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9688 if test "$aros_kernel_ld" = ""; then
9689 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9692 if test "$aros_kernel_as" = ""; then
9693 if test "$cross_compiling" = "yes" ; then
9694 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9695 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697 $as_echo_n "checking for $ac_word... " >&6; }
9698 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9699 $as_echo_n "(cached) " >&6
9701 case $aros_kernel_as in
9703 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9710 test -z "$as_dir" && as_dir
=.
9711 for ac_exec_ext
in '' $ac_executable_extensions; do
9712 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9713 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9725 if test -n "$aros_kernel_as"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9727 $as_echo "$aros_kernel_as" >&6; }
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 $as_echo "no" >&6; }
9735 if test "$GCC" = "yes"; then
9736 aros_gcc_as
=`$CC -print-prog-name=as`
9737 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9738 set dummy
`basename $aros_gcc_as`; ac_word
=$2
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740 $as_echo_n "checking for $ac_word... " >&6; }
9741 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9742 $as_echo_n "(cached) " >&6
9744 case $aros_kernel_as in
9746 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9750 for as_dir
in `dirname $aros_gcc_as`
9753 test -z "$as_dir" && as_dir
=.
9754 for ac_exec_ext
in '' $ac_executable_extensions; do
9755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9756 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9768 if test -n "$aros_kernel_as"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9770 $as_echo "$aros_kernel_as" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9778 if test "$aros_kernel_as" = ""; then
9779 # Extract the first word of "as", so it can be a program name with args.
9780 set dummy as
; ac_word
=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9784 $as_echo_n "(cached) " >&6
9786 case $aros_kernel_as in
9788 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9795 test -z "$as_dir" && as_dir
=.
9796 for ac_exec_ext
in '' $ac_executable_extensions; do
9797 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9810 if test -n "$aros_kernel_as"; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9812 $as_echo "$aros_kernel_as" >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9822 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9823 set dummy
$aros_kernel_as; ac_word
=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9829 case $aros_kernel_as in
9831 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir
=.
9839 for ac_exec_ext
in '' $ac_executable_extensions; do
9840 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9853 if test -n "$aros_kernel_as"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9855 $as_echo "$aros_kernel_as" >&6; }
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9864 if test "$aros_kernel_as" = ""; then
9865 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
9868 if test "$aros_kernel_ar" = ""; then
9869 if test "$cross_compiling" = "yes" ; then
9870 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9871 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9875 $as_echo_n "(cached) " >&6
9877 case $aros_kernel_ar in
9879 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir
=.
9887 for ac_exec_ext
in '' $ac_executable_extensions; do
9888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9901 if test -n "$aros_kernel_ar"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9903 $as_echo "$aros_kernel_ar" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9911 if test "$GCC" = "yes"; then
9912 aros_gcc_ar
=`$CC -print-prog-name=ar`
9913 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9914 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9918 $as_echo_n "(cached) " >&6
9920 case $aros_kernel_ar in
9922 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9926 for as_dir
in `dirname $aros_gcc_ar`
9929 test -z "$as_dir" && as_dir
=.
9930 for ac_exec_ext
in '' $ac_executable_extensions; do
9931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9944 if test -n "$aros_kernel_ar"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9946 $as_echo "$aros_kernel_ar" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test "$aros_kernel_ar" = ""; then
9955 # Extract the first word of "ar", so it can be a program name with args.
9956 set dummy
ar; ac_word
=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9960 $as_echo_n "(cached) " >&6
9962 case $aros_kernel_ar in
9964 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9971 test -z "$as_dir" && as_dir
=.
9972 for ac_exec_ext
in '' $ac_executable_extensions; do
9973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9986 if test -n "$aros_kernel_ar"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9988 $as_echo "$aros_kernel_ar" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9998 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9999 set dummy
$aros_kernel_ar; ac_word
=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10003 $as_echo_n "(cached) " >&6
10005 case $aros_kernel_ar in
10007 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10011 for as_dir
in $PATH
10014 test -z "$as_dir" && as_dir
=.
10015 for ac_exec_ext
in '' $ac_executable_extensions; do
10016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10029 if test -n "$aros_kernel_ar"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10031 $as_echo "$aros_kernel_ar" >&6; }
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10040 if test "$aros_kernel_ar" = ""; then
10041 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10044 if test "$aros_kernel_ranlib" = ""; then
10045 if test "$cross_compiling" = "yes" ; then
10046 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10047 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10051 $as_echo_n "(cached) " >&6
10053 case $aros_kernel_ranlib in
10055 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10059 for as_dir
in $PATH
10062 test -z "$as_dir" && as_dir
=.
10063 for ac_exec_ext
in '' $ac_executable_extensions; do
10064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10077 if test -n "$aros_kernel_ranlib"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10079 $as_echo "$aros_kernel_ranlib" >&6; }
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10087 if test "$GCC" = "yes"; then
10088 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10089 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10090 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10094 $as_echo_n "(cached) " >&6
10096 case $aros_kernel_ranlib in
10098 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10102 for as_dir
in `dirname $aros_gcc_ranlib`
10105 test -z "$as_dir" && as_dir
=.
10106 for ac_exec_ext
in '' $ac_executable_extensions; do
10107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10108 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10120 if test -n "$aros_kernel_ranlib"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10122 $as_echo "$aros_kernel_ranlib" >&6; }
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10130 if test "$aros_kernel_ranlib" = ""; then
10131 # Extract the first word of "ranlib", so it can be a program name with args.
10132 set dummy ranlib
; ac_word
=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10136 $as_echo_n "(cached) " >&6
10138 case $aros_kernel_ranlib in
10140 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10144 for as_dir
in $PATH
10147 test -z "$as_dir" && as_dir
=.
10148 for ac_exec_ext
in '' $ac_executable_extensions; do
10149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10162 if test -n "$aros_kernel_ranlib"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10164 $as_echo "$aros_kernel_ranlib" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10174 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10175 set dummy
$aros_kernel_ranlib; ac_word
=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10179 $as_echo_n "(cached) " >&6
10181 case $aros_kernel_ranlib in
10183 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10187 for as_dir
in $PATH
10190 test -z "$as_dir" && as_dir
=.
10191 for ac_exec_ext
in '' $ac_executable_extensions; do
10192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10205 if test -n "$aros_kernel_ranlib"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10207 $as_echo "$aros_kernel_ranlib" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10216 if test "$aros_kernel_ranlib" = ""; then
10217 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10220 if test "$aros_kernel_nm" = ""; then
10221 if test "$cross_compiling" = "yes" ; then
10222 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10223 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 $as_echo_n "checking for $ac_word... " >&6; }
10226 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10227 $as_echo_n "(cached) " >&6
10229 case $aros_kernel_nm in
10231 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10235 for as_dir
in $PATH
10238 test -z "$as_dir" && as_dir
=.
10239 for ac_exec_ext
in '' $ac_executable_extensions; do
10240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10241 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10253 if test -n "$aros_kernel_nm"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10255 $as_echo "$aros_kernel_nm" >&6; }
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10263 if test "$GCC" = "yes"; then
10264 aros_gcc_nm
=`$CC -print-prog-name=nm`
10265 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10266 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10270 $as_echo_n "(cached) " >&6
10272 case $aros_kernel_nm in
10274 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10278 for as_dir
in `dirname $aros_gcc_nm`
10281 test -z "$as_dir" && as_dir
=.
10282 for ac_exec_ext
in '' $ac_executable_extensions; do
10283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10284 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10296 if test -n "$aros_kernel_nm"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10298 $as_echo "$aros_kernel_nm" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10306 if test "$aros_kernel_nm" = ""; then
10307 # Extract the first word of "nm", so it can be a program name with args.
10308 set dummy nm
; ac_word
=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10312 $as_echo_n "(cached) " >&6
10314 case $aros_kernel_nm in
10316 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10320 for as_dir
in $PATH
10323 test -z "$as_dir" && as_dir
=.
10324 for ac_exec_ext
in '' $ac_executable_extensions; do
10325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10326 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10338 if test -n "$aros_kernel_nm"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10340 $as_echo "$aros_kernel_nm" >&6; }
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10350 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10351 set dummy
$aros_kernel_nm; ac_word
=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10355 $as_echo_n "(cached) " >&6
10357 case $aros_kernel_nm in
10359 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10363 for as_dir
in $PATH
10366 test -z "$as_dir" && as_dir
=.
10367 for ac_exec_ext
in '' $ac_executable_extensions; do
10368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10381 if test -n "$aros_kernel_nm"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10383 $as_echo "$aros_kernel_nm" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10392 if test "$aros_kernel_nm" = ""; then
10393 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10396 if test "$aros_kernel_strip" = ""; then
10397 if test "$cross_compiling" = "yes" ; then
10398 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10399 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10403 $as_echo_n "(cached) " >&6
10405 case $aros_kernel_strip in
10407 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10411 for as_dir
in $PATH
10414 test -z "$as_dir" && as_dir
=.
10415 for ac_exec_ext
in '' $ac_executable_extensions; do
10416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10429 if test -n "$aros_kernel_strip"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10431 $as_echo "$aros_kernel_strip" >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10439 if test "$GCC" = "yes"; then
10440 aros_gcc_strip
=`$CC -print-prog-name=strip`
10441 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10442 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10446 $as_echo_n "(cached) " >&6
10448 case $aros_kernel_strip in
10450 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10454 for as_dir
in `dirname $aros_gcc_strip`
10457 test -z "$as_dir" && as_dir
=.
10458 for ac_exec_ext
in '' $ac_executable_extensions; do
10459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10472 if test -n "$aros_kernel_strip"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10474 $as_echo "$aros_kernel_strip" >&6; }
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10482 if test "$aros_kernel_strip" = ""; then
10483 # Extract the first word of "strip", so it can be a program name with args.
10484 set dummy strip
; ac_word
=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10488 $as_echo_n "(cached) " >&6
10490 case $aros_kernel_strip in
10492 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10496 for as_dir
in $PATH
10499 test -z "$as_dir" && as_dir
=.
10500 for ac_exec_ext
in '' $ac_executable_extensions; do
10501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10502 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10514 if test -n "$aros_kernel_strip"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10516 $as_echo "$aros_kernel_strip" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10526 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10527 set dummy
$aros_kernel_strip; ac_word
=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10531 $as_echo_n "(cached) " >&6
10533 case $aros_kernel_strip in
10535 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10539 for as_dir
in $PATH
10542 test -z "$as_dir" && as_dir
=.
10543 for ac_exec_ext
in '' $ac_executable_extensions; do
10544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10557 if test -n "$aros_kernel_strip"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10559 $as_echo "$aros_kernel_strip" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10568 if test "$aros_kernel_strip" = ""; then
10569 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10572 # Objcopy and objdump are not required for the kernel
10573 # toolchain on many architectures.
10574 # So we'll look for them, but not make them strictly required.
10576 if test "$aros_kernel_objcopy" = ""; then
10577 if test "$cross_compiling" = "yes" ; then
10578 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10579 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10583 $as_echo_n "(cached) " >&6
10585 case $aros_kernel_objcopy in
10587 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10591 for as_dir
in $PATH
10594 test -z "$as_dir" && as_dir
=.
10595 for ac_exec_ext
in '' $ac_executable_extensions; do
10596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10609 if test -n "$aros_kernel_objcopy"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10611 $as_echo "$aros_kernel_objcopy" >&6; }
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10619 if test "$GCC" = "yes"; then
10620 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10621 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10622 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10626 $as_echo_n "(cached) " >&6
10628 case $aros_kernel_objcopy in
10630 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10634 for as_dir
in `dirname $aros_gcc_objcopy`
10637 test -z "$as_dir" && as_dir
=.
10638 for ac_exec_ext
in '' $ac_executable_extensions; do
10639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10652 if test -n "$aros_kernel_objcopy"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10654 $as_echo "$aros_kernel_objcopy" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test "$aros_kernel_objcopy" = ""; then
10663 # Extract the first word of "objcopy", so it can be a program name with args.
10664 set dummy objcopy
; ac_word
=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10668 $as_echo_n "(cached) " >&6
10670 case $aros_kernel_objcopy in
10672 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10676 for as_dir
in $PATH
10679 test -z "$as_dir" && as_dir
=.
10680 for ac_exec_ext
in '' $ac_executable_extensions; do
10681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10682 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10694 if test -n "$aros_kernel_objcopy"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10696 $as_echo "$aros_kernel_objcopy" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10706 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10707 set dummy
$aros_kernel_objcopy; ac_word
=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10711 $as_echo_n "(cached) " >&6
10713 case $aros_kernel_objcopy in
10715 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10719 for as_dir
in $PATH
10722 test -z "$as_dir" && as_dir
=.
10723 for ac_exec_ext
in '' $ac_executable_extensions; do
10724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10737 if test -n "$aros_kernel_objcopy"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10739 $as_echo "$aros_kernel_objcopy" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10749 if test "$aros_kernel_objdump" = ""; then
10750 if test "$cross_compiling" = "yes" ; then
10751 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10752 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10756 $as_echo_n "(cached) " >&6
10758 case $aros_kernel_objdump in
10760 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10764 for as_dir
in $PATH
10767 test -z "$as_dir" && as_dir
=.
10768 for ac_exec_ext
in '' $ac_executable_extensions; do
10769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10782 if test -n "$aros_kernel_objdump"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10784 $as_echo "$aros_kernel_objdump" >&6; }
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10792 if test "$GCC" = "yes"; then
10793 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
10794 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10795 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10799 $as_echo_n "(cached) " >&6
10801 case $aros_kernel_objdump in
10803 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10807 for as_dir
in `dirname $aros_gcc_objdump`
10810 test -z "$as_dir" && as_dir
=.
10811 for ac_exec_ext
in '' $ac_executable_extensions; do
10812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10813 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10825 if test -n "$aros_kernel_objdump"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10827 $as_echo "$aros_kernel_objdump" >&6; }
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10835 if test "$aros_kernel_objdump" = ""; then
10836 # Extract the first word of "objdump", so it can be a program name with args.
10837 set dummy objdump
; ac_word
=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10841 $as_echo_n "(cached) " >&6
10843 case $aros_kernel_objdump in
10845 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10849 for as_dir
in $PATH
10852 test -z "$as_dir" && as_dir
=.
10853 for ac_exec_ext
in '' $ac_executable_extensions; do
10854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10855 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10867 if test -n "$aros_kernel_objdump"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10869 $as_echo "$aros_kernel_objdump" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10879 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10880 set dummy
$aros_kernel_objdump; ac_word
=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10884 $as_echo_n "(cached) " >&6
10886 case $aros_kernel_objdump in
10888 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10892 for as_dir
in $PATH
10895 test -z "$as_dir" && as_dir
=.
10896 for ac_exec_ext
in '' $ac_executable_extensions; do
10897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10910 if test -n "$aros_kernel_objdump"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10912 $as_echo "$aros_kernel_objdump" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10921 if test "x${crosstools}" != "xyes" ; then
10922 if test "$aros_kernel_objcopy" = ""; then
10923 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10925 if test "$aros_kernel_objdump" = ""; then
10926 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10932 $as_echo_n "checking which target tools to use... " >&6; }
10933 if test "$aros_target_toolchain" = "yes"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10935 $as_echo "$target_tool_prefix" >&6; }
10936 # We are building AROS crosstools
10937 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10938 orig_target_cc
="${tmp_tool_prefix}gcc${target_tool_version}"
10939 orig_target_cxx
="${tmp_tool_prefix}g++${target_tool_version}"
10940 orig_target_cpp
="${tmp_tool_prefix}cpp"
10941 orig_target_ld
="${tmp_tool_prefix}ld"
10942 orig_target_as
="${tmp_tool_prefix}as"
10943 orig_target_ar
="${tmp_tool_prefix}ar"
10944 orig_target_ranlib
="${tmp_tool_prefix}ranlib"
10945 orig_target_nm
="${tmp_tool_prefix}nm"
10946 orig_target_strip
="${tmp_tool_prefix}strip"
10947 orig_target_objcopy
="${tmp_tool_prefix}objcopy"
10948 orig_target_objdump
="${tmp_tool_prefix}objdump"
10950 # Determine whether AROS or ELF tools should be used
10951 if test "$aros_tool_prefix" = "none"; then
10952 aros_tool_prefix
="${elf_tool_prefix}"
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10956 $as_echo "$aros_tool_prefix" >&6; }
10957 # We are *not* building AROS crosstools - use the AROS or ELF tools
10959 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10960 if test "$cross_compiling" = "yes" ; then
10961 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10962 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if ${ac_cv_path_orig_target_cpp+:} false
; then :
10966 $as_echo_n "(cached) " >&6
10968 case $orig_target_cpp in
10970 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
10973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10974 for as_dir
in $PATH
10977 test -z "$as_dir" && as_dir
=.
10978 for ac_exec_ext
in '' $ac_executable_extensions; do
10979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 orig_target_cpp
=$ac_cv_path_orig_target_cpp
10992 if test -n "$orig_target_cpp"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10994 $as_echo "$orig_target_cpp" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11002 if test "$GCC" = "yes"; then
11003 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11004 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11005 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11009 $as_echo_n "(cached) " >&6
11011 case $orig_target_cpp in
11013 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11017 for as_dir
in `dirname $aros_gcc_cpp`
11020 test -z "$as_dir" && as_dir
=.
11021 for ac_exec_ext
in '' $ac_executable_extensions; do
11022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11023 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11035 if test -n "$orig_target_cpp"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11037 $as_echo "$orig_target_cpp" >&6; }
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11045 if test "$orig_target_cpp" = ""; then
11046 # Extract the first word of "cpp", so it can be a program name with args.
11047 set dummy cpp
; ac_word
=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11051 $as_echo_n "(cached) " >&6
11053 case $orig_target_cpp in
11055 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11059 for as_dir
in $PATH
11062 test -z "$as_dir" && as_dir
=.
11063 for ac_exec_ext
in '' $ac_executable_extensions; do
11064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11077 if test -n "$orig_target_cpp"; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11079 $as_echo "$orig_target_cpp" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11089 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11090 set dummy
${aros_tool_prefix}cpp
${target_tool_version}; ac_word
=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11094 $as_echo_n "(cached) " >&6
11096 case $orig_target_cpp in
11098 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11102 for as_dir
in $PATH
11105 test -z "$as_dir" && as_dir
=.
11106 for ac_exec_ext
in '' $ac_executable_extensions; do
11107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11120 if test -n "$orig_target_cpp"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11122 $as_echo "$orig_target_cpp" >&6; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11131 if test "$orig_target_cpp" = ""; then
11132 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11135 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11136 if test "$cross_compiling" = "yes" ; then
11137 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11138 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140 $as_echo_n "checking for $ac_word... " >&6; }
11141 if ${ac_cv_path_orig_target_cc+:} false
; then :
11142 $as_echo_n "(cached) " >&6
11144 case $orig_target_cc in
11146 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11150 for as_dir
in $PATH
11153 test -z "$as_dir" && as_dir
=.
11154 for ac_exec_ext
in '' $ac_executable_extensions; do
11155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 orig_target_cc
=$ac_cv_path_orig_target_cc
11168 if test -n "$orig_target_cc"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11170 $as_echo "$orig_target_cc" >&6; }
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11178 if test "$GCC" = "yes"; then
11179 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11180 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11181 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if ${ac_cv_path_orig_target_cc+:} false
; then :
11185 $as_echo_n "(cached) " >&6
11187 case $orig_target_cc in
11189 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11193 for as_dir
in `dirname $aros_gcc_gcc`
11196 test -z "$as_dir" && as_dir
=.
11197 for ac_exec_ext
in '' $ac_executable_extensions; do
11198 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 orig_target_cc
=$ac_cv_path_orig_target_cc
11211 if test -n "$orig_target_cc"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11213 $as_echo "$orig_target_cc" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11221 if test "$orig_target_cc" = ""; then
11222 # Extract the first word of "gcc", so it can be a program name with args.
11223 set dummy gcc
; ac_word
=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_path_orig_target_cc+:} false
; then :
11227 $as_echo_n "(cached) " >&6
11229 case $orig_target_cc in
11231 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11235 for as_dir
in $PATH
11238 test -z "$as_dir" && as_dir
=.
11239 for ac_exec_ext
in '' $ac_executable_extensions; do
11240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11241 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 orig_target_cc
=$ac_cv_path_orig_target_cc
11253 if test -n "$orig_target_cc"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11255 $as_echo "$orig_target_cc" >&6; }
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11265 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11266 set dummy
${aros_tool_prefix}gcc
${target_tool_version}; ac_word
=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_path_orig_target_cc+:} false
; then :
11270 $as_echo_n "(cached) " >&6
11272 case $orig_target_cc in
11274 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11278 for as_dir
in $PATH
11281 test -z "$as_dir" && as_dir
=.
11282 for ac_exec_ext
in '' $ac_executable_extensions; do
11283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 orig_target_cc
=$ac_cv_path_orig_target_cc
11296 if test -n "$orig_target_cc"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11298 $as_echo "$orig_target_cc" >&6; }
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11307 if test "$orig_target_cc" = ""; then
11308 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11311 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11312 if test "$cross_compiling" = "yes" ; then
11313 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11314 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11318 $as_echo_n "(cached) " >&6
11320 case $orig_target_cxx in
11322 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11326 for as_dir
in $PATH
11329 test -z "$as_dir" && as_dir
=.
11330 for ac_exec_ext
in '' $ac_executable_extensions; do
11331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11332 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11344 if test -n "$orig_target_cxx"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11346 $as_echo "$orig_target_cxx" >&6; }
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11354 if test "$GCC" = "yes"; then
11355 aros_gcc_g
++=`$CC -print-prog-name=g++`
11356 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11357 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 case $orig_target_cxx in
11365 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11369 for as_dir
in `dirname $aros_gcc_g++`
11372 test -z "$as_dir" && as_dir
=.
11373 for ac_exec_ext
in '' $ac_executable_extensions; do
11374 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11375 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11387 if test -n "$orig_target_cxx"; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11389 $as_echo "$orig_target_cxx" >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11397 if test "$orig_target_cxx" = ""; then
11398 # Extract the first word of "g++", so it can be a program name with args.
11399 set dummy g
++; ac_word
=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11403 $as_echo_n "(cached) " >&6
11405 case $orig_target_cxx in
11407 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11411 for as_dir
in $PATH
11414 test -z "$as_dir" && as_dir
=.
11415 for ac_exec_ext
in '' $ac_executable_extensions; do
11416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11429 if test -n "$orig_target_cxx"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11431 $as_echo "$orig_target_cxx" >&6; }
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11441 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11442 set dummy
${aros_tool_prefix}g
++${target_tool_version}; ac_word
=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11446 $as_echo_n "(cached) " >&6
11448 case $orig_target_cxx in
11450 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11454 for as_dir
in $PATH
11457 test -z "$as_dir" && as_dir
=.
11458 for ac_exec_ext
in '' $ac_executable_extensions; do
11459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11460 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11472 if test -n "$orig_target_cxx"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11474 $as_echo "$orig_target_cxx" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11483 if test "$orig_target_cxx" = ""; then
11484 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11487 if test "${aros_tool_prefix}ld" = ""; then
11488 if test "$cross_compiling" = "yes" ; then
11489 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11490 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_path_orig_target_ld+:} false
; then :
11494 $as_echo_n "(cached) " >&6
11496 case $orig_target_ld in
11498 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11502 for as_dir
in $PATH
11505 test -z "$as_dir" && as_dir
=.
11506 for ac_exec_ext
in '' $ac_executable_extensions; do
11507 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 orig_target_ld
=$ac_cv_path_orig_target_ld
11520 if test -n "$orig_target_ld"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11522 $as_echo "$orig_target_ld" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11530 if test "$GCC" = "yes"; then
11531 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11532 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11533 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_path_orig_target_ld+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 case $orig_target_ld in
11541 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11545 for as_dir
in `dirname $aros_gcc_gcc`
11548 test -z "$as_dir" && as_dir
=.
11549 for ac_exec_ext
in '' $ac_executable_extensions; do
11550 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 orig_target_ld
=$ac_cv_path_orig_target_ld
11563 if test -n "$orig_target_ld"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11565 $as_echo "$orig_target_ld" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11573 if test "$orig_target_ld" = ""; then
11574 # Extract the first word of "gcc", so it can be a program name with args.
11575 set dummy gcc
; ac_word
=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if ${ac_cv_path_orig_target_ld+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 case $orig_target_ld in
11583 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11587 for as_dir
in $PATH
11590 test -z "$as_dir" && as_dir
=.
11591 for ac_exec_ext
in '' $ac_executable_extensions; do
11592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11593 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 orig_target_ld
=$ac_cv_path_orig_target_ld
11605 if test -n "$orig_target_ld"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11607 $as_echo "$orig_target_ld" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11617 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11618 set dummy
${aros_tool_prefix}ld
; ac_word
=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if ${ac_cv_path_orig_target_ld+:} false
; then :
11622 $as_echo_n "(cached) " >&6
11624 case $orig_target_ld in
11626 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11630 for as_dir
in $PATH
11633 test -z "$as_dir" && as_dir
=.
11634 for ac_exec_ext
in '' $ac_executable_extensions; do
11635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11636 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 orig_target_ld
=$ac_cv_path_orig_target_ld
11648 if test -n "$orig_target_ld"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11650 $as_echo "$orig_target_ld" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11659 if test "$orig_target_ld" = ""; then
11660 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11663 if test "${aros_tool_prefix}as" = ""; then
11664 if test "$cross_compiling" = "yes" ; then
11665 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11666 set dummy
${target_tool_prefix}as
; ac_word
=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_path_orig_target_as+:} false
; then :
11670 $as_echo_n "(cached) " >&6
11672 case $orig_target_as in
11674 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11678 for as_dir
in $PATH
11681 test -z "$as_dir" && as_dir
=.
11682 for ac_exec_ext
in '' $ac_executable_extensions; do
11683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 orig_target_as
=$ac_cv_path_orig_target_as
11696 if test -n "$orig_target_as"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11698 $as_echo "$orig_target_as" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11706 if test "$GCC" = "yes"; then
11707 aros_gcc_as
=`$CC -print-prog-name=as`
11708 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11709 set dummy
`basename $aros_gcc_as`; ac_word
=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_path_orig_target_as+:} false
; then :
11713 $as_echo_n "(cached) " >&6
11715 case $orig_target_as in
11717 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11721 for as_dir
in `dirname $aros_gcc_as`
11724 test -z "$as_dir" && as_dir
=.
11725 for ac_exec_ext
in '' $ac_executable_extensions; do
11726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 orig_target_as
=$ac_cv_path_orig_target_as
11739 if test -n "$orig_target_as"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11741 $as_echo "$orig_target_as" >&6; }
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11749 if test "$orig_target_as" = ""; then
11750 # Extract the first word of "as", so it can be a program name with args.
11751 set dummy as
; ac_word
=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if ${ac_cv_path_orig_target_as+:} false
; then :
11755 $as_echo_n "(cached) " >&6
11757 case $orig_target_as in
11759 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11763 for as_dir
in $PATH
11766 test -z "$as_dir" && as_dir
=.
11767 for ac_exec_ext
in '' $ac_executable_extensions; do
11768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 orig_target_as
=$ac_cv_path_orig_target_as
11781 if test -n "$orig_target_as"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11783 $as_echo "$orig_target_as" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11793 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11794 set dummy
${aros_tool_prefix}as
; ac_word
=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_path_orig_target_as+:} false
; then :
11798 $as_echo_n "(cached) " >&6
11800 case $orig_target_as in
11802 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
11805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11806 for as_dir
in $PATH
11809 test -z "$as_dir" && as_dir
=.
11810 for ac_exec_ext
in '' $ac_executable_extensions; do
11811 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 orig_target_as
=$ac_cv_path_orig_target_as
11824 if test -n "$orig_target_as"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11826 $as_echo "$orig_target_as" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11835 if test "$orig_target_as" = ""; then
11836 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
11839 if test "${aros_tool_prefix}ar" = ""; then
11840 if test "$cross_compiling" = "yes" ; then
11841 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11842 set dummy
${target_tool_prefix}ar; ac_word
=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_path_orig_target_ar+:} false
; then :
11846 $as_echo_n "(cached) " >&6
11848 case $orig_target_ar in
11850 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11854 for as_dir
in $PATH
11857 test -z "$as_dir" && as_dir
=.
11858 for ac_exec_ext
in '' $ac_executable_extensions; do
11859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11860 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 orig_target_ar
=$ac_cv_path_orig_target_ar
11872 if test -n "$orig_target_ar"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11874 $as_echo "$orig_target_ar" >&6; }
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11882 if test "$GCC" = "yes"; then
11883 aros_gcc_ar
=`$CC -print-prog-name=ar`
11884 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11885 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if ${ac_cv_path_orig_target_ar+:} false
; then :
11889 $as_echo_n "(cached) " >&6
11891 case $orig_target_ar in
11893 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11897 for as_dir
in `dirname $aros_gcc_ar`
11900 test -z "$as_dir" && as_dir
=.
11901 for ac_exec_ext
in '' $ac_executable_extensions; do
11902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11903 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 orig_target_ar
=$ac_cv_path_orig_target_ar
11915 if test -n "$orig_target_ar"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11917 $as_echo "$orig_target_ar" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11925 if test "$orig_target_ar" = ""; then
11926 # Extract the first word of "ar", so it can be a program name with args.
11927 set dummy
ar; ac_word
=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_path_orig_target_ar+:} false
; then :
11931 $as_echo_n "(cached) " >&6
11933 case $orig_target_ar in
11935 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11939 for as_dir
in $PATH
11942 test -z "$as_dir" && as_dir
=.
11943 for ac_exec_ext
in '' $ac_executable_extensions; do
11944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 orig_target_ar
=$ac_cv_path_orig_target_ar
11957 if test -n "$orig_target_ar"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11959 $as_echo "$orig_target_ar" >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11969 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11970 set dummy
${aros_tool_prefix}ar; ac_word
=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_path_orig_target_ar+:} false
; then :
11974 $as_echo_n "(cached) " >&6
11976 case $orig_target_ar in
11978 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
11981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11982 for as_dir
in $PATH
11985 test -z "$as_dir" && as_dir
=.
11986 for ac_exec_ext
in '' $ac_executable_extensions; do
11987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11988 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 orig_target_ar
=$ac_cv_path_orig_target_ar
12000 if test -n "$orig_target_ar"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12002 $as_echo "$orig_target_ar" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12011 if test "$orig_target_ar" = ""; then
12012 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12015 if test "${aros_tool_prefix}ranlib" = ""; then
12016 if test "$cross_compiling" = "yes" ; then
12017 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12018 set dummy
${target_tool_prefix}ar; ac_word
=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12022 $as_echo_n "(cached) " >&6
12024 case $orig_target_ranlib in
12026 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12030 for as_dir
in $PATH
12033 test -z "$as_dir" && as_dir
=.
12034 for ac_exec_ext
in '' $ac_executable_extensions; do
12035 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12048 if test -n "$orig_target_ranlib"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12050 $as_echo "$orig_target_ranlib" >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12058 if test "$GCC" = "yes"; then
12059 aros_gcc_ar
=`$CC -print-prog-name=ar`
12060 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12061 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063 $as_echo_n "checking for $ac_word... " >&6; }
12064 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12065 $as_echo_n "(cached) " >&6
12067 case $orig_target_ranlib in
12069 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12073 for as_dir
in `dirname $aros_gcc_ar`
12076 test -z "$as_dir" && as_dir
=.
12077 for ac_exec_ext
in '' $ac_executable_extensions; do
12078 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12079 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12091 if test -n "$orig_target_ranlib"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12093 $as_echo "$orig_target_ranlib" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12101 if test "$orig_target_ranlib" = ""; then
12102 # Extract the first word of "ar", so it can be a program name with args.
12103 set dummy
ar; ac_word
=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12107 $as_echo_n "(cached) " >&6
12109 case $orig_target_ranlib in
12111 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12115 for as_dir
in $PATH
12118 test -z "$as_dir" && as_dir
=.
12119 for ac_exec_ext
in '' $ac_executable_extensions; do
12120 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12121 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12133 if test -n "$orig_target_ranlib"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12135 $as_echo "$orig_target_ranlib" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12145 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12146 set dummy
${aros_tool_prefix}ranlib
; ac_word
=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 case $orig_target_ranlib in
12154 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12158 for as_dir
in $PATH
12161 test -z "$as_dir" && as_dir
=.
12162 for ac_exec_ext
in '' $ac_executable_extensions; do
12163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12164 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12176 if test -n "$orig_target_ranlib"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12178 $as_echo "$orig_target_ranlib" >&6; }
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12187 if test "$orig_target_ranlib" = ""; then
12188 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12191 if test "${aros_tool_prefix}nm" = ""; then
12192 if test "$cross_compiling" = "yes" ; then
12193 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12194 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_path_orig_target_nm+:} false
; then :
12198 $as_echo_n "(cached) " >&6
12200 case $orig_target_nm in
12202 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12206 for as_dir
in $PATH
12209 test -z "$as_dir" && as_dir
=.
12210 for ac_exec_ext
in '' $ac_executable_extensions; do
12211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12212 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 orig_target_nm
=$ac_cv_path_orig_target_nm
12224 if test -n "$orig_target_nm"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12226 $as_echo "$orig_target_nm" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test "$GCC" = "yes"; then
12235 aros_gcc_nm
=`$CC -print-prog-name=nm`
12236 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12237 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_orig_target_nm+:} false
; then :
12241 $as_echo_n "(cached) " >&6
12243 case $orig_target_nm in
12245 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12249 for as_dir
in `dirname $aros_gcc_nm`
12252 test -z "$as_dir" && as_dir
=.
12253 for ac_exec_ext
in '' $ac_executable_extensions; do
12254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 orig_target_nm
=$ac_cv_path_orig_target_nm
12267 if test -n "$orig_target_nm"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12269 $as_echo "$orig_target_nm" >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12277 if test "$orig_target_nm" = ""; then
12278 # Extract the first word of "nm", so it can be a program name with args.
12279 set dummy nm
; ac_word
=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_path_orig_target_nm+:} false
; then :
12283 $as_echo_n "(cached) " >&6
12285 case $orig_target_nm in
12287 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12291 for as_dir
in $PATH
12294 test -z "$as_dir" && as_dir
=.
12295 for ac_exec_ext
in '' $ac_executable_extensions; do
12296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 orig_target_nm
=$ac_cv_path_orig_target_nm
12309 if test -n "$orig_target_nm"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12311 $as_echo "$orig_target_nm" >&6; }
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12321 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12322 set dummy
${aros_tool_prefix}nm
; ac_word
=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_path_orig_target_nm+:} false
; then :
12326 $as_echo_n "(cached) " >&6
12328 case $orig_target_nm in
12330 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12334 for as_dir
in $PATH
12337 test -z "$as_dir" && as_dir
=.
12338 for ac_exec_ext
in '' $ac_executable_extensions; do
12339 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12340 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 orig_target_nm
=$ac_cv_path_orig_target_nm
12352 if test -n "$orig_target_nm"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12354 $as_echo "$orig_target_nm" >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12363 if test "$orig_target_nm" = ""; then
12364 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12367 if test "${aros_tool_prefix}strip" = ""; then
12368 if test "$cross_compiling" = "yes" ; then
12369 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12370 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if ${ac_cv_path_orig_target_strip+:} false
; then :
12374 $as_echo_n "(cached) " >&6
12376 case $orig_target_strip in
12378 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12382 for as_dir
in $PATH
12385 test -z "$as_dir" && as_dir
=.
12386 for ac_exec_ext
in '' $ac_executable_extensions; do
12387 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 orig_target_strip
=$ac_cv_path_orig_target_strip
12400 if test -n "$orig_target_strip"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12402 $as_echo "$orig_target_strip" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12410 if test "$GCC" = "yes"; then
12411 aros_gcc_strip
=`$CC -print-prog-name=strip`
12412 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12413 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if ${ac_cv_path_orig_target_strip+:} false
; then :
12417 $as_echo_n "(cached) " >&6
12419 case $orig_target_strip in
12421 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12425 for as_dir
in `dirname $aros_gcc_strip`
12428 test -z "$as_dir" && as_dir
=.
12429 for ac_exec_ext
in '' $ac_executable_extensions; do
12430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12431 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 orig_target_strip
=$ac_cv_path_orig_target_strip
12443 if test -n "$orig_target_strip"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12445 $as_echo "$orig_target_strip" >&6; }
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12453 if test "$orig_target_strip" = ""; then
12454 # Extract the first word of "strip", so it can be a program name with args.
12455 set dummy strip
; ac_word
=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_path_orig_target_strip+:} false
; then :
12459 $as_echo_n "(cached) " >&6
12461 case $orig_target_strip in
12463 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12467 for as_dir
in $PATH
12470 test -z "$as_dir" && as_dir
=.
12471 for ac_exec_ext
in '' $ac_executable_extensions; do
12472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 orig_target_strip
=$ac_cv_path_orig_target_strip
12485 if test -n "$orig_target_strip"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12487 $as_echo "$orig_target_strip" >&6; }
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12497 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12498 set dummy
${aros_tool_prefix}strip
; ac_word
=$2
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500 $as_echo_n "checking for $ac_word... " >&6; }
12501 if ${ac_cv_path_orig_target_strip+:} false
; then :
12502 $as_echo_n "(cached) " >&6
12504 case $orig_target_strip in
12506 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12510 for as_dir
in $PATH
12513 test -z "$as_dir" && as_dir
=.
12514 for ac_exec_ext
in '' $ac_executable_extensions; do
12515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 orig_target_strip
=$ac_cv_path_orig_target_strip
12528 if test -n "$orig_target_strip"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12530 $as_echo "$orig_target_strip" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12539 if test "$orig_target_strip" = ""; then
12540 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12543 if test "${aros_tool_prefix}objcopy" = ""; then
12544 if test "$cross_compiling" = "yes" ; then
12545 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12546 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12550 $as_echo_n "(cached) " >&6
12552 case $orig_target_objcopy in
12554 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12558 for as_dir
in $PATH
12561 test -z "$as_dir" && as_dir
=.
12562 for ac_exec_ext
in '' $ac_executable_extensions; do
12563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12564 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12576 if test -n "$orig_target_objcopy"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12578 $as_echo "$orig_target_objcopy" >&6; }
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12586 if test "$GCC" = "yes"; then
12587 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
12588 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12589 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12593 $as_echo_n "(cached) " >&6
12595 case $orig_target_objcopy in
12597 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12601 for as_dir
in `dirname $aros_gcc_objcopy`
12604 test -z "$as_dir" && as_dir
=.
12605 for ac_exec_ext
in '' $ac_executable_extensions; do
12606 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12619 if test -n "$orig_target_objcopy"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12621 $as_echo "$orig_target_objcopy" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12629 if test "$orig_target_objcopy" = ""; then
12630 # Extract the first word of "objcopy", so it can be a program name with args.
12631 set dummy objcopy
; ac_word
=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12635 $as_echo_n "(cached) " >&6
12637 case $orig_target_objcopy in
12639 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12643 for as_dir
in $PATH
12646 test -z "$as_dir" && as_dir
=.
12647 for ac_exec_ext
in '' $ac_executable_extensions; do
12648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12661 if test -n "$orig_target_objcopy"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12663 $as_echo "$orig_target_objcopy" >&6; }
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12673 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12674 set dummy
${aros_tool_prefix}objcopy
; ac_word
=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12678 $as_echo_n "(cached) " >&6
12680 case $orig_target_objcopy in
12682 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12686 for as_dir
in $PATH
12689 test -z "$as_dir" && as_dir
=.
12690 for ac_exec_ext
in '' $ac_executable_extensions; do
12691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12704 if test -n "$orig_target_objcopy"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12706 $as_echo "$orig_target_objcopy" >&6; }
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12715 if test "$orig_target_objcopy" = ""; then
12716 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12719 if test "${aros_tool_prefix}objdump" = ""; then
12720 if test "$cross_compiling" = "yes" ; then
12721 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12722 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12726 $as_echo_n "(cached) " >&6
12728 case $orig_target_objdump in
12730 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12734 for as_dir
in $PATH
12737 test -z "$as_dir" && as_dir
=.
12738 for ac_exec_ext
in '' $ac_executable_extensions; do
12739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12740 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12752 if test -n "$orig_target_objdump"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12754 $as_echo "$orig_target_objdump" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12762 if test "$GCC" = "yes"; then
12763 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
12764 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12765 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12769 $as_echo_n "(cached) " >&6
12771 case $orig_target_objdump in
12773 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12777 for as_dir
in `dirname $aros_gcc_objdump`
12780 test -z "$as_dir" && as_dir
=.
12781 for ac_exec_ext
in '' $ac_executable_extensions; do
12782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12783 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12795 if test -n "$orig_target_objdump"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12797 $as_echo "$orig_target_objdump" >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12805 if test "$orig_target_objdump" = ""; then
12806 # Extract the first word of "objdump", so it can be a program name with args.
12807 set dummy objdump
; ac_word
=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12811 $as_echo_n "(cached) " >&6
12813 case $orig_target_objdump in
12815 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12819 for as_dir
in $PATH
12822 test -z "$as_dir" && as_dir
=.
12823 for ac_exec_ext
in '' $ac_executable_extensions; do
12824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12825 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12837 if test -n "$orig_target_objdump"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12839 $as_echo "$orig_target_objdump" >&6; }
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12849 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12850 set dummy
${aros_tool_prefix}objdump
; ac_word
=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if ${ac_cv_path_orig_target_objdump+:} false
; then :
12854 $as_echo_n "(cached) " >&6
12856 case $orig_target_objdump in
12858 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
12861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12862 for as_dir
in $PATH
12865 test -z "$as_dir" && as_dir
=.
12866 for ac_exec_ext
in '' $ac_executable_extensions; do
12867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12868 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 orig_target_objdump
=$ac_cv_path_orig_target_objdump
12880 if test -n "$orig_target_objdump"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12882 $as_echo "$orig_target_objdump" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12891 if test "$orig_target_objdump" = ""; then
12892 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12896 if test "$kernel_tool_prefix" = "none" ; then
12897 # No kernel tools specified
12898 # Assume target tools == kernel tools with ELF wrapper
12899 aros_kernel_cc
=$orig_target_cc
12900 aros_kernel_cxx
=$orig_target_cxx
12901 aros_kernel_cpp
=$orig_target_cpp
12902 aros_kernel_ld
=$orig_target_ld
12903 aros_kernel_as
=$orig_target_as
12904 aros_kernel_ar
=$orig_target_ar
12905 aros_kernel_ranlib
=$orig_target_ranlib
12906 aros_kernel_nm
=$orig_target_nm
12907 aros_kernel_strip
=$orig_target_strip
12908 aros_kernel_objcopy
=$orig_target_objcopy
12909 aros_kernel_objdump
=$orig_target_objdump
12910 use_kernel_cc_wrapper
=yes
12913 # At this point, all aros_kernel_* and aros_target_*
12914 # tools should be set up correctly
12916 CC
="$aros_kernel_cc $kernel_tool_flags"
12917 CPP
="$aros_kernel_cpp"
12919 #-----------------------------------------------------------------------------
12921 # Disable pointer-signedness warnings if the compiler recognises the option
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12924 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12925 save_cflags
="$CFLAGS"
12926 if test "$crosstools" != "yes" ; then
12927 CFLAGS
="$CFLAGS -Wno-pointer-sign"
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12939 if ac_fn_c_try_compile
"$LINENO"; then :
12940 use_no_sign_warning
="yes"
12942 use_no_sign_warning
="no"
12944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12946 # we do know it is supported for the smallest version of gcc we are going to build
12947 # we assume it's also supported by later versions
12948 use_no_sign_warning
=yes
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12951 $as_echo "$use_no_sign_warning" >&6; }
12952 if test "x-$use_no_sign_warning" = "x-yes" ; then
12953 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
12955 CFLAGS
="$save_cflags"
12957 #-----------------------------------------------------------------------------
12959 # Find all the tools we need to compile. This could be cross-compiling
12960 # though! If that is the case we use the GNU form of the target and
12961 # simply add this to the front of the binary name. This is rather simple,
12962 # but it should work under most circumstances.
12964 # The default tools are to use the same as the host, but only if the
12965 # host and target CPU are the same. With GCC this is normally enough.
12969 aros_shared_ld
="$aros_host_ld"
12971 aros_target_mkdep
="$aros_host_mkdep"
12973 # The default tools executables to be linked to.
12974 if test "$rescomp" != ""; then
12975 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12976 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
12980 $as_echo_n "(cached) " >&6
12982 case $aros_kernel_rescomp in
12984 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
12987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12988 for as_dir
in $PATH
12991 test -z "$as_dir" && as_dir
=.
12992 for ac_exec_ext
in '' $ac_executable_extensions; do
12993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12994 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
12995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13006 if test -n "$aros_kernel_rescomp"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13008 $as_echo "$aros_kernel_rescomp" >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13015 if test "$aros_kernel_rescomp" = ""; then
13016 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13020 # Set up the sources for the symlink farm
13021 if test "$crosstools" = "yes"; then
13022 crosstools_target
=tools-crosstools
13025 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13026 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13028 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
13029 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13030 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13031 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13032 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13033 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13034 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13036 # aros_cc_pre is a variable that is added to the front of the compiler name
13037 # in the generated aros-gcc shell script. We need this to enable the cache
13038 # to work across cleaned builds. Also, support DISTCC using the correct
13039 # environment variable.
13042 if test "x${DISTCC}" != "x" ; then
13043 if test "x${CCACHE}" != "x" ; then
13044 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13046 aros_cc_pre
="${DISTCC} "
13049 if test "x${CCACHE}" != "x" ; then
13050 aros_cc_pre
="${CCACHE} "
13054 aros_target_nostdinc_cflags
=-nostdinc
13056 aros_target_nostartup_ldflags
=-nostartfiles
13058 aros_target_nix_ldflags
=-nix
13060 aros_target_detach_ldflags
=-detach
13062 aros_target_nostdlib_ldflags
=-nostdlib
13066 if test "$aros_target_toolchain" != "yes"; then
13067 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13068 if test "$GCC" = "yes"; then
13069 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13072 # We do not know which gcc version we are going to build and what we need to know
13073 # here is different for different versions so this will be set later during the
13074 # build of crosstools.
13075 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13076 aros_target_cc_path
=@aros_target_cc_path@
13078 aros_target_cpp
="${prefix}cpp"
13079 aros_target_cc
="${prefix}gcc"
13080 aros_target_cxx
="${prefix}g++"
13081 aros_target_as
="${prefix}as"
13082 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13083 aros_target_ar
="${prefix}ar $aros_target_ar_flags"
13084 aros_target_objcopy
="${prefix}objcopy"
13085 aros_target_objdump
="${prefix}objdump"
13086 aros_target_ranlib
="${prefix}ranlib $aros_target_ranlib_flags"
13087 aros_target_nm
="${prefix}nm $aros_target_nm_flags"
13088 aros_target_strip
="${prefix}strip"
13089 aros_plain_nm
="${prefix}nm"
13090 aros_plain_ar
="${prefix}ar"
13092 # Check whether --enable-includes was given.
13093 if test "${enable_includes+set}" = set; then :
13094 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13096 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13100 if test "$aros_kernel_includes" = ""; then
13101 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13102 aros_kernel_includes
="-isystem $aros_target_incl"
13106 if test "$aros_kernel_includes" != "" ; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13108 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13109 if test "$aros_kernel_cc_includes" = "" ; then
13110 # Try to guess where the directory is.
13111 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13112 if test -d $aros_kernel_cc_includes; then
13113 # Check if there is also an include-fixed directory and add it
13114 # to kernel compiler's include path as it may contain some of
13115 # the headers we need.
13116 if test -d "$aros_kernel_cc_includes"-fixed; then
13117 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13119 # Check for specific includes directory. Neede for Ubuntu 11.10
13120 if test -d "/usr/include/i386-linux-gnu"; then
13121 aros_kernel_cc_includes
+=" -isystem /usr/include/i386-linux-gnu"
13124 # The directory doesn't exist, we need to do some more work.
13125 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13127 # These are the headers we're looking for.
13128 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13129 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13133 for h
in $headers; do
13134 # Which other headers are needed by each of the above?
13135 deps
=$
(echo "#include <$h>" | \
13136 $aros_kernel_cc -E -M - 2>/dev
/null | \
13137 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13139 # Copy all the needed headers to a directory beneath gendir.
13142 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13143 sed -n "s,^.*/include\(/.*\),\1,p")
13144 ! test -d $dir && mkdir
-p $dir
13145 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13151 $as_echo "$aros_kernel_cc_includes" >&6; }
13152 # Adding -nostdinc to kernel includes as they are always used together.
13153 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13156 if test "$crosstools" != "yes"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13158 $as_echo_n "checking for the target compiler's include path... " >&6; }
13159 if test "$aros_target_cc_includes" = "" ; then
13160 #try to guess where the directory is
13161 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13162 if ! test -d $aros_target_cc_includes; then
13163 #the directory doesn't exist, we need to do some more work
13164 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13166 #these are the headers we're looking for
13167 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13168 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13172 for h
in $headers; do
13173 #which other headers each of the above headers needs?
13174 deps
=$
(echo "#include <$h>" | \
13175 $orig_target_cc -E -M - 2>/dev
/null | \
13176 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13178 #copy all the needed headers to a directory beneath gendir
13181 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13182 sed -n "s,^.*/include\(/.*\),\1,p")
13183 ! test -d $dir && mkdir
-p $dir
13184 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13190 $as_echo "$aros_target_cc_includes" >&6; }
13192 # We do not know which gcc version we are going to build and what we need to know
13193 # here is different for different versions so this will be set later during the
13194 # build of crosstools.
13195 aros_target_cc_includes
=@aros_target_cc_includes@
13199 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13200 # On GCC >= 4.0 -iquote should be used
13204 save_cflags
="$CFLAGS"
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13207 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13208 if test "x-$crosstools" != "x-yes"; then
13209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13220 if ac_fn_c_try_compile
"$LINENO"; then :
13225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13227 # we do know it is supported for the smallest version of gcc we are going to build
13228 # we assume it's also supported by later versions
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13232 $as_echo "$has_iquote" >&6; }
13233 if test "x-$has_iquote" = "x-yes" ; then
13234 host_cflags_iquote
=-iquote
13235 host_cflags_iquote_end
=
13237 host_cflags_iquote
=-I
13238 host_cflags_iquote_end
=-I-
13240 kernel_cflags_iquote
=$host_cflags_iquote
13241 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13242 if test "x-$cross_compiling" = "x-yes"; then
13243 CC
="$aros_kernel_cc"
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13245 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13246 if test "x-$crosstools" != "x-yes"; then
13247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13258 if ac_fn_c_try_compile
"$LINENO"; then :
13259 use_no_stack_protector
="yes"
13261 use_no_stack_protector
="no"
13263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13265 # we do know it is supported for the smallest version of gcc we are going to build
13266 # we assume it's also supported by later versions
13267 use_no_stack_protector
=yes
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13270 $as_echo "$use_no_stack_protector" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13272 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13273 if test "x-$crosstools" != "x-yes"; then
13274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13285 if ac_fn_c_try_compile
"$LINENO"; then :
13290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13292 # we do know it is supported for the smallest version of gcc we are going to build
13293 # we assume it's also supported by later versions
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13297 $as_echo "$has_iquote" >&6; }
13298 if test "x-$has_iquote" = "x-yes" ; then
13299 kernel_cflags_iquote
=-iquote
13300 kernel_cflags_iquote_end
=
13302 kernel_cflags_iquote
=-I
13303 kernel_cflags_iquote_end
=-I-
13306 aros_cflags_iquote
=$kernel_cflags_iquote
13307 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
13308 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13309 CC
="$orig_target_cc"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13311 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13312 if test "x-$crosstools" != "x-yes"; then
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13324 if ac_fn_c_try_compile
"$LINENO"; then :
13329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13331 # we do know it is supported for the smallest version of gcc we are going to build
13332 # we assume it's also supported by later versions
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13336 $as_echo "$has_iquote" >&6; }
13337 if test "x-$has_iquote" = "x-yes" ; then
13338 aros_cflags_iquote
=-iquote
13339 aros_cflags_iquote_end
=
13341 aros_cflags_iquote
=-I
13342 aros_cflags_iquote_end
=-I-
13345 if test "x-$use_no_stack_protector" = "x-yes" ; then
13346 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13350 #-----------------------------------------------------------------------------
13352 # Check if the target compiler supports some options used for delinting:
13353 # -Wunused-but-set-variable
13356 # -Wstrict-overflow
13357 # -Wformat-security
13359 if test "x-$crosstools" != "x-yes"; then
13360 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13361 CC
="$orig_target_cc"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13364 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13365 CFLAGS
=-Wunused-but-set-variable
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13377 if ac_fn_c_try_compile
"$LINENO"; then :
13378 aros_unused_but_set_variable
="yes"
13380 aros_unused_but_set_variable
="no"
13382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13384 $as_echo "$aros_unused_but_set_variable" >&6; }
13385 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13386 aros_cflags_unused_but_set_variable
=-Wno-unused-but-set-variable
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13390 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13391 CFLAGS
=-Warray-bounds
13392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13403 if ac_fn_c_try_compile
"$LINENO"; then :
13404 aros_array_bounds
="yes"
13406 aros_array_bounds
="no"
13408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13410 $as_echo "$aros_array_bounds" >&6; }
13411 if test "x-$aros_array_bounds" = "x-yes" ; then
13412 aros_cflags_array_bounds
=-Wno-array-bounds
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13416 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13417 CFLAGS
=-Wenum-compare
13418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13429 if ac_fn_c_try_compile
"$LINENO"; then :
13430 aros_enum_compare
="yes"
13432 aros_enum_compare
="no"
13434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13436 $as_echo "$aros_enum_compare" >&6; }
13437 if test "x-$aros_enum_compare" = "x-yes" ; then
13438 aros_cflags_enum_compare
=-Wno-enum-compare
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13442 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13443 CFLAGS
=-Wstrict-overflow
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13455 if ac_fn_c_try_compile
"$LINENO"; then :
13456 aros_strict_overflow
="yes"
13458 aros_strict_overflow
="no"
13460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13462 $as_echo "$aros_strict_overflow" >&6; }
13463 if test "x-$aros_strict_overflow" = "x-yes" ; then
13464 aros_cflags_strict_overflow
=-Wno-strict-overflow
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13468 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13469 CFLAGS
=-Wformat-security
13470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13481 if ac_fn_c_try_compile
"$LINENO"; then :
13482 aros_format_security
="yes"
13484 aros_format_security
="no"
13486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13488 $as_echo "$aros_format_security" >&6; }
13489 if test "x-$aros_format_security" = "x-yes" ; then
13490 aros_cflags_format_security
=-Wno-format-security
13493 # We do not know which gcc version we are going to build and what we need to know
13494 # here is different for different versions so this will be set later during the
13495 # build of crosstools.
13496 aros_cflags_unused_but_set_variable
=@aros_cflags_unused_but_set_variable@
13497 aros_cflags_array_bounds
=@aros_cflags_array_bounds@
13498 aros_cflags_enum_compare
=@aros_cflags_enum_compare@
13499 aros_cflags_strict_overflow
=@aros_cflags_strict_overflow@
13500 aros_cflags_format_security
=@aros_cflags_format_security@
13503 #-----------------------------------------------------------------------------
13505 # Check if we can explicitly choose older version of symbol hashing
13507 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13508 CC
="$aros_kernel_cc"
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13510 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13522 if ac_fn_c_try_link
"$LINENO"; then :
13523 use_hash_style
="yes"
13525 use_hash_style
="no"
13527 rm -f core conftest.err conftest.
$ac_objext \
13528 conftest
$ac_exeext conftest.
$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13530 $as_echo "$use_hash_style" >&6; }
13531 if test "x-$use_hash_style" = "x-yes" ; then
13532 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13535 CFLAGS
="$save_cflags"
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13546 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13548 # Check whether --with-resolution was given.
13549 if test "${with_resolution+set}" = set; then :
13550 withval
=$with_resolution; resolution
=$withval
13555 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13556 if test "$resolution" = "yes" ; then
13559 if test "$resolution" = "no" ; then
13562 if test "$resolution" != "none" ; then
13563 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
13564 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
13565 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13568 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13569 aros_cv_default_wbwidth
=$aros_default_wbwidth
13570 aros_cv_default_wbheight
=$aros_default_wbheight
13571 aros_cv_default_wbdepth
=$aros_default_wbdepth
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13574 $as_echo_n "checking if serial debug is enabled... " >&6; }
13576 # Check whether --with-serial-debug was given.
13577 if test "${with_serial_debug+set}" = set; then :
13578 withval
=$with_serial_debug; serial_debug
=$withval
13583 if test "$aros_serial_debug" = 0 ; then
13584 serial_debug_forced
=""
13585 if test "$serial_debug" = "yes" ; then
13588 if test "$serial_debug" = "no" ; then
13589 serial_debug
="none"
13592 serial_debug_forced
="(forced)"
13593 serial_debug
=$aros_serial_debug
13595 if test "$serial_debug" != "none" ; then
13596 aros_serial_debug
=$serial_debug
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13598 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13605 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13606 # Check whether --enable-palm_debug_hack was given.
13607 if test "${enable_palm_debug_hack+set}" = set; then :
13608 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13610 palm_debug_hack
="no"
13613 if test "$palm_debug_hack" = "yes" ; then
13614 aros_palm_debug_hack
="1"
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13617 $as_echo "$palm_debug_hack" >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13620 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13621 # Check whether --enable-usb30_code was given.
13622 if test "${enable_usb30_code+set}" = set; then :
13623 enableval
=$enable_usb30_code; usb30_code
="yes"
13628 if test "$usb30_code" = "yes" ; then
13629 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13630 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13633 $as_echo "$usb30_code" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13636 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13637 # Check whether --enable-nesting_supervisor was given.
13638 if test "${enable_nesting_supervisor+set}" = set; then :
13639 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13641 nesting_supervisor
="no"
13644 if test "$nesting_supervisor" = "yes" ; then
13645 aros_nesting_supervisor
="1"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13648 $as_echo "$nesting_supervisor" >&6; }
13650 if test "$aros_enable_mmu" = "" ; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13652 $as_echo_n "checking if MMU support is enabled... " >&6; }
13653 # Check whether --enable-mmu was given.
13654 if test "${enable_mmu+set}" = set; then :
13655 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13657 aros_enable_mmu
="yes"
13660 if test "$aros_enable_mmu" = "" ; then
13661 aros_enable_mmu
="yes"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13664 $as_echo "$aros_enable_mmu" >&6; }
13666 if test "$aros_enable_mmu" = "no" ; then
13667 aros_enable_mmu
="0"
13669 aros_enable_mmu
="1"
13673 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13675 if test "x-$need_dlopen" != "x-no" ; then
13678 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13679 if test "x$ac_cv_func_dlopen" = xyes
; then :
13685 if test "x-$have_dl" = "x-no" ; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13688 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13689 $as_echo_n "(cached) " >&6
13691 ac_check_lib_save_LIBS
=$LIBS
13693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13696 /* Override any GCC internal prototype to avoid an error.
13697 Use char because int might match the return type of a GCC
13698 builtin and then its argument prototype would still apply. */
13711 if ac_fn_c_try_link
"$LINENO"; then :
13712 ac_cv_lib_dl_dlopen
=yes
13714 ac_cv_lib_dl_dlopen
=no
13716 rm -f core conftest.err conftest.
$ac_objext \
13717 conftest
$ac_exeext conftest.
$ac_ext
13718 LIBS
=$ac_check_lib_save_LIBS
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13722 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13724 aros_host_ldflags
="$aros_host_ldflags -ldl"
13730 if test "x-$have_dl" = "x-no" ; then
13731 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
13737 # Check whether --enable-x11_hidd was given.
13738 if test "${enable_x11_hidd+set}" = set; then :
13739 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
13741 x11_hidd
="$need_x11"
13744 case "x-$x11_hidd" in
13745 x-yes|x-no|x-auto
) ;;
13746 *) x11_hidd
="$need_x11" ;;
13751 if test "x-$x11_hidd" != "x-no" ; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13754 $as_echo_n "checking for X... " >&6; }
13757 # Check whether --with-x was given.
13758 if test "${with_x+set}" = set; then :
13762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13763 if test "x$with_x" = xno
; then
13764 # The user explicitly disabled X.
13767 case $x_includes,$x_libraries in #(
13768 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13769 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13770 $as_echo_n "(cached) " >&6
13772 # One or both of the vars are not set, and there is no cached value.
13773 ac_x_includes
=no ac_x_libraries
=no
13774 rm -f -r conftest.dir
13775 if mkdir conftest.dir
; then
13777 cat >Imakefile
<<'_ACEOF'
13779 @echo incroot='${INCROOT}'
13781 @echo usrlibdir='${USRLIBDIR}'
13783 @echo libdir='${LIBDIR}'
13785 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13787 for ac_var
in incroot usrlibdir libdir
; do
13788 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13790 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13791 for ac_extension
in a so sl dylib la dll
; do
13792 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13793 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13794 ac_im_usrlibdir
=$ac_im_libdir; break
13797 # Screen out bogus values from the imake configuration. They are
13798 # bogus both because they are the default anyway, and because
13799 # using them would break gcc on systems where it needs fixed includes.
13800 case $ac_im_incroot in
13801 /usr
/include
) ac_x_includes
= ;;
13802 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13804 case $ac_im_usrlibdir in
13805 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13806 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13810 rm -f -r conftest.dir
13813 # Standard set of common directories for X headers.
13814 # Check X11 before X11Rn because it is often a symlink to the current release.
13828 /usr/local/X11/include
13829 /usr/local/X11R7/include
13830 /usr/local/X11R6/include
13831 /usr/local/X11R5/include
13832 /usr/local/X11R4/include
13834 /usr/local/include/X11
13835 /usr/local/include/X11R7
13836 /usr/local/include/X11R6
13837 /usr/local/include/X11R5
13838 /usr/local/include/X11R4
13842 /usr/XFree86/include/X11
13846 /usr/unsupported/include
13847 /usr/athena/include
13848 /usr/local/x11r5/include
13849 /usr/lpp/Xamples/include
13851 /usr/openwin/include
13852 /usr/openwin/share/include'
13854 if test "$ac_x_includes" = no
; then
13855 # Guess where to find include files, by looking for Xlib.h.
13856 # First, try using that file with no special directory specified.
13857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859 #include <X11/Xlib.h>
13861 if ac_fn_c_try_cpp
"$LINENO"; then :
13862 # We can compile using X headers with no special include directory.
13865 for ac_dir
in $ac_x_header_dirs; do
13866 if test -r "$ac_dir/X11/Xlib.h"; then
13867 ac_x_includes
=$ac_dir
13872 rm -f conftest.err conftest.i conftest.
$ac_ext
13873 fi # $ac_x_includes = no
13875 if test "$ac_x_libraries" = no
; then
13876 # Check for the libraries.
13877 # See if we find them without any special options.
13878 # Don't add to $LIBS permanently.
13881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 #include <X11/Xlib.h>
13892 if ac_fn_c_try_link
"$LINENO"; then :
13894 # We can link X programs with no special library path.
13898 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13900 # Don't even attempt the hair of trying to link an X program!
13901 for ac_extension
in a so sl dylib la dll
; do
13902 if test -r "$ac_dir/libX11.$ac_extension"; then
13903 ac_x_libraries
=$ac_dir
13909 rm -f core conftest.err conftest.
$ac_objext \
13910 conftest
$ac_exeext conftest.
$ac_ext
13911 fi # $ac_x_libraries = no
13913 case $ac_x_includes,$ac_x_libraries in #(
13914 no
,* |
*,no |
*\'*)
13915 # Didn't find X, or a directory has "'" in its name.
13916 ac_cv_have_x
="have_x=no";; #(
13918 # Record where we found X for the cache.
13919 ac_cv_have_x
="have_x=yes\
13920 ac_x_includes='$ac_x_includes'\
13921 ac_x_libraries='$ac_x_libraries'"
13927 eval "$ac_cv_have_x"
13930 if test "$have_x" != yes; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13932 $as_echo "$have_x" >&6; }
13935 # If each of the values was on the command line, it overrides each guess.
13936 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13937 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13938 # Update the cache value to reflect the command line values.
13939 ac_cv_have_x
="have_x=yes\
13940 ac_x_includes='$x_includes'\
13941 ac_x_libraries='$x_libraries'"
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13943 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13948 for path
in $x_libraries
13950 x_cflags
="$x_cflags -L$path"
13953 for path
in $x_includes
13955 x_cflags
="$x_cflags -I$path"
13958 if test "x-$no_x" = "x-yes" ; then
13960 if test "x-$x11_hidd" != "x-auto" ; then
13961 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13965 unixgfx_hidd_target
=kernel-x11gfx
13968 # Check whether --enable-x11_shm was given.
13969 if test "${enable_x11_shm+set}" = set; then :
13970 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
13972 x11_hidd_shm
="auto"
13975 case "x-$x11_hidd_shm" in
13976 x-yes|x-no|x-auto
) ;;
13977 *) x11_hidd_shm
="auto" ;;
13982 if test "x-$x11_hidd_shm" != "x-no" ; then
13984 for ac_header
in sys
/ipc.h
13986 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13987 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
13988 cat >>confdefs.h
<<_ACEOF
13989 #define HAVE_SYS_IPC_H 1
13996 for ac_header
in sys
/shm.h
13998 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13999 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14000 cat >>confdefs.h
<<_ACEOF
14001 #define HAVE_SYS_SHM_H 1
14009 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14011 save_cflags
="$CFLAGS"
14012 CFLAGS
="$CFLAGS $x_cflags"
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14014 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14015 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14016 $as_echo_n "(cached) " >&6
14018 ac_check_lib_save_LIBS
=$LIBS
14019 LIBS
="-lXext $LIBS"
14020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14023 /* Override any GCC internal prototype to avoid an error.
14024 Use char because int might match the return type of a GCC
14025 builtin and then its argument prototype would still apply. */
14029 char XShmQueryExtension ();
14033 return XShmQueryExtension ();
14038 if ac_fn_c_try_link
"$LINENO"; then :
14039 ac_cv_lib_Xext_XShmQueryExtension
=yes
14041 ac_cv_lib_Xext_XShmQueryExtension
=no
14043 rm -f core conftest.err conftest.
$ac_objext \
14044 conftest
$ac_exeext conftest.
$ac_ext
14045 LIBS
=$ac_check_lib_save_LIBS
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14048 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14049 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14053 CFLAGS
="$save_cflags"
14057 if test "x-$have_xshm" = "x-yes" ; then
14058 DO_XSHM_SUPPORT
="1"
14059 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14060 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14062 DO_XSHM_SUPPORT
="0"
14066 # Check whether --enable-x11_vidmode was given.
14067 if test "${enable_x11_vidmode+set}" = set; then :
14068 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14070 x11_hidd_vidmode
="auto"
14073 case "x-$x11_hidd_vidmode" in
14074 x-yes|x-no|x-auto
) ;;
14075 *) x11_hidd_vidmode
="auto" ;;
14080 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14082 save_cflags
="$CFLAGS"
14083 CFLAGS
="$CFLAGS $x_cflags"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14085 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14086 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14087 $as_echo_n "(cached) " >&6
14089 ac_check_lib_save_LIBS
=$LIBS
14090 LIBS
="-lXxf86vm $LIBS"
14091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14100 char XF86VidModeQueryExtension ();
14104 return XF86VidModeQueryExtension ();
14109 if ac_fn_c_try_link
"$LINENO"; then :
14110 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14112 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14114 rm -f core conftest.err conftest.
$ac_objext \
14115 conftest
$ac_exeext conftest.
$ac_ext
14116 LIBS
=$ac_check_lib_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14119 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14120 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14124 CFLAGS
="$save_cflags"
14127 if test "x-$have_vidmode" = "x-yes" ; then
14128 DO_VIDMODE_SUPPORT
="1"
14129 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14130 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14132 DO_VIDMODE_SUPPORT
="0"
14136 aros_host_x11_includes
=$x_includes
14137 aros_host_x11_libdirs
=$x_libraries
14141 # Check whether --enable-sdl_hidd was given.
14142 if test "${enable_sdl_hidd+set}" = set; then :
14143 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14148 case "x-$sdl_hidd" in
14149 x-yes|x-no|x-auto
) ;;
14150 *) sdl_hidd
="auto" ;;
14153 if test "x-$sdl_hidd" != "x-no" ; then
14156 # Check whether --with-sdl-prefix was given.
14157 if test "${with_sdl_prefix+set}" = set; then :
14158 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14164 # Check whether --with-sdl-exec-prefix was given.
14165 if test "${with_sdl_exec_prefix+set}" = set; then :
14166 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14171 # Check whether --enable-sdltest was given.
14172 if test "${enable_sdltest+set}" = set; then :
14173 enableval
=$enable_sdltest;
14179 if test x
$sdl_exec_prefix != x
; then
14180 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14181 if test x
${SDL_CONFIG+set} != xset
; then
14182 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14185 if test x
$sdl_prefix != x
; then
14186 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14187 if test x
${SDL_CONFIG+set} != xset
; then
14188 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14192 as_save_PATH
="$PATH"
14193 if test "x$prefix" != xNONE
; then
14194 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14196 # Extract the first word of "sdl-config", so it can be a program name with args.
14197 set dummy sdl-config
; ac_word
=$2
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14199 $as_echo_n "checking for $ac_word... " >&6; }
14200 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14201 $as_echo_n "(cached) " >&6
14203 case $SDL_CONFIG in
14205 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14209 for as_dir
in $PATH
14212 test -z "$as_dir" && as_dir
=.
14213 for ac_exec_ext
in '' $ac_executable_extensions; do
14214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14215 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14227 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14228 if test -n "$SDL_CONFIG"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14230 $as_echo "$SDL_CONFIG" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14237 PATH
="$as_save_PATH"
14238 min_sdl_version
=1.2.10
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14240 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14242 if test "$SDL_CONFIG" = "no" ; then
14245 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14246 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14248 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14250 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14252 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14254 if test "x$enable_sdltest" = "xyes" ; then
14255 ac_save_CFLAGS
="$CFLAGS"
14256 ac_save_CXXFLAGS
="$CXXFLAGS"
14257 ac_save_LIBS
="$LIBS"
14258 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14259 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14260 LIBS
="$LIBS $SDL_LIBS"
14262 if test "$cross_compiling" = yes; then :
14263 echo $ac_n "cross compiling; assumed OK... $ac_c"
14265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14269 #include <stdlib.h>
14270 #include <string.h>
14274 my_strdup (char *str)
14280 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14281 strcpy (new_str, str);
14289 int main (int argc, char *argv[])
14291 int major, minor, micro;
14294 /* This hangs on some systems (?)
14295 system ("touch conf.sdltest");
14297 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14299 /* HP/UX 9 (%@#!) writes to sscanf strings */
14300 tmp_version = my_strdup("$min_sdl_version");
14301 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14302 printf("%s, bad version string\n", "$min_sdl_version");
14306 if (($sdl_major_version > major) ||
14307 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14308 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14314 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14315 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14316 printf("*** best to upgrade to the required version.\n");
14317 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14318 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14319 printf("*** config.cache before re-running configure\n");
14326 if ac_fn_c_try_run
"$LINENO"; then :
14331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14335 CFLAGS
="$ac_save_CFLAGS"
14336 CXXFLAGS
="$ac_save_CXXFLAGS"
14337 LIBS
="$ac_save_LIBS"
14340 if test "x$no_sdl" = x
; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342 $as_echo "yes" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347 if test "$SDL_CONFIG" = "no" ; then
14348 echo "*** The sdl-config script installed by SDL could not be found"
14349 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14350 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14351 echo "*** full path to sdl-config."
14353 if test -f conf.sdltest
; then
14356 echo "*** Could not run SDL test program, checking why..."
14357 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14358 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14359 LIBS
="$LIBS $SDL_LIBS"
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14366 int main(int argc, char *argv[])
14369 #define main K_and_R_C_main
14379 if ac_fn_c_try_link
"$LINENO"; then :
14380 echo "*** The test program compiled, but did not run. This usually means"
14381 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14382 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14383 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14384 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14385 echo "*** is required on your system"
14387 echo "*** If you have an old version installed, it is best to remove it, although"
14388 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14390 echo "*** The test program failed to compile or link. See the file config.log for the"
14391 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14392 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14393 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14395 rm -f core conftest.err conftest.
$ac_objext \
14396 conftest
$ac_exeext conftest.
$ac_ext
14397 CFLAGS
="$ac_save_CFLAGS"
14398 CXXFLAGS
="$ac_save_CXXFLAGS"
14399 LIBS
="$ac_save_LIBS"
14411 if test "x-$have_sdl" != "x-yes" ; then
14413 if test "x-$sdl_hidd" != "x-auto" ; then
14414 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14418 sdl_hidd_target
=kernel-hidd-sdl
14419 aros_host_sdl_cflags
=SDL_CFLAGS
14420 aros_host_sdl_libs
=SDL_LIBS
14424 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14425 if test "x$ac_cv_header_sys_soundcard_h" = xyes
; then :
14430 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14431 oss_library_target
=workbench-libs-oss-unix
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14437 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14438 # Check whether --enable-dbus was given.
14439 if test "${enable_dbus+set}" = set; then :
14440 enableval
=$enable_dbus; dbus
="yes"
14445 if test "$dbus" = "yes" ; then
14447 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14448 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14449 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14450 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14455 $as_echo "$dbus" >&6; }
14457 if test "$use_kernel_cc_wrapper" = "yes" ; then
14458 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14474 # Compatability with other Amiga-like operation systems
14575 # Delinting target compiler flags
14599 # Native version related
14602 # Palm native version related
14605 # Unix/Hosted version related
14611 # Apple iOS related
14616 # ARM default GCC target related
14643 # Collect-aros stuff: "-ius" to ignore undefined symbols
14646 # C compiler related
14651 #ObjC compiler related
14660 case "$aros_flavour" in
14661 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
14662 aros_flavour
="emulation" ;;
14663 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14664 aros_flavour
="emulation" ;;
14665 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
14666 aros_flavour
="standalone";;
14667 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14668 aros_flavour
="standalone";;
14669 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
14670 aros_flavour
="native" ;;
14671 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14672 aros_flavour
="native" ;;
14673 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
14674 aros_flavour
="linklib" ;;
14675 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14676 aros_flavour
="palmnative" ;;
14677 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14678 aros_flavour
="mac68knative" ;;
14679 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14680 aros_flavour
="ppcnative" ;;
14683 if test ! -d ${aros_inc_dir} ; then
14684 ${MKDIR} ${aros_inc_dir}
14686 if test ! -d ${aros_geninc_dir} ; then
14687 ${MKDIR} ${aros_geninc_dir}
14689 if test ! -d ${aros_hostcfg_dir} ; then
14690 ${MKDIR} ${aros_hostcfg_dir}
14692 if test ! -d ${aros_targetcfg_dir} ; then
14693 ${MKDIR} ${aros_targetcfg_dir}
14695 if test ! -d ${aros_tools_dir} ; then
14696 ${MKDIR} ${aros_tools_dir}
14698 if test ! -d ${aros_scripts_dir} ; then
14699 ${MKDIR} ${aros_scripts_dir}
14702 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14705 # Generic build tools (metamake, etc)
14706 ac_config_commands
="$ac_config_commands genmf-executable-support"
14708 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 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"
14712 ac_config_commands
="$ac_config_commands binutils-support"
14714 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14717 # Bare Elf support script and spec
14718 if test "${use_kernel_cc_wrapper}" = "yes"; then
14719 ac_config_commands
="$ac_config_commands elf-compiler-support"
14721 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"
14725 # Host compiler support scripts and spec
14726 if test "${aros_target_toolchain}" = "no"; then
14727 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
14729 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"
14734 if test "$aros_target_variant" == "android"; then
14735 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14740 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14743 cat >confcache
<<\_ACEOF
14744 # This file is a shell script that caches the results of configure
14745 # tests run on this system so they can be shared between configure
14746 # scripts and configure runs, see configure's option --config-cache.
14747 # It is not useful on other systems. If it contains results you don't
14748 # want to keep, you may remove or edit it.
14750 # config.status only pays attention to the cache file if you give it
14751 # the --recheck option to rerun configure.
14753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14755 # following values.
14759 # The following way of writing the cache mishandles newlines in values,
14760 # but we know of no workaround that is simple, portable, and efficient.
14761 # So, we kill variables containing newlines.
14762 # Ultrix sh set writes to stderr and can't be redirected directly,
14763 # and sets the high bit in the cache file unless we assign to the vars.
14765 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14766 eval ac_val
=\$
$ac_var
14770 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14774 _ | IFS | as_nl
) ;; #(
14775 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14776 *) { eval $ac_var=; unset $ac_var;} ;;
14782 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14783 *${as_nl}ac_space
=\
*)
14784 # `set' does not quote correctly, so add quotes: double-quote
14785 # substitution turns \\\\ into \\, and sed turns \\ into \.
14788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14791 # `set' quotes correctly as required by POSIX, so do not add quotes.
14792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14805 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14806 if test -w "$cache_file"; then
14807 if test "x$cache_file" != "x/dev/null"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14809 $as_echo "$as_me: updating cache $cache_file" >&6;}
14810 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14811 cat confcache
>"$cache_file"
14813 case $cache_file in #(
14815 mv -f confcache
"$cache_file"$$
&&
14816 mv -f "$cache_file"$$
"$cache_file" ;; #(
14818 mv -f confcache
"$cache_file" ;;
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14829 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14830 # Let make expand exec_prefix.
14831 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14833 DEFS
=-DHAVE_CONFIG_H
14838 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14839 # 1. Remove the extension, and $U if already installed.
14840 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14841 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14843 # will be set to the directory where LIBOBJS objects are built.
14844 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14845 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14847 LIBOBJS
=$ac_libobjs
14849 LTLIBOBJS
=$ac_ltlibobjs
14853 : "${CONFIG_STATUS=./config.status}"
14855 ac_clean_files_save
=$ac_clean_files
14856 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14862 # Generated by $as_me.
14863 # Run this file to recreate the current configuration.
14864 # Compiler output produced by configure, useful for debugging
14865 # configure, is in config.log if it exists.
14868 ac_cs_recheck=false
14871 SHELL=\${CONFIG_SHELL-$SHELL}
14874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14875 ## -------------------- ##
14876 ## M4sh Initialization. ##
14877 ## -------------------- ##
14879 # Be more Bourne compatible
14880 DUALCASE
=1; export DUALCASE
# for MKS sh
14881 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14885 # is contrary to our usage. Disable this feature.
14886 alias -g '${1+"$@"}'='"$@"'
14887 setopt NO_GLOB_SUBST
14889 case `(set -o) 2>/dev/null` in #(
14901 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14902 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14905 # Prefer a ksh shell builtin over an external printf program on Solaris,
14906 # but without wasting forks for bash or zsh.
14907 if test -z "$BASH_VERSION$ZSH_VERSION" \
14908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14909 as_echo='print
-r --'
14910 as_echo_n='print
-rn --'
14911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14912 as_echo='printf %s
\n'
14913 as_echo_n='printf %s
'
14915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14916 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14917 as_echo_n='/usr
/ucb
/echo -n'
14919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14920 as_echo_n_body='eval
14924 expr "X$arg" : "X\\(.*\\)$as_nl";
14925 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14927 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14929 export as_echo_n_body
14930 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14932 export as_echo_body
14933 as_echo='sh
-c $as_echo_body as_echo
'
14936 # The user is always right.
14937 if test "${PATH_SEPARATOR+set}" != set; then
14939 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14940 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14947 # We need space, tab and new line, in precisely that order. Quoting is
14948 # there to prevent editors from complaining about space-tab.
14949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14950 # splitting by setting IFS to empty value.)
14953 # Find who we are. Look in the path if we contain no directory separator.
14956 *[\\/]* ) as_myself=$0 ;;
14957 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 for as_dir in $PATH
14961 test -z "$as_dir" && as_dir=.
14962 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14968 # We did not find ourselves, most probably we were run as `sh COMMAND'
14969 # in which case we are not to be found in the path.
14970 if test "x$as_myself" = x
; then
14973 if test ! -f "$as_myself"; then
14974 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14978 # Unset variables that we do not need and which cause bugs (e.g. in
14979 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14980 # suppresses any "Segmentation fault" message there. '((' could
14981 # trigger a bug in pdksh 5.2.14.
14982 for as_var
in BASH_ENV ENV MAIL MAILPATH
14983 do eval test x\
${$as_var+set} = xset \
14984 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14997 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15000 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15001 # ----------------------------------------
15002 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15003 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15004 # script with STATUS, using 1 if that was 0.
15007 as_status
=$1; test $as_status -eq 0 && as_status
=1
15009 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15010 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15012 $as_echo "$as_me: error: $2" >&2
15013 as_fn_exit
$as_status
15017 # as_fn_set_status STATUS
15018 # -----------------------
15019 # Set $? to STATUS, without forking.
15020 as_fn_set_status
()
15023 } # as_fn_set_status
15025 # as_fn_exit STATUS
15026 # -----------------
15027 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15031 as_fn_set_status
$1
15037 # Portably unset VAR.
15040 { eval $1=; unset $1;}
15042 as_unset
=as_fn_unset
15043 # as_fn_append VAR VALUE
15044 # ----------------------
15045 # Append the text in VALUE to the end of the definition contained in VAR. Take
15046 # advantage of any shell optimizations that allow amortized linear growth over
15047 # repeated appends, instead of the typical quadratic growth present in naive
15049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15050 eval 'as_fn_append ()
15061 # as_fn_arith ARG...
15062 # ------------------
15063 # Perform arithmetic evaluation on the ARGs, and store the result in the
15064 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15065 # must be portable across $(()) and expr.
15066 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15067 eval 'as_fn_arith ()
15074 as_val
=`expr "$@" || test $? -eq 1`
15079 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15080 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15086 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15087 as_basename
=basename
15092 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15098 as_me
=`$as_basename -- "$0" ||
15099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15100 X"$0" : 'X\(//\)$' \| \
15101 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15103 sed '/^.*\/\([^/][^/]*\)\/*$/{
15117 # Avoid depending upon Character Ranges.
15118 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15119 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15121 as_cr_digits
='0123456789'
15122 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15124 ECHO_C
= ECHO_N
= ECHO_T
=
15125 case `echo -n x` in #(((((
15127 case `echo 'xy\c'` in
15128 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15130 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15137 rm -f conf$$ conf$$.exe conf$$.
file
15138 if test -d conf$$.dir
; then
15139 rm -f conf$$.dir
/conf$$.
file
15142 mkdir conf$$.dir
2>/dev
/null
15144 if (echo >conf$$.
file) 2>/dev
/null
; then
15145 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15147 # ... but there are two gotchas:
15148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15150 # In both cases, we have to default to `cp -pR'.
15151 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15153 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15161 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15162 rmdir conf$$.dir
2>/dev
/null
15167 # Create "$as_dir" as a directory, including parents if necessary.
15172 -*) as_dir
=.
/$as_dir;;
15174 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15178 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15179 *) as_qdir
=$as_dir;;
15181 as_dirs
="'$as_qdir' $as_dirs"
15182 as_dir
=`$as_dirname -- "$as_dir" ||
15183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15184 X"$as_dir" : 'X\(//\)[^/]' \| \
15185 X"$as_dir" : 'X\(//\)$' \| \
15186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15187 $as_echo X"$as_dir" |
15188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15192 /^X\(\/\/\)[^/].*/{
15205 test -d "$as_dir" && break
15207 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15208 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15212 if mkdir
-p .
2>/dev
/null
; then
15213 as_mkdir_p
='mkdir -p "$as_dir"'
15215 test -d .
/-p && rmdir .
/-p
15220 # as_fn_executable_p FILE
15221 # -----------------------
15222 # Test if FILE is an executable regular file.
15223 as_fn_executable_p
()
15225 test -f "$1" && test -x "$1"
15226 } # as_fn_executable_p
15227 as_test_x
='test -x'
15228 as_executable_p
=as_fn_executable_p
15230 # Sed expression to map a string onto a valid CPP name.
15231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15233 # Sed expression to map a string onto a valid variable name.
15234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15238 ## ----------------------------------- ##
15239 ## Main body of $CONFIG_STATUS script. ##
15240 ## ----------------------------------- ##
15242 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15245 # Save the log message, to keep $0 and so on meaningful, and to
15246 # report actual input values of CONFIG_FILES etc. instead of their
15247 # values after options handling.
15249 This file was extended by $as_me, which was
15250 generated by GNU Autoconf 2.69. Invocation command line was
15252 CONFIG_FILES = $CONFIG_FILES
15253 CONFIG_HEADERS = $CONFIG_HEADERS
15254 CONFIG_LINKS = $CONFIG_LINKS
15255 CONFIG_COMMANDS = $CONFIG_COMMANDS
15258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15263 case $ac_config_files in *"
15264 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15267 case $ac_config_headers in *"
15268 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 # Files that config.status was made for.
15274 config_files="$ac_config_files"
15275 config_headers="$ac_config_headers"
15276 config_commands="$ac_config_commands"
15280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15282 \`$as_me' instantiates files and other configuration actions
15283 from templates according to the current configuration. Unless the files
15284 and actions are specified as TAGs, all are instantiated by default.
15286 Usage: $0 [OPTION]... [TAG]...
15288 -h, --help print this help, then exit
15289 -V, --version print version number and configuration settings, then exit
15290 --config print configuration, then exit
15291 -q, --quiet, --silent
15292 do not print progress messages
15293 -d, --debug don't remove temporary files
15294 --recheck update $as_me by reconfiguring in the same conditions
15295 --file=FILE[:TEMPLATE]
15296 instantiate the configuration file FILE
15297 --header=FILE[:TEMPLATE]
15298 instantiate the configuration header FILE
15300 Configuration files:
15303 Configuration headers:
15306 Configuration commands:
15309 Report bugs to the package provider."
15312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15316 configured by $0, generated by GNU Autoconf 2.69,
15317 with options \\"\$ac_cs_config\\"
15319 Copyright (C) 2012 Free Software Foundation, Inc.
15320 This config.status script is free software; the Free Software Foundation
15321 gives unlimited permission to copy, distribute and modify it."
15325 test -n "\$AWK" || AWK=awk
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15329 # The default lists apply if the user does not specify any file.
15335 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15336 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15340 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15352 # Handling of the options.
15353 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15355 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15356 $as_echo "$ac_cs_version"; exit ;;
15357 --config |
--confi |
--conf |
--con |
--co |
--c )
15358 $as_echo "$ac_cs_config"; exit ;;
15359 --debug |
--debu |
--deb |
--de |
--d |
-d )
15361 --file |
--fil |
--fi |
--f )
15364 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15365 '') as_fn_error $?
"missing file argument" ;;
15367 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15368 ac_need_defaults
=false
;;
15369 --header |
--heade |
--head |
--hea )
15372 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15374 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15375 ac_need_defaults
=false
;;
15377 # Conflict between --help and --header
15378 as_fn_error $?
"ambiguous option: \`$1'
15379 Try \`$0 --help' for more information.";;
15380 --help |
--hel |
-h )
15381 $as_echo "$ac_cs_usage"; exit ;;
15382 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15383 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15386 # This is an error.
15387 -*) as_fn_error $?
"unrecognized option: \`$1'
15388 Try \`$0 --help' for more information." ;;
15390 *) as_fn_append ac_config_targets
" $1"
15391 ac_need_defaults
=false
;;
15397 ac_configure_extra_args
=
15399 if $ac_cs_silent; then
15401 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15406 if \$ac_cs_recheck; then
15407 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15410 CONFIG_SHELL='$SHELL'
15411 export CONFIG_SHELL
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15421 ## Running $as_me. ##
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431 aros_tools_dir=${aros_tools_dir}
15434 aros_host_exe_suffix=${aros_host_exe_suffix}
15435 aros_tools_dir=${aros_tools_dir}
15436 aros_target_cpu=${aros_target_cpu}
15437 aros_target_arch=${aros_target_arch}
15438 aros_target_suffix=${aros_target_suffix}
15439 orig_target_nm=${orig_target_nm}
15440 orig_target_as=${orig_target_as}
15441 orig_target_ar=${orig_target_ar}
15442 orig_target_ranlib=${orig_target_ranlib}
15443 orig_target_objdump=${orig_target_objdump}
15444 orig_target_objcopy=${orig_target_objcopy}
15445 orig_target_strip=${orig_target_strip}
15446 aros_kernel_ld=${aros_kernel_ld}
15450 aros_host_exe_suffix=${aros_host_exe_suffix}
15451 aros_tools_dir=${aros_tools_dir}
15452 aros_target_cpu=${aros_target_cpu}
15453 aros_target_arch=${aros_target_arch}
15454 aros_target_suffix=${aros_target_suffix}
15455 aros_kernel_ld=${aros_kernel_ld}
15459 aros_host_exe_suffix=${aros_host_exe_suffix}
15460 aros_tools_dir=${aros_tools_dir}
15461 aros_target_cpu=${aros_target_cpu}
15462 aros_target_arch=${aros_target_arch}
15463 aros_target_suffix=${aros_target_suffix}
15469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15471 # Handling of arguments.
15472 for ac_config_target
in $ac_config_targets
15474 case $ac_config_target in
15475 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15476 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15477 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15478 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15479 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15480 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15481 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15482 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15483 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15484 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15485 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15486 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15487 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15488 "${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" ;;
15489 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15490 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15491 "${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" ;;
15492 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15493 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15494 "${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" ;;
15495 "${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" ;;
15496 "${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" ;;
15497 "${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" ;;
15498 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15500 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15505 # If the user did not use the arguments to specify the items to instantiate,
15506 # then the envvar interface is used. Set only those that are not.
15507 # We use the long form for the default assignment because of an extremely
15508 # bizarre bug on SunOS 4.1.3.
15509 if $ac_need_defaults; then
15510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15515 # Have a temporary directory for convenience. Make it in the build tree
15516 # simply because there is no reason against having it here, and in addition,
15517 # creating and moving files from /tmp can sometimes cause problems.
15518 # Hook for its removal unless debugging.
15519 # Note that there is a small window in which the directory will not be cleaned:
15520 # after its creation but before its name has been assigned to `$tmp'.
15524 trap 'exit_status=$?
15525 : "${ac_tmp:=$tmp}"
15526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15528 trap 'as_fn_exit 1' 1 2 13 15
15530 # Create a (secure) tmp directory for tmp files.
15533 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15537 tmp
=.
/conf$$
-$RANDOM
15538 (umask 077 && mkdir
"$tmp")
15539 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15542 # Set up the scripts for CONFIG_FILES section.
15543 # No need to generate them if there are no CONFIG_FILES.
15544 # This happens for instance with `./config.status config.h'.
15545 if test -n "$CONFIG_FILES"; then
15548 ac_cr
=`echo X | tr X '\015'`
15549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15550 # But we know of no other shell where ac_cr would be empty at this
15551 # point, so we can use a bashism as a fallback.
15552 if test "x$ac_cr" = x
; then
15553 eval ac_cr
=\$
\'\\r
\'
15555 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15559 ac_cs_awk_cr
=$ac_cr
15562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15567 echo "cat >conf$$subs.awk <<_ACEOF" &&
15568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15570 } >conf$$subs.sh ||
15571 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15574 for ac_last_try in false false false false false :; do
15575 . ./conf$$subs.sh ||
15576 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15578 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15579 if test $ac_delim_n = $ac_delim_num; then
15581 elif $ac_last_try; then
15582 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15584 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15587 rm -f conf$$subs.sh
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15594 s/^/S["/; s
/!.
*/"]=/
15604 s/\(.\{148\}\)..*/\1/
15606 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15611 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15618 s/\(.\{148\}\)..*/\1/
15620 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15624 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15629 ' <conf$$subs.awk | sed '
15634 ' >>$CONFIG_STATUS || ac_write_fail=1
15635 rm -f conf$$subs.awk
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15639 for (key in S) S_is_set[key] = 1
15645 nfields = split(line, field, "@
")
15647 len = length(field[1])
15648 for (i = 2; i < nfields; i++) {
15650 keylen = length(key)
15651 if (S_is_set[key]) {
15653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15654 len += length(value) + length(field[++i])
15665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15666 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15667 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15670 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15671 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15676 # trailing colons and then remove the whole line if VPATH becomes empty
15677 # (actually we leave an empty line to preserve line numbers).
15678 if test "x
$srcdir" = x.; then
15679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 fi # test -n "$CONFIG_FILES"
15700 # Set up the scripts for CONFIG_HEADERS section.
15701 # No need to generate them if there are no CONFIG_HEADERS.
15702 # This happens for instance with `./config.status Makefile'.
15703 if test -n "$CONFIG_HEADERS"; then
15704 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15708 # Transform confdefs.h into an awk script `defines.awk', embedded as
15709 # here-document in config.status, that substitutes the proper values into
15710 # config.h.in to produce config.h.
15712 # Create a delimiter string that does not exist in confdefs.h, to ease
15713 # handling of long lines.
15715 for ac_last_try in false false :; do
15716 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15717 if test -z "$ac_tt"; then
15719 elif $ac_last_try; then
15720 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15722 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15726 # For the awk script, D is an array of macro values keyed by name,
15727 # likewise P contains macro parameters if any. Preserve backslash
15728 # newline sequences.
15730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15732 s/.\{148\}/&'"$ac_delim"'/g
15735 s/^[ ]*#[ ]*define[ ][ ]*/ /
15742 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15744 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15749 D["\
1"]=" \
3\\\\\\n
"\\/p
15751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15756 s/.\{148\}/&'"$ac_delim"'/g
15761 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15764 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15766 ' <confdefs.h | sed '
15767 s/'"$ac_delim"'/"\\\
15768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15771 for (key in D) D_is_set[key] = 1
15774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15776 split(line, arg, " ")
15777 if (arg[1] == "#") {
15781 defundef
= substr
(arg
[1], 2)
15784 split(mac1
, mac2
, "(") #)
15786 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15787 if (D_is_set
[macro
]) {
15788 # Preserve the white space surrounding the "#".
15789 print prefix
"define", macro P
[macro
] D
[macro
]
15792 # Replace #undef with comments. This is necessary, for example,
15793 # in the case of _POSIX_SOURCE, which is predefined and required
15794 # on some systems where configure will not decide to define it.
15795 if (defundef
== "undef") {
15796 print
"/*", prefix defundef
, macro
, "*/"
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15805 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15806 fi # test -n "$CONFIG_HEADERS"
15809 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15814 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15816 case $ac_mode$ac_tag in
15818 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15819 :[FH
]-) ac_tag
=-:-;;
15820 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15837 -) ac_f
="$ac_tmp/stdin";;
15838 *) # Look for the file first in the build tree, then in the source tree
15839 # (if the path is not absolute). The absolute path cannot be DOS-style,
15840 # because $ac_f cannot contain `:'.
15844 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15846 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15848 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15849 as_fn_append ac_file_inputs
" '$ac_f'"
15852 # Let's still pretend it is `configure' which instantiates (i.e., don't
15853 # use $as_me), people would be surprised to read:
15854 # /* config.h. Generated by config.status. */
15855 configure_input
='Generated from '`
15856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15858 if test x
"$ac_file" != x-
; then
15859 configure_input
="$ac_file. $configure_input"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15861 $as_echo "$as_me: creating $ac_file" >&6;}
15863 # Neutralize special characters interpreted by sed in replacement strings.
15864 case $configure_input in #(
15865 *\
&* |
*\|
* |
*\\* )
15866 ac_sed_conf_input
=`$as_echo "$configure_input" |
15867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15868 *) ac_sed_conf_input
=$configure_input;;
15872 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15873 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15878 ac_dir
=`$as_dirname -- "$ac_file" ||
15879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15880 X"$ac_file" : 'X\(//\)[^/]' \| \
15881 X"$ac_file" : 'X\(//\)$' \| \
15882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15883 $as_echo X"$ac_file" |
15884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15888 /^X\(\/\/\)[^/].*/{
15901 as_dir
="$ac_dir"; as_fn_mkdir_p
15905 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15907 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15908 # A ".." for each directory in $ac_dir_suffix.
15909 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15910 case $ac_top_builddir_sub in
15911 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15912 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15915 ac_abs_top_builddir
=$ac_pwd
15916 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15917 # for backward compatibility:
15918 ac_top_builddir
=$ac_top_build_prefix
15921 .
) # We are building in place.
15923 ac_top_srcdir
=$ac_top_builddir_sub
15924 ac_abs_top_srcdir
=$ac_pwd ;;
15925 [\\/]* | ?
:[\\/]* ) # Absolute name.
15926 ac_srcdir
=$srcdir$ac_dir_suffix;
15927 ac_top_srcdir
=$srcdir
15928 ac_abs_top_srcdir
=$srcdir ;;
15929 *) # Relative name.
15930 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15931 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15932 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15934 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15946 # If the template does not know about datarootdir, expand it.
15947 # FIXME: This hack should be removed a few years after 2.60.
15948 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15960 *datarootdir
*) ac_datarootdir_seen
=yes;;
15961 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15966 ac_datarootdir_hack='
15967 s&@datadir@&$datadir&g
15968 s&@docdir@&$docdir&g
15969 s&@infodir@&$infodir&g
15970 s&@localedir@&$localedir&g
15971 s&@mandir@&$mandir&g
15972 s&\\\${datarootdir}&$datarootdir&g' ;;
15976 # Neutralize VPATH when `$srcdir' = `.'.
15977 # Shell code in configure.ac might set extrasub.
15978 # FIXME: do we really want to maintain this feature?
15979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15980 ac_sed_extra="$ac_vpsub
15983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15985 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15986 s|@configure_input@|
$ac_sed_conf_input|
;t t
15987 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15988 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15989 s
&@srcdir@
&$ac_srcdir&;t t
15990 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15991 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15992 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15993 s
&@builddir@
&$ac_builddir&;t t
15994 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15995 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15996 $ac_datarootdir_hack
15998 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15999 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16001 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16002 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16003 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16004 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16006 which seems to be undefined. Please make sure it is defined" >&5
16007 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16008 which seems to be undefined. Please make sure it is defined" >&2;}
16010 rm -f "$ac_tmp/stdin"
16012 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16013 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16021 if test x"$ac_file" != x-; then
16023 $as_echo "/* $configure_input */" \
16024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16025 } >"$ac_tmp/config.h" \
16026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16027 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16029 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16032 mv "$ac_tmp/config.h" "$ac_file" \
16033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16036 $as_echo "/* $configure_input */" \
16037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16038 || as_fn_error $? "could not create -" "$LINENO" 5
16042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16043 $as_echo "$as_me: executing $ac_file commands" >&6;}
16048 case $ac_file$ac_mode in
16049 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16050 "binutils-support":C)
16051 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16053 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16055 chmod a+x ${prefix2}-ld
16057 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16058 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16059 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16060 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16061 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16062 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16063 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16065 "elf-compiler-support":C)
16066 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16068 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16070 chmod a+x ${prefix2}-gcc
16072 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16074 "host-compiler-wrapper-support":C)
16075 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16077 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16079 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16088 ac_clean_files=$ac_clean_files_save
16090 test $ac_write_fail = 0 ||
16091 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16094 # configure is writing to config.log, and then calls config.status.
16095 # config.status does its own redirection, appending to config.log.
16096 # Unfortunately, on DOS this fails, as config.log is still kept open
16097 # by configure, so config.status won't be able to
write to it
; its
16098 # output is simply discarded. So we exec the FD to /dev/null,
16099 # effectively closing config.log, so it can be properly (re)opened and
16100 # appended to by config.status. When coming back to configure, we
16101 # need to make the FD available again.
16102 if test "$no_create" != yes; then
16104 ac_config_status_args
=
16105 test "$silent" = yes &&
16106 ac_config_status_args
="$ac_config_status_args --quiet"
16108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16111 # would make configure fail if this is the last instruction.
16112 $ac_cs_success || as_fn_exit
1
16114 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16116 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16121 #XXX compatability...
16122 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16124 if test -n "$aros_shared_cflags" ; then
16125 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16126 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg