2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
565 ac_unique_file
="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 ac_subst_vars
='LTLIBOBJS
605 ignore_undefined_symbols
621 aros_nesting_supervisor
627 aros_host_x11_libdirs
628 aros_host_x11_includes
632 aros_default_wbheight
638 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
645 aros_target_strip_flags
652 aros_kernel_objcflags
671 aros_target_cc_includes
691 aros_target_bootloader
711 aros_amigaos_compliance
717 aros_target_toolchain
726 aros_cflags_iquote_end
728 kernel_cflags_iquote_end
730 host_cflags_iquote_end
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
842 program_transform_name
855 enable_option_checking
864 enable_target_variant
870 enable_amigaos_compliance
872 with_kernel_tool_prefix
883 enable_palm_debug_hack
885 enable_nesting_supervisor
897 ac_precious_vars
='build_alias
912 # Initialize some variables set by options.
914 ac_init_version
=false
915 ac_unrecognized_opts
=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name
=s
,x
,x
,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir
='${exec_prefix}/bin'
941 sbindir
='${exec_prefix}/sbin'
942 libexecdir
='${exec_prefix}/libexec'
943 datarootdir
='${prefix}/share'
944 datadir
='${datarootdir}'
945 sysconfdir
='${prefix}/etc'
946 sharedstatedir
='${prefix}/com'
947 localstatedir
='${prefix}/var'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=no
;;
1031 -docdir |
--docdir |
--docdi |
--doc |
--do)
1033 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1034 docdir
=$ac_optarg ;;
1036 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1038 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1039 dvidir
=$ac_optarg ;;
1041 -enable-* |
--enable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error $?
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
1177 -program-transform-name=* |
--program-transform-name=* \
1178 |
--program-transform-nam=* |
--program-transform-na=* \
1179 |
--program-transform-n=* |
--program-transform-=* \
1180 |
--program-transform=* |
--program-transfor=* \
1181 |
--program-transfo=* |
--program-transf=* \
1182 |
--program-trans=* |
--program-tran=* \
1183 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1184 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1202 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1204 sbindir
=$ac_optarg ;;
1206 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1207 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1208 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1210 ac_prev
=sharedstatedir
;;
1211 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1212 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1213 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1215 sharedstatedir
=$ac_optarg ;;
1217 -site |
--site |
--sit)
1219 -site=* |
--site=* |
--sit=*)
1222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1225 srcdir
=$ac_optarg ;;
1227 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1228 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1229 ac_prev
=sysconfdir
;;
1230 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1231 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1232 sysconfdir
=$ac_optarg ;;
1234 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1235 ac_prev
=target_alias
;;
1236 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1237 target_alias
=$ac_optarg ;;
1239 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1242 -version |
--version |
--versio |
--versi |
--vers |
-V)
1243 ac_init_version
=: ;;
1246 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1249 as_fn_error $?
"invalid package name: $ac_useropt"
1250 ac_useropt_orig
=$ac_useropt
1251 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep
=', ';;
1259 eval with_
$ac_useropt=\
$ac_optarg ;;
1261 -without-* |
--without-*)
1262 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1265 as_fn_error $?
"invalid package name: $ac_useropt"
1266 ac_useropt_orig
=$ac_useropt
1267 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep
=', ';;
1275 eval with_
$ac_useropt=no
;;
1278 # Obsolete; use --with-x.
1281 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1282 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1283 ac_prev
=x_includes
;;
1284 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1285 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1286 x_includes
=$ac_optarg ;;
1288 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1289 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1290 ac_prev
=x_libraries
;;
1291 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1292 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1293 x_libraries
=$ac_optarg ;;
1295 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1300 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1304 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1306 eval $ac_envvar=\
$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 if test -n "$ac_prev"; then
1321 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $?
"missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val
=\$
$ac_var
1340 # Remove trailing slashes.
1343 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\
$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$
]* | ?
:[\\/]* ) continue;;
1349 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1351 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target
=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x
; then
1363 if test "x$build_alias" = x
; then
1364 cross_compiling
=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --x-includes=DIR X include files are
in DIR
1511 --x-libraries=DIR X library files are
in DIR
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 if test -n "$ac_init_help"; then
1524 --disable-option-checking ignore unrecognized
--enable/--with options
1525 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1526 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1527 --enable-build-type=TYPE
1528 Select the build
type. Available types are
:
1529 personal
, nightly
, snapshot
, milestone
, release. Do
1530 NOT use this option unless you know what you are
1531 doing
! (default
=personal
)
1532 --enable-debug=list Enable different types of debug. Commas or
1533 whitespaces can be used to separate the items
in the
1534 list. Available types of debug are
: all
, none
,
1535 messages
, stack
, mungwall
, modules
, symbols. If no
1536 list is provided
then "all" is assumed.
1538 --disable-crosstools Do not build cross-compiler toolchain
1539 --enable-distcc Use distcc as a front end to the compiler
1541 --enable-ccache Use ccache as a front end to the compiler
1543 --enable-target-variant=NAME
1544 Enable a specific target variant
(default
=none
)
1545 --enable-amigaos-compliance=VERSION
1546 Enforce userspace AmigaOS compliance to a specific
1547 KickStart version
(default
=none
).
1548 --enable-palm-debug-hack
1549 Enable palm debug output hack
in palm native
1551 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1552 --enable-nesting-supervisor
1553 Enable nesting supervisor support
in unix
1555 --disable-mmu Disable MMU support
(default
=enabled
)
1556 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1557 --enable-x11-shm use X11 shared memory
(default
=auto
)
1558 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1559 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1560 --disable-sdltest Do not try to compile and run a
test SDL program
1561 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1564 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1565 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1566 --with-kernel-gcc-version=VERSION
1567 Use
host gcc-VERSION
for building AROS
1568 --with-gcc-version=VERSION
1569 Use
host gcc-VERSION
for building AROS
1570 --with-optimization=FLAGS
1571 Use optimization flags FLAGS
(default
=-O2).
1572 --with-paranoia=FLAGS CC flags to
enable paranoia
1573 --with-xcode=PATH Specify XCode path
for iOS targets
1574 (default
=/Developer
).
1575 --with-sdk-version=VERSION
1576 Use iOS SDK version VERSION
(default
=4.1).
1577 --with-sdk=PATH Specify Android SDK path
1578 (default
=$default_android_sdk).
1579 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1580 --with-sdk-version=LEVEL
1581 Use Android SDK
for API LEVEL
(default
=12).
1582 --with-ndk-version=LEVEL
1583 Use Android NDK
for API LEVEL
(default
=9).
1584 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1585 --with-kernel-tool-prefix=...
1586 Specify crosscompile toolchain prefix
for kernel
1588 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1589 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1590 --with-float=<spec
> Specify floating point ABI
1591 (default
=$gcc_default_float_abi).
1592 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1593 --with-portssources=DIR Where to download sourcecode
for external ports
1594 --with-bootloader=NAME Use a specific bootloader
1595 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1596 --with-theme=NAME Use a specific GUI Theme
1597 --with-resolution=XRESxYRESxDEPTH
1598 Default resolution of the initial WorkbenchScreen
1599 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1600 --with-x use the X Window System
1601 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1602 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1604 Some influential environment variables
:
1605 CC C compiler
command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1608 nonstandard directory
<lib dir
>
1609 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1610 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1611 you have headers
in a nonstandard directory
<include dir
>
1612 CXX C
++ compiler
command
1613 CXXFLAGS C
++ compiler flags
1615 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1617 Use these variables to override the choices made by
`configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1650 .) # We are building in place.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1684 generated by GNU Autoconf 2.68
1686 Copyright (C) 2010 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1707 *) ac_try_echo
=$ac_try;;
1709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1713 if test -s conftest.err
; then
1714 grep -v '^ *+' conftest.err
>conftest.er1
1715 cat conftest.er1
>&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.
$ac_objext; then :
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.
$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status
$ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile
()
1740 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1741 rm -f conftest.
$ac_objext
1742 if { { ac_try
="$ac_compile"
1744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i
&& {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status
$ac_retval
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 if eval \
${$3+:} false
; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \
${$3+:} false
; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile
"$LINENO"; then :
1837 ac_header_compiler
=yes
1839 ac_header_compiler
=no
1841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp
"$LINENO"; then :
1853 ac_header_preproc
=yes
1855 ac_header_preproc
=no
1857 rm -f conftest.err conftest.i conftest.
$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1903 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1904 if { { ac_try
="$ac_link"
1906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1917 *) ac_try_echo
=$ac_try;;
1919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.
$ac_ext >&5
1931 ac_retval
=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile
()
1945 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \
${$3+:} false
; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 rm -f conftest.
$ac_objext conftest
$ac_exeext
1977 if { { ac_try
="$ac_link"
1979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2017 # ----------------------------------------------------
2018 # Tries to find if the field MEMBER exists in type AGGR, after including
2019 # INCLUDES, setting cache variable VAR accordingly.
2020 ac_fn_c_check_member ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2024 $as_echo_n "checking for $2.$3... " >&6; }
2025 if eval \${$4+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2051 if (sizeof ac_aggr.$3)
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_member
2073 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2074 # ---------------------------------------------
2075 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2077 ac_fn_c_check_decl ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2081 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2083 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 #ifndef $as_decl_name
2095 (void) $as_decl_use;
2097 (void) $as_decl_name;
2105 if ac_fn_c_try_compile "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_decl
2119 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120 # -------------------------------------------
2121 # Tests whether TYPE exists after having included INCLUDES, setting cache
2122 # variable VAR accordingly.
2123 ac_fn_c_check_type ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if eval \${$3+:} false; then :
2129 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_type
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2196 # include <limits.h>
2198 # include <assert.h>
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2225 if ac_fn_c_try_link "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext \
2231 conftest$ac_exeext conftest.$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_func
2239 cat >config.log <<_ACEOF
2240 This file contains any messages produced by compilers while
2241 running configure, to aid debugging if configure makes a mistake.
2243 It was created by $as_me, which was
2244 generated by GNU Autoconf 2.68. Invocation command line was
2256 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2257 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2258 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2259 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2260 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2262 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2263 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2265 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2266 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2267 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2268 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2269 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2270 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2271 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 $as_echo "PATH: $as_dir"
2296 # Keep a trace of the command line.
2297 # Strip out --no-create and --no-recursion so they do not pile up.
2298 # Strip out --silent because we don't want to record it for future runs.
2299 # Also quote any args containing shell meta-characters.
2300 # Make two passes to allow for proper duplicate-argument suppression.
2304 ac_must_keep_next=false
2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312 | -silent | --silent | --silen | --sile | --sil)
2315 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320 as_fn_append ac_configure_args1 " '$ac_arg'"
2321 if test $ac_must_keep_next = true; then
2322 ac_must_keep_next=false # Got value, back to normal.
2325 *=* | --config-cache | -C | -disable-* | --disable-* \
2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328 | -with-* | --with-* | -without-* | --without-* | --x)
2329 case "$ac_configure_args0 " in
2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2333 -* ) ac_must_keep_next=true ;;
2336 as_fn_append ac_configure_args " '$ac_arg'"
2341 { ac_configure_args0=; unset ac_configure_args0;}
2342 { ac_configure_args1=; unset ac_configure_args1;}
2344 # When interrupted or exit'd, cleanup temporary files, and complete
2345 # config.log. We remove comments because anyway the quotes in there
2346 # would cause problems or look ugly.
2347 # WARNING: Use '\'' to represent an apostrophe within the trap.
2348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349 trap 'exit_status=$?
2350 # Save into config.log some information that might help in debugging.
2354 $as_echo "## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##"
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2361 eval ac_val=\$$ac_var
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2376 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 $as_echo "## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##"
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2398 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 $as_echo "$ac_var='\''$ac_val'\''"
2404 if test -n "$ac_subst_files"; then
2405 $as_echo "## ------------------- ##
2406 ## File substitutions. ##
2407 ## ------------------- ##"
2409 for ac_var in $ac_subst_files
2411 eval ac_val=\$$ac_var
2413 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 $as_echo "$ac_var='\''$ac_val'\''"
2420 if test -s confdefs.h; then
2421 $as_echo "## ----------- ##
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2477 if test -n "$CONFIG_SITE"; then
2478 # We do not want a PATH search for config.site.
2479 case $CONFIG_SITE in #((
2480 -*) ac_site_file1=./$CONFIG_SITE;;
2481 */*) ac_site_file1=$CONFIG_SITE;;
2482 *) ac_site_file1=./$CONFIG_SITE;;
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 test "x$ac_site_file" = xNONE && continue
2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "failed to load site
script $ac_site_file
2502 See \
`config.log' for more details" "$LINENO" 5; }
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 as_fn_append ac_header_list " stdlib.h"
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_header_list " sys/param.h"
2526 # Check that the precious variables saved in the cache have kept the same
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2537 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2541 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x
$ac_old_val`
2548 ac_new_val_w=`echo x
$ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2552 ac_cache_corrupted=:
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Check what host we are running on.
2626 # If a target is not suggested, we use this one.
2627 # Note that what we call a target, Autoconf calls a host.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653 ac_save_IFS=$IFS; IFS='-'
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2663 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2700 # The AROS target is slightly different to the normal GNU style
2701 # format. We don't have the middle part, and we reverse the order
2702 # of the $(CPU) and $(OS) bits.
2704 # Don't strip the version of the target yet, it might be
2705 # useful on some systems.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2708 $as_echo_n "checking for AROS style target... " >&6; }
2710 if test "$target" = "NONE" ; then
2711 target=$host_os-$host_cpu
2713 if test "$target" = "" ; then
2714 target=$host_os-$host_cpu
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2718 $as_echo "$target" >&6; }
2720 if test "$host_os" = "mingw32" ; then
2724 # Don't know where else to put this...
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2726 $as_echo_n "checking building AROS in... " >&6; }
2727 AROS_BUILDDIR=`${PWDCMD-pwd}`
2728 AROS_BUILDDIR_UNIX=${PWD}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2730 $as_echo "$AROS_BUILDDIR" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2733 $as_echo_n "checking AROS source in... " >&6; }
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2737 $as_echo "$SRCDIR" >&6; }
2739 # Parse the target field into something useful.
2741 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2742 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2745 aros_default_wbwidth=800
2746 aros_default_wbheight=600
2747 aros_default_wbdepth=4
2750 # The first step is to find the host binaries.
2751 # Check for a compiler.
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2796 if test -z "$ac_cv_prog_CC"; then
2798 # Extract the first word of "gcc", so it can be a program name with args.
2799 set dummy gcc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="gcc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2834 if test "x$ac_ct_CC" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2890 if test -z "$CC"; then
2891 # Extract the first word of "cc", so it can be a program name with args.
2892 set dummy cc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 for ac_prog in cl.exe
2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$CC" && break
2990 if test -z "$CC"; then
2992 for ac_prog in cl.exe
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3031 test -n "$ac_ct_CC" && break
3034 if test "x$ac_ct_CC" = x; then
3037 case $cross_compiling:$ac_tool_warned in
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3053 See \
`config.log' for more details" "$LINENO" 5; }
3055 # Provide some information about the compiler.
3056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3059 for ac_option in --version -v -V -qversion; do
3060 { { ac_try="$ac_compiler $ac_option >&5"
3062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3063 *) ac_try_echo
=$ac_try;;
3065 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069 if test -s conftest.err
; then
3071 ... rest of stderr output deleted ...
3072 10q' conftest.err
>conftest.er1
3073 cat conftest.er1
>&5
3075 rm -f conftest.er1 conftest.err
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }
3080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3091 ac_clean_files_save
=$ac_clean_files
3092 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097 $as_echo_n "checking whether the C compiler works... " >&6; }
3098 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # The possible output files:
3101 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3104 for ac_file
in $ac_files
3107 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3108 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3113 if { { ac_try
="$ac_link_default"
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link_default") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3125 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3129 for ac_file in $ac_files ''
3131 test -f "$ac_file" || continue
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3136 # We found the default executable, but exeext='' is most
3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an `-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159 if test -z "$ac_file"; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's
/^
/|
/' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3167 as_fn_error 77 "C compiler cannot create executables
3168 See \`config.log
' for more details" "$LINENO" 5; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174 $as_echo_n "checking for C compiler default output file name... " >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176 $as_echo "$ac_file" >&6; }
3177 ac_exeext=$ac_cv_exeext
3179 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3180 ac_clean_files=$ac_clean_files_save
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182 $as_echo_n "checking for suffix of executables... " >&6; }
3183 if { { ac_try="$ac_link"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_link") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3195 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3196 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3198 for ac_file
in conftest.exe conftest conftest.
*; do
3199 test -f "$ac_file" ||
continue
3201 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3202 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3211 See \`config.log' for more details" "$LINENO" 5; }
3213 rm -f conftest conftest
$ac_cv_exeext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215 $as_echo "$ac_cv_exeext" >&6; }
3217 rm -f conftest.
$ac_ext
3218 EXEEXT
=$ac_cv_exeext
3220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3226 FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3233 ac_clean_files
="$ac_clean_files conftest.out"
3234 # Check that the compiler produces executables we can run. If not, either
3235 # the compiler is broken, or we cross compile.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237 $as_echo_n "checking whether we are cross compiling... " >&6; }
3238 if test "$cross_compiling" != yes; then
3239 { { ac_try
="$ac_link"
3241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3253 *) ac_try_echo
=$ac_try;;
3255 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3263 if test "$cross_compiling" = maybe
; then
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $?
"cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details" "$LINENO" 5; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275 $as_echo "$cross_compiling" >&6; }
3277 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3278 ac_clean_files
=$ac_clean_files_save
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280 $as_echo_n "checking for suffix of object files... " >&6; }
3281 if ${ac_cv_objext+:} false
; then :
3282 $as_echo_n "(cached) " >&6
3284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 rm -f conftest.o conftest.obj
3296 if { { ac_try
="$ac_compile"
3298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_compile") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 for ac_file in conftest.o conftest.obj conftest.*; do
3308 test -f "$ac_file" || continue;
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3322 See \
`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327 $as_echo "$ac_cv_objext" >&6; }
3328 OBJEXT=$ac_cv_objext
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332 if ${ac_cv_c_compiler_gnu+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3349 if ac_fn_c_try_compile "$LINENO"; then :
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360 if test $ac_compiler_gnu = yes; then
3365 ac_test_CFLAGS=${CFLAGS+set}
3366 ac_save_CFLAGS=$CFLAGS
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3369 if ${ac_cv_prog_cc_g+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 ac_save_c_werror_flag=$ac_c_werror_flag
3373 ac_c_werror_flag=yes
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3387 if ac_fn_c_try_compile "$LINENO"; then :
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3402 if ac_fn_c_try_compile "$LINENO"; then :
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3418 if ac_fn_c_try_compile "$LINENO"; then :
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429 $as_echo "$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3439 if test "$GCC" = yes; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447 if ${ac_cv_prog_cc_c89+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 ac_cv_prog_cc_c89=no
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3456 #include <sys/types.h>
3457 #include <sys/stat.h>
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3472 s = g (p, va_arg (v,int));
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 CC="$ac_save_CC $ac_arg"
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_c89=$ac_arg
3512 rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3515 rm -f conftest.$ac_ext
3520 case "x$ac_cv_prog_cc_c89" in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523 $as_echo "none needed" >&6; } ;;
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526 $as_echo "unsupported" >&6; } ;;
3528 CC="$CC $ac_cv_prog_cc_c89"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3532 if test "x$ac_cv_prog_cc_c89" != xno; then :
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 case $ac_cv_prog_cc_stdc in #(
3544 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3547 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3548 if ${ac_cv_prog_cc_c99+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 ac_cv_prog_cc_c99=no
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3556 #include <stdbool.h>
3561 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3562 #define debug(...) fprintf (stderr, __VA_ARGS__)
3563 #define showlist(...) puts (#__VA_ARGS__)
3564 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3566 test_varargs_macros (void)
3571 debug ("X = %d\n", x);
3572 showlist (The first, second, and third items.);
3573 report (x>y, "x is %d but y is %d", x, y);
3576 // Check long long types.
3577 #define BIG64 18446744073709551615ull
3578 #define BIG32 4294967295ul
3579 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3581 your preprocessor is broken;
3585 your preprocessor is broken;
3587 static long long int bignum = -9223372036854775807LL;
3588 static unsigned long long int ubignum = BIG64;
3590 struct incomplete_array
3598 const wchar_t *name;
3602 typedef const char *ccp;
3605 test_restrict (ccp restrict text)
3607 // See if C++-style comments work.
3608 // Iterate through items via the restricted pointer.
3609 // Also check for declarations in for loops.
3610 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3615 // Check varargs and va_copy.
3617 test_varargs (const char *format, ...)
3620 va_start (args, format);
3622 va_copy (args_copy, args);
3633 str = va_arg (args_copy, const char *);
3636 number = va_arg (args_copy, int);
3639 fnumber = va_arg (args_copy, double);
3654 _Bool success = false;
3657 if (test_restrict ("String literal") == 0)
3659 char *restrict newvar = "Another string";
3662 test_varargs ("s, d' f .", "string", 65, 34.234);
3663 test_varargs_macros ();
3665 // Check flexible array members.
3666 struct incomplete_array *ia =
3667 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3669 for (int i = 0; i < ia->datasize; ++i)
3670 ia->data[i] = i * 1.234;
3672 // Check named initializers.
3673 struct named_init ni = {
3675 .name = L"Test wide string",
3676 .average = 543.34343,
3681 int dynamic_array[ni.number];
3682 dynamic_array[ni.number - 1] = 543;
3684 // work around unused variable warnings
3685 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3686 || dynamic_array[ni.number - 1] != 543);
3692 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c99=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c99" != "xno" && break
3701 rm -f conftest.$ac_ext
3706 case "x$ac_cv_prog_cc_c99" in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c99"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3716 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3718 if test "x$ac_cv_prog_cc_c99" != xno; then :
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 ac_cv_prog_cc_c89=no
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3732 #include <sys/types.h>
3733 #include <sys/stat.h>
3734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3735 struct buf { int x; };
3736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737 static char *e (p, i)
3743 static char *f (char * (*g) (char **, int), char **p, ...)
3748 s = g (p, va_arg (v,int));
3753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3754 function prototypes and stuff, but not '\xHH' hex character constants.
3755 These don't provoke an error unfortunately, instead are silently treated
3756 as 'x'. The following induces an error, until -std is added to get
3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3758 array size at least. It's necessary to write '\x00'==0 to get something
3759 that's true only with -std. */
3760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3763 inside strings and character constants. */
3765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767 int test (int i, double x);
3768 struct s1 {int (*f) (int a);};
3769 struct s2 {int (*f) (double a);};
3770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 CC="$ac_save_CC $ac_arg"
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_c89=$ac_arg
3788 rm -f core conftest.err conftest.$ac_objext
3789 test "x$ac_cv_prog_cc_c89" != "xno" && break
3791 rm -f conftest.$ac_ext
3796 case "x$ac_cv_prog_cc_c89" in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3799 $as_echo "none needed" >&6; } ;;
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802 $as_echo "unsupported" >&6; } ;;
3804 CC="$CC $ac_cv_prog_cc_c89"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3808 if test "x$ac_cv_prog_cc_c89" != xno; then :
3809 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3811 ac_cv_prog_cc_stdc=no
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3818 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3819 if ${ac_cv_prog_cc_stdc+:} false; then :
3820 $as_echo_n "(cached) " >&6
3823 case $ac_cv_prog_cc_stdc in #(
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;; #(
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;; #(
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3832 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -z "$CXX"; then
3841 if test -n "$CCC"; then
3844 if test -n "$ac_tool_prefix"; then
3845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_CXX+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$CXX"; then
3855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 if test -n "$CXX"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3877 $as_echo "$CXX" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$CXX" && break
3887 if test -z "$CXX"; then
3889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3896 $as_echo_n "(cached) " >&6
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919 if test -n "$ac_ct_CXX"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3921 $as_echo "$ac_ct_CXX" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$ac_ct_CXX" && break
3931 if test "x$ac_ct_CXX" = x; then
3934 case $cross_compiling:$ac_tool_warned in
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3946 # Provide some information about the compiler.
3947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3950 for ac_option in --version -v -V -qversion; do
3951 { { ac_try="$ac_compiler $ac_option >&5"
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3960 if test -s conftest.err
; then
3962 ... rest of stderr output deleted ...
3963 10q' conftest.err
>conftest.er1
3964 cat conftest.er1
>&5
3966 rm -f conftest.er1 conftest.err
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3973 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3974 $as_echo_n "(cached) " >&6
3976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3990 if ac_fn_cxx_try_compile
"$LINENO"; then :
3995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3996 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4000 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4006 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4007 ac_save_CXXFLAGS
=$CXXFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4009 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4010 if ${ac_cv_prog_cxx_g+:} false
; then :
4011 $as_echo_n "(cached) " >&6
4013 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4014 ac_cxx_werror_flag
=yes
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_cxx_try_compile
"$LINENO"; then :
4029 ac_cv_prog_cxx_g
=yes
4032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4043 if ac_fn_cxx_try_compile
"$LINENO"; then :
4046 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4059 if ac_fn_cxx_try_compile
"$LINENO"; then :
4060 ac_cv_prog_cxx_g
=yes
4062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4067 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4070 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4071 if test "$ac_test_CXXFLAGS" = set; then
4072 CXXFLAGS
=$ac_save_CXXFLAGS
4073 elif test $ac_cv_prog_cxx_g = yes; then
4074 if test "$GXX" = yes; then
4080 if test "$GXX" = yes; then
4087 ac_cpp
='$CPP $CPPFLAGS'
4088 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4093 ac_cpp
='$CPP $CPPFLAGS'
4094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4098 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4099 # On Suns, sometimes $CPP names a directory.
4100 if test -n "$CPP" && test -d "$CPP"; then
4103 if test -z "$CPP"; then
4104 if ${ac_cv_prog_CPP+:} false
; then :
4105 $as_echo_n "(cached) " >&6
4107 # Double quotes because CPP needs to be expanded
4108 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4111 for ac_c_preproc_warn_flag
in '' yes
4113 # Use a header file that comes with gcc, so configuring glibc
4114 # with a fresh cross-compiler works.
4115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 # <limits.h> exists even on freestanding compilers.
4117 # On the NeXT, cc -E runs the code through the compiler's parser,
4118 # not just through cpp. "Syntax error" is here to catch this case.
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4122 # include <limits.h>
4124 # include <assert.h>
4128 if ac_fn_c_try_cpp
"$LINENO"; then :
4131 # Broken: fails on valid input.
4134 rm -f conftest.err conftest.i conftest.
$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4142 if ac_fn_c_try_cpp
"$LINENO"; then :
4143 # Broken: success on invalid input.
4146 # Passes both tests.
4150 rm -f conftest.err conftest.i conftest.
$ac_ext
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.i conftest.err conftest.
$ac_ext
4155 if $ac_preproc_ok; then :
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4168 $as_echo "$CPP" >&6; }
4170 for ac_c_preproc_warn_flag
in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4181 # include <limits.h>
4183 # include <assert.h>
4187 if ac_fn_c_try_cpp
"$LINENO"; then :
4190 # Broken: fails on valid input.
4193 rm -f conftest.err conftest.i conftest.
$ac_ext
4195 # OK, works on sane cases. Now check whether nonexistent headers
4196 # can be detected and how.
4197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4201 if ac_fn_c_try_cpp
"$LINENO"; then :
4202 # Broken: success on invalid input.
4205 # Passes both tests.
4209 rm -f conftest.err conftest.i conftest.
$ac_ext
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.i conftest.err conftest.
$ac_ext
4214 if $ac_preproc_ok; then :
4217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4220 See \`config.log' for more details" "$LINENO" 5; }
4224 ac_cpp
='$CPP $CPPFLAGS'
4225 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4230 # Check for a compatible awk
4231 for ac_prog
in gawk nawk
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy
$ac_prog; ac_word
=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_AWK+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$AWK"; then
4241 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir
=.
4248 for ac_exec_ext
in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_AWK
="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$AWK"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263 $as_echo "$AWK" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$AWK" && break
4273 if test "$AWK" = ""; then
4274 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4276 # Extract the first word of "mmake", so it can be a program name with args.
4277 set dummy mmake
; ac_word
=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_MMAKE+:} false
; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -n "$MMAKE"; then
4284 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir
=.
4291 for ac_exec_ext
in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_MMAKE
="mmake "
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 MMAKE
=$ac_cv_prog_MMAKE
4304 if test -n "$MMAKE"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4306 $as_echo "$MMAKE" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 # Perform some default variable assignments. Note all of these will be
4315 # Regenerated from the script, so there is no need to cache them.
4317 aros_host_cpp
="$CPP"
4319 aros_host_cxx
="$CXX"
4320 if test "$GCC" = "yes"; then
4321 aros_gcc_ld
=`$CC -print-prog-name=ld`
4322 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4323 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_path_aros_host_ld+:} false
; then :
4327 $as_echo_n "(cached) " >&6
4329 case $aros_host_ld in
4331 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4335 for as_dir
in `dirname $aros_gcc_ld`
4338 test -z "$as_dir" && as_dir
=.
4339 for ac_exec_ext
in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 aros_host_ld
=$ac_cv_path_aros_host_ld
4353 if test -n "$aros_host_ld"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4355 $as_echo "$aros_host_ld" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4363 if test "$aros_host_ld" = ""; then
4364 # Extract the first word of "ld", so it can be a program name with args.
4365 set dummy ld
; ac_word
=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_path_aros_host_ld+:} false
; then :
4369 $as_echo_n "(cached) " >&6
4371 case $aros_host_ld in
4373 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir
=.
4381 for ac_exec_ext
in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 aros_host_ld
=$ac_cv_path_aros_host_ld
4395 if test -n "$aros_host_ld"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4397 $as_echo "$aros_host_ld" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4405 if test "$aros_host_ld" = ""; then
4406 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4408 aros_host_make
="make"
4409 aros_host_cflags
=$CFLAGS
4410 aros_host_cxxflags
=$CXXFLAGS
4411 aros_host_ldflags
=$LDFLAGS
4412 aros_host_debug
="-g -O0"
4413 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4414 aros_host_mkargs
="--no-print-directory"
4415 aros_host_exe_suffix
="$EXEEXT"
4416 aros_host_lib_suffix
=""
4418 # Ignore all compliance, AROS ROMs = 0
4419 # KickStart v1.0 = 30
4420 # KickStart v1.3 = 34
4421 # KickStart v2.0 = 37
4422 # KickStart v3.0 = 39
4423 # KickStart v3.1 = 40
4425 aros_amigaos_compliance
=0
4427 for ac_prog
in aclocal aclocal19 aclocal-1.9
4429 # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy
$ac_prog; ac_word
=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -n "$aros_host_aclocal"; then
4437 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir
=.
4444 for ac_exec_ext
in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4457 if test -n "$aros_host_aclocal"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4459 $as_echo "$aros_host_aclocal" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4466 test -n "$aros_host_aclocal" && break
4469 for ac_prog
in autoconf autoconf259 autoconf253
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy
$ac_prog; ac_word
=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4476 $as_echo_n "(cached) " >&6
4478 if test -n "$aros_host_autoconf"; then
4479 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir
=.
4486 for ac_exec_ext
in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4499 if test -n "$aros_host_autoconf"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4501 $as_echo "$aros_host_autoconf" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$aros_host_autoconf" && break
4511 for ac_prog
in autoheader autoheader259 autoheader253
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy
$ac_prog; ac_word
=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4518 $as_echo_n "(cached) " >&6
4520 if test -n "$aros_host_autoheader"; then
4521 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4541 if test -n "$aros_host_autoheader"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4543 $as_echo "$aros_host_autoheader" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4550 test -n "$aros_host_autoheader" && break
4553 for ac_prog
in automake automake19 automake-1.9
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy
$ac_prog; ac_word
=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$aros_host_automake"; then
4563 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_aros_host_automake
="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 aros_host_automake
=$ac_cv_prog_aros_host_automake
4583 if test -n "$aros_host_automake"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4585 $as_echo "$aros_host_automake" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$aros_host_automake" && break
4596 if test "$aros_host_aclocal" = ""; then
4597 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4599 if test "$aros_host_automake" = ""; then
4600 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4603 case "$aros_host_cc" in
4605 aros_host_cc_pipe
="-pipe"
4608 aros_host_cc_pipe
=""
4611 aros_host_cc_pipe
=""
4615 aros_kernel_cc_includes
=""
4616 aros_target_cc_includes
=""
4618 # ----------------------------------------------------------------------------------------
4619 # Host-specific defaults
4621 # This is the main host configuration section. It is where the host
4622 # can change the values of any variables it needs to change. We do
4623 # not look at anything that compiles to the target yet, we'll get
4628 aros_host_arch
="aros"
4629 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4632 aros_host_cpu
="i386"
4635 aros_host_cpu
="x86_64"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4642 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4643 aros_host_cpu
="$host_cpu"
4649 aros_host_arch
="linux"
4650 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4651 android_build_os
="linux-x86"
4652 android_tool
="android"
4653 default_android_sdk
="/opt/android-sdk-linux_x86"
4656 aros_host_cpu
="i386"
4659 aros_host_cpu
="x86_64"
4662 aros_host_cpu
="m68k"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4672 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4673 aros_host_cpu
="$host_cpu"
4679 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4680 aros_host_make
="gmake"
4681 aros_host_arch
="freebsd"
4682 aros_host_cpu
="i386"
4684 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4688 aros_object_format
="elf_i386"
4692 aros_object_format
="elf_i386_fbsd"
4699 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4700 aros_host_arch
="darwin"
4701 android_build_os
="darwin-x86"
4702 android_tool
="android"
4703 default_android_sdk
="/android-sdk-mac_x86"
4706 aros_host_cpu
="i386"
4709 aros_host_cpu
="x86_64"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4716 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4717 aros_host_cpu
="$host_cpu"
4721 aros_host_ldflags
="$aros_host_ldflags -liconv"
4726 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4727 aros_host_make
="gmake"
4728 aros_host_arch
="dragonfly"
4731 aros_host_cpu
="i386"
4734 aros_host_cpu
="x86_64"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4738 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4739 aros_host_cpu
="$host_cpu"
4745 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4746 aros_host_make
="gmake"
4747 aros_host_arch
="netbsd"
4750 aros_host_cpu
="i386"
4753 aros_host_cpu
="m68k"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu
="$host_cpu"
4761 aros_host_lib_suffix
=".0.0"
4765 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4766 aros_host_make
="gmake"
4767 aros_host_arch
="openbsd"
4770 aros_host_cpu
="i386"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4774 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4775 aros_host_cpu
="$host_cpu"
4781 aros_host_arch
="solaris"
4782 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4785 aros_host_cpu
="i386"
4788 aros_host_cpu
="sparc"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4792 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4793 aros_host_cpu
="$host_cpu"
4799 aros_host_arch
="morphos"
4804 aros_host_arch
="amiga"
4809 TOUCH
="/gg/bin/touch"
4812 aros_host_cpu
="m68k"
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_arch
="cygwin"
4827 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4828 android_build_os
="windows"
4829 android_tool
="android.bat"
4830 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4834 aros_host_cpu
="i386"
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"
4845 aros_host_arch
="mingw32"
4846 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4847 android_build_os
="windows"
4848 android_tool
="android.bat"
4849 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4855 $as_echo_n "checking for Windows native gcc target... " >&6; }
4856 host_cpu
=`gcc -dumpmachine`
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4858 $as_echo "$host_cpu" >&6; }
4865 aros_host_cpu
="i386"
4869 aros_host_cpu
="i386"
4873 aros_host_cpu
="x86_64"
4874 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4879 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4880 aros_host_cpu
="$host_cpu"
4885 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4889 # Extract the first word of "ar", so it can be a program name with args.
4890 set dummy
ar; ac_word
=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4894 $as_echo_n "(cached) " >&6
4896 if test -n "$aros_host_ar"; then
4897 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir
=.
4904 for ac_exec_ext
in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_aros_host_ar
="ar cr"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 aros_host_ar
=$ac_cv_prog_aros_host_ar
4917 if test -n "$aros_host_ar"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4919 $as_echo "$aros_host_ar" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "$aros_host_ar" = ""; then
4927 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4929 # Extract the first word of "ranlib", so it can be a program name with args.
4930 set dummy ranlib
; ac_word
=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$aros_host_ranlib"; then
4937 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir
=.
4944 for ac_exec_ext
in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_aros_host_ranlib
="ranlib "
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4957 if test -n "$aros_host_ranlib"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4959 $as_echo "$aros_host_ranlib" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 if test "$aros_host_ranlib" = ""; then
4967 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4969 # Extract the first word of "strip", so it can be a program name with args.
4970 set dummy strip
; ac_word
=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$aros_host_strip"; then
4977 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir
=.
4984 for ac_exec_ext
in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_aros_host_strip
="strip "
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 aros_host_strip
=$ac_cv_prog_aros_host_strip
4997 if test -n "$aros_host_strip"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4999 $as_echo "$aros_host_strip" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 if test "$aros_host_strip" = ""; then
5007 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5010 # Extract the first word of "rm", so it can be a program name with args.
5011 set dummy
rm; ac_word
=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_RM+:} false
; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -n "$RM"; then
5018 ac_cv_prog_RM
="$RM" # Let the user override the test.
5020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir
=.
5025 for ac_exec_ext
in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_RM
="rm -rf"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 if test -n "$RM"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5040 $as_echo "$RM" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 if test "$RM" = ""; then
5048 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5050 # Extract the first word of "cp", so it can be a program name with args.
5051 set dummy
cp; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_CP+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$CP"; then
5058 ac_cv_prog_CP
="$CP" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 if test -n "$CP"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5080 $as_echo "$CP" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 if test "$CP" = ""; then
5088 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5090 # Extract the first word of "mv", so it can be a program name with args.
5091 set dummy
mv; ac_word
=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_MV+:} false
; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$MV"; then
5098 ac_cv_prog_MV
="$MV" # Let the user override the test.
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_exec_ext
in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 if test -n "$MV"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5120 $as_echo "$MV" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5127 if test "$MV" = ""; then
5128 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5130 # Extract the first word of "echo", so it can be a program name with args.
5131 set dummy
echo; ac_word
=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_ECHO+:} false
; then :
5135 $as_echo_n "(cached) " >&6
5137 if test -n "$ECHO"; then
5138 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir
=.
5145 for ac_exec_ext
in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_ECHO
="echo "
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 ECHO
=$ac_cv_prog_ECHO
5158 if test -n "$ECHO"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5160 $as_echo "$ECHO" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5167 if test "$ECHO" = ""; then
5168 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5170 # Extract the first word of "mkdir", so it can be a program name with args.
5171 set dummy mkdir
; ac_word
=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_MKDIR+:} false
; then :
5175 $as_echo_n "(cached) " >&6
5177 if test -n "$MKDIR"; then
5178 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_exec_ext
in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_MKDIR
="mkdir -p"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 MKDIR
=$ac_cv_prog_MKDIR
5198 if test -n "$MKDIR"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5200 $as_echo "$MKDIR" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5207 if test "$MKDIR" = ""; then
5208 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5210 # Extract the first word of "touch", so it can be a program name with args.
5211 set dummy
touch; ac_word
=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_TOUCH+:} false
; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$TOUCH"; then
5218 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir
=.
5225 for ac_exec_ext
in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_TOUCH
="touch "
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 TOUCH
=$ac_cv_prog_TOUCH
5238 if test -n "$TOUCH"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5240 $as_echo "$TOUCH" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 if test "$TOUCH" = ""; then
5248 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5250 # Extract the first word of "sort", so it can be a program name with args.
5251 set dummy
sort; ac_word
=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_SORT+:} false
; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$SORT"; then
5258 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir
=.
5265 for ac_exec_ext
in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_SORT
="sort "
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 SORT
=$ac_cv_prog_SORT
5278 if test -n "$SORT"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5280 $as_echo "$SORT" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 if test "$SORT" = ""; then
5288 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5290 # Extract the first word of "uniq", so it can be a program name with args.
5291 set dummy
uniq; ac_word
=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_UNIQ+:} false
; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$UNIQ"; then
5298 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_UNIQ
="uniq "
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 UNIQ
=$ac_cv_prog_UNIQ
5318 if test -n "$UNIQ"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5320 $as_echo "$UNIQ" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 if test "$UNIQ" = ""; then
5328 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5330 # Extract the first word of "true", so it can be a program name with args.
5331 set dummy true
; ac_word
=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_NOP+:} false
; then :
5335 $as_echo_n "(cached) " >&6
5337 if test -n "$NOP"; then
5338 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir
=.
5345 for ac_exec_ext
in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_NOP
="true "
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 if test -n "$NOP"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5360 $as_echo "$NOP" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 if test "$NOP" = ""; then
5368 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5370 # Extract the first word of "cat", so it can be a program name with args.
5371 set dummy
cat; ac_word
=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_CAT+:} false
; then :
5375 $as_echo_n "(cached) " >&6
5377 if test -n "$CAT"; then
5378 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir
=.
5385 for ac_exec_ext
in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_CAT
="cat "
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 if test -n "$CAT"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5400 $as_echo "$CAT" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 if test "$CAT" = ""; then
5408 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5410 # Extract the first word of "bison", so it can be a program name with args.
5411 set dummy bison
; ac_word
=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_BISON+:} false
; then :
5415 $as_echo_n "(cached) " >&6
5417 if test -n "$BISON"; then
5418 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir
=.
5425 for ac_exec_ext
in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_BISON
="bison "
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 BISON
=$ac_cv_prog_BISON
5438 if test -n "$BISON"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5440 $as_echo "$BISON" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 if test "$BISON" = ""; then
5448 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5450 # Extract the first word of "flex", so it can be a program name with args.
5451 set dummy flex
; ac_word
=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_FLEX+:} false
; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$FLEX"; then
5458 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir
=.
5465 for ac_exec_ext
in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_FLEX
="flex "
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 FLEX
=$ac_cv_prog_FLEX
5478 if test -n "$FLEX"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5480 $as_echo "$FLEX" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$FLEX" = ""; then
5488 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5490 # Extract the first word of "pngtopnm", so it can be a program name with args.
5491 set dummy pngtopnm
; ac_word
=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$PNGTOPNM"; then
5498 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir
=.
5505 for ac_exec_ext
in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_PNGTOPNM
="pngtopnm "
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5518 if test -n "$PNGTOPNM"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5520 $as_echo "$PNGTOPNM" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 if test "$PNGTOPNM" = ""; then
5528 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5530 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5531 set dummy ppmtoilbm
; ac_word
=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5535 $as_echo_n "(cached) " >&6
5537 if test -n "$PPMTOILBM"; then
5538 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir
=.
5545 for ac_exec_ext
in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5558 if test -n "$PPMTOILBM"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5560 $as_echo "$PPMTOILBM" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5567 if test "$PPMTOILBM" = ""; then
5568 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5570 # Extract the first word of "sed", so it can be a program name with args.
5571 set dummy
sed; ac_word
=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_SED+:} false
; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -n "$SED"; then
5578 ac_cv_prog_SED
="$SED" # Let the user override the test.
5580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir
=.
5585 for ac_exec_ext
in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_SED
="sed "
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test -n "$SED"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5600 $as_echo "$SED" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5607 if test "$SED" = ""; then
5608 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5610 # Extract the first word of "chmod", so it can be a program name with args.
5611 set dummy
chmod; ac_word
=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_CHMOD+:} false
; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$CHMOD"; then
5618 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir
=.
5625 for ac_exec_ext
in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_CHMOD
="chmod "
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 CHMOD
=$ac_cv_prog_CHMOD
5638 if test -n "$CHMOD"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5640 $as_echo "$CHMOD" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 if test "$CHMOD" = ""; then
5648 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5650 # Extract the first word of "patch", so it can be a program name with args.
5651 set dummy
patch; ac_word
=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_PATCH+:} false
; then :
5655 $as_echo_n "(cached) " >&6
5657 if test -n "$PATCH"; then
5658 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir
=.
5665 for ac_exec_ext
in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_PATCH
="patch "
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 PATCH
=$ac_cv_prog_PATCH
5678 if test -n "$PATCH"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5680 $as_echo "$PATCH" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 if test "$PATCH" = ""; then
5688 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5695 if test -n "$PYTHON"; then
5696 # If the user set $PYTHON, use it and don't search something else.
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5698 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5699 prog
="import sys, string
5700 # split strings by '.' and convert to numeric. Append some zeros
5701 # because we need at least 4 digits for the hex conversion.
5702 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5704 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5705 sys.exit(sys.hexversion < minverhex)"
5706 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5707 ($PYTHON -c "$prog") >&5 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5714 as_fn_error $?
"too old" "$LINENO" 5
5716 am_display_PYTHON
=$PYTHON
5718 # Otherwise, try each interpreter until we find one that satisfies
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5721 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5722 if ${am_cv_pathless_PYTHON+:} false
; then :
5723 $as_echo_n "(cached) " >&6
5726 for am_cv_pathless_PYTHON
in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none
; do
5727 test "$am_cv_pathless_PYTHON" = none
&& break
5728 prog
="import sys, string
5729 # split strings by '.' and convert to numeric. Append some zeros
5730 # because we need at least 4 digits for the hex conversion.
5731 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5733 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5734 sys.exit(sys.hexversion < minverhex)"
5735 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5736 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; then :
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5745 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5746 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5747 if test "$am_cv_pathless_PYTHON" = none
; then
5750 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5751 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_path_PYTHON+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5759 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir
=.
5767 for ac_exec_ext
in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 PYTHON
=$ac_cv_path_PYTHON
5781 if test -n "$PYTHON"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5783 $as_echo "$PYTHON" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5791 am_display_PYTHON
=$am_cv_pathless_PYTHON
5795 if test "$PYTHON" = :; then
5796 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5801 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5802 if ${am_cv_python_version+:} false
; then :
5803 $as_echo_n "(cached) " >&6
5805 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5808 $as_echo "$am_cv_python_version" >&6; }
5809 PYTHON_VERSION
=$am_cv_python_version
5813 PYTHON_PREFIX
='${prefix}'
5815 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5820 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5821 if ${am_cv_python_platform+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5827 $as_echo "$am_cv_python_platform" >&6; }
5828 PYTHON_PLATFORM
=$am_cv_python_platform
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5834 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5835 if ${am_cv_python_pythondir+:} false
; then :
5836 $as_echo_n "(cached) " >&6
5838 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5839 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5842 $as_echo "$am_cv_python_pythondir" >&6; }
5843 pythondir
=$am_cv_python_pythondir
5847 pkgpythondir
=\
${pythondir}/$PACKAGE
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5851 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5852 if ${am_cv_python_pyexecdir+:} false
; then :
5853 $as_echo_n "(cached) " >&6
5855 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5856 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5859 $as_echo "$am_cv_python_pyexecdir" >&6; }
5860 pyexecdir
=$am_cv_python_pyexecdir
5864 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5882 # Check for some includes for the X11 HIDD and the kernel
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5886 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5887 if ${ac_cv_path_GREP+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -z "$GREP"; then
5891 ac_path_GREP_found
=false
5892 # Loop through the user's path and test for each of PROGNAME-LIST
5893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5894 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5897 test -z "$as_dir" && as_dir
=.
5898 for ac_prog
in grep ggrep
; do
5899 for ac_exec_ext
in '' $ac_executable_extensions; do
5900 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5901 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5902 # Check for GNU ac_path_GREP and select it if it is found.
5903 # Check for GNU $ac_path_GREP
5904 case `"$ac_path_GREP" --version 2>&1` in
5906 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5909 $as_echo_n 0123456789 >"conftest.in"
5912 cat "conftest.in" "conftest.in" >"conftest.tmp"
5913 mv "conftest.tmp" "conftest.in"
5914 cp "conftest.in" "conftest.nl"
5915 $as_echo 'GREP' >> "conftest.nl"
5916 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5917 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5918 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5919 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5920 # Best one so far, save it but keep looking for a better one
5921 ac_cv_path_GREP
="$ac_path_GREP"
5922 ac_path_GREP_max
=$ac_count
5924 # 10*(2^10) chars as input seems more than enough
5925 test $ac_count -gt 10 && break
5927 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5930 $ac_path_GREP_found && break 3
5935 if test -z "$ac_cv_path_GREP"; then
5936 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5939 ac_cv_path_GREP
=$GREP
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5944 $as_echo "$ac_cv_path_GREP" >&6; }
5945 GREP
="$ac_cv_path_GREP"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5949 $as_echo_n "checking for egrep... " >&6; }
5950 if ${ac_cv_path_EGREP+:} false
; then :
5951 $as_echo_n "(cached) " >&6
5953 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5954 then ac_cv_path_EGREP
="$GREP -E"
5956 if test -z "$EGREP"; then
5957 ac_path_EGREP_found
=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5960 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5963 test -z "$as_dir" && as_dir
=.
5964 for ac_prog
in egrep; do
5965 for ac_exec_ext
in '' $ac_executable_extensions; do
5966 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5968 # Check for GNU ac_path_EGREP and select it if it is found.
5969 # Check for GNU $ac_path_EGREP
5970 case `"$ac_path_EGREP" --version 2>&1` in
5972 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5975 $as_echo_n 0123456789 >"conftest.in"
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'EGREP' >> "conftest.nl"
5982 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5983 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5984 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5985 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_EGREP
="$ac_path_EGREP"
5988 ac_path_EGREP_max
=$ac_count
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5993 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5996 $ac_path_EGREP_found && break 3
6001 if test -z "$ac_cv_path_EGREP"; then
6002 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6005 ac_cv_path_EGREP
=$EGREP
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6011 $as_echo "$ac_cv_path_EGREP" >&6; }
6012 EGREP
="$ac_cv_path_EGREP"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6016 $as_echo_n "checking for ANSI C header files... " >&6; }
6017 if ${ac_cv_header_stdc+:} false
; then :
6018 $as_echo_n "(cached) " >&6
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6035 if ac_fn_c_try_compile
"$LINENO"; then :
6036 ac_cv_header_stdc
=yes
6038 ac_cv_header_stdc
=no
6040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 if test $ac_cv_header_stdc = yes; then
6043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6050 $EGREP "memchr" >/dev
/null
2>&1; then :
6053 ac_cv_header_stdc
=no
6059 if test $ac_cv_header_stdc = yes; then
6060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "free" >/dev
/null
2>&1; then :
6070 ac_cv_header_stdc
=no
6076 if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then :
6081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6085 #if ((' ' & 0x0FF) == 0x020)
6086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 # define ISLOWER(c) \
6090 (('a' <= (c) && (c) <= 'i') \
6091 || ('j' <= (c) && (c) <= 'r') \
6092 || ('s' <= (c) && (c) <= 'z'))
6093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101 for (i = 0; i < 256; i++)
6102 if (XOR (islower (i), ISLOWER (i))
6103 || toupper (i) != TOUPPER (i))
6108 if ac_fn_c_try_run
"$LINENO"; then :
6111 ac_cv_header_stdc
=no
6113 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6114 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6120 $as_echo "$ac_cv_header_stdc" >&6; }
6121 if test $ac_cv_header_stdc = yes; then
6123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6128 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6129 inttypes.h stdint.h unistd.h
6131 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6134 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6135 cat >>confdefs.h
<<_ACEOF
6136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 for ac_header
in sys
/ipc.h sys
/shm.h \
6145 sys
/mmap.h sys
/mman.h sysexits.h \
6146 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6149 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6151 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6152 cat >>confdefs.h
<<_ACEOF
6153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6161 for ac_header
in sys
/mount.h
6163 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6165 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6166 cat >>confdefs.h
<<_ACEOF
6167 #define HAVE_SYS_MOUNT_H 1
6176 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6177 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6179 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6180 if eval \
${$as_ac_Header+:} false
; then :
6181 $as_echo_n "(cached) " >&6
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <sys/types.h>
6197 if ac_fn_c_try_compile
"$LINENO"; then :
6198 eval "$as_ac_Header=yes"
6200 eval "$as_ac_Header=no"
6202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6204 eval ac_res
=\$
$as_ac_Header
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6206 $as_echo "$ac_res" >&6; }
6207 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6208 cat >>confdefs.h
<<_ACEOF
6209 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6212 ac_header_dirent
=$ac_hdr; break
6216 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6217 if test $ac_header_dirent = dirent.h
; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6219 $as_echo_n "checking for library containing opendir... " >&6; }
6220 if ${ac_cv_search_opendir+:} false
; then :
6221 $as_echo_n "(cached) " >&6
6223 ac_func_search_save_LIBS
=$LIBS
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6242 for ac_lib
in '' dir
; do
6243 if test -z "$ac_lib"; then
6244 ac_res
="none required"
6247 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6249 if ac_fn_c_try_link
"$LINENO"; then :
6250 ac_cv_search_opendir
=$ac_res
6252 rm -f core conftest.err conftest.
$ac_objext \
6254 if ${ac_cv_search_opendir+:} false
; then :
6258 if ${ac_cv_search_opendir+:} false
; then :
6261 ac_cv_search_opendir
=no
6264 LIBS
=$ac_func_search_save_LIBS
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6267 $as_echo "$ac_cv_search_opendir" >&6; }
6268 ac_res
=$ac_cv_search_opendir
6269 if test "$ac_res" != no
; then :
6270 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6276 $as_echo_n "checking for library containing opendir... " >&6; }
6277 if ${ac_cv_search_opendir+:} false
; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_func_search_save_LIBS
=$LIBS
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* Override any GCC internal prototype to avoid an error.
6285 Use char because int might match the return type of a GCC
6286 builtin and then its argument prototype would still apply. */
6299 for ac_lib
in '' x
; do
6300 if test -z "$ac_lib"; then
6301 ac_res
="none required"
6304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6306 if ac_fn_c_try_link
"$LINENO"; then :
6307 ac_cv_search_opendir
=$ac_res
6309 rm -f core conftest.err conftest.
$ac_objext \
6311 if ${ac_cv_search_opendir+:} false
; then :
6315 if ${ac_cv_search_opendir+:} false
; then :
6318 ac_cv_search_opendir
=no
6321 LIBS
=$ac_func_search_save_LIBS
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6324 $as_echo "$ac_cv_search_opendir" >&6; }
6325 ac_res
=$ac_cv_search_opendir
6326 if test "$ac_res" != no
; then :
6327 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6334 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6335 if ${ac_cv_header_stat_broken+:} false
; then :
6336 $as_echo_n "(cached) " >&6
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <sys/types.h>
6341 #include <sys/stat.h>
6343 #if defined S_ISBLK && defined S_IFDIR
6344 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6347 #if defined S_ISBLK && defined S_IFCHR
6348 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6351 #if defined S_ISLNK && defined S_IFREG
6352 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6355 #if defined S_ISSOCK && defined S_IFREG
6356 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6360 if ac_fn_c_try_compile
"$LINENO"; then :
6361 ac_cv_header_stat_broken
=no
6363 ac_cv_header_stat_broken
=yes
6365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6368 $as_echo "$ac_cv_header_stat_broken" >&6; }
6369 if test $ac_cv_header_stat_broken = yes; then
6371 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6376 $as_echo_n "checking for ANSI C header files... " >&6; }
6377 if ${ac_cv_header_stdc+:} false
; then :
6378 $as_echo_n "(cached) " >&6
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6395 if ac_fn_c_try_compile
"$LINENO"; then :
6396 ac_cv_header_stdc
=yes
6398 ac_cv_header_stdc
=no
6400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6402 if test $ac_cv_header_stdc = yes; then
6403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "memchr" >/dev
/null
2>&1; then :
6413 ac_cv_header_stdc
=no
6419 if test $ac_cv_header_stdc = yes; then
6420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 $EGREP "free" >/dev
/null
2>&1; then :
6430 ac_cv_header_stdc
=no
6436 if test $ac_cv_header_stdc = yes; then
6437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6438 if test "$cross_compiling" = yes; then :
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6445 #if ((' ' & 0x0FF) == 0x020)
6446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6449 # define ISLOWER(c) \
6450 (('a' <= (c) && (c) <= 'i') \
6451 || ('j' <= (c) && (c) <= 'r') \
6452 || ('s' <= (c) && (c) <= 'z'))
6453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6461 for (i = 0; i < 256; i++)
6462 if (XOR (islower (i), ISLOWER (i))
6463 || toupper (i) != TOUPPER (i))
6468 if ac_fn_c_try_run
"$LINENO"; then :
6471 ac_cv_header_stdc
=no
6473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6480 $as_echo "$ac_cv_header_stdc" >&6; }
6481 if test $ac_cv_header_stdc = yes; then
6483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6488 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6489 if ${ac_cv_header_sys_wait_h+:} false
; then :
6490 $as_echo_n "(cached) " >&6
6492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #include <sys/types.h>
6495 #include <sys/wait.h>
6497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6513 if ac_fn_c_try_compile
"$LINENO"; then :
6514 ac_cv_header_sys_wait_h
=yes
6516 ac_cv_header_sys_wait_h
=no
6518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6521 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6522 if test $ac_cv_header_sys_wait_h = yes; then
6524 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6530 if ${ac_cv_header_time+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <sys/types.h>
6536 #include <sys/time.h>
6542 if ((struct tm *) 0)
6548 if ac_fn_c_try_compile
"$LINENO"; then :
6549 ac_cv_header_time
=yes
6551 ac_cv_header_time
=no
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6556 $as_echo "$ac_cv_header_time" >&6; }
6557 if test $ac_cv_header_time = yes; then
6559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6563 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6564 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6566 cat >>confdefs.h
<<_ACEOF
6567 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6571 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6576 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6577 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6579 cat >>confdefs.h
<<_ACEOF
6580 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6584 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6587 case " $LIBOBJS " in
6588 *" fileblocks.$ac_objext "* ) ;;
6589 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6596 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6597 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6599 cat >>confdefs.h
<<_ACEOF
6600 #define HAVE_STRUCT_STAT_ST_RDEV 1
6604 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6610 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6611 if ${ac_cv_struct_tm+:} false
; then :
6612 $as_echo_n "(cached) " >&6
6614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 #include <sys/types.h>
6623 int *p = &tm.tm_sec;
6629 if ac_fn_c_try_compile
"$LINENO"; then :
6630 ac_cv_struct_tm
=time.h
6632 ac_cv_struct_tm
=sys
/time.h
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6637 $as_echo "$ac_cv_struct_tm" >&6; }
6638 if test $ac_cv_struct_tm = sys
/time.h
; then
6640 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6644 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6645 #include <$ac_cv_struct_tm>
6648 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6650 cat >>confdefs.h
<<_ACEOF
6651 #define HAVE_STRUCT_TM_TM_ZONE 1
6657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6659 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6662 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6664 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6670 cat >>confdefs.h
<<_ACEOF
6671 #define HAVE_DECL_TZNAME $ac_have_decl
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6675 $as_echo_n "checking for tzname... " >&6; }
6676 if ${ac_cv_var_tzname+:} false
; then :
6677 $as_echo_n "(cached) " >&6
6679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6682 #if !HAVE_DECL_TZNAME
6683 extern char *tzname[];
6689 return tzname[0][0];
6694 if ac_fn_c_try_link
"$LINENO"; then :
6695 ac_cv_var_tzname
=yes
6699 rm -f core conftest.err conftest.
$ac_objext \
6700 conftest
$ac_exeext conftest.
$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6703 $as_echo "$ac_cv_var_tzname" >&6; }
6704 if test $ac_cv_var_tzname = yes; then
6706 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6711 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6712 if test "x$ac_cv_type_off_t" = xyes
; then :
6716 cat >>confdefs.h
<<_ACEOF
6717 #define off_t long int
6722 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6723 if test "x$ac_cv_type_pid_t" = xyes
; then :
6727 cat >>confdefs.h
<<_ACEOF
6733 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6734 if test "x$ac_cv_type_size_t" = xyes
; then :
6738 cat >>confdefs.h
<<_ACEOF
6739 #define size_t unsigned int
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6745 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6746 if ${ac_cv_type_uid_t+:} false
; then :
6747 $as_echo_n "(cached) " >&6
6749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "uid_t" >/dev
/null
2>&1; then :
6756 ac_cv_type_uid_t
=yes
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6764 $as_echo "$ac_cv_type_uid_t" >&6; }
6765 if test $ac_cv_type_uid_t = no
; then
6767 $as_echo "#define uid_t int" >>confdefs.h
6770 $as_echo "#define gid_t int" >>confdefs.h
6775 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6776 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6778 cat >>confdefs.h
<<_ACEOF
6779 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6786 # Look for some functions
6787 for ac_func
in getpagesize kqueue statfs statvfs \
6788 clone kse_create rfork_thread thr_create sa_register \
6789 getcontext makecontext setcontext sigaltstack swapcontext
6791 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6792 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6793 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6805 for ac_header
in $ac_header_list
6807 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6810 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6811 cat >>confdefs.h
<<_ACEOF
6812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6826 for ac_func
in getpagesize
6828 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6829 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6830 cat >>confdefs.h
<<_ACEOF
6831 #define HAVE_GETPAGESIZE 1
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6838 $as_echo_n "checking for working mmap... " >&6; }
6839 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6840 $as_echo_n "(cached) " >&6
6842 if test "$cross_compiling" = yes; then :
6843 ac_cv_func_mmap_fixed_mapped
=no
6845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 /* malloc might have been renamed as rpl_malloc. */
6851 /* Thanks to Mike Haertel and Jim Avera for this test.
6852 Here is a matrix of mmap possibilities:
6853 mmap private not fixed
6854 mmap private fixed at somewhere currently unmapped
6855 mmap private fixed at somewhere already mapped
6856 mmap shared not fixed
6857 mmap shared fixed at somewhere currently unmapped
6858 mmap shared fixed at somewhere already mapped
6859 For private mappings, we should verify that changes cannot be read()
6860 back from the file, nor mmap's back from the file at a different
6861 address. (There have been systems where private was not correctly
6862 implemented like the infamous i386 svr4.0, and systems where the
6863 VM page cache was not coherent with the file system buffer cache
6864 like early versions of FreeBSD and possibly contemporary NetBSD.)
6865 For shared mappings, we should conversely verify that changes get
6866 propagated back to all the places they're supposed to be.
6868 Grep wants private fixed already mapped.
6869 The main things grep needs to know about mmap are:
6870 * does it exist and is it safe to write into the mmap'd area
6871 * how to use it (BSD variants) */
6874 #include <sys/mman.h>
6876 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6880 /* This mess was copied from the GNU getpagesize.h. */
6881 #ifndef HAVE_GETPAGESIZE
6882 # ifdef _SC_PAGESIZE
6883 # define getpagesize() sysconf(_SC_PAGESIZE)
6884 # else /* no _SC_PAGESIZE */
6885 # ifdef HAVE_SYS_PARAM_H
6886 # include <sys/param.h>
6887 # ifdef EXEC_PAGESIZE
6888 # define getpagesize() EXEC_PAGESIZE
6889 # else /* no EXEC_PAGESIZE */
6891 # define getpagesize() NBPG * CLSIZE
6894 # endif /* no CLSIZE */
6895 # else /* no NBPG */
6897 # define getpagesize() NBPC
6898 # else /* no NBPC */
6900 # define getpagesize() PAGESIZE
6901 # endif /* PAGESIZE */
6902 # endif /* no NBPC */
6903 # endif /* no NBPG */
6904 # endif /* no EXEC_PAGESIZE */
6905 # else /* no HAVE_SYS_PARAM_H */
6906 # define getpagesize() 8192 /* punt totally */
6907 # endif /* no HAVE_SYS_PARAM_H */
6908 # endif /* no _SC_PAGESIZE */
6910 #endif /* no HAVE_GETPAGESIZE */
6915 char *data, *data2, *data3;
6920 pagesize = getpagesize ();
6922 /* First, make a file with some known garbage in it. */
6923 data = (char *) malloc (pagesize);
6926 for (i = 0; i < pagesize; ++i)
6927 *(data + i) = rand ();
6929 fd = creat ("conftest.mmap", 0600);
6932 if (write (fd, data, pagesize) != pagesize)
6936 /* Next, check that the tail of a page is zero-filled. File must have
6937 non-zero length, otherwise we risk SIGBUS for entire page. */
6938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6942 if (write (fd2, cdata2, 1) != 1)
6944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6945 if (data2 == MAP_FAILED)
6947 for (i = 0; i < pagesize; ++i)
6951 if (munmap (data2, pagesize))
6954 /* Next, try to mmap the file at a fixed address which already has
6955 something else allocated at it. If we can, also make sure that
6956 we see the same garbage. */
6957 fd = open ("conftest.mmap", O_RDWR);
6960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6963 for (i = 0; i < pagesize; ++i)
6964 if (*(data + i) != *(data2 + i))
6967 /* Finally, make sure that changes to the mapped area do not
6968 percolate back to the file as seen by read(). (This is a bug on
6969 some variants of i386 svr4.0.) */
6970 for (i = 0; i < pagesize; ++i)
6971 *(data2 + i) = *(data2 + i) + 1;
6972 data3 = (char *) malloc (pagesize);
6975 if (read (fd, data3, pagesize) != pagesize)
6977 for (i = 0; i < pagesize; ++i)
6978 if (*(data + i) != *(data3 + i))
6984 if ac_fn_c_try_run
"$LINENO"; then :
6985 ac_cv_func_mmap_fixed_mapped
=yes
6987 ac_cv_func_mmap_fixed_mapped
=no
6989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7001 rm -f conftest.mmap conftest.txt
7006 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7007 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7008 aros_config_ldflags
=""
7010 aros_shared_default
=yes
7012 aros_shared_cflags
="-fPIC"
7013 aros_shared_aflags
=""
7014 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7015 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7017 aros_kernel_ar_flags
="cr"
7018 aros_target_ar_flags
="cr"
7019 aros_target_nm_flags
="-C -ul"
7020 aros_target_strip_flags
="--strip-unneeded -R.comment"
7025 aros_target_genmap
="-Wl,-Map -Xlinker"
7027 # Native flavour stuff
7028 aros_serial_debug
="0"
7030 # Palm native flavour stuff
7031 aros_palm_debug_hack
="0"
7033 # Unix flavour stuff
7034 aros_nesting_supervisor
="0"
7036 # Collect-aros stuff: "-ius" to ignore undefined symbols
7037 ignore_undefined_symbols
=""
7039 # Check for X11 by default
7042 # Leave at 'none' for no external toolchain
7043 kernel_tool_prefix
="none"
7045 #-----------------------------------------------------------------------------
7048 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7049 # it switched on by default, and we use the host compiler, so it compiles AROS
7050 # code with this enabled resulting in link failures as we don't have support
7053 # We use two methods to disable it. For the host compiler (used to compile
7054 # some hosted modules), we test to see if the compiler supports stack
7055 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7056 # work on all platforms.
7058 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7059 # (this is done unconditionally, as it should have no effect on compilers
7060 # without the stack protection feature). This may be specific to the way that
7061 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7062 # strong enough to disable it in a generic way though, so we'll live with it
7063 # until another vendor ships GCC with it enabled in a different way, and deal
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7068 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7069 save_cflags
="$CFLAGS"
7070 CFLAGS
="$CFLAGS -fno-stack-protector"
7071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7082 if ac_fn_c_try_compile
"$LINENO"; then :
7083 use_no_stack_protector
="yes"
7085 use_no_stack_protector
="no"
7087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7089 $as_echo "$use_no_stack_protector" >&6; }
7090 if test "x-$use_no_stack_protector" = "x-yes" ; then
7091 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7093 CFLAGS
="$save_cflags"
7095 #-----------------------------------------------------------------------------
7097 # Disable pointer-signedness warnings if the compiler recognises the option
7098 # (this only works for the host compiler at the moment)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7101 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7102 save_cflags
="$CFLAGS"
7103 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7116 use_no_sign_warning
="yes"
7118 use_no_sign_warning
="no"
7120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7122 $as_echo "$use_no_sign_warning" >&6; }
7123 if test "x-$use_no_sign_warning" = "x-yes" ; then
7124 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7126 CFLAGS
="$save_cflags"
7128 #-----------------------------------------------------------------------------
7130 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7133 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7134 save_cflags
="$CFLAGS"
7135 CFLAGS
="$CFLAGS -fgnu89-inline"
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7147 if ac_fn_c_try_compile
"$LINENO"; then :
7148 use_gnu89_inline
="yes"
7150 use_gnu89_inline
="no"
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7154 $as_echo "$use_gnu89_inline" >&6; }
7155 if test "x-$use_gnu89_inline" = "x-yes" ; then
7156 gnu89_inline
="-fgnu89-inline"
7158 CFLAGS
="$save_cflags"
7160 #-----------------------------------------------------------------------------
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7163 $as_echo_n "checking for type of build... " >&6; }
7164 # Check whether --enable-build_type was given.
7165 if test "${enable_build_type+set}" = set; then :
7166 enableval
=$enable_build_type; build_type
=$enableval
7168 build_type
="personal"
7172 if test "$build_type" = "nightly"; then
7173 build_type_string
="NIGHTLY"
7174 elif test "$build_type" = "snapshot"; then
7175 build_type_string
="SNAPSHOT"
7176 elif test "$build_type" = "milestone"; then
7177 build_type_string
="MILESTONE"
7178 elif test "$build_type" = "release"; then
7179 build_type_string
="RELEASE"
7181 build_type_string
="PERSONAL"
7182 build_type
="personal"
7185 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7188 $as_echo "$build_type" >&6; }
7190 #-----------------------------------------------------------------------------
7191 all_debug_types
="messages stack modules mungwall symbols"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7194 $as_echo_n "checking which debug types to enable... " >&6; }
7195 # Check whether --enable-debug was given.
7196 if test "${enable_debug+set}" = set; then :
7197 enableval
=$enable_debug; debug
="$enableval"
7203 if test "$debug" = "" -o "$debug" = "no"; then
7205 elif test "$debug" = "yes"; then
7209 if test "$debug" = "all" ; then
7210 debug
="messages stack modules symbols"
7211 for d
in $all_debug_types; do
7212 export aros_
${d}_debug
="1"
7215 for d
in $all_debug_types; do
7216 export aros_
${d}_debug
="0"
7220 if test "$debug" != "none"; then
7221 debug
=`echo $debug | sed s/,/\ /g`
7224 for d2
in $all_debug_types; do
7225 if test "$d2" = "$d"; then
7230 if test "$found" = "0"; then
7231 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7233 export aros_
${d}_debug
="1"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7238 $as_echo "$debug" >&6; }
7240 if test "$aros_messages_debug" = "1"; then
7241 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7243 aros_messages_debug
=""
7245 if test "$aros_symbols_debug" = "1"; then
7246 aros_symbols_debug
="-g"
7248 aros_symbols_debug
=""
7251 # These are the flags to pass when compiling debugged programs
7252 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7253 aros_debug_aflags
=""
7254 aros_debug_ldflags
="$aros_symbols_debug"
7256 #-----------------------------------------------------------------------------
7257 # Checking if we should build crosstools..
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7259 $as_echo_n "checking whether to build crosstools... " >&6; }
7260 # Check whether --enable-crosstools was given.
7261 if test "${enable_crosstools+set}" = set; then :
7262 enableval
=$enable_crosstools; crosstools
="$enableval"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7268 $as_echo "$crosstools" >&6; }
7270 #-----------------------------------------------------------------------------
7271 # Checking for distcc and ccache.
7273 # Always apply the transforms in this particular order. Basically you should
7274 # always run 'ccache distcc compiler' in that order for the best performance.
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7277 $as_echo_n "checking whether to enable distcc... " >&6; }
7278 # Check whether --enable-distcc was given.
7279 if test "${enable_distcc+set}" = set; then :
7280 enableval
=$enable_distcc; distcc
="$enableval"
7285 if test "$distcc" != "" -a "$distcc" != "no"; then
7286 # AC_CHECK_PROG will print out the result in this case
7287 # Extract the first word of "distcc", so it can be a program name with args.
7288 set dummy distcc
; ac_word
=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_path_DISTCC+:} false
; then :
7292 $as_echo_n "(cached) " >&6
7296 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir
=.
7304 for ac_exec_ext
in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7318 DISTCC
=$ac_cv_path_DISTCC
7319 if test -n "$DISTCC"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7321 $as_echo "$DISTCC" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7334 $as_echo_n "checking whether to enable ccache... " >&6; }
7335 # Check whether --enable-ccache was given.
7336 if test "${enable_ccache+set}" = set; then :
7337 enableval
=$enable_ccache; ccache
="$enableval"
7342 if test "$ccache" != "" -a "$ccache" != "no"; then
7343 # AC_CHECK_PROG will print out the result in this case
7344 # Extract the first word of "ccache", so it can be a program name with args.
7345 set dummy ccache
; ac_word
=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_CCACHE+:} false
; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$CCACHE"; then
7352 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir
=.
7359 for ac_exec_ext
in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_CCACHE
="ccache"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 CCACHE
=$ac_cv_prog_CCACHE
7372 if test -n "$CCACHE"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7374 $as_echo "$CCACHE" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 #-----------------------------------------------------------------------------
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7388 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7390 # Check whether --with-gcc-version was given.
7391 if test "${with_gcc_version+set}" = set; then :
7392 withval
=$with_gcc_version; kernel_tool_version
="$withval"
7394 kernel_tool_version
="default"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7398 $as_echo "$kernel_tool_version" >&6; }
7400 #-----------------------------------------------------------------------------
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7402 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7404 # Check whether --with-gcc-version was given.
7405 if test "${with_gcc_version+set}" = set; then :
7406 withval
=$with_gcc_version; target_tool_version
="$withval"
7408 target_tool_version
="default"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7412 $as_echo "$target_tool_version" >&6; }
7414 #-----------------------------------------------------------------------------
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7416 $as_echo_n "checking what optimization flags to use... " >&6; }
7418 # Check whether --with-optimization was given.
7419 if test "${with_optimization+set}" = set; then :
7420 withval
=$with_optimization; optimization
="$withval"
7422 optimization
="unknown"
7425 if test "$optimization" = "unknown"; then
7426 if test "$debug" != "none"; then
7432 aros_config_cflags
="$aros_config_cflags $optimization"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7434 $as_echo "$optimization" >&6; }
7436 #-----------------------------------------------------------------------------
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7438 $as_echo_n "checking what paranoia flags to use... " >&6; }
7440 # Check whether --with-paranoia was given.
7441 if test "${with_paranoia+set}" = set; then :
7442 withval
=$with_paranoia; paranoia_flags
="$withval"
7444 paranoia_flags
="default"
7447 if test "$paranoia_flags" = "default"; then
7449 else if test "$paranoia_flags" = "yes"; then
7450 paranoia_flags
="-Wall -Werror"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7453 $as_echo "$paranoia_flags" >&6; }
7454 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7456 #-----------------------------------------------------------------------------
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7458 $as_echo_n "checking what target variant to enable... " >&6; }
7459 # Check whether --enable-target_variant was given.
7460 if test "${enable_target_variant+set}" = set; then :
7461 enableval
=$enable_target_variant; target_variant
=$enableval
7466 if test "$target_variant" = ""; then
7467 aros_target_variant
=""
7468 aros_target_suffix
=""
7471 aros_target_variant
="$target_variant"
7472 aros_target_suffix
="-$target_variant"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7475 $as_echo "$enableval" >&6; }
7477 #-----------------------------------------------------------------------------
7478 # Target-specific defaults. You can override then on a per-target basis.
7480 # Bootloader name. Currently used by PC target.
7481 target_bootloader
="none"
7483 #-----------------------------------------------------------------------------
7484 # Additional options for some specific targets
7486 case "$aros_target_variant" in
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7489 $as_echo_n "checking XCode path... " >&6; }
7491 # Check whether --with-xcode was given.
7492 if test "${with_xcode+set}" = set; then :
7493 withval
=$with_xcode; aros_xcode_path
="$withval"
7495 aros_xcode_path
="/Developer"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7499 $as_echo "$aros_xcode_path" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7502 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7504 # Check whether --with-sdk-version was given.
7505 if test "${with_sdk_version+set}" = set; then :
7506 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7508 aros_sdk_version
="4.1"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7512 $as_echo "$aros_sdk_version" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7518 $as_echo_n "checking Android SDK path... " >&6; }
7520 # Check whether --with-sdk was given.
7521 if test "${with_sdk+set}" = set; then :
7522 withval
=$with_sdk; aros_android_sdk
="$withval"
7524 aros_android_sdk
=$default_android_sdk
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7528 $as_echo "$aros_android_sdk" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7531 $as_echo_n "checking Android NDK path... " >&6; }
7533 # Check whether --with-ndk was given.
7534 if test "${with_ndk+set}" = set; then :
7535 withval
=$with_ndk; aros_android_ndk
="$withval"
7537 aros_android_ndk
="none"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7541 $as_echo "$aros_android_ndk" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7544 $as_echo_n "checking what Android SDK version to use... " >&6; }
7546 # Check whether --with-sdk-version was given.
7547 if test "${with_sdk_version+set}" = set; then :
7548 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7550 aros_sdk_version
="12"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7554 $as_echo "$aros_sdk_version" >&6; }
7556 if test "$aros_android_ndk" != "none"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7558 $as_echo_n "checking what Android NDK version to use... " >&6; }
7560 # Check whether --with-ndk-version was given.
7561 if test "${with_ndk_version+set}" = set; then :
7562 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7564 aros_ndk_version
="9"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7568 $as_echo "$aros_ndk_version" >&6; }
7571 export PATH
="$aros_android_sdk/tools:$PATH"
7572 # Extract the first word of "$android_tool", so it can be a program name with args.
7573 set dummy
$android_tool; ac_word
=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_path_android_tool+:} false
; then :
7577 $as_echo_n "(cached) " >&6
7579 case $android_tool in
7581 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir
=.
7589 for ac_exec_ext
in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 android_tool
=$ac_cv_path_android_tool
7603 if test -n "$android_tool"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7605 $as_echo "$android_tool" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7612 if test "$android_tool" = ""; then
7613 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7616 aros_android_level
=android-
$aros_sdk_version
7617 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7618 echo "Platform $aros_android_level is not installed in your SDK"
7619 echo "Use --with-sdk-version=<API level number> to select another platform version"
7620 echo "You can check what plaform versions are installed in your SDK"
7621 echo "by examining contents of $aros_android_sdk/platforms directory"
7622 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7625 # Extract the first word of "ant", so it can be a program name with args.
7626 set dummy ant
; ac_word
=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_ant+:} false
; then :
7630 $as_echo_n "(cached) " >&6
7634 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir
=.
7642 for ac_exec_ext
in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 if test -n "$ant"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7658 $as_echo "$ant" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7665 if test "$ant" = ""; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7667 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7670 if test "$host_os" = "mingw32"; then
7671 android_tool
="cmd //c $android_tool"
7677 #-----------------------------------------------------------------------------
7679 # This is the target configuration switch.
7680 case "$target_os" in
7682 aros_target_arch
="linux"
7683 aros_target_family
="unix"
7684 case "$target_cpu" in
7686 aros_target_cpu
="m68k"
7687 aros_object_format
="m68kelf"
7688 aros_flavour
="emulcompat"
7689 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7690 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7691 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7692 gcc_target_cpu
="mc68000"
7695 aros_target_cpu
="i386"
7696 aros_object_format
="elf_i386"
7697 aros_flavour
="emulation"
7698 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7699 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7700 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7701 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7702 aros_config_ldflags
="-m32 -march=i486"
7703 aros_kernel_ldflags
="-melf_i386"
7704 aros_default_wbdepth
=8
7705 gcc_target_cpu
="i386"
7706 pci_hidd_target
="hidd-pci-linux"
7707 android_tool_dir_prefix
="x86"
7708 android_tool_prefix
="i686-android-linux"
7709 android_ndk_arch
="x86"
7712 aros_target_cpu
="x86_64"
7713 aros_object_format
="elf_x86_64"
7714 aros_flavour
="emulation"
7715 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7716 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7717 aros_default_wbdepth
=8
7718 pci_hidd_target
="hidd-pci-linux"
7721 aros_target_cpu
="ppc"
7722 aros_object_format
="elf32ppc"
7723 aros_flavour
="emulation"
7724 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7725 aros_default_wbdepth
=8
7726 gcc_target_cpu
="ppc"
7729 # Same as powerpc, but I need this for the nightly build to work again.
7730 # Actually, the nightly should be made working with powerpc target.
7731 # That just was too much work for the moment, another week or two.
7733 aros_target_cpu
="ppc"
7734 aros_object_format
="elf32ppc"
7735 aros_flavour
="emulation"
7736 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7737 aros_default_wbdepth
=8
7738 gcc_target_cpu
="ppc"
7741 aros_target_cpu
="arm"
7742 aros_object_format
="armelf_linux_eabi"
7743 aros_flavour
="emulation"
7744 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7745 gcc_target_cpu
="arm"
7746 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7747 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7748 aros_arch_libs
="-laeabi"
7749 android_tool_dir_prefix
="arm-linux-androideabi"
7750 android_tool_prefix
="arm-linux-androideabi"
7751 android_ndk_arch
="arm"
7752 if test "$aros_host_cpu" != "arm" ; then
7753 kernel_tool_prefix
="arm-linux-gnueabi-"
7757 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7760 case "$aros_target_variant" in
7763 if test "$android_ndk_arch" = ""; then
7764 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7767 aros_default_wbwidth
=320
7768 aros_default_wbheight
=480
7769 if test "$aros_android_ndk" = "none"; then
7770 aros_kernel_cflags
="-mandroid"
7771 aros_kernel_ldflags
="-mandroid"
7774 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7775 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7776 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7777 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7778 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7779 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7782 x11_hidd_target
=kernel-hidd-androidgfx-kobj
7783 # Disable implicit PIC mode
7784 aros_kernel_cflags
="$aros_kernel_cflags -fno-pic"
7785 aros_target_cflags
="$aros_target_cflags -fno-pic"
7786 kernel_tool_prefix
="$android_tool_prefix-"
7792 aros_target_arch
="pc"
7793 aros_shared_default
="no"
7794 target_bootloader
="grub2"
7795 case "$target_cpu" in
7797 aros_target_cpu
="i386"
7800 if test "$aros_object_format" = "" ; then
7801 aros_object_format
="elf_i386"
7803 aros_flavour
="standalone"
7804 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7805 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7806 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7807 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7808 aros_config_ldflags
="-m32 -march=i486"
7809 aros_kernel_ldflags
="-melf_i386"
7810 aros_default_wbwidth
=640
7811 aros_default_wbheight
=480
7812 gcc_target_cpu
="i386"
7815 aros_target_cpu
="x86_64"
7817 if test "$aros_object_format" = "" ; then
7818 aros_object_format
="elf_x86_64"
7820 aros_flavour
="standalone"
7821 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7822 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7823 aros_kernel_ldflags
=""
7824 aros_default_wbwidth
=640
7825 aros_default_wbheight
=480
7828 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7834 aros_target_arch
="prep"
7835 aros_shared_default
="no"
7836 aros_target_cpu
="ppc"
7837 aros_object_format
="elf32ppc"
7838 aros_flavour
="ppcnative"
7839 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7840 aros_kernel_ldflags
=""
7841 aros_default_wbwidth
=640
7842 aros_default_wbheight
=480
7843 gcc_target_cpu
="ppc"
7847 aros_target_arch
="freebsd"
7848 aros_target_family
="unix"
7849 aros_target_cpu
="i386"
7850 aros_flavour
="emulation"
7851 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7852 gcc_target_cpu
="i386"
7854 aros_target_strip_flags
="-x"
7858 aros_target_arch
="darwin"
7859 aros_target_family
="unix"
7860 aros_flavour
="emulation"
7861 case "$target_cpu" in
7863 aros_ios_platform
="iPhoneSimulator"
7864 aros_target_cpu
="i386"
7865 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7866 aros_kernel_ldflags
=""
7867 aros_macosx_version
="10.4"
7868 aros_default_wbdepth
=8
7869 gcc_target_cpu
="i386"
7870 aros_object_format
="elf_i386"
7871 aros_kernel_ar_flags
="-cr"
7872 aros_target_strip_flags
="-x"
7873 kernel_tool_flags
="-m32"
7876 aros_target_cpu
="x86_64"
7877 aros_object_format
="elf_x86_64"
7878 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7879 aros_macosx_version
="10.6"
7880 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7881 aros_kernel_cflags
="-m64"
7882 aros_kernel_ldflags
="-m64"
7883 aros_target_cflags
="-mcmodel=large"
7884 aros_default_wbdepth
=8
7886 aros_kernel_ar_flags
="-cr"
7888 aros_kernel_ranlib
="ranlib"
7891 aros_target_cpu
="ppc"
7892 aros_object_format
="elf32ppc"
7893 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7894 aros_kernel_ldflags
=""
7895 aros_macosx_version
="10.0"
7896 aros_default_wbdepth
=8
7897 gcc_target_cpu
="ppc"
7899 aros_kernel_ar_flags
="-cr"
7900 aros_kernel_ld
="ld -arch ppc"
7901 aros_kernel_ranlib
="ranlib -arch ppc"
7902 kernel_tool_prefix
="powerpc-apple-darwin10-"
7905 aros_ios_platform
="iPhoneOS"
7906 aros_target_cpu
="arm"
7907 aros_object_format
="armelf_linux_eabi"
7908 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7909 aros_arch_libs
="-laeabi"
7910 aros_default_wbdepth
=8
7911 gcc_target_cpu
="arm"
7913 aros_kernel_ar_flags
="-cr"
7914 aros_kernel_ld
="ld -arch arm"
7915 aros_kernel_ranlib
="ranlib -arch arm"
7916 kernel_tool_prefix
="arm-apple-darwin10-"
7917 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7920 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7923 case "$aros_target_variant" in
7925 aros_ios_version
="3.0"
7926 aros_default_wbwidth
=320
7927 aros_default_wbheight
=480
7928 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7929 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7930 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7932 # This is here because it may depend on iOS or SDK version
7933 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7934 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7935 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7938 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7939 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7945 aros_target_arch
="dragonfly"
7946 aros_target_family
="unix"
7947 aros_flavour
="emulation"
7948 case "$target_cpu" in
7950 aros_target_cpu
="i386"
7951 aros_object_format
="elf_i386"
7952 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7955 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7956 aros_target_cpu
="x86_64"
7957 aros_object_format
="elf_x86_64"
7958 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7961 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7967 aros_target_arch
="netbsd"
7968 aros_target_family
="unix"
7969 case "$target_cpu" in
7971 aros_target_cpu
="m68k"
7972 aros_object_format
="m68kelf"
7973 aros_flavour
="emulcompat"
7974 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7975 gcc_target_cpu
="mc68000"
7978 aros_target_cpu
="i386"
7979 aros_object_format
="elf_i386"
7980 aros_flavour
="emulation"
7981 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7982 aros_default_wbdepth
=8
7983 gcc_target_cpu
="i386"
7986 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7989 aros_target_genmap
="-Wl,-M -Xlinker >"
7990 aros_flavour
="emulation"
7991 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7995 aros_target_arch
="openbsd"
7996 aros_target_family
="unix"
7997 case "$target_cpu" in
7999 aros_target_cpu
="i386"
8000 aros_object_format
="elf_i386"
8001 aros_flavour
="emulation"
8002 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8003 gcc_target_cpu
="i386"
8006 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8009 aros_target_genmap
="-Wl,-M -Xlinker >"
8010 aros_target_nm_flags
="-u"
8011 aros_flavour
="emulation"
8015 aros_target_arch
="solaris"
8016 aros_target_family
="unix"
8017 case "$target_cpu" in
8019 aros_target_cpu
="i386"
8020 aros_object_format
="elf_i386"
8021 aros_flavour
="emulation"
8022 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8023 aros_default_wbdepth
=8
8024 gcc_target_cpu
="i386"
8027 aros_target_cpu
="sparc"
8028 aros_object_format
="elf_sparc"
8029 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8030 gcc_target_cpu
="sparc"
8033 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8036 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8037 aros_flavour
="emulation"
8041 aros_target_arch
="morphos"
8042 aros_shared_default
="no"
8043 aros_target_cpu
="ppc"
8044 aros_object_format
="elf_ppc"
8045 aros_flavour
="nativecompat"
8046 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8047 gcc_target_cpu
="ppc"
8051 aros_target_arch
="sam440"
8052 aros_shared_default
="no"
8053 aros_target_cpu
="ppc"
8054 aros_object_format
="elf32ppc"
8055 aros_flavour
="ppcnative"
8056 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8057 aros_kernel_ldflags
=""
8058 aros_default_wbwidth
=1024
8059 aros_default_wbheight
=768
8060 aros_default_wbdepth
=24
8061 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8062 gcc_target_cpu
="powerpc"
8066 aros_target_arch
="efika"
8067 aros_shared_default
="no"
8068 aros_target_cpu
="arm"
8069 aros_object_format
="armelf_linux_eabi"
8070 aros_flavour
="standalone"
8071 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8072 aros_kernel_ldflags
=""
8073 aros_default_wbwidth
=1024
8074 aros_default_wbheight
=600
8075 aros_arch_libs
="-laeabi"
8076 gcc_default_cpu
="armv7-a"
8077 gcc_default_fpu
="vfpv3"
8078 gcc_default_float_abi
="softfp"
8079 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8080 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8084 aros_target_arch
="chrp"
8085 aros_shared_default
="no"
8086 aros_target_cpu
="ppc"
8087 aros_object_format
="elf32ppc"
8088 aros_flavour
="ppcnative"
8089 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8090 aros_kernel_ldflags
=""
8091 aros_default_wbwidth
=640
8092 aros_default_wbheight
=480
8093 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8094 gcc_target_cpu
="powerpc"
8095 case "$aros_target_variant" in
8097 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8103 aros_target_arch
="amiga"
8104 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8105 aros_shared_default
="no"
8107 case "$target_cpu" in
8109 # Check whether --enable-amigaos_compliance was given.
8110 if test "${enable_amigaos_compliance+set}" = set; then :
8111 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8115 aros_target_cpu
="m68k"
8116 aros_object_format
="m68kelf"
8117 aros_flavour
="standcompat"
8118 gcc_target_cpu
="m68000"
8119 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8120 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
8121 # Needed to get the correct multilib
8122 aros_config_ldflags
="-${gcc_target_cpu}"
8123 aros_shared_ldflags
="-${gcc_target_cpu}"
8124 aros_kernel_ldflags
="-${gcc_target_cpu}"
8125 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
8126 aros_target_strip_flags
="-R.comment --strip-debug"
8127 aros_default_wbwidth
=640
8128 aros_default_wbheight
=256
8129 aros_default_wbdepth
=2
8133 aros_flavour
="native"
8134 gcc_target_cpu
="ppc"
8137 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8143 aros_target_arch
="mingw32"
8144 aros_shared_default
="no"
8145 aros_flavour
="emulation"
8146 aros_shared_cflags
=""
8149 case "$target_cpu" in
8151 aros_target_cpu
="i386"
8152 aros_object_format
="elf_i386"
8153 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8154 aros_default_wbdepth
=8
8155 gcc_target_cpu
="i386"
8157 kernel_tool_prefix
="i386-mingw32-"
8160 aros_target_cpu
="x86_64"
8161 aros_object_format
="elf_x86_64"
8162 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8163 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8164 aros_default_wbdepth
=8
8165 kernel_tool_prefix
="x86_64-w64-mingw32-"
8168 aros_target_cpu
="arm"
8169 aros_object_format
="armelf_linux_eabi"
8170 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8171 aros_arch_libs
="-laeabi"
8172 aros_default_wbdepth
=8
8173 gcc_target_cpu
="arm"
8174 gcc_default_float_abi
="soft"
8175 kernel_tool_prefix
="arm-mingw32ce-"
8176 aros_default_wbwidth
=160
8177 aros_default_wbheight
=160
8180 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8183 if test $host_os = "cygwin"; then
8184 aros_kernel_cflags
="-mno-cygwin"
8188 aros_target_arch
="pp"
8189 aros_shared_default
="no"
8190 case "$target_cpu" in
8192 aros_target_cpu
="m68k"
8193 aros_object_format
="m68kelf"
8194 aros_flavour
="palmnative"
8195 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8196 aros_default_wbwidth
=160
8197 aros_default_wbheight
=160
8198 aros_default_wbdepth
=1
8199 aros_target_ar_flags
="cru"
8200 aros_compiler_libs
="-lgcc1"
8201 aros_shared_default
=no
8202 aros_shared_cflags
="-fpic"
8203 aros_shared_aflags
=""
8204 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8205 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8206 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8207 aros_debug_aflags
=""
8208 aros_debug_ldflags
="$aros_symbols_debug"
8209 aros_mungwall_debug
="0"
8210 aros_modules_debug
="0"
8211 gcc_target_cpu
="mc68000"
8212 ignore_undefined_symbols
="-ius"
8215 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8221 aros_target_arch
="mac"
8222 aros_shared_default
="no"
8223 case "$target_cpu" in
8225 aros_target_cpu
="m68k"
8226 aros_object_format
="m68kelf"
8227 aros_flavour
="mac68knative"
8228 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8229 aros_default_wbwidth
=512
8230 aros_default_wbheight
=384
8231 aros_default_wbdepth
=8
8232 aros_target_ar_flags
="cru"
8233 aros_compiler_libs
="-lgcc1"
8234 aros_shared_default
=no
8235 aros_shared_cflags
="-fpic"
8236 aros_shared_aflags
=""
8237 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8238 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8239 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000"
8240 aros_debug_aflags
=""
8241 aros_debug_ldflags
="$aros_symbols_debug"
8242 aros_mungwall_debug
="0"
8243 aros_modules_debug
="0"
8244 gcc_target_cpu
="mc68000"
8245 ignore_undefined_symbols
="-ius"
8248 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8254 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8258 #-----------------------------------------------------------------------------
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8260 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8262 # Check whether --with-crosstools was given.
8263 if test "${with_crosstools+set}" = set; then :
8264 withval
=$with_crosstools; with_crosstools
=$withval
8266 with_crosstools
="default"
8269 if test "$with_crosstools" = "default"; then
8270 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8272 # Disable building crosstools if we are using an external set - otherwise
8273 # we may attempt to overwrite them if the tools-crosstools target is made!
8275 AROS_CROSSTOOLSDIR
="$with_crosstools"
8276 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8279 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8282 $as_echo_n "checking Kernel tool prefix... " >&6; }
8284 # Check whether --with-kernel-tool-prefix was given.
8285 if test "${with_kernel_tool_prefix+set}" = set; then :
8286 withval
=$with_kernel_tool_prefix; kernel_tool_prefix
="$withval"
8288 kernel_tool_prefix
="$kernel_tool_prefix"
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8292 $as_echo "$kernel_tool_prefix" >&6; }
8294 target_tool_prefix
=${target_cpu}-aros-
8296 # Now process extra architecture-specific options.
8297 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8298 # as well as floating-point ABI.
8299 case "$aros_target_cpu" in
8301 if test "$gcc_default_cpu" = ""; then
8302 gcc_default_cpu
="armv6"
8304 if test "$gcc_default_fpu" = ""; then
8305 gcc_default_fpu
="vfp"
8307 if test "$gcc_default_float_abi" = ""; then
8308 gcc_default_float_abi
="softfp"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8312 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8314 # Check whether --with-cpu was given.
8315 if test "${with_cpu+set}" = set; then :
8316 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8318 aros_gcc_cpu
=$gcc_default_cpu
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8322 $as_echo "$aros_gcc_cpu" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8325 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8327 # Check whether --with-fpu was given.
8328 if test "${with_fpu+set}" = set; then :
8329 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8331 aros_gcc_fpu
=$gcc_default_fpu
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8335 $as_echo "$aros_gcc_fpu" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8338 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8340 # Check whether --with-float was given.
8341 if test "${with_float+set}" = set; then :
8342 withval
=$with_float; aros_gcc_float_abi
="$withval"
8344 aros_gcc_float_abi
=$gcc_default_float_abi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8348 $as_echo "$aros_gcc_float_abi" >&6; }
8350 aros_config_cflags
="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8351 aros_config_aflags
="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8355 # Some formats need custom ELF specs.
8356 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8357 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
8358 elf_specs_in
=config
/${aros_object_format}-specs.
in
8360 elf_specs_in
=config
/elf-specs.
in
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8364 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8366 # Check whether --with-aros-gcc was given.
8367 if test "${with_aros_gcc+set}" = set; then :
8368 withval
=$with_aros_gcc; aros_gcc_version
="-$withval"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8374 $as_echo "$aros_gcc_version" >&6; }
8376 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8377 # Since we override specs, we may need to put these defines there
8378 if test "$gcc_target_cpu" != ""; then
8379 gcc_target_cpu
="-D__${gcc_target_cpu}__"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8383 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8385 # Check whether --with-portssources was given.
8386 if test "${with_portssources+set}" = set; then :
8387 withval
=$with_portssources; with_portssrcdir
=$withval
8389 with_portssrcdir
="default"
8392 if test "$with_portssrcdir" = "default"; then
8393 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
8395 AROS_PORTSSRCDIR
="$with_portssrcdir"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8398 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8401 $as_echo_n "checking which bootloader to use... " >&6; }
8403 # Check whether --with-bootloader was given.
8404 if test "${with_bootloader+set}" = set; then :
8405 withval
=$with_bootloader; target_bootloader
=$withval
8407 target_bootloader
=$target_bootloader
8410 if test "$target_bootloader" = "none"; then
8411 aros_target_bootloader
=""
8413 aros_target_bootloader
="$target_bootloader"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8416 $as_echo "$target_bootloader" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8419 $as_echo_n "checking which icon-set to use... " >&6; }
8421 # Check whether --with-iconset was given.
8422 if test "${with_iconset+set}" = set; then :
8423 withval
=$with_iconset; target_iconset
=$withval
8425 target_iconset
="default"
8428 if test "$target_iconset" = "default"; then
8429 aros_target_iconset
="Gorilla"
8430 target_iconset
="default (Gorilla)"
8432 aros_target_iconset
="$target_iconset"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8435 $as_echo "$target_iconset" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8438 $as_echo_n "checking which GUI Theme to use... " >&6; }
8440 # Check whether --with-theme was given.
8441 if test "${with_theme+set}" = set; then :
8442 withval
=$with_theme; target_guitheme
=$withval
8444 target_guitheme
="default"
8447 if test "$target_guitheme" = "default"; then
8448 aros_target_guitheme
="Ice"
8450 aros_target_guitheme
="$target_guitheme"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8453 $as_echo "$aros_target_guitheme" >&6; }
8455 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8458 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8459 # If host = target CPU, let's try to use the
8460 # host's toolchains if no others were requested
8461 if test "$kernel_tool_prefix" = "none" ; then
8462 kernel_tool_prefix
=""
8468 if test "$aros_host_cpu" == "x86_64" ; then
8469 if test "$aros_target_cpu" == "i386" ; then
8470 if test "$aros_target_arch" != "mingw32"; then
8472 kernel_tool_prefix
=""
8477 if test "$aros_host_arch" == "darwin" ; then
8478 if test "$aros_target_arch" != "darwin" ; then
8482 kernel_tool_prefix
=""
8486 if test "$aros_host_arch" == "mingw32" ; then
8487 if test "$aros_target_arch" != "mingw32" ; then
8492 #######################################################################
8493 ## Compute what toolchains to use, and their paths ##
8494 #######################################################################
8496 # This takes, as input:
8497 # crosstools {yes,no}
8498 # aros_gcc_version {default,[version]}
8499 # kernel_tool_prefix {none,[some-arch-os-]}
8500 # target_tool_prefix ${target_cpu}-aros-
8503 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8504 # Where the 'kernel' binaries are located
8505 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8506 # Where the 'target' binaries are located
8507 # (not the symlink farm - that is aros_target_*!)
8510 # if crosstools then
8511 # if kernel_tools_prefix = "no-kernel-prefix-"
8512 # aros_kernel_* = crosstools cc paths
8513 # aros_kernel_cc = elf cc wrapper around crosstools cc
8515 # VALIDATE(${kernel_tools_prefix}*)
8516 # aros_kernel_* = ${kernel_tools_prefix}*
8517 # if ${kernel_tools_prefix}cc is an AROS gcc
8518 # aros_kernel_cc = ${kernel_tools_prefix}cc
8520 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8524 # orig_target_* = aros built crosstools
8525 # orig_target_cc = elf cc wrapper around crosstools cc
8527 # VALIDATE(${kernel_tools_prefix}*)
8529 # orig_target_* = aros_kernel_*
8530 # if aros_kernel_cc is an AROS gcc
8531 # orig_target_cc = aros_kernel_cc
8533 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8539 $as_echo_n "checking whether to use external toolchain... " >&6; }
8540 if test "$kernel_tool_prefix" = "none" ; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; };
8543 if test "$crosstools" != "yes"; then
8544 as_fn_error $?
"--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8546 # We are building AROS crosstools, and no kernel
8547 # tools specified - assume target tools == kernel tools
8548 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8549 aros_kernel_cc
="${tmp_tool_prefix}gcc${aros_gcc_version}"
8550 aros_kernel_cxx
="${tmp_tool_prefix}g++${aros_gcc_version}"
8551 aros_kernel_cpp
="${tmp_tool_prefix}cpp"
8552 aros_kernel_ld
="${tmp_tool_prefix}ld"
8553 aros_kernel_as
="${tmp_tool_prefix}as"
8554 aros_kernel_ar
="${tmp_tool_prefix}ar"
8555 aros_kernel_ranlib
="${tmp_tool_prefix}ranlib"
8556 aros_kernel_nm
="${tmp_tool_prefix}nm"
8557 aros_kernel_strip
="${tmp_tool_prefix}strip"
8558 aros_kernel_objcopy
="${tmp_tool_prefix}objcopy"
8559 aros_kernel_objdump
="${tmp_tool_prefix}objdump"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8562 $as_echo "yes" >&6; };
8563 # Kernel tools specified - find them
8564 # Note that 'normally', aros_kernel_* overrides will
8565 # empty, unless specified in the per-arch sections above.
8568 if test "$aros_kernel_cpp" = ""; then
8569 if test "$cross_compiling" = "yes" ; then
8570 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8571 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8575 $as_echo_n "(cached) " >&6
8577 case $aros_kernel_cpp in
8579 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8586 test -z "$as_dir" && as_dir
=.
8587 for ac_exec_ext
in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8601 if test -n "$aros_kernel_cpp"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8603 $as_echo "$aros_kernel_cpp" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8611 if test "$GCC" = "yes"; then
8612 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
8613 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8614 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8618 $as_echo_n "(cached) " >&6
8620 case $aros_kernel_cpp in
8622 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8626 for as_dir
in `dirname $aros_gcc_cpp`
8629 test -z "$as_dir" && as_dir
=.
8630 for ac_exec_ext
in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8644 if test -n "$aros_kernel_cpp"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8646 $as_echo "$aros_kernel_cpp" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8654 if test "$aros_kernel_cpp" = ""; then
8655 # Extract the first word of "cpp", so it can be a program name with args.
8656 set dummy cpp
; ac_word
=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8660 $as_echo_n "(cached) " >&6
8662 case $aros_kernel_cpp in
8664 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8671 test -z "$as_dir" && as_dir
=.
8672 for ac_exec_ext
in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8674 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8686 if test -n "$aros_kernel_cpp"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8688 $as_echo "$aros_kernel_cpp" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8698 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8699 set dummy
$aros_kernel_cpp; ac_word
=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8703 $as_echo_n "(cached) " >&6
8705 case $aros_kernel_cpp in
8707 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8714 test -z "$as_dir" && as_dir
=.
8715 for ac_exec_ext
in '' $ac_executable_extensions; do
8716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8717 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8729 if test -n "$aros_kernel_cpp"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8731 $as_echo "$aros_kernel_cpp" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8740 if test "$aros_kernel_cpp" = ""; then
8741 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8743 if test "x$aros_kernel_cc" = "x"; then
8744 aros_kernel_cc
=${kernel_tool_prefix}gcc
8747 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8748 if test "$cross_compiling" = "yes" ; then
8749 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8750 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8754 $as_echo_n "(cached) " >&6
8756 case $aros_kernel_cc in
8758 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir
=.
8766 for ac_exec_ext
in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8780 if test -n "$aros_kernel_cc"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8782 $as_echo "$aros_kernel_cc" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8790 if test "$GCC" = "yes"; then
8791 aros_gcc_cc
=`$CC -print-prog-name=cc`
8792 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8793 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8797 $as_echo_n "(cached) " >&6
8799 case $aros_kernel_cc in
8801 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8805 for as_dir
in `dirname $aros_gcc_cc`
8808 test -z "$as_dir" && as_dir
=.
8809 for ac_exec_ext
in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8823 if test -n "$aros_kernel_cc"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8825 $as_echo "$aros_kernel_cc" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8833 if test "$aros_kernel_cc" = ""; then
8834 # Extract the first word of "cc", so it can be a program name with args.
8835 set dummy cc
; ac_word
=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8839 $as_echo_n "(cached) " >&6
8841 case $aros_kernel_cc in
8843 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8850 test -z "$as_dir" && as_dir
=.
8851 for ac_exec_ext
in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8865 if test -n "$aros_kernel_cc"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8867 $as_echo "$aros_kernel_cc" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8877 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8878 set dummy
$aros_kernel_cc${aros_gcc_version}; ac_word
=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8882 $as_echo_n "(cached) " >&6
8884 case $aros_kernel_cc in
8886 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir
=.
8894 for ac_exec_ext
in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8908 if test -n "$aros_kernel_cc"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8910 $as_echo "$aros_kernel_cc" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8919 if test "$aros_kernel_cc" = ""; then
8920 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8922 if test "x$aros_kernel_cxx" = "x"; then
8923 aros_kernel_cxx
=${kernel_tool_prefix}g
++
8926 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8927 if test "$cross_compiling" = "yes" ; then
8928 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8929 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
8933 $as_echo_n "(cached) " >&6
8935 case $aros_kernel_cxx in
8937 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
8940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8944 test -z "$as_dir" && as_dir
=.
8945 for ac_exec_ext
in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
8959 if test -n "$aros_kernel_cxx"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8961 $as_echo "$aros_kernel_cxx" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8969 if test "$GCC" = "yes"; then
8970 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
8971 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8972 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
8976 $as_echo_n "(cached) " >&6
8978 case $aros_kernel_cxx in
8980 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
8983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8984 for as_dir
in `dirname $aros_gcc_cxx`
8987 test -z "$as_dir" && as_dir
=.
8988 for ac_exec_ext
in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9002 if test -n "$aros_kernel_cxx"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9004 $as_echo "$aros_kernel_cxx" >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test "$aros_kernel_cxx" = ""; then
9013 # Extract the first word of "cxx", so it can be a program name with args.
9014 set dummy cxx
; ac_word
=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9018 $as_echo_n "(cached) " >&6
9020 case $aros_kernel_cxx in
9022 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9029 test -z "$as_dir" && as_dir
=.
9030 for ac_exec_ext
in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9044 if test -n "$aros_kernel_cxx"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9046 $as_echo "$aros_kernel_cxx" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9056 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9057 set dummy
$aros_kernel_cxx${aros_gcc_version}; ac_word
=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9061 $as_echo_n "(cached) " >&6
9063 case $aros_kernel_cxx in
9065 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9072 test -z "$as_dir" && as_dir
=.
9073 for ac_exec_ext
in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9075 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9087 if test -n "$aros_kernel_cxx"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9089 $as_echo "$aros_kernel_cxx" >&6; }
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9098 # If it's set, make sure it's really there
9099 if test "x$aros_kernel_cxx" != "x" ; then
9100 if test "$aros_kernel_cxx" = ""; then
9101 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9105 if test "$aros_kernel_ld" = ""; then
9106 if test "$cross_compiling" = "yes" ; then
9107 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9108 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9112 $as_echo_n "(cached) " >&6
9114 case $aros_kernel_ld in
9116 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir
=.
9124 for ac_exec_ext
in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9138 if test -n "$aros_kernel_ld"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9140 $as_echo "$aros_kernel_ld" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 if test "$GCC" = "yes"; then
9149 aros_gcc_ld
=`$CC -print-prog-name=ld`
9150 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9151 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9155 $as_echo_n "(cached) " >&6
9157 case $aros_kernel_ld in
9159 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9163 for as_dir
in `dirname $aros_gcc_ld`
9166 test -z "$as_dir" && as_dir
=.
9167 for ac_exec_ext
in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9181 if test -n "$aros_kernel_ld"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9183 $as_echo "$aros_kernel_ld" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9191 if test "$aros_kernel_ld" = ""; then
9192 # Extract the first word of "ld", so it can be a program name with args.
9193 set dummy ld
; ac_word
=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9197 $as_echo_n "(cached) " >&6
9199 case $aros_kernel_ld in
9201 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9208 test -z "$as_dir" && as_dir
=.
9209 for ac_exec_ext
in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9223 if test -n "$aros_kernel_ld"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9225 $as_echo "$aros_kernel_ld" >&6; }
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9235 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9236 set dummy
$aros_kernel_ld; ac_word
=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9240 $as_echo_n "(cached) " >&6
9242 case $aros_kernel_ld in
9244 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir
=.
9252 for ac_exec_ext
in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9266 if test -n "$aros_kernel_ld"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9268 $as_echo "$aros_kernel_ld" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9277 if test "$aros_kernel_ld" = ""; then
9278 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9281 if test "$aros_kernel_as" = ""; then
9282 if test "$cross_compiling" = "yes" ; then
9283 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9284 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9288 $as_echo_n "(cached) " >&6
9290 case $aros_kernel_as in
9292 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9299 test -z "$as_dir" && as_dir
=.
9300 for ac_exec_ext
in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9314 if test -n "$aros_kernel_as"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9316 $as_echo "$aros_kernel_as" >&6; }
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9324 if test "$GCC" = "yes"; then
9325 aros_gcc_as
=`$CC -print-prog-name=as`
9326 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9327 set dummy
`basename $aros_gcc_as`; ac_word
=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9331 $as_echo_n "(cached) " >&6
9333 case $aros_kernel_as in
9335 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9339 for as_dir
in `dirname $aros_gcc_as`
9342 test -z "$as_dir" && as_dir
=.
9343 for ac_exec_ext
in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9357 if test -n "$aros_kernel_as"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9359 $as_echo "$aros_kernel_as" >&6; }
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 if test "$aros_kernel_as" = ""; then
9368 # Extract the first word of "as", so it can be a program name with args.
9369 set dummy as
; ac_word
=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9373 $as_echo_n "(cached) " >&6
9375 case $aros_kernel_as in
9377 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9384 test -z "$as_dir" && as_dir
=.
9385 for ac_exec_ext
in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9399 if test -n "$aros_kernel_as"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9401 $as_echo "$aros_kernel_as" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9411 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9412 set dummy
$aros_kernel_as; ac_word
=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9416 $as_echo_n "(cached) " >&6
9418 case $aros_kernel_as in
9420 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9427 test -z "$as_dir" && as_dir
=.
9428 for ac_exec_ext
in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9442 if test -n "$aros_kernel_as"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9444 $as_echo "$aros_kernel_as" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9453 if test "$aros_kernel_as" = ""; then
9454 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
9457 if test "$aros_kernel_ar" = ""; then
9458 if test "$cross_compiling" = "yes" ; then
9459 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9460 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9464 $as_echo_n "(cached) " >&6
9466 case $aros_kernel_ar in
9468 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir
=.
9476 for ac_exec_ext
in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9490 if test -n "$aros_kernel_ar"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9492 $as_echo "$aros_kernel_ar" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 if test "$GCC" = "yes"; then
9501 aros_gcc_ar
=`$CC -print-prog-name=ar`
9502 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9503 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9507 $as_echo_n "(cached) " >&6
9509 case $aros_kernel_ar in
9511 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9515 for as_dir
in `dirname $aros_gcc_ar`
9518 test -z "$as_dir" && as_dir
=.
9519 for ac_exec_ext
in '' $ac_executable_extensions; do
9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9533 if test -n "$aros_kernel_ar"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9535 $as_echo "$aros_kernel_ar" >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9543 if test "$aros_kernel_ar" = ""; then
9544 # Extract the first word of "ar", so it can be a program name with args.
9545 set dummy
ar; ac_word
=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9549 $as_echo_n "(cached) " >&6
9551 case $aros_kernel_ar in
9553 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir
=.
9561 for ac_exec_ext
in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9575 if test -n "$aros_kernel_ar"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9577 $as_echo "$aros_kernel_ar" >&6; }
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9587 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9588 set dummy
$aros_kernel_ar; ac_word
=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9592 $as_echo_n "(cached) " >&6
9594 case $aros_kernel_ar in
9596 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir
=.
9604 for ac_exec_ext
in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9618 if test -n "$aros_kernel_ar"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9620 $as_echo "$aros_kernel_ar" >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9629 if test "$aros_kernel_ar" = ""; then
9630 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9633 if test "$aros_kernel_ranlib" = ""; then
9634 if test "$cross_compiling" = "yes" ; then
9635 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9636 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9640 $as_echo_n "(cached) " >&6
9642 case $aros_kernel_ranlib in
9644 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir
=.
9652 for ac_exec_ext
in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9666 if test -n "$aros_kernel_ranlib"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9668 $as_echo "$aros_kernel_ranlib" >&6; }
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9676 if test "$GCC" = "yes"; then
9677 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9678 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9679 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9683 $as_echo_n "(cached) " >&6
9685 case $aros_kernel_ranlib in
9687 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9691 for as_dir
in `dirname $aros_gcc_ranlib`
9694 test -z "$as_dir" && as_dir
=.
9695 for ac_exec_ext
in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9709 if test -n "$aros_kernel_ranlib"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9711 $as_echo "$aros_kernel_ranlib" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9719 if test "$aros_kernel_ranlib" = ""; then
9720 # Extract the first word of "ranlib", so it can be a program name with args.
9721 set dummy ranlib
; ac_word
=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9725 $as_echo_n "(cached) " >&6
9727 case $aros_kernel_ranlib in
9729 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9736 test -z "$as_dir" && as_dir
=.
9737 for ac_exec_ext
in '' $ac_executable_extensions; do
9738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9739 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9751 if test -n "$aros_kernel_ranlib"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9753 $as_echo "$aros_kernel_ranlib" >&6; }
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9763 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9764 set dummy
$aros_kernel_ranlib; ac_word
=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9768 $as_echo_n "(cached) " >&6
9770 case $aros_kernel_ranlib in
9772 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9779 test -z "$as_dir" && as_dir
=.
9780 for ac_exec_ext
in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9782 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9794 if test -n "$aros_kernel_ranlib"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9796 $as_echo "$aros_kernel_ranlib" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9805 if test "$aros_kernel_ranlib" = ""; then
9806 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9809 if test "$aros_kernel_nm" = ""; then
9810 if test "$cross_compiling" = "yes" ; then
9811 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9812 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9816 $as_echo_n "(cached) " >&6
9818 case $aros_kernel_nm in
9820 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9827 test -z "$as_dir" && as_dir
=.
9828 for ac_exec_ext
in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9842 if test -n "$aros_kernel_nm"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9844 $as_echo "$aros_kernel_nm" >&6; }
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9852 if test "$GCC" = "yes"; then
9853 aros_gcc_nm
=`$CC -print-prog-name=nm`
9854 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9855 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9859 $as_echo_n "(cached) " >&6
9861 case $aros_kernel_nm in
9863 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9867 for as_dir
in `dirname $aros_gcc_nm`
9870 test -z "$as_dir" && as_dir
=.
9871 for ac_exec_ext
in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9885 if test -n "$aros_kernel_nm"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9887 $as_echo "$aros_kernel_nm" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9895 if test "$aros_kernel_nm" = ""; then
9896 # Extract the first word of "nm", so it can be a program name with args.
9897 set dummy nm
; ac_word
=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9901 $as_echo_n "(cached) " >&6
9903 case $aros_kernel_nm in
9905 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir
=.
9913 for ac_exec_ext
in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9927 if test -n "$aros_kernel_nm"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9929 $as_echo "$aros_kernel_nm" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9939 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9940 set dummy
$aros_kernel_nm; ac_word
=$2
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9944 $as_echo_n "(cached) " >&6
9946 case $aros_kernel_nm in
9948 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9955 test -z "$as_dir" && as_dir
=.
9956 for ac_exec_ext
in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9970 if test -n "$aros_kernel_nm"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9972 $as_echo "$aros_kernel_nm" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9981 if test "$aros_kernel_nm" = ""; then
9982 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9985 if test "$aros_kernel_strip" = ""; then
9986 if test "$cross_compiling" = "yes" ; then
9987 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9988 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
9992 $as_echo_n "(cached) " >&6
9994 case $aros_kernel_strip in
9996 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
9999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10000 for as_dir
in $PATH
10003 test -z "$as_dir" && as_dir
=.
10004 for ac_exec_ext
in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10018 if test -n "$aros_kernel_strip"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10020 $as_echo "$aros_kernel_strip" >&6; }
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10028 if test "$GCC" = "yes"; then
10029 aros_gcc_strip
=`$CC -print-prog-name=strip`
10030 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10031 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10035 $as_echo_n "(cached) " >&6
10037 case $aros_kernel_strip in
10039 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10043 for as_dir
in `dirname $aros_gcc_strip`
10046 test -z "$as_dir" && as_dir
=.
10047 for ac_exec_ext
in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10061 if test -n "$aros_kernel_strip"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10063 $as_echo "$aros_kernel_strip" >&6; }
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10071 if test "$aros_kernel_strip" = ""; then
10072 # Extract the first word of "strip", so it can be a program name with args.
10073 set dummy strip
; ac_word
=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10077 $as_echo_n "(cached) " >&6
10079 case $aros_kernel_strip in
10081 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10085 for as_dir
in $PATH
10088 test -z "$as_dir" && as_dir
=.
10089 for ac_exec_ext
in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10103 if test -n "$aros_kernel_strip"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10105 $as_echo "$aros_kernel_strip" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10115 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10116 set dummy
$aros_kernel_strip; ac_word
=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10120 $as_echo_n "(cached) " >&6
10122 case $aros_kernel_strip in
10124 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10128 for as_dir
in $PATH
10131 test -z "$as_dir" && as_dir
=.
10132 for ac_exec_ext
in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10146 if test -n "$aros_kernel_strip"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10148 $as_echo "$aros_kernel_strip" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10157 if test "$aros_kernel_strip" = ""; then
10158 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10161 # Objcopy and objdump are not required for the kernel
10162 # toolchain on many architectures.
10163 # So we'll look for them, but not make them strictly required.
10165 if test "$aros_kernel_objcopy" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10168 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10172 $as_echo_n "(cached) " >&6
10174 case $aros_kernel_objcopy in
10176 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10180 for as_dir
in $PATH
10183 test -z "$as_dir" && as_dir
=.
10184 for ac_exec_ext
in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10198 if test -n "$aros_kernel_objcopy"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10200 $as_echo "$aros_kernel_objcopy" >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10208 if test "$GCC" = "yes"; then
10209 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10210 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10211 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10217 case $aros_kernel_objcopy in
10219 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10223 for as_dir
in `dirname $aros_gcc_objcopy`
10226 test -z "$as_dir" && as_dir
=.
10227 for ac_exec_ext
in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10241 if test -n "$aros_kernel_objcopy"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10243 $as_echo "$aros_kernel_objcopy" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_objcopy" = ""; then
10252 # Extract the first word of "objcopy", so it can be a program name with args.
10253 set dummy objcopy
; ac_word
=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10257 $as_echo_n "(cached) " >&6
10259 case $aros_kernel_objcopy in
10261 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10265 for as_dir
in $PATH
10268 test -z "$as_dir" && as_dir
=.
10269 for ac_exec_ext
in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10283 if test -n "$aros_kernel_objcopy"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10285 $as_echo "$aros_kernel_objcopy" >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10295 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10296 set dummy
$aros_kernel_objcopy; ac_word
=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10300 $as_echo_n "(cached) " >&6
10302 case $aros_kernel_objcopy in
10304 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10308 for as_dir
in $PATH
10311 test -z "$as_dir" && as_dir
=.
10312 for ac_exec_ext
in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10314 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10326 if test -n "$aros_kernel_objcopy"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10328 $as_echo "$aros_kernel_objcopy" >&6; }
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10338 if test "$aros_kernel_objdump" = ""; then
10339 if test "$cross_compiling" = "yes" ; then
10340 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10341 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10345 $as_echo_n "(cached) " >&6
10347 case $aros_kernel_objdump in
10349 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10353 for as_dir
in $PATH
10356 test -z "$as_dir" && as_dir
=.
10357 for ac_exec_ext
in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10371 if test -n "$aros_kernel_objdump"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10373 $as_echo "$aros_kernel_objdump" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10381 if test "$GCC" = "yes"; then
10382 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
10383 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10384 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10388 $as_echo_n "(cached) " >&6
10390 case $aros_kernel_objdump in
10392 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10396 for as_dir
in `dirname $aros_gcc_objdump`
10399 test -z "$as_dir" && as_dir
=.
10400 for ac_exec_ext
in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10414 if test -n "$aros_kernel_objdump"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10416 $as_echo "$aros_kernel_objdump" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10424 if test "$aros_kernel_objdump" = ""; then
10425 # Extract the first word of "objdump", so it can be a program name with args.
10426 set dummy objdump
; ac_word
=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10430 $as_echo_n "(cached) " >&6
10432 case $aros_kernel_objdump in
10434 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10438 for as_dir
in $PATH
10441 test -z "$as_dir" && as_dir
=.
10442 for ac_exec_ext
in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10456 if test -n "$aros_kernel_objdump"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10458 $as_echo "$aros_kernel_objdump" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10468 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10469 set dummy
$aros_kernel_objdump; ac_word
=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10473 $as_echo_n "(cached) " >&6
10475 case $aros_kernel_objdump in
10477 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10481 for as_dir
in $PATH
10484 test -z "$as_dir" && as_dir
=.
10485 for ac_exec_ext
in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10499 if test -n "$aros_kernel_objdump"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10501 $as_echo "$aros_kernel_objdump" >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10510 if test "x${crosstools}" != "xyes" ; then
10511 if test "$aros_kernel_objcopy" = ""; then
10512 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10514 if test "$aros_kernel_objdump" = ""; then
10515 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10521 $as_echo_n "checking which target tools... " >&6; }
10522 if test "$crosstools" = "yes"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10524 $as_echo "$target_tool_prefix" >&6; }
10525 # We are are building AROS crosstools
10526 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10527 orig_target_cc
="${tmp_tool_prefix}gcc${aros_gcc_version}"
10528 orig_target_cxx
="${tmp_tool_prefix}g++${aros_gcc_version}"
10529 orig_target_cpp
="${tmp_tool_prefix}cpp"
10530 orig_target_ld
="${tmp_tool_prefix}ld"
10531 orig_target_as
="${tmp_tool_prefix}as"
10532 orig_target_ar
="${tmp_tool_prefix}ar"
10533 orig_target_ranlib
="${tmp_tool_prefix}ranlib"
10534 orig_target_nm
="${tmp_tool_prefix}nm"
10535 orig_target_strip
="${tmp_tool_prefix}strip"
10536 orig_target_objcopy
="${tmp_tool_prefix}objcopy"
10537 orig_target_objdump
="${tmp_tool_prefix}objdump"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10540 $as_echo "$kernel_tool_prefix" >&6; }
10541 # We are *not* building AROS crosstools - use the kernel tools
10542 orig_target_cpp
="${aros_kernel_cpp}"
10543 if test "$orig_target_cpp" = ""; then
10544 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10546 orig_target_cc
="${aros_kernel_cc}"
10547 if test "$orig_target_cc" = ""; then
10548 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10550 orig_target_cxx
="${aros_kernel_cxx}"
10551 if test "x$orig_target_cxx" != "x" ; then
10552 if test "$orig_target_cxx" = ""; then
10553 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 orig_target_ld
="${aros_kernel_ld}"
10557 if test "$orig_target_ld" = ""; then
10558 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 orig_target_as
="${aros_kernel_as}"
10561 if test "$orig_target_as" = ""; then
10562 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10564 orig_target_ar
="${aros_kernel_ar}"
10565 if test "$orig_target_ar" = ""; then
10566 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10568 orig_target_ranlib
="${aros_kernel_ranlib}"
10569 if test "$orig_target_ranlib" = ""; then
10570 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10572 orig_target_nm
="${aros_kernel_nm}"
10573 if test "$orig_target_nm" = ""; then
10574 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10576 orig_target_strip
="${aros_kernel_strip}"
10577 if test "$orig_target_strip" = ""; then
10578 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10580 orig_target_objcopy
="${aros_kernel_objcopy}"
10581 if test "$orig_target_objcopy" = ""; then
10582 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10584 orig_target_objdump
="${aros_kernel_objdump}"
10585 if test "$orig_target_objdump" = ""; then
10586 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10590 # At this point, all aros_kernel_* and aros_target_*
10591 # tools should be set up correctly
10593 CC
="$aros_kernel_cc $kernel_tool_flags"
10594 CPP
="$aros_kernel_cpp"
10596 #-----------------------------------------------------------------------------
10598 # Disable pointer-signedness warnings if the compiler recognises the option
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10601 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10602 save_cflags
="$CFLAGS"
10603 if test "$crosstools" != "yes" ; then
10604 CFLAGS
="$CFLAGS -Wno-pointer-sign"
10605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10616 if ac_fn_c_try_compile
"$LINENO"; then :
10617 use_no_sign_warning
="yes"
10619 use_no_sign_warning
="no"
10621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10623 # we do know it is supported for the smallest version of gcc we are going to build
10624 # we assume it's also supported by later versions
10625 use_no_sign_warning
=yes
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10628 $as_echo "$use_no_sign_warning" >&6; }
10629 if test "x-$use_no_sign_warning" = "x-yes" ; then
10630 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
10632 CFLAGS
="$save_cflags"
10634 #-----------------------------------------------------------------------------
10636 # Find all the tools we need to compile. This could be cross-compiling
10637 # though! If that is the case we use the GNU form of the target and
10638 # simply add this to the front of the binary name. This is rather simple,
10639 # but it should work under most circumstances.
10641 # The default tools are to use the same as the host, but only if the
10642 # host and target CPU are the same. With GCC this is normally enough.
10646 aros_shared_ld
="$aros_host_ld"
10648 aros_target_mkdep
="$aros_host_mkdep"
10650 # The default tools executables to be linked to.
10651 if test "$rescomp" != ""; then
10653 if test "" = ""; then
10654 if test "$cross_compiling" = "yes" ; then
10655 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10656 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10660 $as_echo_n "(cached) " >&6
10662 case $aros_kernel_rescomp in
10664 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10668 for as_dir
in $PATH
10671 test -z "$as_dir" && as_dir
=.
10672 for ac_exec_ext
in '' $ac_executable_extensions; do
10673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10674 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10686 if test -n "$aros_kernel_rescomp"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10688 $as_echo "$aros_kernel_rescomp" >&6; }
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10696 if test "$GCC" = "yes"; then
10697 aros_gcc_
$rescomp=`$CC -print-prog-name=$rescomp`
10698 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10699 set dummy
`basename $aros_gcc_$rescomp`; ac_word
=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10703 $as_echo_n "(cached) " >&6
10705 case $aros_kernel_rescomp in
10707 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10711 for as_dir
in `dirname $aros_gcc_$rescomp`
10714 test -z "$as_dir" && as_dir
=.
10715 for ac_exec_ext
in '' $ac_executable_extensions; do
10716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10729 if test -n "$aros_kernel_rescomp"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10731 $as_echo "$aros_kernel_rescomp" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10739 if test "$aros_kernel_rescomp" = ""; then
10740 # Extract the first word of "$rescomp", so it can be a program name with args.
10741 set dummy
$rescomp; ac_word
=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10745 $as_echo_n "(cached) " >&6
10747 case $aros_kernel_rescomp in
10749 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10753 for as_dir
in $PATH
10756 test -z "$as_dir" && as_dir
=.
10757 for ac_exec_ext
in '' $ac_executable_extensions; do
10758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10759 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10771 if test -n "$aros_kernel_rescomp"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10773 $as_echo "$aros_kernel_rescomp" >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10783 # Extract the first word of "", so it can be a program name with args.
10784 set dummy
; ac_word
=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10788 $as_echo_n "(cached) " >&6
10790 case $aros_kernel_rescomp in
10792 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10796 for as_dir
in $PATH
10799 test -z "$as_dir" && as_dir
=.
10800 for ac_exec_ext
in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10814 if test -n "$aros_kernel_rescomp"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10816 $as_echo "$aros_kernel_rescomp" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10825 if test "$aros_kernel_rescomp" = ""; then
10826 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10830 # Set up the sources for the symlink farm
10831 if test "$crosstools" = "yes"; then
10832 crosstools_target
=tools-crosstools
10834 crosstools_cxx_target
=tools-crosstools
10837 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
10838 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
10841 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10842 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10843 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10844 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10845 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10846 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10847 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10849 # aros_cc_pre is a variable that is added to the front of the compiler name
10850 # in the generated aros-gcc shell script. We need this to enable the cache
10851 # to work across cleaned builds. Also, support DISTCC using the correct
10852 # environment variable.
10855 if test "x${DISTCC}" != "x" ; then
10856 if test "x${CCACHE}" != "x" ; then
10857 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10859 aros_cc_pre
="${DISTCC} "
10862 if test "x${CCACHE}" != "x" ; then
10863 aros_cc_pre
="${CCACHE} "
10867 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10869 aros_target_nostdinc_cflags
=-nostdinc
10871 aros_target_nostartup_ldflags
=-nostartfiles
10873 aros_target_nix_ldflags
=-nix
10875 aros_target_detach_ldflags
=-detach
10877 aros_target_nostdlib_ldflags
=-nostdlib
10881 if test "$crosstools" != "yes"; then
10882 if test "$GCC" = "yes"; then
10883 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10886 # We do not know which gcc version we are going to build and what we need to know
10887 # here is different for different versions so this will be set later during the
10888 # build of crosstools.
10889 aros_target_cc_path
=@aros_target_cc_path@
10891 aros_target_cpp
="${prefix}cpp"
10892 aros_target_cc
="${prefix}gcc"
10893 aros_target_cxx
="${prefix}g++"
10894 aros_target_as
="${prefix}as"
10895 aros_target_ld
="${prefix}ld"
10896 aros_target_ar
="${prefix}ar $aros_target_ar_flags"
10897 aros_target_objcopy
="${prefix}objcopy"
10898 aros_target_objdump
="${prefix}objdump"
10899 aros_target_ranlib
="${prefix}ranlib $aros_target_ranlib_flags"
10900 aros_target_nm
="${prefix}nm $aros_target_nm_flags"
10901 aros_target_strip
="${prefix}strip"
10902 aros_plain_nm
="${prefix}nm"
10903 aros_plain_ar
="${prefix}ar"
10905 if test "$aros_kernel_includes" != "" ; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10907 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10908 if test "$aros_kernel_cc_includes" = "" ; then
10909 # Try to guess where the directory is.
10910 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
10911 if test -d $aros_kernel_cc_includes; then
10912 # Check if there is also an include-fixed directory and add it
10913 # to kernel compiler's include path as it may contain some of
10914 # the headers we need.
10915 if test -d "$aros_kernel_cc_includes"-fixed; then
10916 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
10918 # Check for specific includes directory. Neede for Ubuntu 11.10
10919 if test -d "/usr/include/i386-linux-gnu"; then
10920 aros_kernel_cc_includes
+=" -isystem /usr/include/i386-linux-gnu"
10923 # The directory doesn't exist, we need to do some more work.
10924 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
10926 # These are the headers we're looking for.
10927 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10928 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10932 for h
in $headers; do
10933 # Which other headers are needed by each of the above?
10934 deps
=$
(echo "#include <$h>" | \
10935 $aros_kernel_cc -E -M - 2>/dev
/null | \
10936 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10938 # Copy all the needed headers to a directory beneath gendir.
10941 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
10942 sed -n "s,^.*/include\(/.*\),\1,p")
10943 ! test -d $dir && mkdir
-p $dir
10944 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10950 $as_echo "$aros_kernel_cc_includes" >&6; }
10951 # Adding -nostdinc to kernel includes as they are always used together.
10952 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10955 if test "$crosstools" != "yes"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10957 $as_echo_n "checking for the target compiler's include path... " >&6; }
10958 if test "$aros_target_cc_includes" = "" ; then
10959 #try to guess where the directory is
10960 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
10961 if ! test -d $aros_target_cc_includes; then
10962 #the directory doesn't exist, we need to do some more work
10963 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
10965 #these are the headers we're looking for
10966 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10967 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10971 for h
in $headers; do
10972 #which other headers each of the above headers needs?
10973 deps
=$
(echo "#include <$h>" | \
10974 $orig_target_cc -E -M - 2>/dev
/null | \
10975 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10977 #copy all the needed headers to a directory beneath gendir
10980 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
10981 sed -n "s,^.*/include\(/.*\),\1,p")
10982 ! test -d $dir && mkdir
-p $dir
10983 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10989 $as_echo "$aros_target_cc_includes" >&6; }
10991 # We do not know which gcc version we are going to build and what we need to know
10992 # here is different for different versions so this will be set later during the
10993 # build of crosstools.
10994 aros_target_cc_includes
=@aros_target_cc_includes@
10998 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10999 # On GCC >= 4.0 -iquote should be used
11003 save_cflags
="$CFLAGS"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11006 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11007 if test "x-$crosstools" != "x-yes"; then
11008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11019 if ac_fn_c_try_compile
"$LINENO"; then :
11024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11026 # we do know it is supported for the smallest version of gcc we are going to build
11027 # we assume it's also supported by later versions
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11031 $as_echo "$has_iquote" >&6; }
11032 if test "x-$has_iquote" = "x-yes" ; then
11033 host_cflags_iquote
=-iquote
11034 host_cflags_iquote_end
=
11036 host_cflags_iquote
=-I
11037 host_cflags_iquote_end
=-I-
11039 kernel_cflags_iquote
=$host_cflags_iquote
11040 kernel_cflags_iquote_end
=$host_cflags_iquote_end
11041 if test "x-$cross_compiling" = "x-yes"; then
11042 CC
="$aros_kernel_cc"
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11044 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11045 if test "x-$crosstools" != "x-yes"; then
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11057 if ac_fn_c_try_compile
"$LINENO"; then :
11058 use_no_stack_protector
="yes"
11060 use_no_stack_protector
="no"
11062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11064 # we do know it is supported for the smallest version of gcc we are going to build
11065 # we assume it's also supported by later versions
11066 use_no_stack_protector
=yes
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11069 $as_echo "$use_no_stack_protector" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11071 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11072 if test "x-$crosstools" != "x-yes"; then
11073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11084 if ac_fn_c_try_compile
"$LINENO"; then :
11089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11091 # we do know it is supported for the smallest version of gcc we are going to build
11092 # we assume it's also supported by later versions
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11096 $as_echo "$has_iquote" >&6; }
11097 if test "x-$has_iquote" = "x-yes" ; then
11098 kernel_cflags_iquote
=-iquote
11099 kernel_cflags_iquote_end
=
11101 kernel_cflags_iquote
=-I
11102 kernel_cflags_iquote_end
=-I-
11105 aros_cflags_iquote
=$kernel_cflags_iquote
11106 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
11107 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11108 CC
="$orig_target_cc"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11110 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11111 if test "x-$crosstools" != "x-yes"; then
11112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11123 if ac_fn_c_try_compile
"$LINENO"; then :
11128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11130 # we do know it is supported for the smallest version of gcc we are going to build
11131 # we assume it's also supported by later versions
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11135 $as_echo "$has_iquote" >&6; }
11136 if test "x-$has_iquote" = "x-yes" ; then
11137 aros_cflags_iquote
=-iquote
11138 aros_cflags_iquote_end
=
11140 aros_cflags_iquote
=-I
11141 aros_cflags_iquote_end
=-I-
11144 if test "x-$use_no_stack_protector" = "x-yes" ; then
11145 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
11149 #-----------------------------------------------------------------------------
11151 # Check if the target compiler supports some options used for delinting:
11152 # -Wunused-but-set-variable
11155 # -Wstrict-overflow
11156 # -Wformat-security
11158 if test "x-$crosstools" != "x-yes"; then
11159 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11160 CC
="$orig_target_cc"
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11163 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11164 CFLAGS
=-Wunused-but-set-variable
11165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11176 if ac_fn_c_try_compile
"$LINENO"; then :
11177 aros_unused_but_set_variable
="yes"
11179 aros_unused_but_set_variable
="no"
11181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11183 $as_echo "$aros_unused_but_set_variable" >&6; }
11184 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11185 aros_cflags_unused_but_set_variable
=-Wno-unused-but-set-variable
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11189 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11190 CFLAGS
=-Warray-bounds
11191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11202 if ac_fn_c_try_compile
"$LINENO"; then :
11203 aros_array_bounds
="yes"
11205 aros_array_bounds
="no"
11207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11209 $as_echo "$aros_array_bounds" >&6; }
11210 if test "x-$aros_array_bounds" = "x-yes" ; then
11211 aros_cflags_array_bounds
=-Wno-array-bounds
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11215 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11216 CFLAGS
=-Wenum-compare
11217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11228 if ac_fn_c_try_compile
"$LINENO"; then :
11229 aros_enum_compare
="yes"
11231 aros_enum_compare
="no"
11233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11235 $as_echo "$aros_enum_compare" >&6; }
11236 if test "x-$aros_enum_compare" = "x-yes" ; then
11237 aros_cflags_enum_compare
=-Wno-enum-compare
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11241 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11242 CFLAGS
=-Wstrict-overflow
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11254 if ac_fn_c_try_compile
"$LINENO"; then :
11255 aros_strict_overflow
="yes"
11257 aros_strict_overflow
="no"
11259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11261 $as_echo "$aros_strict_overflow" >&6; }
11262 if test "x-$aros_strict_overflow" = "x-yes" ; then
11263 aros_cflags_strict_overflow
=-Wno-strict-overflow
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11267 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11268 CFLAGS
=-Wformat-security
11269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11280 if ac_fn_c_try_compile
"$LINENO"; then :
11281 aros_format_security
="yes"
11283 aros_format_security
="no"
11285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11287 $as_echo "$aros_format_security" >&6; }
11288 if test "x-$aros_format_security" = "x-yes" ; then
11289 aros_cflags_format_security
=-Wno-format-security
11292 # We do not know which gcc version we are going to build and what we need to know
11293 # here is different for different versions so this will be set later during the
11294 # build of crosstools.
11295 aros_cflags_unused_but_set_variable
=@aros_cflags_unused_but_set_variable@
11296 aros_cflags_array_bounds
=@aros_cflags_array_bounds@
11297 aros_cflags_enum_compare
=@aros_cflags_enum_compare@
11298 aros_cflags_strict_overflow
=@aros_cflags_strict_overflow@
11299 aros_cflags_format_security
=@aros_cflags_format_security@
11302 #-----------------------------------------------------------------------------
11304 # Check if we can explicitly choose older version of symbol hashing
11306 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
11307 CC
="$aros_kernel_cc"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11309 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11321 if ac_fn_c_try_link
"$LINENO"; then :
11322 use_hash_style
="yes"
11324 use_hash_style
="no"
11326 rm -f core conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11329 $as_echo "$use_hash_style" >&6; }
11330 if test "x-$use_hash_style" = "x-yes" ; then
11331 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
11334 CFLAGS
="$save_cflags"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11345 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11347 # Check whether --with-resolution was given.
11348 if test "${with_resolution+set}" = set; then :
11349 withval
=$with_resolution; resolution
=$withval
11354 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11355 if test "$resolution" = "yes" ; then
11358 if test "$resolution" = "no" ; then
11361 if test "$resolution" != "none" ; then
11362 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
11363 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
11364 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11367 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11368 aros_cv_default_wbwidth
=$aros_default_wbwidth
11369 aros_cv_default_wbheight
=$aros_default_wbheight
11370 aros_cv_default_wbdepth
=$aros_default_wbdepth
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11373 $as_echo_n "checking if serial debug is enabled... " >&6; }
11375 # Check whether --with-serial-debug was given.
11376 if test "${with_serial_debug+set}" = set; then :
11377 withval
=$with_serial_debug; serial_debug
=$withval
11382 if test "$aros_serial_debug" = 0 ; then
11383 serial_debug_forced
=""
11384 if test "$serial_debug" = "yes" ; then
11387 if test "$serial_debug" = "no" ; then
11388 serial_debug
="none"
11391 serial_debug_forced
="(forced)"
11392 serial_debug
=$aros_serial_debug
11394 if test "$serial_debug" != "none" ; then
11395 aros_serial_debug
=$serial_debug
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11397 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11404 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11405 # Check whether --enable-palm_debug_hack was given.
11406 if test "${enable_palm_debug_hack+set}" = set; then :
11407 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
11409 palm_debug_hack
="no"
11412 if test "$palm_debug_hack" = "yes" ; then
11413 aros_palm_debug_hack
="1"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11416 $as_echo "$palm_debug_hack" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11419 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11420 # Check whether --enable-usb30_code was given.
11421 if test "${enable_usb30_code+set}" = set; then :
11422 enableval
=$enable_usb30_code; usb30_code
="yes"
11427 if test "$usb30_code" = "yes" ; then
11428 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
11429 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11432 $as_echo "$usb30_code" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11435 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11436 # Check whether --enable-nesting_supervisor was given.
11437 if test "${enable_nesting_supervisor+set}" = set; then :
11438 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
11440 nesting_supervisor
="no"
11443 if test "$nesting_supervisor" = "yes" ; then
11444 aros_nesting_supervisor
="1"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11447 $as_echo "$nesting_supervisor" >&6; }
11449 if test "$aros_enable_mmu" = "" ; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11451 $as_echo_n "checking if MMU support is enabled... " >&6; }
11452 # Check whether --enable-mmu was given.
11453 if test "${enable_mmu+set}" = set; then :
11454 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
11456 aros_enable_mmu
="yes"
11459 if test "$aros_enable_mmu" = "" ; then
11460 aros_enable_mmu
="yes"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11463 $as_echo "$aros_enable_mmu" >&6; }
11465 if test "$aros_enable_mmu" = "no" ; then
11466 aros_enable_mmu
="0"
11468 aros_enable_mmu
="1"
11472 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11474 if test "x-$need_dlopen" != "x-no" ; then
11475 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11476 if test "x$ac_cv_func_dlopen" = xyes
; then :
11482 if test "x-$have_dl" = "x-no" ; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11485 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11486 $as_echo_n "(cached) " >&6
11488 ac_check_lib_save_LIBS
=$LIBS
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11508 if ac_fn_c_try_link
"$LINENO"; then :
11509 ac_cv_lib_dl_dlopen
=yes
11511 ac_cv_lib_dl_dlopen
=no
11513 rm -f core conftest.err conftest.
$ac_objext \
11514 conftest
$ac_exeext conftest.
$ac_ext
11515 LIBS
=$ac_check_lib_save_LIBS
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11519 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11521 aros_host_ldflags
="$aros_host_ldflags -ldl"
11527 if test "x-$have_dl" = "x-no" ; then
11528 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
11533 # Check whether --enable-x11_hidd was given.
11534 if test "${enable_x11_hidd+set}" = set; then :
11535 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
11537 x11_hidd
="$need_x11"
11540 case "x-$x11_hidd" in
11541 x-yes|x-no|x-auto
) ;;
11542 *) x11_hidd
="$need_x11" ;;
11547 if test "x-$x11_hidd" != "x-no" ; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11550 $as_echo_n "checking for X... " >&6; }
11553 # Check whether --with-x was given.
11554 if test "${with_x+set}" = set; then :
11558 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11559 if test "x$with_x" = xno
; then
11560 # The user explicitly disabled X.
11563 case $x_includes,$x_libraries in #(
11564 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
11565 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
11566 $as_echo_n "(cached) " >&6
11568 # One or both of the vars are not set, and there is no cached value.
11569 ac_x_includes
=no ac_x_libraries
=no
11570 rm -f -r conftest.dir
11571 if mkdir conftest.dir
; then
11573 cat >Imakefile
<<'_ACEOF'
11575 @echo incroot='${INCROOT}'
11577 @echo usrlibdir='${USRLIBDIR}'
11579 @echo libdir='${LIBDIR}'
11581 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
11582 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11583 for ac_var
in incroot usrlibdir libdir
; do
11584 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11586 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11587 for ac_extension
in a so sl dylib la dll
; do
11588 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11589 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11590 ac_im_usrlibdir
=$ac_im_libdir; break
11593 # Screen out bogus values from the imake configuration. They are
11594 # bogus both because they are the default anyway, and because
11595 # using them would break gcc on systems where it needs fixed includes.
11596 case $ac_im_incroot in
11597 /usr
/include
) ac_x_includes
= ;;
11598 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
11600 case $ac_im_usrlibdir in
11601 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
11602 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
11606 rm -f -r conftest.dir
11609 # Standard set of common directories for X headers.
11610 # Check X11 before X11Rn because it is often a symlink to the current release.
11624 /usr/local/X11/include
11625 /usr/local/X11R7/include
11626 /usr/local/X11R6/include
11627 /usr/local/X11R5/include
11628 /usr/local/X11R4/include
11630 /usr/local/include/X11
11631 /usr/local/include/X11R7
11632 /usr/local/include/X11R6
11633 /usr/local/include/X11R5
11634 /usr/local/include/X11R4
11638 /usr/XFree86/include/X11
11642 /usr/unsupported/include
11643 /usr/athena/include
11644 /usr/local/x11r5/include
11645 /usr/lpp/Xamples/include
11647 /usr/openwin/include
11648 /usr/openwin/share/include'
11650 if test "$ac_x_includes" = no
; then
11651 # Guess where to find include files, by looking for Xlib.h.
11652 # First, try using that file with no special directory specified.
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655 #include <X11/Xlib.h>
11657 if ac_fn_c_try_cpp
"$LINENO"; then :
11658 # We can compile using X headers with no special include directory.
11661 for ac_dir
in $ac_x_header_dirs; do
11662 if test -r "$ac_dir/X11/Xlib.h"; then
11663 ac_x_includes
=$ac_dir
11668 rm -f conftest.err conftest.i conftest.
$ac_ext
11669 fi # $ac_x_includes = no
11671 if test "$ac_x_libraries" = no
; then
11672 # Check for the libraries.
11673 # See if we find them without any special options.
11674 # Don't add to $LIBS permanently.
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #include <X11/Xlib.h>
11688 if ac_fn_c_try_link
"$LINENO"; then :
11690 # We can link X programs with no special library path.
11694 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11696 # Don't even attempt the hair of trying to link an X program!
11697 for ac_extension
in a so sl dylib la dll
; do
11698 if test -r "$ac_dir/libX11.$ac_extension"; then
11699 ac_x_libraries
=$ac_dir
11705 rm -f core conftest.err conftest.
$ac_objext \
11706 conftest
$ac_exeext conftest.
$ac_ext
11707 fi # $ac_x_libraries = no
11709 case $ac_x_includes,$ac_x_libraries in #(
11710 no
,* |
*,no |
*\'*)
11711 # Didn't find X, or a directory has "'" in its name.
11712 ac_cv_have_x
="have_x=no";; #(
11714 # Record where we found X for the cache.
11715 ac_cv_have_x
="have_x=yes\
11716 ac_x_includes='$ac_x_includes'\
11717 ac_x_libraries='$ac_x_libraries'"
11723 eval "$ac_cv_have_x"
11726 if test "$have_x" != yes; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11728 $as_echo "$have_x" >&6; }
11731 # If each of the values was on the command line, it overrides each guess.
11732 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
11733 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
11734 # Update the cache value to reflect the command line values.
11735 ac_cv_have_x
="have_x=yes\
11736 ac_x_includes='$x_includes'\
11737 ac_x_libraries='$x_libraries'"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11739 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11744 for path
in $x_libraries
11746 x_cflags
="$x_cflags -L$path"
11749 for path
in $x_includes
11751 x_cflags
="$x_cflags -I$path"
11754 if test "x-$no_x" = "x-yes" ; then
11756 if test "x-$x11_hidd" != "x-auto" ; then
11757 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11761 x11_hidd_target
=kernel-x11gfx-kobj
11764 # Check whether --enable-x11_shm was given.
11765 if test "${enable_x11_shm+set}" = set; then :
11766 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
11768 x11_hidd_shm
="auto"
11771 case "x-$x11_hidd_shm" in
11772 x-yes|x-no|x-auto
) ;;
11773 *) x11_hidd_shm
="auto" ;;
11778 if test "x-$x11_hidd_shm" != "x-no" ; then
11780 for ac_header
in sys
/ipc.h
11782 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11783 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
11784 cat >>confdefs.h
<<_ACEOF
11785 #define HAVE_SYS_IPC_H 1
11792 for ac_header
in sys
/shm.h
11794 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
11796 cat >>confdefs.h
<<_ACEOF
11797 #define HAVE_SYS_SHM_H 1
11805 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11807 save_cflags
="$CFLAGS"
11808 CFLAGS
="$CFLAGS $x_cflags"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11810 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11811 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
11812 $as_echo_n "(cached) " >&6
11814 ac_check_lib_save_LIBS
=$LIBS
11815 LIBS
="-lXext $LIBS"
11816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11825 char XShmQueryExtension ();
11829 return XShmQueryExtension ();
11834 if ac_fn_c_try_link
"$LINENO"; then :
11835 ac_cv_lib_Xext_XShmQueryExtension
=yes
11837 ac_cv_lib_Xext_XShmQueryExtension
=no
11839 rm -f core conftest.err conftest.
$ac_objext \
11840 conftest
$ac_exeext conftest.
$ac_ext
11841 LIBS
=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11844 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11845 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
11849 CFLAGS
="$save_cflags"
11853 if test "x-$have_xshm" = "x-yes" ; then
11854 DO_XSHM_SUPPORT
="1"
11855 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11856 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11858 DO_XSHM_SUPPORT
="0"
11862 # Check whether --enable-x11_vidmode was given.
11863 if test "${enable_x11_vidmode+set}" = set; then :
11864 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
11866 x11_hidd_vidmode
="auto"
11869 case "x-$x11_hidd_vidmode" in
11870 x-yes|x-no|x-auto
) ;;
11871 *) x11_hidd_vidmode
="auto" ;;
11876 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11878 save_cflags
="$CFLAGS"
11879 CFLAGS
="$CFLAGS $x_cflags"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11881 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11882 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
11883 $as_echo_n "(cached) " >&6
11885 ac_check_lib_save_LIBS
=$LIBS
11886 LIBS
="-lXxf86vm $LIBS"
11887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11896 char XF86VidModeQueryExtension ();
11900 return XF86VidModeQueryExtension ();
11905 if ac_fn_c_try_link
"$LINENO"; then :
11906 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
11908 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
11910 rm -f core conftest.err conftest.
$ac_objext \
11911 conftest
$ac_exeext conftest.
$ac_ext
11912 LIBS
=$ac_check_lib_save_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11915 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11916 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
11920 CFLAGS
="$save_cflags"
11923 if test "x-$have_vidmode" = "x-yes" ; then
11924 DO_VIDMODE_SUPPORT
="1"
11925 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11926 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11928 DO_VIDMODE_SUPPORT
="0"
11932 aros_host_x11_includes
=$x_includes
11933 aros_host_x11_libdirs
=$x_libraries
11937 # Check whether --enable-sdl_hidd was given.
11938 if test "${enable_sdl_hidd+set}" = set; then :
11939 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
11944 case "x-$sdl_hidd" in
11945 x-yes|x-no|x-auto
) ;;
11946 *) sdl_hidd
="auto" ;;
11949 if test "x-$sdl_hidd" != "x-no" ; then
11952 # Check whether --with-sdl-prefix was given.
11953 if test "${with_sdl_prefix+set}" = set; then :
11954 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
11960 # Check whether --with-sdl-exec-prefix was given.
11961 if test "${with_sdl_exec_prefix+set}" = set; then :
11962 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
11967 # Check whether --enable-sdltest was given.
11968 if test "${enable_sdltest+set}" = set; then :
11969 enableval
=$enable_sdltest;
11975 if test x
$sdl_exec_prefix != x
; then
11976 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
11977 if test x
${SDL_CONFIG+set} != xset
; then
11978 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
11981 if test x
$sdl_prefix != x
; then
11982 sdl_args
="$sdl_args --prefix=$sdl_prefix"
11983 if test x
${SDL_CONFIG+set} != xset
; then
11984 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
11988 if test "x$prefix" != xNONE
; then
11989 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
11991 # Extract the first word of "sdl-config", so it can be a program name with args.
11992 set dummy sdl-config
; ac_word
=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
11996 $as_echo_n "(cached) " >&6
11998 case $SDL_CONFIG in
12000 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
12003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12004 for as_dir
in $PATH
12007 test -z "$as_dir" && as_dir
=.
12008 for ac_exec_ext
in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
12022 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
12023 if test -n "$SDL_CONFIG"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12025 $as_echo "$SDL_CONFIG" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12032 min_sdl_version
=1.2.10
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12034 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12036 if test "$SDL_CONFIG" = "no" ; then
12039 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
12040 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
12042 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
12043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12044 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
12045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12046 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
12047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12048 if test "x$enable_sdltest" = "xyes" ; then
12049 ac_save_CFLAGS
="$CFLAGS"
12050 ac_save_CXXFLAGS
="$CXXFLAGS"
12051 ac_save_LIBS
="$LIBS"
12052 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12053 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12054 LIBS
="$LIBS $SDL_LIBS"
12056 if test "$cross_compiling" = yes; then :
12057 echo $ac_n "cross compiling; assumed OK... $ac_c"
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12063 #include <stdlib.h>
12064 #include <string.h>
12068 my_strdup (char *str)
12074 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12075 strcpy (new_str, str);
12083 int main (int argc, char *argv[])
12085 int major, minor, micro;
12088 /* This hangs on some systems (?)
12089 system ("touch conf.sdltest");
12091 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12093 /* HP/UX 9 (%@#!) writes to sscanf strings */
12094 tmp_version = my_strdup("$min_sdl_version");
12095 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12096 printf("%s, bad version string\n", "$min_sdl_version");
12100 if (($sdl_major_version > major) ||
12101 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12102 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12108 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12109 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12110 printf("*** best to upgrade to the required version.\n");
12111 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12112 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12113 printf("*** config.cache before re-running configure\n");
12120 if ac_fn_c_try_run
"$LINENO"; then :
12125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12129 CFLAGS
="$ac_save_CFLAGS"
12130 CXXFLAGS
="$ac_save_CXXFLAGS"
12131 LIBS
="$ac_save_LIBS"
12134 if test "x$no_sdl" = x
; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141 if test "$SDL_CONFIG" = "no" ; then
12142 echo "*** The sdl-config script installed by SDL could not be found"
12143 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12144 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12145 echo "*** full path to sdl-config."
12147 if test -f conf.sdltest
; then
12150 echo "*** Could not run SDL test program, checking why..."
12151 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12152 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12153 LIBS
="$LIBS $SDL_LIBS"
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12160 int main(int argc, char *argv[])
12163 #define main K_and_R_C_main
12173 if ac_fn_c_try_link
"$LINENO"; then :
12174 echo "*** The test program compiled, but did not run. This usually means"
12175 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12176 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12177 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12178 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12179 echo "*** is required on your system"
12181 echo "*** If you have an old version installed, it is best to remove it, although"
12182 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12184 echo "*** The test program failed to compile or link. See the file config.log for the"
12185 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12186 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12187 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12189 rm -f core conftest.err conftest.
$ac_objext \
12190 conftest
$ac_exeext conftest.
$ac_ext
12191 CFLAGS
="$ac_save_CFLAGS"
12192 CXXFLAGS
="$ac_save_CXXFLAGS"
12193 LIBS
="$ac_save_LIBS"
12205 if test "x-$have_sdl" != "x-yes" ; then
12207 if test "x-$sdl_hidd" != "x-auto" ; then
12208 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12212 sdl_hidd_target
=kernel-hidd-sdl
12213 aros_host_sdl_cflags
=SDL_CFLAGS
12214 aros_host_sdl_libs
=SDL_LIBS
12218 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12219 if test "x$ac_cv_header_sys_soundcard_h" = xyes
; then :
12224 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12225 oss_library_target
=workbench-libs-oss-unix
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12231 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12232 # Check whether --enable-dbus was given.
12233 if test "${enable_dbus+set}" = set; then :
12234 enableval
=$enable_dbus; dbus
="yes"
12239 if test "$dbus" = "yes" ; then
12241 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
12242 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
12243 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
12244 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12249 $as_echo "$dbus" >&6; }
12251 if test "$use_kernel_cc_wrapper" = "yes" ; then
12252 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12255 if test "${crosstools}" != "yes" ; then
12256 aros_target_toolchain
=no
12258 aros_target_toolchain
=yes
12274 # Compatability with other Amiga-like operation systems
12369 # Delinting target compiler flags
12393 # Native version related
12396 # Palm native version related
12402 # Unix/Hosted version related
12408 # Apple iOS related
12433 # Collect-aros stuff: "-ius" to ignore undefined symbols
12436 # C compiler related
12439 case "$aros_flavour" in
12440 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
12441 aros_flavour
="emulation" ;;
12442 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12443 aros_flavour
="emulation" ;;
12444 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
12445 aros_flavour
="standalone";;
12446 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12447 aros_flavour
="standalone";;
12448 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
12449 aros_flavour
="native" ;;
12450 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12451 aros_flavour
="native" ;;
12452 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
12453 aros_flavour
="linklib" ;;
12454 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12455 aros_flavour
="palmnative" ;;
12456 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12457 aros_flavour
="mac68knative" ;;
12458 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12459 aros_flavour
="ppcnative" ;;
12462 if test ! -d ${aros_inc_dir} ; then
12463 ${MKDIR} ${aros_inc_dir}
12465 if test ! -d ${aros_geninc_dir} ; then
12466 ${MKDIR} ${aros_geninc_dir}
12468 if test ! -d ${aros_hostcfg_dir} ; then
12469 ${MKDIR} ${aros_hostcfg_dir}
12471 if test ! -d ${aros_targetcfg_dir} ; then
12472 ${MKDIR} ${aros_targetcfg_dir}
12474 if test ! -d ${aros_tools_dir} ; then
12475 ${MKDIR} ${aros_tools_dir}
12477 if test ! -d ${aros_scripts_dir} ; then
12478 ${MKDIR} ${aros_scripts_dir}
12481 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12484 ac_config_commands
="$ac_config_commands compiler_executable"
12486 ac_config_commands
="$ac_config_commands genmf_executable"
12489 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_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_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 ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
12492 cat >confcache
<<\_ACEOF
12493 # This file is a shell script that caches the results of configure
12494 # tests run on this system so they can be shared between configure
12495 # scripts and configure runs, see configure's option --config-cache.
12496 # It is not useful on other systems. If it contains results you don't
12497 # want to keep, you may remove or edit it.
12499 # config.status only pays attention to the cache file if you give it
12500 # the --recheck option to rerun configure.
12502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12504 # following values.
12508 # The following way of writing the cache mishandles newlines in values,
12509 # but we know of no workaround that is simple, portable, and efficient.
12510 # So, we kill variables containing newlines.
12511 # Ultrix sh set writes to stderr and can't be redirected directly,
12512 # and sets the high bit in the cache file unless we assign to the vars.
12514 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12515 eval ac_val
=\$
$ac_var
12519 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12523 _ | IFS | as_nl
) ;; #(
12524 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12525 *) { eval $ac_var=; unset $ac_var;} ;;
12531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12532 *${as_nl}ac_space
=\
*)
12533 # `set' does not quote correctly, so add quotes: double-quote
12534 # substitution turns \\\\ into \\, and sed turns \\ into \.
12537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12540 # `set' quotes correctly as required by POSIX, so do not add quotes.
12541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12554 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12555 if test -w "$cache_file"; then
12556 if test "x$cache_file" != "x/dev/null"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12558 $as_echo "$as_me: updating cache $cache_file" >&6;}
12559 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12560 cat confcache
>"$cache_file"
12562 case $cache_file in #(
12564 mv -f confcache
"$cache_file"$$
&&
12565 mv -f "$cache_file"$$
"$cache_file" ;; #(
12567 mv -f confcache
"$cache_file" ;;
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12573 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12578 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12579 # Let make expand exec_prefix.
12580 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12582 DEFS
=-DHAVE_CONFIG_H
12587 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12588 # 1. Remove the extension, and $U if already installed.
12589 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12590 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12591 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12592 # will be set to the directory where LIBOBJS objects are built.
12593 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12594 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12596 LIBOBJS
=$ac_libobjs
12598 LTLIBOBJS
=$ac_ltlibobjs
12602 : "${CONFIG_STATUS=./config.status}"
12604 ac_clean_files_save
=$ac_clean_files
12605 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12607 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12609 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12611 # Generated by $as_me.
12612 # Run this file to recreate the current configuration.
12613 # Compiler output produced by configure, useful for debugging
12614 # configure, is in config.log if it exists.
12617 ac_cs_recheck=false
12620 SHELL=\${CONFIG_SHELL-$SHELL}
12623 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12624 ## -------------------- ##
12625 ## M4sh Initialization. ##
12626 ## -------------------- ##
12628 # Be more Bourne compatible
12629 DUALCASE
=1; export DUALCASE
# for MKS sh
12630 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12633 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12634 # is contrary to our usage. Disable this feature.
12635 alias -g '${1+"$@"}'='"$@"'
12636 setopt NO_GLOB_SUBST
12638 case `(set -o) 2>/dev/null` in #(
12650 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12651 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12654 # Prefer a ksh shell builtin over an external printf program on Solaris,
12655 # but without wasting forks for bash or zsh.
12656 if test -z "$BASH_VERSION$ZSH_VERSION" \
12657 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12658 as_echo='print
-r --'
12659 as_echo_n='print
-rn --'
12660 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12661 as_echo='printf %s
\n'
12662 as_echo_n='printf %s
'
12664 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12665 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12666 as_echo_n='/usr
/ucb
/echo -n'
12668 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12669 as_echo_n_body='eval
12673 expr "X$arg" : "X\\(.*\\)$as_nl";
12674 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12676 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12678 export as_echo_n_body
12679 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12681 export as_echo_body
12682 as_echo='sh
-c $as_echo_body as_echo
'
12685 # The user is always right.
12686 if test "${PATH_SEPARATOR+set}" != set; then
12688 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12689 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12696 # We need space, tab and new line, in precisely that order. Quoting is
12697 # there to prevent editors from complaining about space-tab.
12698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12699 # splitting by setting IFS to empty value.)
12702 # Find who we are. Look in the path if we contain no directory separator.
12705 *[\\/]* ) as_myself=$0 ;;
12706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12710 test -z "$as_dir" && as_dir=.
12711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12717 # We did not find ourselves, most probably we were run as `sh COMMAND'
12718 # in which case we are not to be found in the path.
12719 if test "x$as_myself" = x
; then
12722 if test ! -f "$as_myself"; then
12723 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12727 # Unset variables that we do not need and which cause bugs (e.g. in
12728 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12729 # suppresses any "Segmentation fault" message there. '((' could
12730 # trigger a bug in pdksh 5.2.14.
12731 for as_var
in BASH_ENV ENV MAIL MAILPATH
12732 do eval test x\
${$as_var+set} = xset \
12733 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12746 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12749 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12750 # ----------------------------------------
12751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12753 # script with STATUS, using 1 if that was 0.
12756 as_status
=$1; test $as_status -eq 0 && as_status
=1
12758 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12759 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12761 $as_echo "$as_me: error: $2" >&2
12762 as_fn_exit
$as_status
12766 # as_fn_set_status STATUS
12767 # -----------------------
12768 # Set $? to STATUS, without forking.
12769 as_fn_set_status
()
12772 } # as_fn_set_status
12774 # as_fn_exit STATUS
12775 # -----------------
12776 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12780 as_fn_set_status
$1
12786 # Portably unset VAR.
12789 { eval $1=; unset $1;}
12791 as_unset
=as_fn_unset
12792 # as_fn_append VAR VALUE
12793 # ----------------------
12794 # Append the text in VALUE to the end of the definition contained in VAR. Take
12795 # advantage of any shell optimizations that allow amortized linear growth over
12796 # repeated appends, instead of the typical quadratic growth present in naive
12798 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12799 eval 'as_fn_append ()
12810 # as_fn_arith ARG...
12811 # ------------------
12812 # Perform arithmetic evaluation on the ARGs, and store the result in the
12813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12814 # must be portable across $(()) and expr.
12815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12816 eval 'as_fn_arith ()
12823 as_val
=`expr "$@" || test $? -eq 1`
12828 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12829 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12835 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12836 as_basename
=basename
12841 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12847 as_me
=`$as_basename -- "$0" ||
12848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12849 X"$0" : 'X\(//\)$' \| \
12850 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12852 sed '/^.*\/\([^/][^/]*\)\/*$/{
12866 # Avoid depending upon Character Ranges.
12867 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12868 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12869 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12870 as_cr_digits
='0123456789'
12871 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12873 ECHO_C
= ECHO_N
= ECHO_T
=
12874 case `echo -n x` in #(((((
12876 case `echo 'xy\c'` in
12877 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12879 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12886 rm -f conf$$ conf$$.exe conf$$.
file
12887 if test -d conf$$.dir
; then
12888 rm -f conf$$.dir
/conf$$.
file
12891 mkdir conf$$.dir
2>/dev
/null
12893 if (echo >conf$$.
file) 2>/dev
/null
; then
12894 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12896 # ... but there are two gotchas:
12897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12899 # In both cases, we have to default to `cp -p'.
12900 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12902 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12910 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12911 rmdir conf$$.dir
2>/dev
/null
12916 # Create "$as_dir" as a directory, including parents if necessary.
12921 -*) as_dir
=.
/$as_dir;;
12923 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12927 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12928 *) as_qdir
=$as_dir;;
12930 as_dirs
="'$as_qdir' $as_dirs"
12931 as_dir
=`$as_dirname -- "$as_dir" ||
12932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933 X"$as_dir" : 'X\(//\)[^/]' \| \
12934 X"$as_dir" : 'X\(//\)$' \| \
12935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12936 $as_echo X"$as_dir" |
12937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12941 /^X\(\/\/\)[^/].*/{
12954 test -d "$as_dir" && break
12956 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12957 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12961 if mkdir
-p .
2>/dev
/null
; then
12962 as_mkdir_p
='mkdir -p "$as_dir"'
12964 test -d .
/-p && rmdir .
/-p
12968 if test -x / >/dev
/null
2>&1; then
12969 as_test_x
='test -x'
12971 if ls -dL / >/dev
/null
2>&1; then
12978 if test -d "$1"; then
12984 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12985 ???[sx]*):;;*)false;;esac;fi
12989 as_executable_p
=$as_test_x
12991 # Sed expression to map a string onto a valid CPP name.
12992 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12994 # Sed expression to map a string onto a valid variable name.
12995 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12999 ## ----------------------------------- ##
13000 ## Main body of $CONFIG_STATUS script. ##
13001 ## ----------------------------------- ##
13003 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13006 # Save the log message, to keep $0 and so on meaningful, and to
13007 # report actual input values of CONFIG_FILES etc. instead of their
13008 # values after options handling.
13010 This file was extended by $as_me, which was
13011 generated by GNU Autoconf 2.68. Invocation command line was
13013 CONFIG_FILES = $CONFIG_FILES
13014 CONFIG_HEADERS = $CONFIG_HEADERS
13015 CONFIG_LINKS = $CONFIG_LINKS
13016 CONFIG_COMMANDS = $CONFIG_COMMANDS
13019 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13024 case $ac_config_files in *"
13025 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13028 case $ac_config_headers in *"
13029 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13034 # Files that config.status was made for.
13035 config_files="$ac_config_files"
13036 config_headers="$ac_config_headers"
13037 config_commands="$ac_config_commands"
13041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13043 \`$as_me' instantiates files and other configuration actions
13044 from templates according to the current configuration. Unless the files
13045 and actions are specified as TAGs, all are instantiated by default.
13047 Usage: $0 [OPTION]... [TAG]...
13049 -h, --help print this help, then exit
13050 -V, --version print version number and configuration settings, then exit
13051 --config print configuration, then exit
13052 -q, --quiet, --silent
13053 do not print progress messages
13054 -d, --debug don't remove temporary files
13055 --recheck update $as_me by reconfiguring in the same conditions
13056 --file=FILE[:TEMPLATE]
13057 instantiate the configuration file FILE
13058 --header=FILE[:TEMPLATE]
13059 instantiate the configuration header FILE
13061 Configuration files:
13064 Configuration headers:
13067 Configuration commands:
13070 Report bugs to the package provider."
13073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13077 configured by $0, generated by GNU Autoconf 2.68,
13078 with options \\"\$ac_cs_config\\"
13080 Copyright (C) 2010 Free Software Foundation, Inc.
13081 This config.status script is free software; the Free Software Foundation
13082 gives unlimited permission to copy, distribute and modify it."
13086 test -n "\$AWK" || AWK=awk
13089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13090 # The default lists apply if the user does not specify any file.
13096 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13097 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13101 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13113 # Handling of the options.
13114 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13116 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13117 $as_echo "$ac_cs_version"; exit ;;
13118 --config |
--confi |
--conf |
--con |
--co |
--c )
13119 $as_echo "$ac_cs_config"; exit ;;
13120 --debug |
--debu |
--deb |
--de |
--d |
-d )
13122 --file |
--fil |
--fi |
--f )
13125 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13126 '') as_fn_error $?
"missing file argument" ;;
13128 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13129 ac_need_defaults
=false
;;
13130 --header |
--heade |
--head |
--hea )
13133 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13135 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13136 ac_need_defaults
=false
;;
13138 # Conflict between --help and --header
13139 as_fn_error $?
"ambiguous option: \`$1'
13140 Try \`$0 --help' for more information.";;
13141 --help |
--hel |
-h )
13142 $as_echo "$ac_cs_usage"; exit ;;
13143 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13144 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13147 # This is an error.
13148 -*) as_fn_error $?
"unrecognized option: \`$1'
13149 Try \`$0 --help' for more information." ;;
13151 *) as_fn_append ac_config_targets
" $1"
13152 ac_need_defaults
=false
;;
13158 ac_configure_extra_args
=
13160 if $ac_cs_silent; then
13162 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 if \$ac_cs_recheck; then
13168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13171 CONFIG_SHELL='$SHELL'
13172 export CONFIG_SHELL
13177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13182 ## Running $as_me. ##
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 aros_host_exe_suffix=${aros_host_exe_suffix}
13194 aros_tools_dir=${aros_tools_dir}
13195 aros_target_cpu=${aros_target_cpu}
13196 aros_target_arch=${aros_target_arch}
13197 aros_target_suffix=${aros_target_suffix}
13198 orig_target_nm=${orig_target_nm}
13199 orig_target_as=${orig_target_as}
13200 orig_target_ar=${orig_target_ar}
13201 orig_target_ranlib=${orig_target_ranlib}
13202 orig_target_objdump=${orig_target_objdump}
13203 orig_target_objcopy=${orig_target_objcopy}
13204 orig_target_strip=${orig_target_strip}
13205 aros_kernel_ld=${aros_kernel_ld}
13208 aros_tools_dir=${aros_tools_dir}
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13215 # Handling of arguments.
13216 for ac_config_target
in $ac_config_targets
13218 case $ac_config_target in
13219 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13220 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
13221 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
13222 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13223 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
13224 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13225 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13226 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13227 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13228 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
13229 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13230 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13231 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13232 "${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" ;;
13233 "${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" ;;
13234 "${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" ;;
13235 "${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" ;;
13236 "${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" ;;
13237 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13238 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
13239 "${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" ;;
13241 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13246 # If the user did not use the arguments to specify the items to instantiate,
13247 # then the envvar interface is used. Set only those that are not.
13248 # We use the long form for the default assignment because of an extremely
13249 # bizarre bug on SunOS 4.1.3.
13250 if $ac_need_defaults; then
13251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13256 # Have a temporary directory for convenience. Make it in the build tree
13257 # simply because there is no reason against having it here, and in addition,
13258 # creating and moving files from /tmp can sometimes cause problems.
13259 # Hook for its removal unless debugging.
13260 # Note that there is a small window in which the directory will not be cleaned:
13261 # after its creation but before its name has been assigned to `$tmp'.
13265 trap 'exit_status=$?
13266 : "${ac_tmp:=$tmp}"
13267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13269 trap 'as_fn_exit 1' 1 2 13 15
13271 # Create a (secure) tmp directory for tmp files.
13274 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13278 tmp
=.
/conf$$
-$RANDOM
13279 (umask 077 && mkdir
"$tmp")
13280 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13283 # Set up the scripts for CONFIG_FILES section.
13284 # No need to generate them if there are no CONFIG_FILES.
13285 # This happens for instance with `./config.status config.h'.
13286 if test -n "$CONFIG_FILES"; then
13289 ac_cr
=`echo X | tr X '\015'`
13290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13291 # But we know of no other shell where ac_cr would be empty at this
13292 # point, so we can use a bashism as a fallback.
13293 if test "x$ac_cr" = x
; then
13294 eval ac_cr
=\$
\'\\r
\'
13296 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13300 ac_cs_awk_cr
=$ac_cr
13303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13308 echo "cat >conf$$subs.awk <<_ACEOF" &&
13309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13311 } >conf$$subs.sh ||
13312 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13315 for ac_last_try in false false false false false :; do
13316 . ./conf$$subs.sh ||
13317 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13319 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13320 if test $ac_delim_n = $ac_delim_num; then
13322 elif $ac_last_try; then
13323 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13325 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13328 rm -f conf$$subs.sh
13330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13331 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13335 s/^/S["/; s
/!.
*/"]=/
13345 s/\(.\{148\}\)..*/\1/
13347 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13352 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13359 s/\(.\{148\}\)..*/\1/
13361 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13365 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13370 ' <conf$$subs.awk | sed '
13375 ' >>$CONFIG_STATUS || ac_write_fail=1
13376 rm -f conf$$subs.awk
13377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13380 for (key in S) S_is_set[key] = 1
13386 nfields = split(line, field, "@
")
13388 len = length(field[1])
13389 for (i = 2; i < nfields; i++) {
13391 keylen = length(key)
13392 if (S_is_set[key]) {
13394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13395 len += length(value) + length(field[++i])
13406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13407 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13408 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13411 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13412 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13417 # trailing colons and then remove the whole line if VPATH becomes empty
13418 # (actually we leave an empty line to preserve line numbers).
13419 if test "x
$srcdir" = x.; then
13420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439 fi # test -n "$CONFIG_FILES"
13441 # Set up the scripts for CONFIG_HEADERS section.
13442 # No need to generate them if there are no CONFIG_HEADERS.
13443 # This happens for instance with `./config.status Makefile'.
13444 if test -n "$CONFIG_HEADERS"; then
13445 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13449 # Transform confdefs.h into an awk script `defines.awk', embedded as
13450 # here-document in config.status, that substitutes the proper values into
13451 # config.h.in to produce config.h.
13453 # Create a delimiter string that does not exist in confdefs.h, to ease
13454 # handling of long lines.
13456 for ac_last_try in false false :; do
13457 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13458 if test -z "$ac_tt"; then
13460 elif $ac_last_try; then
13461 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13463 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13467 # For the awk script, D is an array of macro values keyed by name,
13468 # likewise P contains macro parameters if any. Preserve backslash
13469 # newline sequences.
13471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13473 s/.\{148\}/&'"$ac_delim"'/g
13476 s/^[ ]*#[ ]*define[ ][ ]*/ /
13483 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13485 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13490 D["\
1"]=" \
3\\\\\\n
"\\/p
13492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13497 s/.\{148\}/&'"$ac_delim"'/g
13502 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13505 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13507 ' <confdefs.h | sed '
13508 s/'"$ac_delim"'/"\\\
13509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13512 for (key in D) D_is_set[key] = 1
13515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13517 split(line, arg, " ")
13518 if (arg[1] == "#") {
13522 defundef
= substr
(arg
[1], 2)
13525 split(mac1
, mac2
, "(") #)
13527 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13528 if (D_is_set
[macro
]) {
13529 # Preserve the white space surrounding the "#".
13530 print prefix
"define", macro P
[macro
] D
[macro
]
13533 # Replace #undef with comments. This is necessary, for example,
13534 # in the case of _POSIX_SOURCE, which is predefined and required
13535 # on some systems where configure will not decide to define it.
13536 if (defundef
== "undef") {
13537 print
"/*", prefix defundef
, macro
, "*/"
13545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13546 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13547 fi # test -n "$CONFIG_HEADERS"
13550 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13555 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13557 case $ac_mode$ac_tag in
13559 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13560 :[FH
]-) ac_tag
=-:-;;
13561 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13578 -) ac_f
="$ac_tmp/stdin";;
13579 *) # Look for the file first in the build tree, then in the source tree
13580 # (if the path is not absolute). The absolute path cannot be DOS-style,
13581 # because $ac_f cannot contain `:'.
13585 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13587 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13589 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13590 as_fn_append ac_file_inputs
" '$ac_f'"
13593 # Let's still pretend it is `configure' which instantiates (i.e., don't
13594 # use $as_me), people would be surprised to read:
13595 # /* config.h. Generated by config.status. */
13596 configure_input
='Generated from '`
13597 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13599 if test x
"$ac_file" != x-
; then
13600 configure_input
="$ac_file. $configure_input"
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13602 $as_echo "$as_me: creating $ac_file" >&6;}
13604 # Neutralize special characters interpreted by sed in replacement strings.
13605 case $configure_input in #(
13606 *\
&* |
*\|
* |
*\\* )
13607 ac_sed_conf_input
=`$as_echo "$configure_input" |
13608 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13609 *) ac_sed_conf_input
=$configure_input;;
13613 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13614 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13619 ac_dir
=`$as_dirname -- "$ac_file" ||
13620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621 X"$ac_file" : 'X\(//\)[^/]' \| \
13622 X"$ac_file" : 'X\(//\)$' \| \
13623 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13624 $as_echo X"$ac_file" |
13625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13629 /^X\(\/\/\)[^/].*/{
13642 as_dir
="$ac_dir"; as_fn_mkdir_p
13646 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13648 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13649 # A ".." for each directory in $ac_dir_suffix.
13650 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13651 case $ac_top_builddir_sub in
13652 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13653 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13656 ac_abs_top_builddir
=$ac_pwd
13657 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13658 # for backward compatibility:
13659 ac_top_builddir
=$ac_top_build_prefix
13662 .
) # We are building in place.
13664 ac_top_srcdir
=$ac_top_builddir_sub
13665 ac_abs_top_srcdir
=$ac_pwd ;;
13666 [\\/]* | ?
:[\\/]* ) # Absolute name.
13667 ac_srcdir
=$srcdir$ac_dir_suffix;
13668 ac_top_srcdir
=$srcdir
13669 ac_abs_top_srcdir
=$srcdir ;;
13670 *) # Relative name.
13671 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13672 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13673 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13675 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13687 # If the template does not know about datarootdir, expand it.
13688 # FIXME: This hack should be removed a few years after 2.60.
13689 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13701 *datarootdir
*) ac_datarootdir_seen
=yes;;
13702 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13707 ac_datarootdir_hack='
13708 s&@datadir@&$datadir&g
13709 s&@docdir@&$docdir&g
13710 s&@infodir@&$infodir&g
13711 s&@localedir@&$localedir&g
13712 s&@mandir@&$mandir&g
13713 s&\\\${datarootdir}&$datarootdir&g' ;;
13717 # Neutralize VPATH when `$srcdir' = `.'.
13718 # Shell code in configure.ac might set extrasub.
13719 # FIXME: do we really want to maintain this feature?
13720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 ac_sed_extra="$ac_vpsub
13724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13726 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13727 s|@configure_input@|
$ac_sed_conf_input|
;t t
13728 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13729 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13730 s
&@srcdir@
&$ac_srcdir&;t t
13731 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13732 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13733 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13734 s
&@builddir@
&$ac_builddir&;t t
13735 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13736 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13737 $ac_datarootdir_hack
13739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13740 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13745 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13747 which seems to be undefined. Please make sure it is defined" >&5
13748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13749 which seems to be undefined. Please make sure it is defined" >&2;}
13751 rm -f "$ac_tmp/stdin"
13753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13762 if test x"$ac_file" != x-; then
13764 $as_echo "/* $configure_input */" \
13765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13766 } >"$ac_tmp/config.h" \
13767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13773 mv "$ac_tmp/config.h" "$ac_file" \
13774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13777 $as_echo "/* $configure_input */" \
13778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13779 || as_fn_error $? "could not create -" "$LINENO" 5
13783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13784 $as_echo "$as_me: executing $ac_file commands" >&6;}
13789 case $ac_file$ac_mode in
13790 "compiler_executable":C)
13791 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13793 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13794 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13798 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13800 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13801 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13802 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13803 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13804 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13805 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13806 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13808 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13810 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13818 ac_clean_files=$ac_clean_files_save
13820 test $ac_write_fail = 0 ||
13821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13824 # configure is writing to config.log, and then calls config.status.
13825 # config.status does its own redirection, appending to config.log.
13826 # Unfortunately, on DOS this fails, as config.log is still kept open
13827 # by configure, so config.status won't be able to
write to it
; its
13828 # output is simply discarded. So we exec the FD to /dev/null,
13829 # effectively closing config.log, so it can be properly (re)opened and
13830 # appended to by config.status. When coming back to configure, we
13831 # need to make the FD available again.
13832 if test "$no_create" != yes; then
13834 ac_config_status_args
=
13835 test "$silent" = yes &&
13836 ac_config_status_args
="$ac_config_status_args --quiet"
13838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13841 # would make configure fail if this is the last instruction.
13842 $ac_cs_success || as_fn_exit
1
13844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13851 #XXX compatability...
13852 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
13854 if test -n "$aros_shared_cflags" ; then
13855 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13856 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg