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
685 aros_target_bootloader
703 aros_amigaos_compliance
717 aros_cflags_iquote_end
719 kernel_cflags_iquote_end
721 host_cflags_iquote_end
723 aros_target_nostdlib_ldflags
724 aros_target_detach_ldflags
725 aros_target_nix_ldflags
726 aros_target_nostartup_ldflags
727 aros_target_nostdinc_cflags
736 aros_target_ranlib_ln
737 aros_target_objdump_ln
738 aros_target_objcopy_ln
835 program_transform_name
848 enable_option_checking
857 enable_target_variant
863 enable_amigaos_compliance
864 with_kernel_tool_prefix
876 enable_palm_debug_hack
878 enable_nesting_supervisor
890 ac_precious_vars
='build_alias
902 # Initialize some variables set by options.
904 ac_init_version
=false
905 ac_unrecognized_opts
=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name
=s
,x
,x
,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir
='${exec_prefix}/bin'
931 sbindir
='${exec_prefix}/sbin'
932 libexecdir
='${exec_prefix}/libexec'
933 datarootdir
='${prefix}/share'
934 datadir
='${datarootdir}'
935 sysconfdir
='${prefix}/etc'
936 sharedstatedir
='${prefix}/com'
937 localstatedir
='${prefix}/var'
938 includedir
='${prefix}/include'
939 oldincludedir
='/usr/include'
940 docdir
='${datarootdir}/doc/${PACKAGE}'
941 infodir
='${datarootdir}/info'
946 libdir
='${exec_prefix}/lib'
947 localedir
='${datarootdir}/locale'
948 mandir
='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\
$ac_option
962 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
975 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
978 -build |
--build |
--buil |
--bui |
--bu)
979 ac_prev
=build_alias
;;
980 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
981 build_alias
=$ac_optarg ;;
983 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
984 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
985 ac_prev
=cache_file
;;
986 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
987 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
988 cache_file
=$ac_optarg ;;
991 cache_file
=config.cache
;;
993 -datadir |
--datadir |
--datadi |
--datad)
995 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
996 datadir
=$ac_optarg ;;
998 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
999 |
--dataroo |
--dataro |
--datar)
1000 ac_prev
=datarootdir
;;
1001 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1002 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1003 datarootdir
=$ac_optarg ;;
1005 -disable-* |
--disable-*)
1006 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1009 as_fn_error $?
"invalid feature name: $ac_useropt"
1010 ac_useropt_orig
=$ac_useropt
1011 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_
$ac_useropt"
1016 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep
=', ';;
1019 eval enable_
$ac_useropt=no
;;
1021 -docdir |
--docdir |
--docdi |
--doc |
--do)
1023 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1024 docdir
=$ac_optarg ;;
1026 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1028 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1029 dvidir
=$ac_optarg ;;
1031 -enable-* |
--enable-*)
1032 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1035 as_fn_error $?
"invalid feature name: $ac_useropt"
1036 ac_useropt_orig
=$ac_useropt
1037 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_
$ac_useropt"
1042 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep
=', ';;
1045 eval enable_
$ac_useropt=\
$ac_optarg ;;
1047 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1048 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1049 |
--exec |
--exe |
--ex)
1050 ac_prev
=exec_prefix
;;
1051 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1052 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1053 |
--exec=* |
--exe=* |
--ex=*)
1054 exec_prefix
=$ac_optarg ;;
1056 -gas |
--gas |
--ga |
--g)
1057 # Obsolete; use --with-gas.
1060 -help |
--help |
--hel |
--he |
-h)
1061 ac_init_help
=long
;;
1062 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1063 ac_init_help
=recursive
;;
1064 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1065 ac_init_help
=short
;;
1067 -host |
--host |
--hos |
--ho)
1068 ac_prev
=host_alias
;;
1069 -host=* |
--host=* |
--hos=* |
--ho=*)
1070 host_alias
=$ac_optarg ;;
1072 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1074 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1076 htmldir
=$ac_optarg ;;
1078 -includedir |
--includedir |
--includedi |
--included |
--include \
1079 |
--includ |
--inclu |
--incl |
--inc)
1080 ac_prev
=includedir
;;
1081 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1082 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1083 includedir
=$ac_optarg ;;
1085 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1087 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1088 infodir
=$ac_optarg ;;
1090 -libdir |
--libdir |
--libdi |
--libd)
1092 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1093 libdir
=$ac_optarg ;;
1095 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1096 |
--libexe |
--libex |
--libe)
1097 ac_prev
=libexecdir
;;
1098 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1099 |
--libexe=* |
--libex=* |
--libe=*)
1100 libexecdir
=$ac_optarg ;;
1102 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1103 ac_prev
=localedir
;;
1104 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1105 localedir
=$ac_optarg ;;
1107 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1108 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1109 ac_prev
=localstatedir
;;
1110 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1111 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1112 localstatedir
=$ac_optarg ;;
1114 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1116 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1117 mandir
=$ac_optarg ;;
1119 -nfp |
--nfp |
--nf)
1120 # Obsolete; use --without-fp.
1123 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1124 |
--no-cr |
--no-c |
-n)
1127 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1128 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1131 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1132 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1133 |
--oldin |
--oldi |
--old |
--ol |
--o)
1134 ac_prev
=oldincludedir
;;
1135 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1136 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1137 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1138 oldincludedir
=$ac_optarg ;;
1140 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1142 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1143 prefix
=$ac_optarg ;;
1145 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1146 |
--program-pre |
--program-pr |
--program-p)
1147 ac_prev
=program_prefix
;;
1148 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1149 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1150 program_prefix
=$ac_optarg ;;
1152 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1153 |
--program-suf |
--program-su |
--program-s)
1154 ac_prev
=program_suffix
;;
1155 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1156 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1157 program_suffix
=$ac_optarg ;;
1159 -program-transform-name |
--program-transform-name \
1160 |
--program-transform-nam |
--program-transform-na \
1161 |
--program-transform-n |
--program-transform- \
1162 |
--program-transform |
--program-transfor \
1163 |
--program-transfo |
--program-transf \
1164 |
--program-trans |
--program-tran \
1165 |
--progr-tra |
--program-tr |
--program-t)
1166 ac_prev
=program_transform_name
;;
1167 -program-transform-name=* |
--program-transform-name=* \
1168 |
--program-transform-nam=* |
--program-transform-na=* \
1169 |
--program-transform-n=* |
--program-transform-=* \
1170 |
--program-transform=* |
--program-transfor=* \
1171 |
--program-transfo=* |
--program-transf=* \
1172 |
--program-trans=* |
--program-tran=* \
1173 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1174 program_transform_name
=$ac_optarg ;;
1176 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1178 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1179 pdfdir
=$ac_optarg ;;
1181 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1183 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1186 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1187 |
-silent |
--silent |
--silen |
--sile |
--sil)
1190 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1192 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1194 sbindir
=$ac_optarg ;;
1196 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1197 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1198 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1200 ac_prev
=sharedstatedir
;;
1201 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1202 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1203 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1205 sharedstatedir
=$ac_optarg ;;
1207 -site |
--site |
--sit)
1209 -site=* |
--site=* |
--sit=*)
1212 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1214 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1215 srcdir
=$ac_optarg ;;
1217 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1218 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1219 ac_prev
=sysconfdir
;;
1220 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1221 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1222 sysconfdir
=$ac_optarg ;;
1224 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1225 ac_prev
=target_alias
;;
1226 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1227 target_alias
=$ac_optarg ;;
1229 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1232 -version |
--version |
--versio |
--versi |
--vers |
-V)
1233 ac_init_version
=: ;;
1236 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1239 as_fn_error $?
"invalid package name: $ac_useropt"
1240 ac_useropt_orig
=$ac_useropt
1241 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep
=', ';;
1249 eval with_
$ac_useropt=\
$ac_optarg ;;
1251 -without-* |
--without-*)
1252 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1294 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $?
"missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val
=\$
$ac_var
1330 # Remove trailing slashes.
1333 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\
$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$
]* | ?
:[\\/]* ) continue;;
1339 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1341 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target
=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x
; then
1353 if test "x$build_alias" = x
; then
1354 cross_compiling
=maybe
1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used" >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1365 test "$silent" = yes && exec 6>/dev
/null
1368 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di
=`ls -di .` &&
1370 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $?
"working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $?
"pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted
=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir
=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted
=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1412 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var
in $ac_precious_vars; do
1429 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1431 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures this package to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --x-includes=DIR X include files are
in DIR
1501 --x-libraries=DIR X library files are
in DIR
1504 --build=BUILD configure
for building on BUILD
[guessed
]
1505 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1509 if test -n "$ac_init_help"; then
1514 --disable-option-checking ignore unrecognized
--enable/--with options
1515 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1516 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1517 --enable-build-type=TYPE
1518 Select the build
type. Available types are
:
1519 personal
, nightly
, snapshot
, milestone
, release. Do
1520 NOT use this option unless you know what you are
1521 doing
! (default
=personal
)
1522 --enable-debug=list Enable different types of debug. Commas or
1523 whitespaces can be used to separate the items
in the
1524 list. Available types of debug are
: all
, none
,
1525 messages
, stack
, mungwall
, modules
, symbols. If no
1526 list is provided
then "all" is assumed.
1528 --disable-crosstools Do not build cross-compiler toolchain
1529 --enable-distcc Use distcc as a front end to the compiler
1531 --enable-ccache Use ccache as a front end to the compiler
1533 --enable-target-variant=NAME
1534 Enable a specific target variant
(default
=none
)
1535 --enable-amigaos-compliance=VERSION
1536 Enforce userspace AmigaOS compliance to a specific
1537 KickStart version
(default
=none
).
1538 --enable-palm-debug-hack
1539 Enable palm debug output hack
in palm native
1541 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1542 --enable-nesting-supervisor
1543 Enable nesting supervisor support
in unix
1545 --disable-mmu Disable MMU support
(default
=enabled
)
1546 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1547 --enable-x11-shm use X11 shared memory
(default
=auto
)
1548 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1549 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1550 --disable-sdltest Do not try to compile and run a
test SDL program
1551 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1554 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1555 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1556 --with-kernel-gcc-version=VERSION
1557 Use
host gcc-VERSION
for building AROS
1558 --with-gcc-version=VERSION
1559 Use
host gcc-VERSION
for building AROS
1560 --with-optimization=FLAGS
1561 Use optimization flags FLAGS
(default
=-O2).
1562 --with-paranoia=FLAGS CC flags to
enable paranoia
1563 --with-xcode=PATH Specify XCode path
for iOS targets
1564 (default
=/Developer
).
1565 --with-sdk-version=VERSION
1566 Use iOS SDK version VERSION
(default
=4.1).
1567 --with-sdk=PATH Specify Android SDK path
1568 (default
=$default_android_sdk).
1569 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1570 --with-sdk-version=LEVEL
1571 Use Android SDK
for API LEVEL
(default
=12).
1572 --with-ndk-version=LEVEL
1573 Use Android NDK
for API LEVEL
(default
=9).
1574 --with-kernel-tool-prefix=...
1575 Specify crosscompile toolchain prefix
for kernel
1577 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1578 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1579 --with-float=<spec
> Specify floating point ABI
1580 (default
=$gcc_default_float_abi).
1581 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1582 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1583 --with-portssources=DIR Where to download sourcecode
for external ports
1584 --with-bootloader=NAME Use a specific bootloader
1585 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1586 --with-theme=NAME Use a specific GUI Theme
1587 --with-resolution=XRESxYRESxDEPTH
1588 Default resolution of the initial WorkbenchScreen
1589 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1590 --with-x use the X Window System
1591 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1592 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1594 Some influential environment variables
:
1595 CC C compiler
command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1598 nonstandard directory
<lib dir
>
1599 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1600 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1601 you have headers
in a nonstandard directory
<include dir
>
1603 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1605 Use these variables to override the choices made by
`configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1638 .) # We are building in place.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf 2.68
1674 Copyright (C) 2010 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1695 *) ac_try_echo
=$ac_try;;
1697 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err
; then
1702 grep -v '^ *+' conftest.err
>conftest.er1
1703 cat conftest.er1
>&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.
$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.
$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status
$ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1765 ac_fn_c_check_header_mongrel ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1789 ac_header_compiler=no
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1805 ac_header_preproc=no
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 eval "$3=\$ac_header_compiler"
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_mongrel
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=$ac_status
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1889 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists and can be compiled using the include files in
1892 # INCLUDES, setting the cache variable VAR accordingly.
1893 ac_fn_c_check_header_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1906 if ac_fn_c_try_compile "$LINENO"; then :
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_header_compile
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1930 *) ac_try_echo
=$ac_try;;
1932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1936 if test -s conftest.err
; then
1937 grep -v '^ *+' conftest.err
>conftest.er1
1938 cat conftest.er1
>&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest
$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 $as_test_x conftest
$ac_exeext
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status
$ac_retval
1964 } # ac_fn_c_try_link
1966 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1967 # ----------------------------------------------------
1968 # Tries to find if the field MEMBER exists in type AGGR, after including
1969 # INCLUDES, setting cache variable VAR accordingly.
1970 ac_fn_c_check_member
()
1972 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1974 $as_echo_n "checking for $2.$3... " >&6; }
1975 if eval \
${$4+:} false
; then :
1976 $as_echo_n "(cached) " >&6
1978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1991 if ac_fn_c_try_compile
"$LINENO"; then :
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2001 if (sizeof ac_aggr.$3)
2007 if ac_fn_c_try_compile
"$LINENO"; then :
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_member
2023 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2024 # ---------------------------------------------
2025 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2027 ac_fn_c_check_decl
()
2029 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2030 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034 if eval \
${$3+:} false
; then :
2035 $as_echo_n "(cached) " >&6
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 #ifndef $as_decl_name
2045 (void) $as_decl_use;
2047 (void) $as_decl_name;
2055 if ac_fn_c_try_compile
"$LINENO"; then :
2060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_decl
2069 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070 # -------------------------------------------
2071 # Tests whether TYPE exists after having included INCLUDES, setting cache
2072 # variable VAR accordingly.
2073 ac_fn_c_check_type
()
2075 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \
${$3+:} false
; then :
2079 $as_echo_n "(cached) " >&6
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2107 if ac_fn_c_try_compile
"$LINENO"; then :
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_type
2123 # ac_fn_c_check_func LINENO FUNC VAR
2124 # ----------------------------------
2125 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2126 ac_fn_c_check_func
()
2128 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \
${$3+:} false
; then :
2132 $as_echo_n "(cached) " >&6
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138 #define $2 innocuous_$2
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below.
2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143 <limits.h> exists even on freestanding compilers. */
2146 # include <limits.h>
2148 # include <assert.h>
2153 /* Override any GCC internal prototype to avoid an error.
2154 Use char because int might match the return type of a GCC
2155 builtin and then its argument prototype would still apply. */
2160 /* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
2163 #if defined __stub_$2 || defined __stub___$2
2175 if ac_fn_c_try_link
"$LINENO"; then :
2180 rm -f core conftest.err conftest.
$ac_objext \
2181 conftest
$ac_exeext conftest.
$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_func
2189 cat >config.log
<<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by $as_me, which was
2194 generated by GNU Autoconf 2.68. Invocation command line was
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir
=.
2230 $as_echo "PATH: $as_dir"
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_must_keep_next
=false
2260 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2261 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2262 |
-silent |
--silent |
--silen |
--sile |
--sil)
2265 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1
" '$ac_arg'"
2271 if test $ac_must_keep_next = true
; then
2272 ac_must_keep_next
=false
# Got value, back to normal.
2275 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2276 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2277 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2278 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 -* ) ac_must_keep_next
=true
;;
2286 as_fn_append ac_configure_args
" '$ac_arg'"
2291 { ac_configure_args0
=; unset ac_configure_args0
;}
2292 { ac_configure_args1
=; unset ac_configure_args1
;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2308 # The following way of writing the cache mishandles newlines in values,
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2359 for ac_var
in $ac_subst_files
2361 eval ac_val
=\$
$ac_var
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386 for ac_signal
in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest
* confdefs.h
2394 $as_echo "/* confdefs.h */" > confdefs.h
2396 # Predefined preprocessor variables.
2398 cat >>confdefs.h
<<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2402 cat >>confdefs.h
<<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406 cat >>confdefs.h
<<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2410 cat >>confdefs.h
<<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2414 cat >>confdefs.h
<<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418 cat >>confdefs.h
<<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2431 */*) ac_site_file1
=$CONFIG_SITE;;
2432 *) ac_site_file1
=.
/$CONFIG_SITE;;
2434 elif test "x$prefix" != xNONE
; then
2435 ac_site_file1
=$prefix/share
/config.site
2436 ac_site_file2
=$prefix/etc
/config.site
2438 ac_site_file1
=$ac_default_prefix/share
/config.site
2439 ac_site_file2
=$ac_default_prefix/etc
/config.site
2441 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2443 test "x$ac_site_file" = xNONE
&& continue
2444 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2449 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $?
"failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2464 *) .
"./$cache_file";;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 as_fn_append ac_header_list
" stdlib.h"
2474 as_fn_append ac_header_list
" unistd.h"
2475 as_fn_append ac_header_list
" sys/param.h"
2476 # Check that the precious variables saved in the cache have kept the same
2478 ac_cache_corrupted
=false
2479 for ac_var
in $ac_precious_vars; do
2480 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2481 eval ac_new_set
=\
$ac_env_${ac_var}_set
2482 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2483 eval ac_new_val
=\
$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted
=: ;;
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted
=: ;;
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w
=`echo x $ac_old_val`
2498 ac_new_val_w
=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted
=:
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\
$ac_old_val
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2517 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg
=$ac_var=$ac_new_val ;;
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2538 ac_cpp
='$CPP $CPPFLAGS'
2539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2546 for ac_dir
in scripts
/autoconf
"$srcdir"/scripts
/autoconf
; do
2547 if test -f "$ac_dir/install-sh"; then
2549 ac_install_sh
="$ac_aux_dir/install-sh -c"
2551 elif test -f "$ac_dir/install.sh"; then
2553 ac_install_sh
="$ac_aux_dir/install.sh -c"
2555 elif test -f "$ac_dir/shtool"; then
2557 ac_install_sh
="$ac_aux_dir/shtool install -c"
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2575 # Check what host we are running on.
2576 # If a target is not suggested, we use this one.
2577 # Note that what we call a target, Autoconf calls a host.
2578 # Make sure we can run config.sub.
2579 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2580 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2583 $as_echo_n "checking build system type... " >&6; }
2584 if ${ac_cv_build+:} false
; then :
2585 $as_echo_n "(cached) " >&6
2587 ac_build_alias
=$build_alias
2588 test "x$ac_build_alias" = x
&&
2589 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2590 test "x$ac_build_alias" = x
&&
2591 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2592 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2593 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2597 $as_echo "$ac_cv_build" >&6; }
2598 case $ac_cv_build in
2600 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2603 ac_save_IFS
=$IFS; IFS
='-'
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2613 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2617 $as_echo_n "checking host system type... " >&6; }
2618 if ${ac_cv_host+:} false
; then :
2619 $as_echo_n "(cached) " >&6
2621 if test "x$host_alias" = x
; then
2622 ac_cv_host
=$ac_cv_build
2624 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2625 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2630 $as_echo "$ac_cv_host" >&6; }
2633 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2636 ac_save_IFS
=$IFS; IFS
='-'
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2646 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2650 # The AROS target is slightly different to the normal GNU style
2651 # format. We don't have the middle part, and we reverse the order
2652 # of the $(CPU) and $(OS) bits.
2654 # Don't strip the version of the target yet, it might be
2655 # useful on some systems.
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2658 $as_echo_n "checking for AROS style target... " >&6; }
2660 if test "$target" = "NONE" ; then
2661 target
=$host_os-$host_cpu
2663 if test "$target" = "" ; then
2664 target
=$host_os-$host_cpu
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2668 $as_echo "$target" >&6; }
2670 if test "$host_os" = "mingw32" ; then
2674 #don't know where else to put this...
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2676 $as_echo_n "checking building AROS in... " >&6; }
2677 AROS_BUILDDIR
=`${PWDCMD-pwd}`
2678 AROS_BUILDDIR_UNIX
=${PWD}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2680 $as_echo "$AROS_BUILDDIR" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2683 $as_echo_n "checking AROS source in... " >&6; }
2684 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2687 $as_echo "$SRCDIR" >&6; }
2689 # Parse the target field into something useful.
2691 target_os
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2692 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2695 aros_default_wbwidth
=800
2696 aros_default_wbheight
=600
2697 aros_default_wbdepth
=4
2700 # The first step is to find the host binaries.
2701 # Check for a compiler.
2703 ac_cpp
='$CPP $CPPFLAGS'
2704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false
; then :
2713 $as_echo_n "(cached) " >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC
="$CC" # Let the user override the test.
2718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir
=.
2723 for ac_exec_ext
in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$ac_cv_prog_CC"; then
2748 # Extract the first word of "gcc", so it can be a program name with args.
2749 set dummy gcc
; ac_word
=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir
=.
2763 for ac_exec_ext
in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_ac_ct_CC
="gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2778 $as_echo "$ac_ct_CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2784 if test "x$ac_ct_CC" = x
; then
2787 case $cross_compiling:$ac_tool_warned in
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2791 ac_tool_warned
=yes ;;
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2802 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false
; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC
="$CC" # Let the user override the test.
2811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir
=.
2816 for ac_exec_ext
in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2840 if test -z "$CC"; then
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc
; ac_word
=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false
; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC
="$CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860 ac_prog_rejected
=yes
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 if test $ac_prog_rejected = yes; then
2872 # We found a bogon in the path, so make sure we never use it.
2873 set dummy
$ac_cv_prog_CC
2875 if test $# != 0; then
2876 # We chose a different compiler from the bogus one.
2877 # However, it has the same basename, so the bogon will be chosen
2878 # first if we set CC to just the basename; use the full file name.
2880 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 if test -n "$ac_tool_prefix"; then
2898 for ac_prog
in cl.exe
2900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_CC+:} false
; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC
="$CC" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2937 test -n "$CC" && break
2940 if test -z "$CC"; then
2942 for ac_prog
in cl.exe
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy
$ac_prog; ac_word
=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir
=.
2959 for ac_exec_ext
in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_ac_ct_CC
="$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$ac_ct_CC" && break
2984 if test "x$ac_ct_CC" = x
; then
2987 case $cross_compiling:$ac_tool_warned in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned
=yes ;;
3000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $?
"no acceptable C compiler found in \$PATH
3003 See \`config.log' for more details" "$LINENO" 5; }
3005 # Provide some information about the compiler.
3006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3009 for ac_option
in --version -v -V -qversion; do
3010 { { ac_try
="$ac_compiler $ac_option >&5"
3012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3019 if test -s conftest.err; then
3021 ... rest of stderr output deleted ...
3022 10q' conftest.err >conftest.er1
3023 cat conftest.er1 >&5
3025 rm -f conftest.er1 conftest.err
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3041 ac_clean_files_save=$ac_clean_files
3042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043 # Try to create an executable without -o first, disregard a.out.
3044 # It will help us diagnose broken compilers, and finding out an intuition
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3047 $as_echo_n "checking whether the C compiler works... " >&6; }
3048 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3050 # The possible output files:
3051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3054 for ac_file in $ac_files
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3063 if { { ac_try="$ac_link_default"
3065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3066 *) ac_try_echo
=$ac_try;;
3068 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link_default") 2>&5
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3077 # so that the user can short-circuit this test for compilers unknown to
3079 for ac_file
in $ac_files ''
3081 test -f "$ac_file" ||
continue
3083 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3086 # We found the default executable, but exeext='' is most
3090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3092 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 # We set ac_cv_exeext here because the later test for it is not
3095 # safe: cross compilers may not add the suffix if given an `-o'
3096 # argument, so we may need to know it at that point already.
3097 # Even if this section looks crufty: it has the advantage of
3104 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3109 if test -z "$ac_file"; then :
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.
$ac_ext >&5
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error
77 "C compiler cannot create executables
3118 See \`config.log' for more details" "$LINENO" 5; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3124 $as_echo_n "checking for C compiler default output file name... " >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 $as_echo "$ac_file" >&6; }
3127 ac_exeext
=$ac_cv_exeext
3129 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3130 ac_clean_files
=$ac_clean_files_save
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 $as_echo_n "checking for suffix of executables... " >&6; }
3133 if { { ac_try
="$ac_link"
3135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link") 2>&5
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3145 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3146 # work properly (i.e., refer to `conftest.exe'), while it won't with
3148 for ac_file
in conftest.exe conftest conftest.
*; do
3149 test -f "$ac_file" ||
continue
3151 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3152 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details" "$LINENO" 5; }
3163 rm -f conftest conftest
$ac_cv_exeext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 $as_echo "$ac_cv_exeext" >&6; }
3167 rm -f conftest.
$ac_ext
3168 EXEEXT
=$ac_cv_exeext
3170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3176 FILE *f = fopen ("conftest.out", "w");
3177 return ferror (f) || fclose (f) != 0;
3183 ac_clean_files
="$ac_clean_files conftest.out"
3184 # Check that the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 if test "$cross_compiling" != yes; then
3189 { { ac_try
="$ac_link"
3191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3200 if { ac_try='./conftest$ac_cv_exeext'
3201 { { case "(($ac_try" in
3202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3203 *) ac_try_echo
=$ac_try;;
3205 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_try") 2>&5
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; }; then
3213 if test "$cross_compiling" = maybe
; then
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $?
"cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details" "$LINENO" 5; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 $as_echo "$cross_compiling" >&6; }
3227 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3228 ac_clean_files
=$ac_clean_files_save
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230 $as_echo_n "checking for suffix of object files... " >&6; }
3231 if ${ac_cv_objext+:} false
; then :
3232 $as_echo_n "(cached) " >&6
3234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3245 rm -f conftest.o conftest.obj
3246 if { { ac_try
="$ac_compile"
3248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_compile") 2>&5
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3272 See \
`config.log' for more details" "$LINENO" 5; }
3274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277 $as_echo "$ac_cv_objext" >&6; }
3278 OBJEXT=$ac_cv_objext
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3282 if ${ac_cv_c_compiler_gnu+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3299 if ac_fn_c_try_compile "$LINENO"; then :
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3310 if test $ac_compiler_gnu = yes; then
3315 ac_test_CFLAGS=${CFLAGS+set}
3316 ac_save_CFLAGS=$CFLAGS
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3319 if ${ac_cv_prog_cc_g+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 ac_save_c_werror_flag=$ac_c_werror_flag
3323 ac_c_werror_flag=yes
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3352 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 if ac_fn_c_try_compile "$LINENO"; then :
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3379 $as_echo "$ac_cv_prog_cc_g" >&6; }
3380 if test "$ac_test_CFLAGS" = set; then
3381 CFLAGS=$ac_save_CFLAGS
3382 elif test $ac_cv_prog_cc_g = yes; then
3383 if test "$GCC" = yes; then
3389 if test "$GCC" = yes; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397 if ${ac_cv_prog_cc_c89+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 ac_cv_prog_cc_c89=no
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 #include <sys/stat.h>
3408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3409 struct buf { int x; };
3410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3411 static char *e (p, i)
3417 static char *f (char * (*g) (char **, int), char **p, ...)
3422 s = g (p, va_arg (v,int));
3427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3428 function prototypes and stuff, but not '\xHH' hex character constants.
3429 These don't provoke an error unfortunately, instead are silently treated
3430 as 'x'. The following induces an error, until -std is added to get
3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3432 array size at least. It's necessary to write '\x00'==0 to get something
3433 that's true only with -std. */
3434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3437 inside strings and character constants. */
3439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3441 int test (int i, double x);
3442 struct s1 {int (*f) (int a);};
3443 struct s2 {int (*f) (double a);};
3444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458 CC="$ac_save_CC $ac_arg"
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_c89=$ac_arg
3462 rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 rm -f conftest.$ac_ext
3470 case "x$ac_cv_prog_cc_c89" in
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3473 $as_echo "none needed" >&6; } ;;
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3476 $as_echo "unsupported" >&6; } ;;
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3482 if test "x$ac_cv_prog_cc_c89" != xno; then :
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 case $ac_cv_prog_cc_stdc in #(
3494 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3497 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3498 if ${ac_cv_prog_cc_c99+:} false; then :
3499 $as_echo_n "(cached) " >&6
3501 ac_cv_prog_cc_c99=no
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3506 #include <stdbool.h>
3511 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3512 #define debug(...) fprintf (stderr, __VA_ARGS__)
3513 #define showlist(...) puts (#__VA_ARGS__)
3514 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3516 test_varargs_macros (void)
3521 debug ("X = %d\n", x);
3522 showlist (The first, second, and third items.);
3523 report (x>y, "x is %d but y is %d", x, y);
3526 // Check long long types.
3527 #define BIG64 18446744073709551615ull
3528 #define BIG32 4294967295ul
3529 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3531 your preprocessor is broken;
3535 your preprocessor is broken;
3537 static long long int bignum = -9223372036854775807LL;
3538 static unsigned long long int ubignum = BIG64;
3540 struct incomplete_array
3548 const wchar_t *name;
3552 typedef const char *ccp;
3555 test_restrict (ccp restrict text)
3557 // See if C++-style comments work.
3558 // Iterate through items via the restricted pointer.
3559 // Also check for declarations in for loops.
3560 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3565 // Check varargs and va_copy.
3567 test_varargs (const char *format, ...)
3570 va_start (args, format);
3572 va_copy (args_copy, args);
3583 str = va_arg (args_copy, const char *);
3586 number = va_arg (args_copy, int);
3589 fnumber = va_arg (args_copy, double);
3604 _Bool success = false;
3607 if (test_restrict ("String literal") == 0)
3609 char *restrict newvar = "Another string";
3612 test_varargs ("s, d' f .", "string", 65, 34.234);
3613 test_varargs_macros ();
3615 // Check flexible array members.
3616 struct incomplete_array *ia =
3617 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3619 for (int i = 0; i < ia->datasize; ++i)
3620 ia->data[i] = i * 1.234;
3622 // Check named initializers.
3623 struct named_init ni = {
3625 .name = L"Test wide string",
3626 .average = 543.34343,
3631 int dynamic_array[ni.number];
3632 dynamic_array[ni.number - 1] = 543;
3634 // work around unused variable warnings
3635 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3636 || dynamic_array[ni.number - 1] != 543);
3642 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_c99=$ac_arg
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c99" != "xno" && break
3651 rm -f conftest.$ac_ext
3656 case "x$ac_cv_prog_cc_c99" in
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3664 CC="$CC $ac_cv_prog_cc_c99"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3666 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3668 if test "x$ac_cv_prog_cc_c99" != xno; then :
3669 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3673 if ${ac_cv_prog_cc_c89+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 ac_cv_prog_cc_c89=no
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 #include <sys/types.h>
3683 #include <sys/stat.h>
3684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3685 struct buf { int x; };
3686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3687 static char *e (p, i)
3693 static char *f (char * (*g) (char **, int), char **p, ...)
3698 s = g (p, va_arg (v,int));
3703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3704 function prototypes and stuff, but not '\xHH' hex character constants.
3705 These don't provoke an error unfortunately, instead are silently treated
3706 as 'x'. The following induces an error, until -std is added to get
3707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3708 array size at least. It's necessary to write '\x00'==0 to get something
3709 that's true only with -std. */
3710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3713 inside strings and character constants. */
3715 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717 int test (int i, double x);
3718 struct s1 {int (*f) (int a);};
3719 struct s2 {int (*f) (double a);};
3720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734 CC="$ac_save_CC $ac_arg"
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_c89=$ac_arg
3738 rm -f core conftest.err conftest.$ac_objext
3739 test "x$ac_cv_prog_cc_c89" != "xno" && break
3741 rm -f conftest.$ac_ext
3746 case "x$ac_cv_prog_cc_c89" in
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3749 $as_echo "none needed" >&6; } ;;
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 $as_echo "unsupported" >&6; } ;;
3754 CC="$CC $ac_cv_prog_cc_c89"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758 if test "x$ac_cv_prog_cc_c89" != xno; then :
3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3761 ac_cv_prog_cc_stdc=no
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3768 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3769 if ${ac_cv_prog_cc_stdc+:} false; then :
3770 $as_echo_n "(cached) " >&6
3773 case $ac_cv_prog_cc_stdc in #(
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;; #(
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;; #(
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3782 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3791 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3792 # On Suns, sometimes $CPP names a directory.
3793 if test -n "$CPP" && test -d "$CPP"; then
3796 if test -z "$CPP"; then
3797 if ${ac_cv_prog_CPP+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 # Double quotes because CPP needs to be expanded
3801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3804 for ac_c_preproc_warn_flag in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3815 # include <limits.h>
3817 # include <assert.h>
3821 if ac_fn_c_try_cpp "$LINENO"; then :
3824 # Broken: fails on valid input.
3827 rm -f conftest.err conftest.i conftest.$ac_ext
3829 # OK, works on sane cases. Now check whether nonexistent headers
3830 # can be detected and how.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3835 if ac_fn_c_try_cpp "$LINENO"; then :
3836 # Broken: success on invalid input.
3839 # Passes both tests.
3843 rm -f conftest.err conftest.i conftest.$ac_ext
3846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3847 rm -f conftest.i conftest.err conftest.
$ac_ext
3848 if $ac_preproc_ok; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3861 $as_echo "$CPP" >&6; }
3863 for ac_c_preproc_warn_flag
in '' yes
3865 # Use a header file that comes with gcc, so configuring glibc
3866 # with a fresh cross-compiler works.
3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868 # <limits.h> exists even on freestanding compilers.
3869 # On the NeXT, cc -E runs the code through the compiler's parser,
3870 # not just through cpp. "Syntax error" is here to catch this case.
3871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3874 # include <limits.h>
3876 # include <assert.h>
3880 if ac_fn_c_try_cpp
"$LINENO"; then :
3883 # Broken: fails on valid input.
3886 rm -f conftest.err conftest.i conftest.
$ac_ext
3888 # OK, works on sane cases. Now check whether nonexistent headers
3889 # can be detected and how.
3890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if ac_fn_c_try_cpp
"$LINENO"; then :
3895 # Broken: success on invalid input.
3898 # Passes both tests.
3902 rm -f conftest.err conftest.i conftest.
$ac_ext
3905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906 rm -f conftest.i conftest.err conftest.
$ac_ext
3907 if $ac_preproc_ok; then :
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3913 See \`config.log' for more details" "$LINENO" 5; }
3917 ac_cpp
='$CPP $CPPFLAGS'
3918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3923 # Check for a compatible awk
3924 for ac_prog
in gawk nawk
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy
$ac_prog; ac_word
=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_AWK+:} false
; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -n "$AWK"; then
3934 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_AWK
="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 if test -n "$AWK"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3956 $as_echo "$AWK" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 test -n "$AWK" && break
3966 if test "$AWK" = ""; then
3967 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3969 # Extract the first word of "mmake", so it can be a program name with args.
3970 set dummy mmake
; ac_word
=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if ${ac_cv_prog_MMAKE+:} false
; then :
3974 $as_echo_n "(cached) " >&6
3976 if test -n "$MMAKE"; then
3977 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir
=.
3984 for ac_exec_ext
in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_MMAKE
="mmake "
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 MMAKE
=$ac_cv_prog_MMAKE
3997 if test -n "$MMAKE"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3999 $as_echo "$MMAKE" >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4007 # Perform some default variable assignments. Note all of these will be
4008 # Regenerated from the script, so there is no need to cache them.
4010 aros_host_cpp
="$CPP"
4012 if test "$GCC" = "yes"; then
4013 aros_gcc_ld
=`$CC -print-prog-name=ld`
4014 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4015 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if ${ac_cv_path_aros_host_ld+:} false
; then :
4019 $as_echo_n "(cached) " >&6
4021 case $aros_host_ld in
4023 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4027 for as_dir
in `dirname $aros_gcc_ld`
4030 test -z "$as_dir" && as_dir
=.
4031 for ac_exec_ext
in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 aros_host_ld
=$ac_cv_path_aros_host_ld
4045 if test -n "$aros_host_ld"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4047 $as_echo "$aros_host_ld" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test "$aros_host_ld" = ""; then
4056 # Extract the first word of "ld", so it can be a program name with args.
4057 set dummy ld
; ac_word
=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_path_aros_host_ld+:} false
; then :
4061 $as_echo_n "(cached) " >&6
4063 case $aros_host_ld in
4065 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 aros_host_ld
=$ac_cv_path_aros_host_ld
4087 if test -n "$aros_host_ld"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4089 $as_echo "$aros_host_ld" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4097 if test "$aros_host_ld" = ""; then
4098 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4100 aros_host_make
="make"
4101 aros_host_cflags
=$CFLAGS
4102 aros_host_ldflags
=$LDFLAGS
4103 aros_host_debug
="-g -O0"
4104 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4105 aros_host_mkargs
="--no-print-directory"
4106 aros_host_exe_suffix
="$EXEEXT"
4107 aros_host_lib_suffix
=""
4109 # Ignore all compliance, AROS ROMs = 0
4110 # KickStart v1.0 = 30
4111 # KickStart v1.3 = 34
4112 # KickStart v2.0 = 37
4113 # KickStart v3.0 = 39
4114 # KickStart v3.1 = 40
4116 aros_amigaos_compliance
=0
4118 for ac_prog
in aclocal aclocal19 aclocal-1.9
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy
$ac_prog; ac_word
=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$aros_host_aclocal"; then
4128 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir
=.
4135 for ac_exec_ext
in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4148 if test -n "$aros_host_aclocal"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4150 $as_echo "$aros_host_aclocal" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$aros_host_aclocal" && break
4160 for ac_prog
in autoconf autoconf259 autoconf253
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy
$ac_prog; ac_word
=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4167 $as_echo_n "(cached) " >&6
4169 if test -n "$aros_host_autoconf"; then
4170 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir
=.
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4190 if test -n "$aros_host_autoconf"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4192 $as_echo "$aros_host_autoconf" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4199 test -n "$aros_host_autoconf" && break
4202 for ac_prog
in autoheader autoheader259 autoheader253
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy
$ac_prog; ac_word
=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4209 $as_echo_n "(cached) " >&6
4211 if test -n "$aros_host_autoheader"; then
4212 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_exec_ext
in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4232 if test -n "$aros_host_autoheader"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4234 $as_echo "$aros_host_autoheader" >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$aros_host_autoheader" && break
4244 for ac_prog
in automake automake19 automake-1.9
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy
$ac_prog; ac_word
=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -n "$aros_host_automake"; then
4254 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_exec_ext
in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_aros_host_automake
="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 aros_host_automake
=$ac_cv_prog_aros_host_automake
4274 if test -n "$aros_host_automake"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4276 $as_echo "$aros_host_automake" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$aros_host_automake" && break
4287 if test "$aros_host_aclocal" = ""; then
4288 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4290 if test "$aros_host_automake" = ""; then
4291 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4294 case "$aros_host_cc" in
4296 aros_host_cc_pipe
="-pipe"
4299 aros_host_cc_pipe
=""
4302 aros_host_cc_pipe
=""
4306 aros_kernel_cc_includes
=""
4307 aros_target_cc_includes
=""
4309 # ----------------------------------------------------------------------------------------
4310 # Host-specific defaults
4312 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4313 # instead of a wrapper script.
4314 # Useful for non-ELF hosts (like Windows and Darwin).
4315 # Can also be overriden in target section below
4318 # This is the main host configuration section. It is where the host
4319 # can change the values of any variables it needs to change. We do
4320 # not look at anything that compiles to the target yet, we'll get
4325 aros_host_arch
="aros"
4326 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4329 aros_host_cpu
="i386"
4332 aros_host_cpu
="x86_64"
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4339 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4340 aros_host_cpu
="$host_cpu"
4346 aros_host_arch
="linux"
4347 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4348 android_build_os
="linux-x86"
4349 android_tool
="android"
4350 default_android_sdk
="/opt/android-sdk-linux_x86"
4353 aros_host_cpu
="i386"
4356 aros_host_cpu
="x86_64"
4359 aros_host_cpu
="m68k"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4369 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4370 aros_host_cpu
="$host_cpu"
4376 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4377 aros_host_make
="gmake"
4378 aros_host_arch
="freebsd"
4379 aros_host_cpu
="i386"
4381 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4385 aros_object_format
="elf_i386"
4389 aros_object_format
="elf_i386_fbsd"
4396 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4397 aros_host_arch
="darwin"
4399 android_build_os
="darwin-x86"
4400 android_tool
="android"
4401 default_android_sdk
="/android-sdk-mac_x86"
4404 aros_host_cpu
="i386"
4407 aros_host_cpu
="x86_64"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4414 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4415 aros_host_cpu
="$host_cpu"
4419 aros_host_ldflags
="$aros_host_ldflags -liconv"
4424 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4425 aros_host_make
="gmake"
4426 aros_host_arch
="dragonfly"
4429 aros_host_cpu
="i386"
4432 aros_host_cpu
="x86_64"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4436 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4437 aros_host_cpu
="$host_cpu"
4443 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4444 aros_host_make
="gmake"
4445 aros_host_arch
="netbsd"
4448 aros_host_cpu
="i386"
4451 aros_host_cpu
="m68k"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4455 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4456 aros_host_cpu
="$host_cpu"
4459 aros_host_lib_suffix
=".0.0"
4463 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4464 aros_host_make
="gmake"
4465 aros_host_arch
="openbsd"
4468 aros_host_cpu
="i386"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4472 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4473 aros_host_cpu
="$host_cpu"
4479 aros_host_arch
="solaris"
4480 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4483 aros_host_cpu
="i386"
4486 aros_host_cpu
="sparc"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4490 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4491 aros_host_cpu
="$host_cpu"
4497 aros_host_arch
="morphos"
4502 aros_host_arch
="amiga"
4507 TOUCH
="/gg/bin/touch"
4510 aros_host_cpu
="m68k"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4517 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4518 aros_host_cpu
="$host_cpu"
4524 aros_host_arch
="cygwin"
4526 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4527 android_build_os
="windows"
4528 android_tool
="android.bat"
4529 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4533 aros_host_cpu
="i386"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4537 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4538 aros_host_cpu
="$host_cpu"
4544 aros_host_arch
="mingw32"
4546 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4547 android_build_os
="windows"
4548 android_tool
="android.bat"
4549 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4555 $as_echo_n "checking for Windows native gcc target... " >&6; }
4556 host_cpu
=`gcc -dumpmachine`
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4558 $as_echo "$host_cpu" >&6; }
4565 aros_host_cpu
="i386"
4569 aros_host_cpu
="x86_64"
4570 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4575 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4576 aros_host_cpu
="$host_cpu"
4581 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4585 # Extract the first word of "ar", so it can be a program name with args.
4586 set dummy
ar; ac_word
=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -n "$aros_host_ar"; then
4593 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir
=.
4600 for ac_exec_ext
in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_aros_host_ar
="ar cr"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 aros_host_ar
=$ac_cv_prog_aros_host_ar
4613 if test -n "$aros_host_ar"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4615 $as_echo "$aros_host_ar" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4622 if test "$aros_host_ar" = ""; then
4623 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4625 # Extract the first word of "ranlib", so it can be a program name with args.
4626 set dummy ranlib
; ac_word
=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$aros_host_ranlib"; then
4633 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir
=.
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_aros_host_ranlib
="ranlib "
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4653 if test -n "$aros_host_ranlib"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4655 $as_echo "$aros_host_ranlib" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 if test "$aros_host_ranlib" = ""; then
4663 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4665 # Extract the first word of "strip", so it can be a program name with args.
4666 set dummy strip
; ac_word
=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -n "$aros_host_strip"; then
4673 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir
=.
4680 for ac_exec_ext
in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_aros_host_strip
="strip "
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 aros_host_strip
=$ac_cv_prog_aros_host_strip
4693 if test -n "$aros_host_strip"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4695 $as_echo "$aros_host_strip" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 if test "$aros_host_strip" = ""; then
4703 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4706 # Extract the first word of "rm", so it can be a program name with args.
4707 set dummy
rm; ac_word
=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_RM+:} false
; then :
4711 $as_echo_n "(cached) " >&6
4713 if test -n "$RM"; then
4714 ac_cv_prog_RM
="$RM" # Let the user override the test.
4716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir
=.
4721 for ac_exec_ext
in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_RM
="rm -rf"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 if test -n "$RM"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4736 $as_echo "$RM" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4743 if test "$RM" = ""; then
4744 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4746 # Extract the first word of "cp", so it can be a program name with args.
4747 set dummy
cp; ac_word
=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_CP+:} false
; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$CP"; then
4754 ac_cv_prog_CP
="$CP" # Let the user override the test.
4756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir
=.
4761 for ac_exec_ext
in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 if test -n "$CP"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4776 $as_echo "$CP" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 if test "$CP" = ""; then
4784 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4786 # Extract the first word of "mv", so it can be a program name with args.
4787 set dummy
mv; ac_word
=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_MV+:} false
; then :
4791 $as_echo_n "(cached) " >&6
4793 if test -n "$MV"; then
4794 ac_cv_prog_MV
="$MV" # Let the user override the test.
4796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir
=.
4801 for ac_exec_ext
in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 if test -n "$MV"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4816 $as_echo "$MV" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4823 if test "$MV" = ""; then
4824 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4826 # Extract the first word of "echo", so it can be a program name with args.
4827 set dummy
echo; ac_word
=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_ECHO+:} false
; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$ECHO"; then
4834 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir
=.
4841 for ac_exec_ext
in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ECHO
="echo "
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ECHO
=$ac_cv_prog_ECHO
4854 if test -n "$ECHO"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4856 $as_echo "$ECHO" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 if test "$ECHO" = ""; then
4864 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4866 # Extract the first word of "mkdir", so it can be a program name with args.
4867 set dummy mkdir
; ac_word
=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_MKDIR+:} false
; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$MKDIR"; then
4874 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir
=.
4881 for ac_exec_ext
in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_MKDIR
="mkdir -p"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 MKDIR
=$ac_cv_prog_MKDIR
4894 if test -n "$MKDIR"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4896 $as_echo "$MKDIR" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 if test "$MKDIR" = ""; then
4904 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4906 # Extract the first word of "touch", so it can be a program name with args.
4907 set dummy
touch; ac_word
=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_TOUCH+:} false
; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -n "$TOUCH"; then
4914 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_TOUCH
="touch "
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 TOUCH
=$ac_cv_prog_TOUCH
4934 if test -n "$TOUCH"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4936 $as_echo "$TOUCH" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 if test "$TOUCH" = ""; then
4944 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4946 # Extract the first word of "sort", so it can be a program name with args.
4947 set dummy
sort; ac_word
=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_SORT+:} false
; then :
4951 $as_echo_n "(cached) " >&6
4953 if test -n "$SORT"; then
4954 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir
=.
4961 for ac_exec_ext
in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_SORT
="sort "
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 SORT
=$ac_cv_prog_SORT
4974 if test -n "$SORT"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4976 $as_echo "$SORT" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 if test "$SORT" = ""; then
4984 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4986 # Extract the first word of "uniq", so it can be a program name with args.
4987 set dummy
uniq; ac_word
=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_UNIQ+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 if test -n "$UNIQ"; then
4994 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir
=.
5001 for ac_exec_ext
in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_UNIQ
="uniq "
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 UNIQ
=$ac_cv_prog_UNIQ
5014 if test -n "$UNIQ"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5016 $as_echo "$UNIQ" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 if test "$UNIQ" = ""; then
5024 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5026 # Extract the first word of "true", so it can be a program name with args.
5027 set dummy true
; ac_word
=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_NOP+:} false
; then :
5031 $as_echo_n "(cached) " >&6
5033 if test -n "$NOP"; then
5034 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir
=.
5041 for ac_exec_ext
in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_NOP
="true "
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 if test -n "$NOP"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5056 $as_echo "$NOP" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 if test "$NOP" = ""; then
5064 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5066 # Extract the first word of "cat", so it can be a program name with args.
5067 set dummy
cat; ac_word
=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CAT+:} false
; then :
5071 $as_echo_n "(cached) " >&6
5073 if test -n "$CAT"; then
5074 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CAT
="cat "
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 if test -n "$CAT"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5096 $as_echo "$CAT" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 if test "$CAT" = ""; then
5104 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5106 # Extract the first word of "bison", so it can be a program name with args.
5107 set dummy bison
; ac_word
=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_BISON+:} false
; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -n "$BISON"; then
5114 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir
=.
5121 for ac_exec_ext
in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_BISON
="bison "
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 BISON
=$ac_cv_prog_BISON
5134 if test -n "$BISON"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5136 $as_echo "$BISON" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 if test "$BISON" = ""; then
5144 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "flex", so it can be a program name with args.
5147 set dummy flex
; ac_word
=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_FLEX+:} false
; then :
5151 $as_echo_n "(cached) " >&6
5153 if test -n "$FLEX"; then
5154 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir
=.
5161 for ac_exec_ext
in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_FLEX
="flex "
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 FLEX
=$ac_cv_prog_FLEX
5174 if test -n "$FLEX"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5176 $as_echo "$FLEX" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 if test "$FLEX" = ""; then
5184 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "pngtopnm", so it can be a program name with args.
5187 set dummy pngtopnm
; ac_word
=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$PNGTOPNM"; then
5194 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir
=.
5201 for ac_exec_ext
in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_PNGTOPNM
="pngtopnm "
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5214 if test -n "$PNGTOPNM"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5216 $as_echo "$PNGTOPNM" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 if test "$PNGTOPNM" = ""; then
5224 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5227 set dummy ppmtoilbm
; ac_word
=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$PPMTOILBM"; then
5234 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir
=.
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5254 if test -n "$PPMTOILBM"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5256 $as_echo "$PPMTOILBM" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 if test "$PPMTOILBM" = ""; then
5264 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "sed", so it can be a program name with args.
5267 set dummy
sed; ac_word
=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_SED+:} false
; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$SED"; then
5274 ac_cv_prog_SED
="$SED" # Let the user override the test.
5276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir
=.
5281 for ac_exec_ext
in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_SED
="sed "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$SED"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5296 $as_echo "$SED" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 if test "$SED" = ""; then
5304 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5306 # Extract the first word of "chmod", so it can be a program name with args.
5307 set dummy
chmod; ac_word
=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_CHMOD+:} false
; then :
5311 $as_echo_n "(cached) " >&6
5313 if test -n "$CHMOD"; then
5314 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir
=.
5321 for ac_exec_ext
in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_prog_CHMOD
="chmod "
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 CHMOD
=$ac_cv_prog_CHMOD
5334 if test -n "$CHMOD"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5336 $as_echo "$CHMOD" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 if test "$CHMOD" = ""; then
5344 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5346 # Extract the first word of "patch", so it can be a program name with args.
5347 set dummy
patch; ac_word
=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_PATCH+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$PATCH"; then
5354 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir
=.
5361 for ac_exec_ext
in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_PATCH
="patch "
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 PATCH
=$ac_cv_prog_PATCH
5374 if test -n "$PATCH"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5376 $as_echo "$PATCH" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 if test "$PATCH" = ""; then
5384 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5391 if test -n "$PYTHON"; then
5392 # If the user set $PYTHON, use it and don't search something else.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5394 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5395 prog
="import sys, string
5396 # split strings by '.' and convert to numeric. Append some zeros
5397 # because we need at least 4 digits for the hex conversion.
5398 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5400 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5401 sys.exit(sys.hexversion < minverhex)"
5402 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5403 ($PYTHON -c "$prog") >&5 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5410 as_fn_error $?
"too old" "$LINENO" 5
5412 am_display_PYTHON
=$PYTHON
5414 # Otherwise, try each interpreter until we find one that satisfies
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5417 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5418 if ${am_cv_pathless_PYTHON+:} false
; then :
5419 $as_echo_n "(cached) " >&6
5422 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
5423 test "$am_cv_pathless_PYTHON" = none
&& break
5424 prog
="import sys, string
5425 # split strings by '.' and convert to numeric. Append some zeros
5426 # because we need at least 4 digits for the hex conversion.
5427 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5429 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5430 sys.exit(sys.hexversion < minverhex)"
5431 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5432 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; then :
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5441 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5442 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5443 if test "$am_cv_pathless_PYTHON" = none
; then
5446 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5447 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_path_PYTHON+:} false
; then :
5451 $as_echo_n "(cached) " >&6
5455 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir
=.
5463 for ac_exec_ext
in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 PYTHON
=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5487 am_display_PYTHON
=$am_cv_pathless_PYTHON
5491 if test "$PYTHON" = :; then
5492 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5497 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5498 if ${am_cv_python_version+:} false
; then :
5499 $as_echo_n "(cached) " >&6
5501 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5504 $as_echo "$am_cv_python_version" >&6; }
5505 PYTHON_VERSION
=$am_cv_python_version
5509 PYTHON_PREFIX
='${prefix}'
5511 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5516 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5517 if ${am_cv_python_platform+:} false
; then :
5518 $as_echo_n "(cached) " >&6
5520 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5523 $as_echo "$am_cv_python_platform" >&6; }
5524 PYTHON_PLATFORM
=$am_cv_python_platform
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5530 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5531 if ${am_cv_python_pythondir+:} false
; then :
5532 $as_echo_n "(cached) " >&6
5534 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5535 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5538 $as_echo "$am_cv_python_pythondir" >&6; }
5539 pythondir
=$am_cv_python_pythondir
5543 pkgpythondir
=\
${pythondir}/$PACKAGE
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5547 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5548 if ${am_cv_python_pyexecdir+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5552 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5555 $as_echo "$am_cv_python_pyexecdir" >&6; }
5556 pyexecdir
=$am_cv_python_pyexecdir
5560 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5578 # Check for some includes for the X11 HIDD and the kernel
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5583 if ${ac_cv_path_GREP+:} false
; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -z "$GREP"; then
5587 ac_path_GREP_found
=false
5588 # Loop through the user's path and test for each of PROGNAME-LIST
5589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5590 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5593 test -z "$as_dir" && as_dir
=.
5594 for ac_prog
in grep ggrep
; do
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5597 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5598 # Check for GNU ac_path_GREP and select it if it is found.
5599 # Check for GNU $ac_path_GREP
5600 case `"$ac_path_GREP" --version 2>&1` in
5602 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5605 $as_echo_n 0123456789 >"conftest.in"
5608 cat "conftest.in" "conftest.in" >"conftest.tmp"
5609 mv "conftest.tmp" "conftest.in"
5610 cp "conftest.in" "conftest.nl"
5611 $as_echo 'GREP' >> "conftest.nl"
5612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5613 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5614 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5616 # Best one so far, save it but keep looking for a better one
5617 ac_cv_path_GREP
="$ac_path_GREP"
5618 ac_path_GREP_max
=$ac_count
5620 # 10*(2^10) chars as input seems more than enough
5621 test $ac_count -gt 10 && break
5623 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5626 $ac_path_GREP_found && break 3
5631 if test -z "$ac_cv_path_GREP"; then
5632 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5635 ac_cv_path_GREP
=$GREP
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5640 $as_echo "$ac_cv_path_GREP" >&6; }
5641 GREP
="$ac_cv_path_GREP"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5645 $as_echo_n "checking for egrep... " >&6; }
5646 if ${ac_cv_path_EGREP+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5650 then ac_cv_path_EGREP
="$GREP -E"
5652 if test -z "$EGREP"; then
5653 ac_path_EGREP_found
=false
5654 # Loop through the user's path and test for each of PROGNAME-LIST
5655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5659 test -z "$as_dir" && as_dir
=.
5660 for ac_prog
in egrep; do
5661 for ac_exec_ext
in '' $ac_executable_extensions; do
5662 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5663 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5664 # Check for GNU ac_path_EGREP and select it if it is found.
5665 # Check for GNU $ac_path_EGREP
5666 case `"$ac_path_EGREP" --version 2>&1` in
5668 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5671 $as_echo_n 0123456789 >"conftest.in"
5674 cat "conftest.in" "conftest.in" >"conftest.tmp"
5675 mv "conftest.tmp" "conftest.in"
5676 cp "conftest.in" "conftest.nl"
5677 $as_echo 'EGREP' >> "conftest.nl"
5678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5679 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5680 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5682 # Best one so far, save it but keep looking for a better one
5683 ac_cv_path_EGREP
="$ac_path_EGREP"
5684 ac_path_EGREP_max
=$ac_count
5686 # 10*(2^10) chars as input seems more than enough
5687 test $ac_count -gt 10 && break
5689 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5692 $ac_path_EGREP_found && break 3
5697 if test -z "$ac_cv_path_EGREP"; then
5698 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5701 ac_cv_path_EGREP
=$EGREP
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5707 $as_echo "$ac_cv_path_EGREP" >&6; }
5708 EGREP
="$ac_cv_path_EGREP"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5712 $as_echo_n "checking for ANSI C header files... " >&6; }
5713 if ${ac_cv_header_stdc+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5731 if ac_fn_c_try_compile
"$LINENO"; then :
5732 ac_cv_header_stdc
=yes
5734 ac_cv_header_stdc
=no
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 if test $ac_cv_header_stdc = yes; then
5739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "memchr" >/dev
/null
2>&1; then :
5749 ac_cv_header_stdc
=no
5755 if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "free" >/dev
/null
2>&1; then :
5766 ac_cv_header_stdc
=no
5772 if test $ac_cv_header_stdc = yes; then
5773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5774 if test "$cross_compiling" = yes; then :
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5785 # define ISLOWER(c) \
5786 (('a' <= (c) && (c) <= 'i') \
5787 || ('j' <= (c) && (c) <= 'r') \
5788 || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5797 for (i = 0; i < 256; i++)
5798 if (XOR (islower (i), ISLOWER (i))
5799 || toupper (i) != TOUPPER (i))
5804 if ac_fn_c_try_run
"$LINENO"; then :
5807 ac_cv_header_stdc
=no
5809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5816 $as_echo "$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5824 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5825 inttypes.h stdint.h unistd.h
5827 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5828 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5830 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5831 cat >>confdefs.h
<<_ACEOF
5832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5840 for ac_header
in sys
/ipc.h sys
/shm.h \
5841 sys
/mmap.h sys
/mman.h sysexits.h \
5842 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5845 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5846 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5847 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5848 cat >>confdefs.h
<<_ACEOF
5849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5857 for ac_header
in sys
/mount.h
5859 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5861 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
5862 cat >>confdefs.h
<<_ACEOF
5863 #define HAVE_SYS_MOUNT_H 1
5872 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5873 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5875 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5876 if eval \
${$as_ac_Header+:} false
; then :
5877 $as_echo_n "(cached) " >&6
5879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5893 if ac_fn_c_try_compile
"$LINENO"; then :
5894 eval "$as_ac_Header=yes"
5896 eval "$as_ac_Header=no"
5898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 eval ac_res
=\$
$as_ac_Header
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5902 $as_echo "$ac_res" >&6; }
5903 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5904 cat >>confdefs.h
<<_ACEOF
5905 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5908 ac_header_dirent
=$ac_hdr; break
5912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5913 if test $ac_header_dirent = dirent.h
; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5915 $as_echo_n "checking for library containing opendir... " >&6; }
5916 if ${ac_cv_search_opendir+:} false
; then :
5917 $as_echo_n "(cached) " >&6
5919 ac_func_search_save_LIBS
=$LIBS
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5938 for ac_lib
in '' dir
; do
5939 if test -z "$ac_lib"; then
5940 ac_res
="none required"
5943 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5945 if ac_fn_c_try_link
"$LINENO"; then :
5946 ac_cv_search_opendir
=$ac_res
5948 rm -f core conftest.err conftest.
$ac_objext \
5950 if ${ac_cv_search_opendir+:} false
; then :
5954 if ${ac_cv_search_opendir+:} false
; then :
5957 ac_cv_search_opendir
=no
5960 LIBS
=$ac_func_search_save_LIBS
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5963 $as_echo "$ac_cv_search_opendir" >&6; }
5964 ac_res
=$ac_cv_search_opendir
5965 if test "$ac_res" != no
; then :
5966 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5972 $as_echo_n "checking for library containing opendir... " >&6; }
5973 if ${ac_cv_search_opendir+:} false
; then :
5974 $as_echo_n "(cached) " >&6
5976 ac_func_search_save_LIBS
=$LIBS
5977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5995 for ac_lib
in '' x
; do
5996 if test -z "$ac_lib"; then
5997 ac_res
="none required"
6000 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6002 if ac_fn_c_try_link
"$LINENO"; then :
6003 ac_cv_search_opendir
=$ac_res
6005 rm -f core conftest.err conftest.
$ac_objext \
6007 if ${ac_cv_search_opendir+:} false
; then :
6011 if ${ac_cv_search_opendir+:} false
; then :
6014 ac_cv_search_opendir
=no
6017 LIBS
=$ac_func_search_save_LIBS
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6020 $as_echo "$ac_cv_search_opendir" >&6; }
6021 ac_res
=$ac_cv_search_opendir
6022 if test "$ac_res" != no
; then :
6023 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6030 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6031 if ${ac_cv_header_stat_broken+:} false
; then :
6032 $as_echo_n "(cached) " >&6
6034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #include <sys/types.h>
6037 #include <sys/stat.h>
6039 #if defined S_ISBLK && defined S_IFDIR
6040 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6043 #if defined S_ISBLK && defined S_IFCHR
6044 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6047 #if defined S_ISLNK && defined S_IFREG
6048 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6051 #if defined S_ISSOCK && defined S_IFREG
6052 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6056 if ac_fn_c_try_compile
"$LINENO"; then :
6057 ac_cv_header_stat_broken
=no
6059 ac_cv_header_stat_broken
=yes
6061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6064 $as_echo "$ac_cv_header_stat_broken" >&6; }
6065 if test $ac_cv_header_stat_broken = yes; then
6067 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6072 $as_echo_n "checking for ANSI C header files... " >&6; }
6073 if ${ac_cv_header_stdc+:} false
; then :
6074 $as_echo_n "(cached) " >&6
6076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6091 if ac_fn_c_try_compile
"$LINENO"; then :
6092 ac_cv_header_stdc
=yes
6094 ac_cv_header_stdc
=no
6096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6098 if test $ac_cv_header_stdc = yes; then
6099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6106 $EGREP "memchr" >/dev
/null
2>&1; then :
6109 ac_cv_header_stdc
=no
6115 if test $ac_cv_header_stdc = yes; then
6116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "free" >/dev
/null
2>&1; then :
6126 ac_cv_header_stdc
=no
6132 if test $ac_cv_header_stdc = yes; then
6133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6134 if test "$cross_compiling" = yes; then :
6137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6141 #if ((' ' & 0x0FF) == 0x020)
6142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6145 # define ISLOWER(c) \
6146 (('a' <= (c) && (c) <= 'i') \
6147 || ('j' <= (c) && (c) <= 'r') \
6148 || ('s' <= (c) && (c) <= 'z'))
6149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6157 for (i = 0; i < 256; i++)
6158 if (XOR (islower (i), ISLOWER (i))
6159 || toupper (i) != TOUPPER (i))
6164 if ac_fn_c_try_run
"$LINENO"; then :
6167 ac_cv_header_stdc
=no
6169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6176 $as_echo "$ac_cv_header_stdc" >&6; }
6177 if test $ac_cv_header_stdc = yes; then
6179 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6184 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6185 if ${ac_cv_header_sys_wait_h+:} false
; then :
6186 $as_echo_n "(cached) " >&6
6188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 #include <sys/wait.h>
6193 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6196 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6204 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6209 if ac_fn_c_try_compile
"$LINENO"; then :
6210 ac_cv_header_sys_wait_h
=yes
6212 ac_cv_header_sys_wait_h
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6217 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6218 if test $ac_cv_header_sys_wait_h = yes; then
6220 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6225 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6226 if ${ac_cv_header_time+:} false
; then :
6227 $as_echo_n "(cached) " >&6
6229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 #include <sys/types.h>
6232 #include <sys/time.h>
6238 if ((struct tm *) 0)
6244 if ac_fn_c_try_compile
"$LINENO"; then :
6245 ac_cv_header_time
=yes
6247 ac_cv_header_time
=no
6249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6252 $as_echo "$ac_cv_header_time" >&6; }
6253 if test $ac_cv_header_time = yes; then
6255 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6259 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6260 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6262 cat >>confdefs.h
<<_ACEOF
6263 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6267 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6272 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6273 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6275 cat >>confdefs.h
<<_ACEOF
6276 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6280 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6283 case " $LIBOBJS " in
6284 *" fileblocks.$ac_objext "* ) ;;
6285 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6292 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6293 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6295 cat >>confdefs.h
<<_ACEOF
6296 #define HAVE_STRUCT_STAT_ST_RDEV 1
6300 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6306 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6307 if ${ac_cv_struct_tm+:} false
; then :
6308 $as_echo_n "(cached) " >&6
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6319 int *p = &tm.tm_sec;
6325 if ac_fn_c_try_compile
"$LINENO"; then :
6326 ac_cv_struct_tm
=time.h
6328 ac_cv_struct_tm
=sys
/time.h
6330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6333 $as_echo "$ac_cv_struct_tm" >&6; }
6334 if test $ac_cv_struct_tm = sys
/time.h
; then
6336 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6340 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6341 #include <$ac_cv_struct_tm>
6344 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6346 cat >>confdefs.h
<<_ACEOF
6347 #define HAVE_STRUCT_TM_TM_ZONE 1
6353 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6355 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6358 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6360 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6366 cat >>confdefs.h
<<_ACEOF
6367 #define HAVE_DECL_TZNAME $ac_have_decl
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6371 $as_echo_n "checking for tzname... " >&6; }
6372 if ${ac_cv_var_tzname+:} false
; then :
6373 $as_echo_n "(cached) " >&6
6375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6378 #if !HAVE_DECL_TZNAME
6379 extern char *tzname[];
6385 return tzname[0][0];
6390 if ac_fn_c_try_link
"$LINENO"; then :
6391 ac_cv_var_tzname
=yes
6395 rm -f core conftest.err conftest.
$ac_objext \
6396 conftest
$ac_exeext conftest.
$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6399 $as_echo "$ac_cv_var_tzname" >&6; }
6400 if test $ac_cv_var_tzname = yes; then
6402 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6407 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6408 if test "x$ac_cv_type_off_t" = xyes
; then :
6412 cat >>confdefs.h
<<_ACEOF
6413 #define off_t long int
6418 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6419 if test "x$ac_cv_type_pid_t" = xyes
; then :
6423 cat >>confdefs.h
<<_ACEOF
6429 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6430 if test "x$ac_cv_type_size_t" = xyes
; then :
6434 cat >>confdefs.h
<<_ACEOF
6435 #define size_t unsigned int
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6441 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6442 if ${ac_cv_type_uid_t+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <sys/types.h>
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451 $EGREP "uid_t" >/dev
/null
2>&1; then :
6452 ac_cv_type_uid_t
=yes
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6460 $as_echo "$ac_cv_type_uid_t" >&6; }
6461 if test $ac_cv_type_uid_t = no
; then
6463 $as_echo "#define uid_t int" >>confdefs.h
6466 $as_echo "#define gid_t int" >>confdefs.h
6471 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6472 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6474 cat >>confdefs.h
<<_ACEOF
6475 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6482 # Look for some functions
6483 for ac_func
in getpagesize kqueue statfs statvfs \
6484 clone kse_create rfork_thread thr_create sa_register \
6485 getcontext makecontext setcontext sigaltstack swapcontext
6487 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6488 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6489 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6490 cat >>confdefs.h
<<_ACEOF
6491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6501 for ac_header
in $ac_header_list
6503 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6506 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6507 cat >>confdefs.h
<<_ACEOF
6508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 for ac_func
in getpagesize
6524 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6525 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6526 cat >>confdefs.h
<<_ACEOF
6527 #define HAVE_GETPAGESIZE 1
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6534 $as_echo_n "checking for working mmap... " >&6; }
6535 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6536 $as_echo_n "(cached) " >&6
6538 if test "$cross_compiling" = yes; then :
6539 ac_cv_func_mmap_fixed_mapped
=no
6541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 /* malloc might have been renamed as rpl_malloc. */
6547 /* Thanks to Mike Haertel and Jim Avera for this test.
6548 Here is a matrix of mmap possibilities:
6549 mmap private not fixed
6550 mmap private fixed at somewhere currently unmapped
6551 mmap private fixed at somewhere already mapped
6552 mmap shared not fixed
6553 mmap shared fixed at somewhere currently unmapped
6554 mmap shared fixed at somewhere already mapped
6555 For private mappings, we should verify that changes cannot be read()
6556 back from the file, nor mmap's back from the file at a different
6557 address. (There have been systems where private was not correctly
6558 implemented like the infamous i386 svr4.0, and systems where the
6559 VM page cache was not coherent with the file system buffer cache
6560 like early versions of FreeBSD and possibly contemporary NetBSD.)
6561 For shared mappings, we should conversely verify that changes get
6562 propagated back to all the places they're supposed to be.
6564 Grep wants private fixed already mapped.
6565 The main things grep needs to know about mmap are:
6566 * does it exist and is it safe to write into the mmap'd area
6567 * how to use it (BSD variants) */
6570 #include <sys/mman.h>
6572 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6576 /* This mess was copied from the GNU getpagesize.h. */
6577 #ifndef HAVE_GETPAGESIZE
6578 # ifdef _SC_PAGESIZE
6579 # define getpagesize() sysconf(_SC_PAGESIZE)
6580 # else /* no _SC_PAGESIZE */
6581 # ifdef HAVE_SYS_PARAM_H
6582 # include <sys/param.h>
6583 # ifdef EXEC_PAGESIZE
6584 # define getpagesize() EXEC_PAGESIZE
6585 # else /* no EXEC_PAGESIZE */
6587 # define getpagesize() NBPG * CLSIZE
6590 # endif /* no CLSIZE */
6591 # else /* no NBPG */
6593 # define getpagesize() NBPC
6594 # else /* no NBPC */
6596 # define getpagesize() PAGESIZE
6597 # endif /* PAGESIZE */
6598 # endif /* no NBPC */
6599 # endif /* no NBPG */
6600 # endif /* no EXEC_PAGESIZE */
6601 # else /* no HAVE_SYS_PARAM_H */
6602 # define getpagesize() 8192 /* punt totally */
6603 # endif /* no HAVE_SYS_PARAM_H */
6604 # endif /* no _SC_PAGESIZE */
6606 #endif /* no HAVE_GETPAGESIZE */
6611 char *data, *data2, *data3;
6616 pagesize = getpagesize ();
6618 /* First, make a file with some known garbage in it. */
6619 data = (char *) malloc (pagesize);
6622 for (i = 0; i < pagesize; ++i)
6623 *(data + i) = rand ();
6625 fd = creat ("conftest.mmap", 0600);
6628 if (write (fd, data, pagesize) != pagesize)
6632 /* Next, check that the tail of a page is zero-filled. File must have
6633 non-zero length, otherwise we risk SIGBUS for entire page. */
6634 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6638 if (write (fd2, cdata2, 1) != 1)
6640 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6641 if (data2 == MAP_FAILED)
6643 for (i = 0; i < pagesize; ++i)
6647 if (munmap (data2, pagesize))
6650 /* Next, try to mmap the file at a fixed address which already has
6651 something else allocated at it. If we can, also make sure that
6652 we see the same garbage. */
6653 fd = open ("conftest.mmap", O_RDWR);
6656 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6657 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6659 for (i = 0; i < pagesize; ++i)
6660 if (*(data + i) != *(data2 + i))
6663 /* Finally, make sure that changes to the mapped area do not
6664 percolate back to the file as seen by read(). (This is a bug on
6665 some variants of i386 svr4.0.) */
6666 for (i = 0; i < pagesize; ++i)
6667 *(data2 + i) = *(data2 + i) + 1;
6668 data3 = (char *) malloc (pagesize);
6671 if (read (fd, data3, pagesize) != pagesize)
6673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data3 + i))
6680 if ac_fn_c_try_run
"$LINENO"; then :
6681 ac_cv_func_mmap_fixed_mapped
=yes
6683 ac_cv_func_mmap_fixed_mapped
=no
6685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6691 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6692 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6694 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6697 rm -f conftest.mmap conftest.txt
6702 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
6703 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
6704 aros_config_ldflags
=""
6706 aros_shared_default
=yes
6708 aros_shared_cflags
="-fPIC"
6709 aros_shared_aflags
=""
6710 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
6711 aros_kernel_ldflags
="-Wl,-rpath,./lib"
6713 aros_kernel_ar_flags
="cr"
6714 aros_target_ar_flags
="cr"
6715 aros_target_nm_flags
="-C -ul"
6716 aros_target_strip_flags
="--strip-unneeded -R.comment"
6721 aros_target_genmap
="-Wl,-Map -Xlinker"
6723 # Native flavour stuff
6724 aros_serial_debug
="0"
6726 # Palm native flavour stuff
6727 aros_palm_debug_hack
="0"
6729 # Unix flavour stuff
6730 aros_nesting_supervisor
="0"
6732 # Collect-aros stuff: "-ius" to ignore undefined symbols
6733 ignore_undefined_symbols
=""
6735 # Check for X11 by default
6738 #-----------------------------------------------------------------------------
6741 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6742 # it switched on by default, and we use the host compiler, so it compiles AROS
6743 # code with this enabled resulting in link failures as we don't have support
6746 # We use two methods to disable it. For the host compiler (used to compile
6747 # some hosted modules), we test to see if the compiler supports stack
6748 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6749 # work on all platforms.
6751 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6752 # (this is done unconditionally, as it should have no effect on compilers
6753 # without the stack protection feature). This may be specific to the way that
6754 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6755 # strong enough to disable it in a generic way though, so we'll live with it
6756 # until another vendor ships GCC with it enabled in a different way, and deal
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6761 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6762 save_cflags
="$CFLAGS"
6763 CFLAGS
="$CFLAGS -fno-stack-protector"
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 use_no_stack_protector
="yes"
6778 use_no_stack_protector
="no"
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6782 $as_echo "$use_no_stack_protector" >&6; }
6783 if test "x-$use_no_stack_protector" = "x-yes" ; then
6784 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
6786 CFLAGS
="$save_cflags"
6788 #-----------------------------------------------------------------------------
6790 # Disable pointer-signedness warnings if the compiler recognises the option
6791 # (this only works for the host compiler at the moment)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6794 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6795 save_cflags
="$CFLAGS"
6796 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6808 if ac_fn_c_try_compile
"$LINENO"; then :
6809 use_no_sign_warning
="yes"
6811 use_no_sign_warning
="no"
6813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6815 $as_echo "$use_no_sign_warning" >&6; }
6816 if test "x-$use_no_sign_warning" = "x-yes" ; then
6817 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
6819 CFLAGS
="$save_cflags"
6821 #-----------------------------------------------------------------------------
6823 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6826 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6827 save_cflags
="$CFLAGS"
6828 CFLAGS
="$CFLAGS -fgnu89-inline"
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6840 if ac_fn_c_try_compile
"$LINENO"; then :
6841 use_gnu89_inline
="yes"
6843 use_gnu89_inline
="no"
6845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6847 $as_echo "$use_gnu89_inline" >&6; }
6848 if test "x-$use_gnu89_inline" = "x-yes" ; then
6849 gnu89_inline
="-fgnu89-inline"
6851 CFLAGS
="$save_cflags"
6853 #-----------------------------------------------------------------------------
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6856 $as_echo_n "checking for type of build... " >&6; }
6857 # Check whether --enable-build_type was given.
6858 if test "${enable_build_type+set}" = set; then :
6859 enableval
=$enable_build_type; build_type
=$enableval
6861 build_type
="personal"
6865 if test "$build_type" = "nightly"; then
6866 build_type_string
="NIGHTLY"
6867 elif test "$build_type" = "snapshot"; then
6868 build_type_string
="SNAPSHOT"
6869 elif test "$build_type" = "milestone"; then
6870 build_type_string
="MILESTONE"
6871 elif test "$build_type" = "release"; then
6872 build_type_string
="RELEASE"
6874 build_type_string
="PERSONAL"
6875 build_type
="personal"
6878 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6881 $as_echo "$build_type" >&6; }
6883 #-----------------------------------------------------------------------------
6884 all_debug_types
="messages stack modules mungwall symbols"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6887 $as_echo_n "checking which debug types to enable... " >&6; }
6888 # Check whether --enable-debug was given.
6889 if test "${enable_debug+set}" = set; then :
6890 enableval
=$enable_debug; debug
="$enableval"
6896 if test "$debug" = "" -o "$debug" = "no"; then
6898 elif test "$debug" = "yes"; then
6902 if test "$debug" = "all" ; then
6903 debug
="messages stack modules symbols"
6904 for d
in $all_debug_types; do
6905 export aros_
${d}_debug
="1"
6908 for d
in $all_debug_types; do
6909 export aros_
${d}_debug
="0"
6913 if test "$debug" != "none"; then
6914 debug
=`echo $debug | sed s/,/\ /g`
6917 for d2
in $all_debug_types; do
6918 if test "$d2" = "$d"; then
6923 if test "$found" = "0"; then
6924 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6926 export aros_
${d}_debug
="1"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6931 $as_echo "$debug" >&6; }
6933 if test "$aros_messages_debug" = "1"; then
6934 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
6936 aros_messages_debug
=""
6938 if test "$aros_symbols_debug" = "1"; then
6939 aros_symbols_debug
="-g"
6941 aros_symbols_debug
=""
6944 # These are the flags to pass when compiling debugged programs
6945 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
6946 aros_debug_aflags
=""
6947 aros_debug_ldflags
="$aros_symbols_debug"
6949 #-----------------------------------------------------------------------------
6950 # Checking if we should build crosstools..
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6952 $as_echo_n "checking whether to build crosstools... " >&6; }
6953 # Check whether --enable-crosstools was given.
6954 if test "${enable_crosstools+set}" = set; then :
6955 enableval
=$enable_crosstools; crosstools
="$enableval"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6961 $as_echo "$crosstools" >&6; }
6963 #-----------------------------------------------------------------------------
6964 # Checking for distcc and ccache.
6966 # Always apply the transforms in this particular order. Basically you should
6967 # always run 'ccache distcc compiler' in that order for the best performance.
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6970 $as_echo_n "checking whether to enable distcc... " >&6; }
6971 # Check whether --enable-distcc was given.
6972 if test "${enable_distcc+set}" = set; then :
6973 enableval
=$enable_distcc; distcc
="$enableval"
6978 if test "$distcc" != "" -a "$distcc" != "no"; then
6979 # AC_CHECK_PROG will print out the result in this case
6980 # Extract the first word of "distcc", so it can be a program name with args.
6981 set dummy distcc
; ac_word
=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_path_DISTCC+:} false
; then :
6985 $as_echo_n "(cached) " >&6
6989 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
6992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir
=.
6997 for ac_exec_ext
in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7011 DISTCC
=$ac_cv_path_DISTCC
7012 if test -n "$DISTCC"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7014 $as_echo "$DISTCC" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7027 $as_echo_n "checking whether to enable ccache... " >&6; }
7028 # Check whether --enable-ccache was given.
7029 if test "${enable_ccache+set}" = set; then :
7030 enableval
=$enable_ccache; ccache
="$enableval"
7035 if test "$ccache" != "" -a "$ccache" != "no"; then
7036 # AC_CHECK_PROG will print out the result in this case
7037 # Extract the first word of "ccache", so it can be a program name with args.
7038 set dummy ccache
; ac_word
=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_CCACHE+:} false
; then :
7042 $as_echo_n "(cached) " >&6
7044 if test -n "$CCACHE"; then
7045 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir
=.
7052 for ac_exec_ext
in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_CCACHE
="ccache"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 CCACHE
=$ac_cv_prog_CCACHE
7065 if test -n "$CCACHE"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7067 $as_echo "$CCACHE" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7079 #-----------------------------------------------------------------------------
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7081 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7083 # Check whether --with-gcc-version was given.
7084 if test "${with_gcc_version+set}" = set; then :
7085 withval
=$with_gcc_version; kernel_tool_version
="$withval"
7087 kernel_tool_version
="default"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7091 $as_echo "$kernel_tool_version" >&6; }
7093 #-----------------------------------------------------------------------------
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7095 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7097 # Check whether --with-gcc-version was given.
7098 if test "${with_gcc_version+set}" = set; then :
7099 withval
=$with_gcc_version; target_tool_version
="$withval"
7101 target_tool_version
="default"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7105 $as_echo "$target_tool_version" >&6; }
7107 #-----------------------------------------------------------------------------
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7109 $as_echo_n "checking what optimization flags to use... " >&6; }
7111 # Check whether --with-optimization was given.
7112 if test "${with_optimization+set}" = set; then :
7113 withval
=$with_optimization; optimization
="$withval"
7115 optimization
="unknown"
7118 if test "$optimization" = "unknown"; then
7119 if test "$debug" != "none"; then
7125 aros_config_cflags
="$aros_config_cflags $optimization"
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7127 $as_echo "$optimization" >&6; }
7129 #-----------------------------------------------------------------------------
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7131 $as_echo_n "checking what paranoia flags to use... " >&6; }
7133 # Check whether --with-paranoia was given.
7134 if test "${with_paranoia+set}" = set; then :
7135 withval
=$with_paranoia; paranoia_flags
="$withval"
7137 paranoia_flags
="default"
7140 if test "$paranoia_flags" = "default"; then
7142 else if test "$paranoia_flags" = "yes"; then
7143 paranoia_flags
="-Wall -Werror"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7146 $as_echo "$paranoia_flags" >&6; }
7147 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7149 #-----------------------------------------------------------------------------
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7151 $as_echo_n "checking what target variant to enable... " >&6; }
7152 # Check whether --enable-target_variant was given.
7153 if test "${enable_target_variant+set}" = set; then :
7154 enableval
=$enable_target_variant; target_variant
=$enableval
7159 if test "$target_variant" = ""; then
7160 aros_target_variant
=""
7161 aros_target_suffix
=""
7164 aros_target_variant
="$target_variant"
7165 aros_target_suffix
="-$target_variant"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7168 $as_echo "$enableval" >&6; }
7170 #-----------------------------------------------------------------------------
7171 # Target-specific defaults. You can override then on a per-target basis.
7173 # Bootloader name. Currently used by PC target.
7174 target_bootloader
="none"
7176 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7177 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7178 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7179 if test "$crosstools" != "yes"; then
7180 target_tool_prefix
=${target_cpu}-elf-
7182 target_tool_prefix
=${target_cpu}-aros-
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Target tool prefix" >&5
7185 $as_echo_n "checking Target tool prefix... " >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
7187 $as_echo "$target_tool_prefix" >&6; }
7189 #-----------------------------------------------------------------------------
7190 # Additional options for some specific targets
7192 case "$aros_target_variant" in
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7195 $as_echo_n "checking XCode path... " >&6; }
7197 # Check whether --with-xcode was given.
7198 if test "${with_xcode+set}" = set; then :
7199 withval
=$with_xcode; aros_xcode_path
="$withval"
7201 aros_xcode_path
="/Developer"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7205 $as_echo "$aros_xcode_path" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7208 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7210 # Check whether --with-sdk-version was given.
7211 if test "${with_sdk_version+set}" = set; then :
7212 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7214 aros_sdk_version
="4.1"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7218 $as_echo "$aros_sdk_version" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7224 $as_echo_n "checking Android SDK path... " >&6; }
7226 # Check whether --with-sdk was given.
7227 if test "${with_sdk+set}" = set; then :
7228 withval
=$with_sdk; aros_android_sdk
="$withval"
7230 aros_android_sdk
=$default_android_sdk
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7234 $as_echo "$aros_android_sdk" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7237 $as_echo_n "checking Android NDK path... " >&6; }
7239 # Check whether --with-ndk was given.
7240 if test "${with_ndk+set}" = set; then :
7241 withval
=$with_ndk; aros_android_ndk
="$withval"
7243 aros_android_ndk
="none"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7247 $as_echo "$aros_android_ndk" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7250 $as_echo_n "checking what Android SDK version to use... " >&6; }
7252 # Check whether --with-sdk-version was given.
7253 if test "${with_sdk_version+set}" = set; then :
7254 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7256 aros_sdk_version
="12"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7260 $as_echo "$aros_sdk_version" >&6; }
7262 if test "$aros_android_ndk" != "none"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7264 $as_echo_n "checking what Android NDK version to use... " >&6; }
7266 # Check whether --with-ndk-version was given.
7267 if test "${with_ndk_version+set}" = set; then :
7268 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7270 aros_ndk_version
="9"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7274 $as_echo "$aros_ndk_version" >&6; }
7277 export PATH
="$aros_android_sdk/tools:$PATH"
7278 # Extract the first word of "$android_tool", so it can be a program name with args.
7279 set dummy
$android_tool; ac_word
=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_path_android_tool+:} false
; then :
7283 $as_echo_n "(cached) " >&6
7285 case $android_tool in
7287 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir
=.
7295 for ac_exec_ext
in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 android_tool
=$ac_cv_path_android_tool
7309 if test -n "$android_tool"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7311 $as_echo "$android_tool" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7318 if test "$android_tool" = ""; then
7319 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7322 aros_android_level
=android-
$aros_sdk_version
7323 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7324 echo "Platform $aros_android_level is not installed in your SDK"
7325 echo "Use --with-sdk-version=<API level number> to select another platform version"
7326 echo "You can check what plaform versions are installed in your SDK"
7327 echo "by examining contents of $aros_android_sdk/platforms directory"
7328 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7331 # Extract the first word of "ant", so it can be a program name with args.
7332 set dummy ant
; ac_word
=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_path_ant+:} false
; then :
7336 $as_echo_n "(cached) " >&6
7340 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir
=.
7348 for ac_exec_ext
in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 if test -n "$ant"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7364 $as_echo "$ant" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 if test "$ant" = ""; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7373 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7376 if test "$host_os" = "mingw32"; then
7377 android_tool
="cmd //c $android_tool"
7383 #-----------------------------------------------------------------------------
7385 # This is the target configuration switch.
7386 case "$target_os" in
7388 aros_target_arch
="linux"
7389 aros_target_family
="unix"
7390 case "$target_cpu" in
7392 aros_target_cpu
="m68k"
7393 aros_object_format
="m68kelf"
7394 aros_flavour
="emulcompat"
7395 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7396 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7397 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7398 gcc_target_cpu
="mc68000"
7401 aros_target_cpu
="i386"
7402 aros_object_format
="elf_i386"
7403 aros_flavour
="emulation"
7404 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7405 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7406 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7407 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7408 aros_config_ldflags
="-m32 -march=i486"
7409 aros_kernel_ldflags
="-melf_i386"
7410 aros_default_wbdepth
=8
7411 gcc_target_cpu
="i386"
7412 pci_hidd_target
="hidd-pci-linux"
7413 android_tool_dir_prefix
="x86"
7414 android_tool_prefix
="i686-android-linux"
7415 android_ndk_arch
="x86"
7418 aros_target_cpu
="x86_64"
7419 aros_object_format
="elf_x86_64"
7420 aros_flavour
="emulation"
7421 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7422 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7423 aros_default_wbdepth
=8
7424 pci_hidd_target
="hidd-pci-linux"
7427 aros_target_cpu
="ppc"
7428 aros_object_format
="elf32ppc"
7429 aros_flavour
="emulation"
7430 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7431 aros_default_wbdepth
=8
7432 gcc_target_cpu
="ppc"
7435 # Same as powerpc, but I need this for the nightly build to work again.
7436 # Actually, the nightly should be made working with powerpc target.
7437 # That just was too much work for the moment, another week or two.
7439 aros_target_cpu
="ppc"
7440 aros_object_format
="elf32ppc"
7441 aros_flavour
="emulation"
7442 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7443 aros_default_wbdepth
=8
7444 gcc_target_cpu
="ppc"
7447 aros_target_cpu
="arm"
7448 aros_object_format
="armelf_linux_eabi"
7449 aros_flavour
="emulation"
7450 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7451 gcc_target_cpu
="arm"
7452 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7453 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7454 aros_arch_libs
="-laeabi"
7455 android_tool_dir_prefix
="arm-linux-androideabi"
7456 android_tool_prefix
="arm-linux-androideabi"
7457 android_ndk_arch
="arm"
7460 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7463 case "$aros_target_variant" in
7466 if test "$android_ndk_arch" = ""; then
7467 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7470 aros_default_wbwidth
=320
7471 aros_default_wbheight
=480
7472 if test "$aros_android_ndk" = "none"; then
7473 aros_kernel_cflags
="-mandroid"
7474 aros_kernel_ldflags
="-mandroid"
7477 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7478 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7479 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7480 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7481 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7482 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7485 x11_hidd_target
=kernel-hidd-androidgfx-kobj
7486 kernel_tool_prefix
="$android_tool_prefix-"
7492 aros_target_arch
="pc"
7493 aros_shared_default
="no"
7494 target_bootloader
="grub2"
7495 case "$target_cpu" in
7497 aros_target_cpu
="i386"
7500 if test "$aros_object_format" = "" ; then
7501 aros_object_format
="elf_i386"
7503 aros_flavour
="standalone"
7504 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7505 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7506 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7507 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7508 aros_config_ldflags
="-m32 -march=i486"
7509 aros_kernel_ldflags
="-melf_i386"
7510 aros_default_wbwidth
=640
7511 aros_default_wbheight
=480
7512 gcc_target_cpu
="i386"
7515 aros_target_cpu
="x86_64"
7517 if test "$aros_object_format" = "" ; then
7518 aros_object_format
="elf_x86_64"
7520 aros_flavour
="standalone"
7521 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7522 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7523 aros_kernel_ldflags
=""
7524 aros_default_wbwidth
=640
7525 aros_default_wbheight
=480
7528 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7534 aros_target_arch
="prep"
7535 aros_shared_default
="no"
7536 aros_target_cpu
="ppc"
7537 aros_object_format
="elf32ppc"
7538 aros_flavour
="ppcnative"
7539 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7540 aros_kernel_ldflags
=""
7541 aros_default_wbwidth
=640
7542 aros_default_wbheight
=480
7543 gcc_target_cpu
="ppc"
7547 aros_target_arch
="freebsd"
7548 aros_target_family
="unix"
7549 aros_target_cpu
="i386"
7550 aros_flavour
="emulation"
7551 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7552 gcc_target_cpu
="i386"
7554 aros_target_strip_flags
="-x"
7558 aros_target_arch
="darwin"
7559 aros_target_family
="unix"
7560 aros_flavour
="emulation"
7561 case "$target_cpu" in
7563 aros_ios_platform
="iPhoneSimulator"
7564 aros_target_cpu
="i386"
7565 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7566 aros_kernel_ldflags
=""
7567 aros_macosx_version
="10.4"
7568 aros_default_wbdepth
=8
7569 gcc_target_cpu
="i386"
7570 aros_object_format
="elf_i386"
7571 aros_kernel_ar_flags
="-cr"
7572 aros_target_strip_flags
="-x"
7573 kernel_tool_flags
="-m32"
7576 aros_target_cpu
="x86_64"
7577 aros_object_format
="elf_x86_64"
7578 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7579 aros_macosx_version
="10.6"
7580 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7581 aros_kernel_cflags
="-m64"
7582 aros_kernel_ldflags
="-m64"
7583 aros_target_cflags
="-mcmodel=large"
7584 aros_default_wbdepth
=8
7586 aros_kernel_ar_flags
="-cr"
7588 aros_kernel_ranlib
="ranlib"
7591 aros_target_cpu
="ppc"
7592 aros_object_format
="elf32ppc"
7593 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7594 aros_kernel_ldflags
=""
7595 aros_macosx_version
="10.0"
7596 aros_default_wbdepth
=8
7597 gcc_target_cpu
="ppc"
7599 aros_kernel_ar_flags
="-cr"
7600 aros_kernel_ld
="ld -arch ppc"
7601 aros_kernel_ranlib
="ranlib -arch ppc"
7602 kernel_tool_prefix
="powerpc-apple-darwin10-"
7605 aros_ios_platform
="iPhoneOS"
7606 aros_target_cpu
="arm"
7607 aros_object_format
="armelf_linux_eabi"
7608 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7609 aros_arch_libs
="-laeabi"
7610 aros_default_wbdepth
=8
7611 gcc_target_cpu
="arm"
7613 aros_kernel_ar_flags
="-cr"
7614 aros_kernel_ld
="ld -arch arm"
7615 aros_kernel_ranlib
="ranlib -arch arm"
7616 kernel_tool_prefix
="arm-apple-darwin10-"
7617 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7620 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7623 case "$aros_target_variant" in
7625 aros_ios_version
="3.0"
7626 aros_default_wbwidth
=320
7627 aros_default_wbheight
=480
7628 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7629 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7630 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7632 # This is here because it may depend on iOS or SDK version
7633 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7634 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7635 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7638 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7639 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7645 aros_target_arch
="dragonfly"
7646 aros_target_family
="unix"
7647 aros_flavour
="emulation"
7648 case "$target_cpu" in
7650 aros_target_cpu
="i386"
7651 aros_object_format
="elf_i386"
7652 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7655 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7656 aros_target_cpu
="x86_64"
7657 aros_object_format
="elf_x86_64"
7658 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7661 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7667 aros_target_arch
="netbsd"
7668 aros_target_family
="unix"
7669 case "$target_cpu" in
7671 aros_target_cpu
="m68k"
7672 aros_object_format
="m68kelf"
7673 aros_flavour
="emulcompat"
7674 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7675 gcc_target_cpu
="mc68000"
7678 aros_target_cpu
="i386"
7679 aros_object_format
="elf_i386"
7680 aros_flavour
="emulation"
7681 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7682 aros_default_wbdepth
=8
7683 gcc_target_cpu
="i386"
7686 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7689 aros_target_genmap
="-Wl,-M -Xlinker >"
7690 aros_flavour
="emulation"
7691 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7695 aros_target_arch
="openbsd"
7696 aros_target_family
="unix"
7697 case "$target_cpu" in
7699 aros_target_cpu
="i386"
7700 aros_object_format
="elf_i386"
7701 aros_flavour
="emulation"
7702 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7703 gcc_target_cpu
="i386"
7706 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7709 aros_target_genmap
="-Wl,-M -Xlinker >"
7710 aros_target_nm_flags
="-u"
7711 aros_flavour
="emulation"
7715 aros_target_arch
="solaris"
7716 aros_target_family
="unix"
7717 case "$target_cpu" in
7719 aros_target_cpu
="i386"
7720 aros_object_format
="elf_i386"
7721 aros_flavour
="emulation"
7722 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7723 aros_default_wbdepth
=8
7724 gcc_target_cpu
="i386"
7727 aros_target_cpu
="sparc"
7728 aros_object_format
="elf_sparc"
7729 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7730 gcc_target_cpu
="sparc"
7733 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7736 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
7737 aros_flavour
="emulation"
7741 aros_target_arch
="morphos"
7742 aros_shared_default
="no"
7743 aros_target_cpu
="ppc"
7744 aros_object_format
="elf_ppc"
7745 aros_flavour
="nativecompat"
7746 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7747 gcc_target_cpu
="ppc"
7751 aros_target_arch
="sam440"
7752 aros_shared_default
="no"
7753 aros_target_cpu
="ppc"
7754 aros_object_format
="elf32ppc"
7755 aros_flavour
="ppcnative"
7756 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7757 aros_kernel_ldflags
=""
7758 aros_default_wbwidth
=1024
7759 aros_default_wbheight
=768
7760 aros_default_wbdepth
=24
7761 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7762 gcc_target_cpu
="powerpc"
7766 aros_target_arch
="efika"
7767 aros_shared_default
="no"
7768 aros_target_cpu
="arm"
7769 aros_object_format
="armelf_linux_eabi"
7770 aros_flavour
="standalone"
7771 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7772 aros_kernel_ldflags
=""
7773 aros_default_wbwidth
=1024
7774 aros_default_wbheight
=600
7775 aros_arch_libs
="-laeabi"
7776 gcc_default_cpu
="armv7-a"
7777 gcc_default_fpu
="vfpv3"
7778 gcc_default_float_abi
="softfp"
7779 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
7780 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
7784 aros_target_arch
="chrp"
7785 aros_shared_default
="no"
7786 aros_target_cpu
="ppc"
7787 aros_object_format
="elf32ppc"
7788 aros_flavour
="ppcnative"
7789 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7790 aros_kernel_ldflags
=""
7791 aros_default_wbwidth
=640
7792 aros_default_wbheight
=480
7793 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7794 gcc_target_cpu
="powerpc"
7795 case "$aros_target_variant" in
7797 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7803 aros_target_arch
="amiga"
7804 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7805 aros_shared_default
="no"
7807 case "$target_cpu" in
7809 # Check whether --enable-amigaos_compliance was given.
7810 if test "${enable_amigaos_compliance+set}" = set; then :
7811 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
7815 aros_target_cpu
="m68k"
7816 aros_object_format
="m68kelf"
7817 aros_flavour
="standcompat"
7818 gcc_target_cpu
="m68000"
7819 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7820 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
7821 # Needed to get the correct multilib
7822 aros_config_ldflags
="-${gcc_target_cpu}"
7823 aros_shared_ldflags
="-${gcc_target_cpu}"
7824 aros_kernel_ldflags
="-${gcc_target_cpu}"
7825 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
7826 aros_target_strip_flags
="-R.comment --strip-debug"
7827 aros_default_wbwidth
=640
7828 aros_default_wbheight
=256
7829 aros_default_wbdepth
=2
7833 aros_flavour
="native"
7834 gcc_target_cpu
="ppc"
7837 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7843 aros_target_arch
="mingw32"
7844 aros_shared_default
="no"
7845 aros_flavour
="emulation"
7846 aros_shared_cflags
=""
7849 case "$target_cpu" in
7851 aros_target_cpu
="i386"
7852 aros_object_format
="elf_i386"
7853 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7854 aros_default_wbdepth
=8
7855 gcc_target_cpu
="i386"
7857 aros_target_cpp
="i386-aros-cpp"
7858 aros_target_as
="i386-aros-as"
7859 aros_target_ar
="i386-aros-ar"
7860 aros_target_ranlib
="i386-aros-ranlib"
7861 aros_target_nm
="i386-aros-nm"
7862 aros_target_strip
="i386-aros-strip"
7863 aros_target_objcopy
="i386-aros-objcopy"
7864 aros_target_objdump
="i386-aros-objdump"
7866 kernel_tool_prefix
="i386-mingw32-"
7869 aros_target_cpu
="x86_64"
7870 aros_object_format
="elf_x86_64"
7871 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7872 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7873 aros_default_wbdepth
=8
7874 kernel_tool_prefix
="x86_64-w64-mingw32-"
7877 aros_target_cpu
="arm"
7878 aros_object_format
="armelf_linux_eabi"
7879 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7880 aros_arch_libs
="-laeabi"
7881 aros_default_wbdepth
=8
7882 gcc_target_cpu
="arm"
7883 gcc_default_float_abi
="soft"
7884 kernel_tool_prefix
="arm-mingw32ce-"
7885 aros_default_wbwidth
=160
7886 aros_default_wbheight
=160
7889 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7892 if test $host_os = "cygwin"; then
7893 aros_kernel_cflags
="-mno-cygwin"
7897 aros_target_arch
="pp"
7898 aros_shared_default
="no"
7899 case "$target_cpu" in
7901 aros_target_cpu
="m68k"
7902 aros_object_format
="m68kelf"
7903 aros_flavour
="palmnative"
7904 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7905 aros_default_wbwidth
=160
7906 aros_default_wbheight
=160
7907 aros_default_wbdepth
=1
7908 aros_target_ar_flags
="cru"
7909 aros_compiler_libs
="-lgcc1"
7910 aros_shared_default
=no
7911 aros_shared_cflags
="-fpic"
7912 aros_shared_aflags
=""
7913 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7914 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7915 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7916 aros_debug_aflags
=""
7917 aros_debug_ldflags
="$aros_symbols_debug"
7918 aros_mungwall_debug
="0"
7919 aros_modules_debug
="0"
7920 gcc_target_cpu
="mc68000"
7921 ignore_undefined_symbols
="-ius"
7924 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7930 aros_target_arch
="mac"
7931 aros_shared_default
="no"
7932 case "$target_cpu" in
7934 aros_target_cpu
="m68k"
7935 aros_object_format
="m68kelf"
7936 aros_flavour
="mac68knative"
7937 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7938 aros_default_wbwidth
=512
7939 aros_default_wbheight
=384
7940 aros_default_wbdepth
=8
7941 aros_target_ar_flags
="cru"
7942 aros_compiler_libs
="-lgcc1"
7943 aros_shared_default
=no
7944 aros_shared_cflags
="-fpic"
7945 aros_shared_aflags
=""
7946 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7947 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7948 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000"
7949 aros_debug_aflags
=""
7950 aros_debug_ldflags
="$aros_symbols_debug"
7951 aros_mungwall_debug
="0"
7952 aros_modules_debug
="0"
7953 gcc_target_cpu
="mc68000"
7954 ignore_undefined_symbols
="-ius"
7957 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7963 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
7968 $as_echo_n "checking Kernel tool prefix... " >&6; }
7970 # Check whether --with-kernel-tool-prefix was given.
7971 if test "${with_kernel_tool_prefix+set}" = set; then :
7972 withval
=$with_kernel_tool_prefix; kernel_tool_prefix
="$withval"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
7976 $as_echo "$kernel_tool_prefix" >&6; }
7978 # Now process extra architecture-specific options.
7979 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7980 # as well as floating-point ABI.
7981 case "$aros_target_cpu" in
7983 if test "$gcc_default_cpu" = ""; then
7984 gcc_default_cpu
="armv6"
7986 if test "$gcc_default_fpu" = ""; then
7987 gcc_default_fpu
="vfp"
7989 if test "$gcc_default_float_abi" = ""; then
7990 gcc_default_float_abi
="softfp"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7994 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7996 # Check whether --with-cpu was given.
7997 if test "${with_cpu+set}" = set; then :
7998 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8000 aros_gcc_cpu
=$gcc_default_cpu
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8004 $as_echo "$aros_gcc_cpu" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8007 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8009 # Check whether --with-fpu was given.
8010 if test "${with_fpu+set}" = set; then :
8011 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8013 aros_gcc_fpu
=$gcc_default_fpu
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8017 $as_echo "$aros_gcc_fpu" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8020 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8022 # Check whether --with-float was given.
8023 if test "${with_float+set}" = set; then :
8024 withval
=$with_float; aros_gcc_float_abi
="$withval"
8026 aros_gcc_float_abi
=$gcc_default_float_abi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8030 $as_echo "$aros_gcc_float_abi" >&6; }
8032 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"
8033 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"
8037 # Some formats need custom ELF specs.
8038 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8039 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
8040 elf_specs_in
=config
/${aros_object_format}-specs.
in
8042 elf_specs_in
=config
/elf-specs.
in
8045 #-----------------------------------------------------------------------------
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8047 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8049 # Check whether --with-crosstools was given.
8050 if test "${with_crosstools+set}" = set; then :
8051 withval
=$with_crosstools; with_crosstools
=$withval
8053 with_crosstools
="default"
8056 if test "$with_crosstools" = "default"; then
8057 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8059 AROS_CROSSTOOLSDIR
="$with_crosstools"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8062 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8064 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8068 PATH
=$AROS_CROSSTOOLSDIR:$PATH
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8072 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8074 # Check whether --with-aros-gcc was given.
8075 if test "${with_aros_gcc+set}" = set; then :
8076 withval
=$with_aros_gcc; aros_gcc_version
="$withval"
8078 aros_gcc_version
="$use_aros_gcc"
8081 case "$aros_gcc_version" in
8083 aros_gcc_version
="default"
8086 aros_gcc_version
="none"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8090 $as_echo "$aros_gcc_version" >&6; }
8092 if test "$aros_gcc_version" != "none"; then
8095 if test "$aros_gcc_version" != "default"; then
8096 aros_target_cc
="${target_tool_prefix}gcc-$aros_gcc_version"
8097 aros_target_cxx
="${target_tool_prefix}g++-$aros_gcc_version"
8099 aros_target_cc
="${target_tool_prefix}gcc"
8100 aros_target_cxx
="${target_tool_prefix}g++"
8103 aros_target_cpp
="${target_tool_prefix}cpp"
8104 aros_target_ld
="${target_tool_prefix}ld"
8105 aros_target_as
="${target_tool_prefix}as"
8106 aros_target_ar
="${target_tool_prefix}ar"
8107 aros_target_ranlib
="${target_tool_prefix}ranlib"
8108 aros_target_nm
="${target_tool_prefix}nm"
8109 aros_target_strip
="${target_tool_prefix}strip"
8110 aros_target_objcopy
="${target_tool_prefix}objcopy"
8111 aros_target_objdump
="${target_tool_prefix}objdump"
8114 if test "$aros_gcc_version" != "default"; then
8115 aros_kernel_cc
="${kernel_tool_prefix}gcc-$aros_gcc_version"
8116 aros_kernel_cxx
="${kernel_tool_prefix}g++-$aros_gcc_version"
8118 aros_kernel_cc
="${kernel_tool_prefix}gcc"
8119 aros_kernel_cxx
="${kernel_tool_prefix}g++"
8122 aros_kernel_cpp
="${kernel_tool_prefix}cpp"
8123 aros_kernel_ld
="${kernel_tool_prefix}ld"
8124 aros_kernel_as
="${kernel_tool_prefix}as"
8125 aros_kernel_ar
="${kernel_tool_prefix}ar"
8126 aros_kernel_ranlib
="${kernel_tool_prefix}ranlib"
8127 aros_kernel_nm
="${kernel_tool_prefix}nm"
8128 aros_kernel_strip
="${kernel_tool_prefix}strip"
8129 aros_kernel_objcopy
="${kernel_tool_prefix}objcopy"
8130 aros_kernel_objdump
="${kernel_tool_prefix}objdump"
8133 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8134 # Since we override specs, we may need to put these defines there
8135 if test "$gcc_target_cpu" != ""; then
8136 gcc_target_cpu
="-D__${gcc_target_cpu}__"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8140 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8142 # Check whether --with-portssources was given.
8143 if test "${with_portssources+set}" = set; then :
8144 withval
=$with_portssources; with_portssrcdir
=$withval
8146 with_portssrcdir
="default"
8149 if test "$with_portssrcdir" = "default"; then
8150 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
8152 AROS_PORTSSRCDIR
="$with_portssrcdir"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8155 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8158 $as_echo_n "checking which bootloader to use... " >&6; }
8160 # Check whether --with-bootloader was given.
8161 if test "${with_bootloader+set}" = set; then :
8162 withval
=$with_bootloader; target_bootloader
=$withval
8164 target_bootloader
=$target_bootloader
8167 if test "$target_bootloader" = "none"; then
8168 aros_target_bootloader
=""
8170 aros_target_bootloader
="$target_bootloader"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8173 $as_echo "$target_bootloader" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8176 $as_echo_n "checking which icon-set to use... " >&6; }
8178 # Check whether --with-iconset was given.
8179 if test "${with_iconset+set}" = set; then :
8180 withval
=$with_iconset; target_iconset
=$withval
8182 target_iconset
="default"
8185 if test "$target_iconset" = "default"; then
8186 aros_target_iconset
="Gorilla"
8187 target_iconset
="default (Gorilla)"
8189 aros_target_iconset
="$target_iconset"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8192 $as_echo "$target_iconset" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8195 $as_echo_n "checking which GUI Theme to use... " >&6; }
8197 # Check whether --with-theme was given.
8198 if test "${with_theme+set}" = set; then :
8199 withval
=$with_theme; target_guitheme
=$withval
8201 target_guitheme
="default"
8204 if test "$target_guitheme" = "default"; then
8205 aros_target_guitheme
="Ice"
8207 aros_target_guitheme
="$target_guitheme"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8210 $as_echo "$aros_target_guitheme" >&6; }
8212 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8215 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8219 if test "$aros_host_cpu" == "x86_64" ; then
8220 if test "$aros_target_cpu" == "i386" ; then
8221 if test "$aros_target_arch" != "mingw32"; then
8227 if test "$aros_host_arch" == "darwin" ; then
8228 if test "$aros_target_arch" != "darwin" ; then
8235 if test "$aros_host_arch" == "mingw32" ; then
8236 if test "$aros_target_arch" != "mingw32" ; then
8241 # I want to have this information in configure output, although it might be
8242 # misleading, e.g. for darwin hosted you cannot compile target code without a
8243 # cross compiler, but here it says no.
8245 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8246 # Target code is a little bit different thing.
8248 echo "checking whether we are (AROS style) cross compiling... $cross_compiling"
8250 # Set prefix for target compiler etc. if we're cross-compiling
8251 # (should possibly be earlier but needs to be after AC_PROG_CC)
8252 if test "$cross_compiling" = "yes" ; then
8254 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8255 if test "$aros_gcc_version" != "none"; then
8258 target_tool_prefix
=${target_cpu}-aros-
8259 target_tool_version
=$aros_gcc_version
8260 use_kernel_cc_wrapper
=yes
8262 if test "$crosstools" != yes; then
8271 aros_target_objcopy
=
8272 aros_target_objdump
=
8277 aros_kernel_cc
=${kernel_tool_prefix}gcc
8278 aros_kernel_cpp
=${kernel_tool_prefix}cpp
8279 if test "$kernel_tool_version" != "default"; then
8280 aros_kernel_cc
="${aros_kernel_cc}-$kernel_tool_version"
8281 aros_kernel_cpp
="${aros_kernel_cpp}-$kernel_tool_version"
8285 if test "$aros_kernel_cpp" = ""; then
8286 if test "$cross_compiling" = "yes" ; then
8287 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8288 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8292 $as_echo_n "(cached) " >&6
8294 case $aros_kernel_cpp in
8296 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8303 test -z "$as_dir" && as_dir
=.
8304 for ac_exec_ext
in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8318 if test -n "$aros_kernel_cpp"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8320 $as_echo "$aros_kernel_cpp" >&6; }
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test "$GCC" = "yes"; then
8329 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
8330 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8331 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8335 $as_echo_n "(cached) " >&6
8337 case $aros_kernel_cpp in
8339 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8343 for as_dir
in `dirname $aros_gcc_cpp`
8346 test -z "$as_dir" && as_dir
=.
8347 for ac_exec_ext
in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8361 if test -n "$aros_kernel_cpp"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8363 $as_echo "$aros_kernel_cpp" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test "$aros_kernel_cpp" = ""; then
8372 # Extract the first word of "cpp", so it can be a program name with args.
8373 set dummy cpp
; ac_word
=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8377 $as_echo_n "(cached) " >&6
8379 case $aros_kernel_cpp in
8381 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir
=.
8389 for ac_exec_ext
in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8391 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8403 if test -n "$aros_kernel_cpp"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8405 $as_echo "$aros_kernel_cpp" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8415 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8416 set dummy
$aros_kernel_cpp; ac_word
=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8420 $as_echo_n "(cached) " >&6
8422 case $aros_kernel_cpp in
8424 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir
=.
8432 for ac_exec_ext
in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8446 if test -n "$aros_kernel_cpp"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8448 $as_echo "$aros_kernel_cpp" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8457 if test "$aros_kernel_cpp" = ""; then
8458 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8461 if test "$aros_kernel_cc" = ""; then
8462 if test "$cross_compiling" = "yes" ; then
8463 # Extract the first word of "${kernel_tool_prefix}gcc", so it can be a program name with args.
8464 set dummy
${kernel_tool_prefix}gcc
; ac_word
=$2
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 $as_echo_n "checking for $ac_word... " >&6; }
8467 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8468 $as_echo_n "(cached) " >&6
8470 case $aros_kernel_cc in
8472 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir
=.
8480 for ac_exec_ext
in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8494 if test -n "$aros_kernel_cc"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8496 $as_echo "$aros_kernel_cc" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8504 if test "$GCC" = "yes"; then
8505 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
8506 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
8507 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8511 $as_echo_n "(cached) " >&6
8513 case $aros_kernel_cc in
8515 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8519 for as_dir
in `dirname $aros_gcc_gcc`
8522 test -z "$as_dir" && as_dir
=.
8523 for ac_exec_ext
in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8537 if test -n "$aros_kernel_cc"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8539 $as_echo "$aros_kernel_cc" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8547 if test "$aros_kernel_cc" = ""; then
8548 # Extract the first word of "gcc", so it can be a program name with args.
8549 set dummy gcc
; ac_word
=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8553 $as_echo_n "(cached) " >&6
8555 case $aros_kernel_cc in
8557 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8564 test -z "$as_dir" && as_dir
=.
8565 for ac_exec_ext
in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8579 if test -n "$aros_kernel_cc"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8581 $as_echo "$aros_kernel_cc" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8591 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
8592 set dummy
$aros_kernel_cc; ac_word
=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8596 $as_echo_n "(cached) " >&6
8598 case $aros_kernel_cc in
8600 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8607 test -z "$as_dir" && as_dir
=.
8608 for ac_exec_ext
in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8622 if test -n "$aros_kernel_cc"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8624 $as_echo "$aros_kernel_cc" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8633 if test "$aros_kernel_cc" = ""; then
8634 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8636 CC
="$aros_kernel_cc $kernel_tool_flags"
8637 CPP
="$aros_kernel_cpp"
8639 #-----------------------------------------------------------------------------
8641 # Disable pointer-signedness warnings if the compiler recognises the option
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8644 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8645 save_cflags
="$CFLAGS"
8646 if test "$crosstools" != "yes" ; then
8647 CFLAGS
="$CFLAGS -Wno-pointer-sign"
8648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8659 if ac_fn_c_try_compile
"$LINENO"; then :
8660 use_no_sign_warning
="yes"
8662 use_no_sign_warning
="no"
8664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8666 # we do know it is supported for the smallest version of gcc we are going to build
8667 # we assume it's also supported by later versions
8668 use_no_sign_warning
=yes
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8671 $as_echo "$use_no_sign_warning" >&6; }
8672 if test "x-$use_no_sign_warning" = "x-yes" ; then
8673 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
8675 CFLAGS
="$save_cflags"
8677 #-----------------------------------------------------------------------------
8679 # Find all the tools we need to compile. This could be cross-compiling
8680 # though! If that is the case we use the GNU form of the target and
8681 # simply add this to the front of the binary name. This is rather simple,
8682 # but it should work under most circumstances.
8684 # The default tools are to use the same as the host, but only if the
8685 # host and target CPU are the same. With GCC this is normally enough.
8689 aros_shared_ld
="$aros_host_ld"
8691 aros_target_mkdep
="$aros_host_mkdep"
8693 # The default tools executables to be linked to.
8694 if test "$rescomp" != ""; then
8696 if test "" = ""; then
8697 if test "$cross_compiling" = "yes" ; then
8698 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
8699 set dummy
${kernel_tool_prefix}$rescomp; 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_rescomp+:} false
; then :
8703 $as_echo_n "(cached) " >&6
8705 case $aros_kernel_rescomp in
8707 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # 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_rescomp
="$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_rescomp
=$ac_cv_path_aros_kernel_rescomp
8729 if test -n "$aros_kernel_rescomp"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8731 $as_echo "$aros_kernel_rescomp" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8739 if test "$GCC" = "yes"; then
8740 aros_gcc_
$rescomp=`$CC -print-prog-name=$rescomp`
8741 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
8742 set dummy
`basename $aros_gcc_$rescomp`; ac_word
=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
8746 $as_echo_n "(cached) " >&6
8748 case $aros_kernel_rescomp in
8750 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8754 for as_dir
in `dirname $aros_gcc_$rescomp`
8757 test -z "$as_dir" && as_dir
=.
8758 for ac_exec_ext
in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8772 if test -n "$aros_kernel_rescomp"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8774 $as_echo "$aros_kernel_rescomp" >&6; }
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8782 if test "$aros_kernel_rescomp" = ""; then
8783 # Extract the first word of "$rescomp", so it can be a program name with args.
8784 set dummy
$rescomp; ac_word
=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
8788 $as_echo_n "(cached) " >&6
8790 case $aros_kernel_rescomp in
8792 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8799 test -z "$as_dir" && as_dir
=.
8800 for ac_exec_ext
in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8814 if test -n "$aros_kernel_rescomp"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8816 $as_echo "$aros_kernel_rescomp" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8826 # Extract the first word of "", so it can be a program name with args.
8827 set dummy
; ac_word
=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8833 case $aros_kernel_rescomp in
8835 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir
=.
8843 for ac_exec_ext
in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8857 if test -n "$aros_kernel_rescomp"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8859 $as_echo "$aros_kernel_rescomp" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8868 if test "$aros_kernel_rescomp" = ""; then
8869 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8873 if test "$crosstools" != "yes"; then
8875 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8876 target_tool_prefix
=${target_cpu}-elf-
8877 if test "$aros_target_cc" == ""; then
8878 aros_target_cc
="${target_tool_prefix}gcc"
8880 if test "$aros_target_ld" == ""; then
8881 aros_target_ld
="${target_tool_prefix}ld"
8883 if test "$aros_target_cpp" == ""; then
8884 aros_target_cpp
="${target_tool_prefix}cpp"
8888 if test "$aros_target_as" = ""; then
8889 if test "$cross_compiling" = "yes" ; then
8890 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8891 set dummy
${target_tool_prefix}as
; ac_word
=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8895 $as_echo_n "(cached) " >&6
8897 case $aros_target_as_ln in
8899 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8906 test -z "$as_dir" && as_dir
=.
8907 for ac_exec_ext
in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8921 if test -n "$aros_target_as_ln"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8923 $as_echo "$aros_target_as_ln" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8931 if test "$GCC" = "yes"; then
8932 aros_gcc_as
=`$CC -print-prog-name=as`
8933 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8934 set dummy
`basename $aros_gcc_as`; ac_word
=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8938 $as_echo_n "(cached) " >&6
8940 case $aros_target_as_ln in
8942 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8946 for as_dir
in `dirname $aros_gcc_as`
8949 test -z "$as_dir" && as_dir
=.
8950 for ac_exec_ext
in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8964 if test -n "$aros_target_as_ln"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8966 $as_echo "$aros_target_as_ln" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8974 if test "$aros_target_as_ln" = ""; then
8975 # Extract the first word of "as", so it can be a program name with args.
8976 set dummy as
; ac_word
=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8980 $as_echo_n "(cached) " >&6
8982 case $aros_target_as_ln in
8984 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8991 test -z "$as_dir" && as_dir
=.
8992 for ac_exec_ext
in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
9006 if test -n "$aros_target_as_ln"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9008 $as_echo "$aros_target_as_ln" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9018 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9019 set dummy
$aros_target_as; ac_word
=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
9023 $as_echo_n "(cached) " >&6
9025 case $aros_target_as_ln in
9027 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
9030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir
=.
9035 for ac_exec_ext
in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
9049 if test -n "$aros_target_as_ln"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9051 $as_echo "$aros_target_as_ln" >&6; }
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9060 if test "$aros_target_as_ln" = ""; then
9061 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
9064 if test "$aros_target_ar" = ""; then
9065 if test "$cross_compiling" = "yes" ; then
9066 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9067 set dummy
${target_tool_prefix}ar; ac_word
=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 case $aros_target_ar_ln in
9075 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
9078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir
=.
9083 for ac_exec_ext
in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
9097 if test -n "$aros_target_ar_ln"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9099 $as_echo "$aros_target_ar_ln" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9107 if test "$GCC" = "yes"; then
9108 aros_gcc_ar
=`$CC -print-prog-name=ar`
9109 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9110 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 case $aros_target_ar_ln in
9118 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
9121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9122 for as_dir
in `dirname $aros_gcc_ar`
9125 test -z "$as_dir" && as_dir
=.
9126 for ac_exec_ext
in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
9140 if test -n "$aros_target_ar_ln"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9142 $as_echo "$aros_target_ar_ln" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test "$aros_target_ar_ln" = ""; then
9151 # Extract the first word of "ar", so it can be a program name with args.
9152 set dummy
ar; ac_word
=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
9156 $as_echo_n "(cached) " >&6
9158 case $aros_target_ar_ln in
9160 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
9163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9167 test -z "$as_dir" && as_dir
=.
9168 for ac_exec_ext
in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
9182 if test -n "$aros_target_ar_ln"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9184 $as_echo "$aros_target_ar_ln" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9194 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9195 set dummy
$aros_target_ar; ac_word
=$2
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197 $as_echo_n "checking for $ac_word... " >&6; }
9198 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
9199 $as_echo_n "(cached) " >&6
9201 case $aros_target_ar_ln in
9203 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
9206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9210 test -z "$as_dir" && as_dir
=.
9211 for ac_exec_ext
in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
9225 if test -n "$aros_target_ar_ln"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9227 $as_echo "$aros_target_ar_ln" >&6; }
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9236 if test "$aros_target_ar_ln" = ""; then
9237 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9240 if test "$aros_target_nm" = ""; then
9241 if test "$cross_compiling" = "yes" ; then
9242 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9243 set dummy
${target_tool_prefix}nm
; ac_word
=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
9247 $as_echo_n "(cached) " >&6
9249 case $aros_target_nm_ln in
9251 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
9254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9258 test -z "$as_dir" && as_dir
=.
9259 for ac_exec_ext
in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
9273 if test -n "$aros_target_nm_ln"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9275 $as_echo "$aros_target_nm_ln" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9283 if test "$GCC" = "yes"; then
9284 aros_gcc_nm
=`$CC -print-prog-name=nm`
9285 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9286 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
9290 $as_echo_n "(cached) " >&6
9292 case $aros_target_nm_ln in
9294 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
9297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9298 for as_dir
in `dirname $aros_gcc_nm`
9301 test -z "$as_dir" && as_dir
=.
9302 for ac_exec_ext
in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
9316 if test -n "$aros_target_nm_ln"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9318 $as_echo "$aros_target_nm_ln" >&6; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9326 if test "$aros_target_nm_ln" = ""; then
9327 # Extract the first word of "nm", so it can be a program name with args.
9328 set dummy nm
; ac_word
=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
9332 $as_echo_n "(cached) " >&6
9334 case $aros_target_nm_ln in
9336 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
9339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir
=.
9344 for ac_exec_ext
in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
9358 if test -n "$aros_target_nm_ln"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9360 $as_echo "$aros_target_nm_ln" >&6; }
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9370 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9371 set dummy
$aros_target_nm; ac_word
=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
9375 $as_echo_n "(cached) " >&6
9377 case $aros_target_nm_ln in
9379 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
9382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir
=.
9387 for ac_exec_ext
in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
9401 if test -n "$aros_target_nm_ln"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9403 $as_echo "$aros_target_nm_ln" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9412 if test "$aros_target_nm_ln" = ""; then
9413 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9416 if test "$aros_target_objcopy" = ""; then
9417 if test "$cross_compiling" = "yes" ; then
9418 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9419 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
9423 $as_echo_n "(cached) " >&6
9425 case $aros_target_objcopy_ln in
9427 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9434 test -z "$as_dir" && as_dir
=.
9435 for ac_exec_ext
in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9449 if test -n "$aros_target_objcopy_ln"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9451 $as_echo "$aros_target_objcopy_ln" >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9459 if test "$GCC" = "yes"; then
9460 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
9461 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9462 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
9466 $as_echo_n "(cached) " >&6
9468 case $aros_target_objcopy_ln in
9470 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9474 for as_dir
in `dirname $aros_gcc_objcopy`
9477 test -z "$as_dir" && as_dir
=.
9478 for ac_exec_ext
in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9492 if test -n "$aros_target_objcopy_ln"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9494 $as_echo "$aros_target_objcopy_ln" >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9502 if test "$aros_target_objcopy_ln" = ""; then
9503 # Extract the first word of "objcopy", so it can be a program name with args.
9504 set dummy objcopy
; ac_word
=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
9508 $as_echo_n "(cached) " >&6
9510 case $aros_target_objcopy_ln in
9512 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9519 test -z "$as_dir" && as_dir
=.
9520 for ac_exec_ext
in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9522 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9534 if test -n "$aros_target_objcopy_ln"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9536 $as_echo "$aros_target_objcopy_ln" >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9546 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9547 set dummy
$aros_target_objcopy; ac_word
=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
9551 $as_echo_n "(cached) " >&6
9553 case $aros_target_objcopy_ln in
9555 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9562 test -z "$as_dir" && as_dir
=.
9563 for ac_exec_ext
in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9577 if test -n "$aros_target_objcopy_ln"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9579 $as_echo "$aros_target_objcopy_ln" >&6; }
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9588 if test "$aros_target_objcopy_ln" = ""; then
9589 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9592 if test "$aros_target_objdump" = ""; then
9593 if test "$cross_compiling" = "yes" ; then
9594 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9595 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9599 $as_echo_n "(cached) " >&6
9601 case $aros_target_objdump_ln in
9603 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9610 test -z "$as_dir" && as_dir
=.
9611 for ac_exec_ext
in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9625 if test -n "$aros_target_objdump_ln"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9627 $as_echo "$aros_target_objdump_ln" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9635 if test "$GCC" = "yes"; then
9636 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
9637 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9638 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9644 case $aros_target_objdump_ln in
9646 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9650 for as_dir
in `dirname $aros_gcc_objdump`
9653 test -z "$as_dir" && as_dir
=.
9654 for ac_exec_ext
in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9668 if test -n "$aros_target_objdump_ln"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9670 $as_echo "$aros_target_objdump_ln" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9678 if test "$aros_target_objdump_ln" = ""; then
9679 # Extract the first word of "objdump", so it can be a program name with args.
9680 set dummy objdump
; ac_word
=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9684 $as_echo_n "(cached) " >&6
9686 case $aros_target_objdump_ln in
9688 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir
=.
9696 for ac_exec_ext
in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9710 if test -n "$aros_target_objdump_ln"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9712 $as_echo "$aros_target_objdump_ln" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9722 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9723 set dummy
$aros_target_objdump; ac_word
=$2
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 $as_echo_n "checking for $ac_word... " >&6; }
9726 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9727 $as_echo_n "(cached) " >&6
9729 case $aros_target_objdump_ln in
9731 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9738 test -z "$as_dir" && as_dir
=.
9739 for ac_exec_ext
in '' $ac_executable_extensions; do
9740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9741 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9753 if test -n "$aros_target_objdump_ln"; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9755 $as_echo "$aros_target_objdump_ln" >&6; }
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9764 if test "$aros_target_objdump_ln" = ""; then
9765 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9768 if test "$aros_target_ranlib" = ""; then
9769 if test "$cross_compiling" = "yes" ; then
9770 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9771 set dummy
${target_tool_prefix}ranlib
; ac_word
=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9775 $as_echo_n "(cached) " >&6
9777 case $aros_target_ranlib_ln in
9779 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9786 test -z "$as_dir" && as_dir
=.
9787 for ac_exec_ext
in '' $ac_executable_extensions; do
9788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9801 if test -n "$aros_target_ranlib_ln"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9803 $as_echo "$aros_target_ranlib_ln" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9811 if test "$GCC" = "yes"; then
9812 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9813 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9814 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9818 $as_echo_n "(cached) " >&6
9820 case $aros_target_ranlib_ln in
9822 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9826 for as_dir
in `dirname $aros_gcc_ranlib`
9829 test -z "$as_dir" && as_dir
=.
9830 for ac_exec_ext
in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9844 if test -n "$aros_target_ranlib_ln"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9846 $as_echo "$aros_target_ranlib_ln" >&6; }
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9854 if test "$aros_target_ranlib_ln" = ""; then
9855 # Extract the first word of "ranlib", so it can be a program name with args.
9856 set dummy ranlib
; ac_word
=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9860 $as_echo_n "(cached) " >&6
9862 case $aros_target_ranlib_ln in
9864 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9871 test -z "$as_dir" && as_dir
=.
9872 for ac_exec_ext
in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9886 if test -n "$aros_target_ranlib_ln"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9888 $as_echo "$aros_target_ranlib_ln" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9898 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9899 set dummy
$aros_target_ranlib; ac_word
=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9903 $as_echo_n "(cached) " >&6
9905 case $aros_target_ranlib_ln in
9907 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9914 test -z "$as_dir" && as_dir
=.
9915 for ac_exec_ext
in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9929 if test -n "$aros_target_ranlib_ln"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9931 $as_echo "$aros_target_ranlib_ln" >&6; }
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9940 if test "$aros_target_ranlib_ln" = ""; then
9941 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9944 if test "$aros_target_strip" = ""; then
9945 if test "$cross_compiling" = "yes" ; then
9946 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9947 set dummy
${target_tool_prefix}strip
; ac_word
=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9951 $as_echo_n "(cached) " >&6
9953 case $aros_target_strip_ln in
9955 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9962 test -z "$as_dir" && as_dir
=.
9963 for ac_exec_ext
in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9977 if test -n "$aros_target_strip_ln"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9979 $as_echo "$aros_target_strip_ln" >&6; }
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9987 if test "$GCC" = "yes"; then
9988 aros_gcc_strip
=`$CC -print-prog-name=strip`
9989 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9990 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9994 $as_echo_n "(cached) " >&6
9996 case $aros_target_strip_ln in
9998 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
10001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10002 for as_dir
in `dirname $aros_gcc_strip`
10005 test -z "$as_dir" && as_dir
=.
10006 for ac_exec_ext
in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
10020 if test -n "$aros_target_strip_ln"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10022 $as_echo "$aros_target_strip_ln" >&6; }
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10030 if test "$aros_target_strip_ln" = ""; then
10031 # Extract the first word of "strip", so it can be a program name with args.
10032 set dummy strip
; ac_word
=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
10036 $as_echo_n "(cached) " >&6
10038 case $aros_target_strip_ln in
10040 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
10043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10044 for as_dir
in $PATH
10047 test -z "$as_dir" && as_dir
=.
10048 for ac_exec_ext
in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
10062 if test -n "$aros_target_strip_ln"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10064 $as_echo "$aros_target_strip_ln" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10074 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10075 set dummy
$aros_target_strip; ac_word
=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
10079 $as_echo_n "(cached) " >&6
10081 case $aros_target_strip_ln in
10083 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
10086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10087 for as_dir
in $PATH
10090 test -z "$as_dir" && as_dir
=.
10091 for ac_exec_ext
in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
10105 if test -n "$aros_target_strip_ln"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10107 $as_echo "$aros_target_strip_ln" >&6; }
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10116 if test "$aros_target_strip_ln" = ""; then
10117 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10119 if test "$aros_target_cxx" != ""; then
10120 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10121 set dummy
$aros_target_cxx; ac_word
=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_aros_target_cxx+:} false
; then :
10125 $as_echo_n "(cached) " >&6
10127 case $aros_target_cxx in
10129 ac_cv_path_aros_target_cxx
="$aros_target_cxx" # Let the user override the test with a path.
10132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10133 for as_dir
in $PATH
10136 test -z "$as_dir" && as_dir
=.
10137 for ac_exec_ext
in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_path_aros_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 aros_target_cxx
=$ac_cv_path_aros_target_cxx
10151 if test -n "$aros_target_cxx"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10153 $as_echo "$aros_target_cxx" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 if test "$aros_target_cxx" = ""; then
10161 as_fn_error $?
"c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10165 aros_target_cc
=$AROS_CROSSTOOLSDIR/$aros_target_cc
10166 aros_target_cxx
=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10167 aros_target_cpp
=$AROS_CROSSTOOLSDIR/$aros_target_cpp
10168 aros_target_as_ln
=$AROS_CROSSTOOLSDIR/$aros_target_as
10169 aros_target_ar_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ar
10170 aros_target_nm_ln
=$AROS_CROSSTOOLSDIR/$aros_target_nm
10171 aros_target_objcopy_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10172 aros_target_objdump_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10173 aros_target_ranlib_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10174 aros_target_strip_ln
=$AROS_CROSSTOOLSDIR/$aros_target_strip
10176 crosstools_target
=tools-crosstools
10180 if test "$aros_kernel_cpp" = ""; then
10181 if test "$cross_compiling" = "yes" ; then
10182 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10183 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 case $aros_kernel_cpp in
10191 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10195 for as_dir
in $PATH
10198 test -z "$as_dir" && as_dir
=.
10199 for ac_exec_ext
in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10213 if test -n "$aros_kernel_cpp"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10215 $as_echo "$aros_kernel_cpp" >&6; }
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10223 if test "$GCC" = "yes"; then
10224 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
10225 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10226 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228 $as_echo_n "checking for $ac_word... " >&6; }
10229 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10230 $as_echo_n "(cached) " >&6
10232 case $aros_kernel_cpp in
10234 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10238 for as_dir
in `dirname $aros_gcc_cpp`
10241 test -z "$as_dir" && as_dir
=.
10242 for ac_exec_ext
in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10244 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10256 if test -n "$aros_kernel_cpp"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10258 $as_echo "$aros_kernel_cpp" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10266 if test "$aros_kernel_cpp" = ""; then
10267 # Extract the first word of "cpp", so it can be a program name with args.
10268 set dummy cpp
; ac_word
=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10272 $as_echo_n "(cached) " >&6
10274 case $aros_kernel_cpp in
10276 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10280 for as_dir
in $PATH
10283 test -z "$as_dir" && as_dir
=.
10284 for ac_exec_ext
in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10298 if test -n "$aros_kernel_cpp"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10300 $as_echo "$aros_kernel_cpp" >&6; }
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10310 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10311 set dummy
$aros_kernel_cpp; ac_word
=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10315 $as_echo_n "(cached) " >&6
10317 case $aros_kernel_cpp in
10319 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10323 for as_dir
in $PATH
10326 test -z "$as_dir" && as_dir
=.
10327 for ac_exec_ext
in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10341 if test -n "$aros_kernel_cpp"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10343 $as_echo "$aros_kernel_cpp" >&6; }
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10352 if test "$aros_kernel_cpp" = ""; then
10353 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10356 if test "$aros_kernel_ld" = ""; then
10357 if test "$cross_compiling" = "yes" ; then
10358 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10359 set dummy
${target_tool_prefix}ld
; ac_word
=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10363 $as_echo_n "(cached) " >&6
10365 case $aros_kernel_ld in
10367 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10371 for as_dir
in $PATH
10374 test -z "$as_dir" && as_dir
=.
10375 for ac_exec_ext
in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10389 if test -n "$aros_kernel_ld"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10391 $as_echo "$aros_kernel_ld" >&6; }
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10399 if test "$GCC" = "yes"; then
10400 aros_gcc_ld
=`$CC -print-prog-name=ld`
10401 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10402 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10406 $as_echo_n "(cached) " >&6
10408 case $aros_kernel_ld in
10410 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10414 for as_dir
in `dirname $aros_gcc_ld`
10417 test -z "$as_dir" && as_dir
=.
10418 for ac_exec_ext
in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10432 if test -n "$aros_kernel_ld"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10434 $as_echo "$aros_kernel_ld" >&6; }
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10442 if test "$aros_kernel_ld" = ""; then
10443 # Extract the first word of "ld", so it can be a program name with args.
10444 set dummy ld
; ac_word
=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10448 $as_echo_n "(cached) " >&6
10450 case $aros_kernel_ld in
10452 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10456 for as_dir
in $PATH
10459 test -z "$as_dir" && as_dir
=.
10460 for ac_exec_ext
in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10474 if test -n "$aros_kernel_ld"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10476 $as_echo "$aros_kernel_ld" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10486 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10487 set dummy
$aros_kernel_ld; ac_word
=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10491 $as_echo_n "(cached) " >&6
10493 case $aros_kernel_ld in
10495 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10499 for as_dir
in $PATH
10502 test -z "$as_dir" && as_dir
=.
10503 for ac_exec_ext
in '' $ac_executable_extensions; do
10504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10505 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10517 if test -n "$aros_kernel_ld"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10519 $as_echo "$aros_kernel_ld" >&6; }
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10528 if test "$aros_kernel_ld" = ""; then
10529 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10532 if test "$aros_kernel_ar" = ""; then
10533 if test "$cross_compiling" = "yes" ; then
10534 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10535 set dummy
${target_tool_prefix}ar; ac_word
=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10539 $as_echo_n "(cached) " >&6
10541 case $aros_kernel_ar in
10543 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10547 for as_dir
in $PATH
10550 test -z "$as_dir" && as_dir
=.
10551 for ac_exec_ext
in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10565 if test -n "$aros_kernel_ar"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10567 $as_echo "$aros_kernel_ar" >&6; }
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10575 if test "$GCC" = "yes"; then
10576 aros_gcc_ar
=`$CC -print-prog-name=ar`
10577 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10578 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10582 $as_echo_n "(cached) " >&6
10584 case $aros_kernel_ar in
10586 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10590 for as_dir
in `dirname $aros_gcc_ar`
10593 test -z "$as_dir" && as_dir
=.
10594 for ac_exec_ext
in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10608 if test -n "$aros_kernel_ar"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10610 $as_echo "$aros_kernel_ar" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10618 if test "$aros_kernel_ar" = ""; then
10619 # Extract the first word of "ar", so it can be a program name with args.
10620 set dummy
ar; ac_word
=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10624 $as_echo_n "(cached) " >&6
10626 case $aros_kernel_ar in
10628 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10632 for as_dir
in $PATH
10635 test -z "$as_dir" && as_dir
=.
10636 for ac_exec_ext
in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10650 if test -n "$aros_kernel_ar"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10652 $as_echo "$aros_kernel_ar" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10662 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10663 set dummy
$aros_kernel_ar; ac_word
=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10667 $as_echo_n "(cached) " >&6
10669 case $aros_kernel_ar in
10671 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10675 for as_dir
in $PATH
10678 test -z "$as_dir" && as_dir
=.
10679 for ac_exec_ext
in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10693 if test -n "$aros_kernel_ar"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10695 $as_echo "$aros_kernel_ar" >&6; }
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10704 if test "$aros_kernel_ar" = ""; then
10705 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10708 if test "$aros_kernel_ranlib" = ""; then
10709 if test "$cross_compiling" = "yes" ; then
10710 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10711 set dummy
${target_tool_prefix}ranlib
; ac_word
=$2
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 $as_echo_n "checking for $ac_word... " >&6; }
10714 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10715 $as_echo_n "(cached) " >&6
10717 case $aros_kernel_ranlib in
10719 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10723 for as_dir
in $PATH
10726 test -z "$as_dir" && as_dir
=.
10727 for ac_exec_ext
in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10741 if test -n "$aros_kernel_ranlib"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10743 $as_echo "$aros_kernel_ranlib" >&6; }
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10751 if test "$GCC" = "yes"; then
10752 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10753 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10754 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10758 $as_echo_n "(cached) " >&6
10760 case $aros_kernel_ranlib in
10762 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10766 for as_dir
in `dirname $aros_gcc_ranlib`
10769 test -z "$as_dir" && as_dir
=.
10770 for ac_exec_ext
in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10784 if test -n "$aros_kernel_ranlib"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10786 $as_echo "$aros_kernel_ranlib" >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10794 if test "$aros_kernel_ranlib" = ""; then
10795 # Extract the first word of "ranlib", so it can be a program name with args.
10796 set dummy ranlib
; ac_word
=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10800 $as_echo_n "(cached) " >&6
10802 case $aros_kernel_ranlib in
10804 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10808 for as_dir
in $PATH
10811 test -z "$as_dir" && as_dir
=.
10812 for ac_exec_ext
in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10826 if test -n "$aros_kernel_ranlib"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10828 $as_echo "$aros_kernel_ranlib" >&6; }
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10838 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10839 set dummy
$aros_kernel_ranlib; ac_word
=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10843 $as_echo_n "(cached) " >&6
10845 case $aros_kernel_ranlib in
10847 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10851 for as_dir
in $PATH
10854 test -z "$as_dir" && as_dir
=.
10855 for ac_exec_ext
in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10869 if test -n "$aros_kernel_ranlib"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10871 $as_echo "$aros_kernel_ranlib" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10880 if test "$aros_kernel_ranlib" = ""; then
10881 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10884 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
10885 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
10887 orig_target_cpp
=$aros_kernel_cpp
10888 orig_target_cc
=$aros_kernel_cc
10889 orig_target_ld
=$aros_kernel_ld
10891 if test "$crosstools" != "yes"; then
10892 if test "$aros_target_cc" != ""; then
10893 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10894 set dummy
$aros_target_cc; ac_word
=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_aros_target_cc+:} false
; then :
10898 $as_echo_n "(cached) " >&6
10900 case $aros_target_cc in
10902 ac_cv_path_aros_target_cc
="$aros_target_cc" # Let the user override the test with a path.
10905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10906 for as_dir
in $PATH
10909 test -z "$as_dir" && as_dir
=.
10910 for ac_exec_ext
in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_aros_target_cc
="$as_dir/$ac_word$ac_exec_ext"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 aros_target_cc
=$ac_cv_path_aros_target_cc
10924 if test -n "$aros_target_cc"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10926 $as_echo "$aros_target_cc" >&6; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10933 if test "$aros_target_cc" = ""; then
10934 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10936 orig_target_cc
=$aros_target_cc
10938 if test "$aros_target_ld" != ""; then
10939 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10940 set dummy
$aros_target_ld; ac_word
=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if ${ac_cv_path_aros_target_ld+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 case $aros_target_ld in
10948 ac_cv_path_aros_target_ld
="$aros_target_ld" # Let the user override the test with a path.
10951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10952 for as_dir
in $PATH
10955 test -z "$as_dir" && as_dir
=.
10956 for ac_exec_ext
in '' $ac_executable_extensions; do
10957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958 ac_cv_path_aros_target_ld
="$as_dir/$ac_word$ac_exec_ext"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 aros_target_ld
=$ac_cv_path_aros_target_ld
10970 if test -n "$aros_target_ld"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10972 $as_echo "$aros_target_ld" >&6; }
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10979 if test "$aros_target_ld" = ""; then
10980 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10982 orig_target_ld
=$aros_target_ld
10984 if test "$aros_target_cpp" != ""; then
10985 # Extract the first word of "$aros_target_cpp", so it can be a program name with args.
10986 set dummy
$aros_target_cpp; ac_word
=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_path_aros_target_cpp+:} false
; then :
10990 $as_echo_n "(cached) " >&6
10992 case $aros_target_cpp in
10994 ac_cv_path_aros_target_cpp
="$aros_target_cpp" # Let the user override the test with a path.
10997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10998 for as_dir
in $PATH
11001 test -z "$as_dir" && as_dir
=.
11002 for ac_exec_ext
in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_path_aros_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 aros_target_cpp
=$ac_cv_path_aros_target_cpp
11016 if test -n "$aros_target_cpp"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpp" >&5
11018 $as_echo "$aros_target_cpp" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11025 if test "$aros_target_cpp" = ""; then
11026 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11028 orig_target_cpp
=$aros_target_cpp
11031 orig_target_cc
=$aros_target_cc
11032 orig_target_ld
=$aros_target_ld
11033 orig_target_cpp
=$aros_target_cpp
11036 # Build crosstools if we have no C++ - temporary thing
11037 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
11038 crosstools_cxx_target
=tools-crosstools
11041 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11042 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11043 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11044 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11045 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11046 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11047 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11049 # aros_cc_pre is a variable that is added to the front of the compiler name
11050 # in the generated aros-gcc shell script. We need this to enable the cache
11051 # to work across cleaned builds. Also, support DISTCC using the correct
11052 # environment variable.
11055 if test "x${DISTCC}" != "x" ; then
11056 if test "x${CCACHE}" != "x" ; then
11057 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11059 aros_cc_pre
="${DISTCC} "
11062 if test "x${CCACHE}" != "x" ; then
11063 aros_cc_pre
="${CCACHE} "
11067 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11069 aros_target_nostdinc_cflags
=-nostdinc
11071 aros_target_nostartup_ldflags
=-nostartfiles
11073 aros_target_nix_ldflags
=-nix
11075 aros_target_detach_ldflags
=-detach
11077 aros_target_nostdlib_ldflags
=-nostdlib
11081 if test "$crosstools" != "yes"; then
11082 if test "$GCC" = "yes"; then
11083 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11086 # We do not know which gcc version we are going to build and what we need to know
11087 # here is different for different versions so this will be set later during the
11088 # build of crosstools.
11089 aros_target_cc_path
=@aros_target_cc_path@
11091 aros_target_cpp
="${prefix}-cpp"
11092 aros_target_cc
="${prefix}-gcc"
11093 aros_target_as
="${prefix}-as"
11094 aros_target_ld
="${prefix}-ld"
11095 aros_target_ar
="${prefix}-ar $aros_target_ar_flags"
11096 aros_target_objcopy
=${prefix}-objcopy
11097 aros_target_objdump
=${prefix}-objdump
11098 aros_target_ranlib
="${prefix}-ranlib $aros_target_ranlib_flags"
11099 aros_target_nm
="${prefix}-nm $aros_target_nm_flags"
11100 aros_target_strip
=${prefix}-strip
11101 aros_plain_nm
="${prefix}-nm"
11102 aros_plain_ar
="${prefix}-ar"
11104 if test "$aros_kernel_includes" != "" ; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
11106 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
11107 if test "$aros_kernel_cc_includes" = "" ; then
11108 # Try to guess where the directory is.
11109 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
11110 if test -d $aros_kernel_cc_includes; then
11111 # Check if there is also an include-fixed directory and add it
11112 # to kernel compiler's include path as it may contain some of
11113 # the headers we need.
11114 if test -d "$aros_kernel_cc_includes"-fixed; then
11115 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
11117 # Check for specific includes directory. Neede for Ubuntu 11.10
11118 if test -d "/usr/include/i386-linux-gnu"; then
11119 aros_kernel_cc_includes
+=" -isystem /usr/include/i386-linux-gnu"
11122 # The directory doesn't exist, we need to do some more work.
11123 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
11125 # These are the headers we're looking for.
11126 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11127 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11131 for h
in $headers; do
11132 # Which other headers are needed by each of the above?
11133 deps
=$
(echo "#include <$h>" | \
11134 $aros_kernel_cc -E -M - 2>/dev
/null | \
11135 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11137 # Copy all the needed headers to a directory beneath gendir.
11140 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
11141 sed -n "s,^.*/include\(/.*\),\1,p")
11142 ! test -d $dir && mkdir
-p $dir
11143 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
11149 $as_echo "$aros_kernel_cc_includes" >&6; }
11150 # Adding -nostdinc to kernel includes as they are always used together.
11151 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
11154 if test "$crosstools" != "yes"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
11156 $as_echo_n "checking for the target compiler's include path... " >&6; }
11157 if test "$aros_target_cc_includes" = "" ; then
11158 #try to guess where the directory is
11159 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
11160 if ! test -d $aros_target_cc_includes; then
11161 #the directory doesn't exist, we need to do some more work
11162 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
11164 #these are the headers we're looking for
11165 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11166 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11170 for h
in $headers; do
11171 #which other headers each of the above headers needs?
11172 deps
=$
(echo "#include <$h>" | \
11173 $orig_target_cc -E -M - 2>/dev
/null | \
11174 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11176 #copy all the needed headers to a directory beneath gendir
11179 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
11180 sed -n "s,^.*/include\(/.*\),\1,p")
11181 ! test -d $dir && mkdir
-p $dir
11182 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11188 $as_echo "$aros_target_cc_includes" >&6; }
11190 # We do not know which gcc version we are going to build and what we need to know
11191 # here is different for different versions so this will be set later during the
11192 # build of crosstools.
11193 aros_target_cc_includes
=@aros_target_cc_includes@
11197 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11198 # On GCC >= 4.0 -iquote should be used
11202 save_cflags
="$CFLAGS"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11205 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11206 if test "x-$crosstools" != "x-yes"; then
11207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11218 if ac_fn_c_try_compile
"$LINENO"; then :
11223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11225 # we do know it is supported for the smallest version of gcc we are going to build
11226 # we assume it's also supported by later versions
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11230 $as_echo "$has_iquote" >&6; }
11231 if test "x-$has_iquote" = "x-yes" ; then
11232 host_cflags_iquote
=-iquote
11233 host_cflags_iquote_end
=
11235 host_cflags_iquote
=-I
11236 host_cflags_iquote_end
=-I-
11238 kernel_cflags_iquote
=$host_cflags_iquote
11239 kernel_cflags_iquote_end
=$host_cflags_iquote_end
11240 if test "x-$cross_compiling" = "x-yes"; then
11241 CC
="$aros_kernel_cc"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11243 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11244 if test "x-$crosstools" != "x-yes"; then
11245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11256 if ac_fn_c_try_compile
"$LINENO"; then :
11257 use_no_stack_protector
="yes"
11259 use_no_stack_protector
="no"
11261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11263 # we do know it is supported for the smallest version of gcc we are going to build
11264 # we assume it's also supported by later versions
11265 use_no_stack_protector
=yes
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11268 $as_echo "$use_no_stack_protector" >&6; }
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11270 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11271 if test "x-$crosstools" != "x-yes"; then
11272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11283 if ac_fn_c_try_compile
"$LINENO"; then :
11288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11290 # we do know it is supported for the smallest version of gcc we are going to build
11291 # we assume it's also supported by later versions
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11295 $as_echo "$has_iquote" >&6; }
11296 if test "x-$has_iquote" = "x-yes" ; then
11297 kernel_cflags_iquote
=-iquote
11298 kernel_cflags_iquote_end
=
11300 kernel_cflags_iquote
=-I
11301 kernel_cflags_iquote_end
=-I-
11304 aros_cflags_iquote
=$kernel_cflags_iquote
11305 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
11306 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11307 CC
="$orig_target_cc"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11309 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11310 if test "x-$crosstools" != "x-yes"; then
11311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11322 if ac_fn_c_try_compile
"$LINENO"; then :
11327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11329 # we do know it is supported for the smallest version of gcc we are going to build
11330 # we assume it's also supported by later versions
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11334 $as_echo "$has_iquote" >&6; }
11335 if test "x-$has_iquote" = "x-yes" ; then
11336 aros_cflags_iquote
=-iquote
11337 aros_cflags_iquote_end
=
11339 aros_cflags_iquote
=-I
11340 aros_cflags_iquote_end
=-I-
11343 if test "x-$use_no_stack_protector" = "x-yes" ; then
11344 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
11348 #-----------------------------------------------------------------------------
11350 # Check if the target compiler supports some options used for delinting:
11351 # -Wunused-but-set-variable
11354 # -Wstrict-overflow
11355 # -Wformat-security
11357 if test "x-$crosstools" != "x-yes"; then
11358 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11359 CC
="$orig_target_cc"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11362 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11363 CFLAGS
=-Wunused-but-set-variable
11364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11375 if ac_fn_c_try_compile
"$LINENO"; then :
11376 aros_unused_but_set_variable
="yes"
11378 aros_unused_but_set_variable
="no"
11380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11382 $as_echo "$aros_unused_but_set_variable" >&6; }
11383 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11384 aros_cflags_unused_but_set_variable
=-Wno-unused-but-set-variable
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11388 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11389 CFLAGS
=-Warray-bounds
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11401 if ac_fn_c_try_compile
"$LINENO"; then :
11402 aros_array_bounds
="yes"
11404 aros_array_bounds
="no"
11406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11408 $as_echo "$aros_array_bounds" >&6; }
11409 if test "x-$aros_array_bounds" = "x-yes" ; then
11410 aros_cflags_array_bounds
=-Wno-array-bounds
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11414 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11415 CFLAGS
=-Wenum-compare
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11427 if ac_fn_c_try_compile
"$LINENO"; then :
11428 aros_enum_compare
="yes"
11430 aros_enum_compare
="no"
11432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11434 $as_echo "$aros_enum_compare" >&6; }
11435 if test "x-$aros_enum_compare" = "x-yes" ; then
11436 aros_cflags_enum_compare
=-Wno-enum-compare
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11440 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11441 CFLAGS
=-Wstrict-overflow
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11453 if ac_fn_c_try_compile
"$LINENO"; then :
11454 aros_strict_overflow
="yes"
11456 aros_strict_overflow
="no"
11458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11460 $as_echo "$aros_strict_overflow" >&6; }
11461 if test "x-$aros_strict_overflow" = "x-yes" ; then
11462 aros_cflags_strict_overflow
=-Wno-strict-overflow
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11466 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11467 CFLAGS
=-Wformat-security
11468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11479 if ac_fn_c_try_compile
"$LINENO"; then :
11480 aros_format_security
="yes"
11482 aros_format_security
="no"
11484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11486 $as_echo "$aros_format_security" >&6; }
11487 if test "x-$aros_format_security" = "x-yes" ; then
11488 aros_cflags_format_security
=-Wno-format-security
11491 # We do not know which gcc version we are going to build and what we need to know
11492 # here is different for different versions so this will be set later during the
11493 # build of crosstools.
11494 aros_cflags_unused_but_set_variable
=@aros_cflags_unused_but_set_variable@
11495 aros_cflags_array_bounds
=@aros_cflags_array_bounds@
11496 aros_cflags_enum_compare
=@aros_cflags_enum_compare@
11497 aros_cflags_strict_overflow
=@aros_cflags_strict_overflow@
11498 aros_cflags_format_security
=@aros_cflags_format_security@
11501 #-----------------------------------------------------------------------------
11503 # Check if we can explicitly choose older version of symbol hashing
11505 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
11506 CC
="$aros_kernel_cc"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11508 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11520 if ac_fn_c_try_link
"$LINENO"; then :
11521 use_hash_style
="yes"
11523 use_hash_style
="no"
11525 rm -f core conftest.err conftest.
$ac_objext \
11526 conftest
$ac_exeext conftest.
$ac_ext
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11528 $as_echo "$use_hash_style" >&6; }
11529 if test "x-$use_hash_style" = "x-yes" ; then
11530 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
11533 CFLAGS
="$save_cflags"
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11544 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11546 # Check whether --with-resolution was given.
11547 if test "${with_resolution+set}" = set; then :
11548 withval
=$with_resolution; resolution
=$withval
11553 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11554 if test "$resolution" = "yes" ; then
11557 if test "$resolution" = "no" ; then
11560 if test "$resolution" != "none" ; then
11561 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
11562 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
11563 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11566 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11567 aros_cv_default_wbwidth
=$aros_default_wbwidth
11568 aros_cv_default_wbheight
=$aros_default_wbheight
11569 aros_cv_default_wbdepth
=$aros_default_wbdepth
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11572 $as_echo_n "checking if serial debug is enabled... " >&6; }
11574 # Check whether --with-serial-debug was given.
11575 if test "${with_serial_debug+set}" = set; then :
11576 withval
=$with_serial_debug; serial_debug
=$withval
11581 if test "$aros_serial_debug" = 0 ; then
11582 serial_debug_forced
=""
11583 if test "$serial_debug" = "yes" ; then
11586 if test "$serial_debug" = "no" ; then
11587 serial_debug
="none"
11590 serial_debug_forced
="(forced)"
11591 serial_debug
=$aros_serial_debug
11593 if test "$serial_debug" != "none" ; then
11594 aros_serial_debug
=$serial_debug
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11596 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11603 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11604 # Check whether --enable-palm_debug_hack was given.
11605 if test "${enable_palm_debug_hack+set}" = set; then :
11606 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
11608 palm_debug_hack
="no"
11611 if test "$palm_debug_hack" = "yes" ; then
11612 aros_palm_debug_hack
="1"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11615 $as_echo "$palm_debug_hack" >&6; }
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11618 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11619 # Check whether --enable-usb30_code was given.
11620 if test "${enable_usb30_code+set}" = set; then :
11621 enableval
=$enable_usb30_code; usb30_code
="yes"
11626 if test "$usb30_code" = "yes" ; then
11627 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
11628 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11631 $as_echo "$usb30_code" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11634 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11635 # Check whether --enable-nesting_supervisor was given.
11636 if test "${enable_nesting_supervisor+set}" = set; then :
11637 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
11639 nesting_supervisor
="no"
11642 if test "$nesting_supervisor" = "yes" ; then
11643 aros_nesting_supervisor
="1"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11646 $as_echo "$nesting_supervisor" >&6; }
11648 if test "$aros_enable_mmu" = "" ; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11650 $as_echo_n "checking if MMU support is enabled... " >&6; }
11651 # Check whether --enable-mmu was given.
11652 if test "${enable_mmu+set}" = set; then :
11653 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
11655 aros_enable_mmu
="yes"
11658 if test "$aros_enable_mmu" = "" ; then
11659 aros_enable_mmu
="yes"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11662 $as_echo "$aros_enable_mmu" >&6; }
11664 if test "$aros_enable_mmu" = "no" ; then
11665 aros_enable_mmu
="0"
11667 aros_enable_mmu
="1"
11671 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11673 if test "x-$need_dlopen" != "x-no" ; then
11674 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11675 if test "x$ac_cv_func_dlopen" = xyes
; then :
11681 if test "x-$have_dl" = "x-no" ; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11683 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11684 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11685 $as_echo_n "(cached) " >&6
11687 ac_check_lib_save_LIBS
=$LIBS
11689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11707 if ac_fn_c_try_link
"$LINENO"; then :
11708 ac_cv_lib_dl_dlopen
=yes
11710 ac_cv_lib_dl_dlopen
=no
11712 rm -f core conftest.err conftest.
$ac_objext \
11713 conftest
$ac_exeext conftest.
$ac_ext
11714 LIBS
=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11717 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11718 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11720 aros_host_ldflags
="$aros_host_ldflags -ldl"
11726 if test "x-$have_dl" = "x-no" ; then
11727 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
11732 # Check whether --enable-x11_hidd was given.
11733 if test "${enable_x11_hidd+set}" = set; then :
11734 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
11736 x11_hidd
="$need_x11"
11739 case "x-$x11_hidd" in
11740 x-yes|x-no|x-auto
) ;;
11741 *) x11_hidd
="$need_x11" ;;
11746 if test "x-$x11_hidd" != "x-no" ; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11749 $as_echo_n "checking for X... " >&6; }
11752 # Check whether --with-x was given.
11753 if test "${with_x+set}" = set; then :
11757 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11758 if test "x$with_x" = xno
; then
11759 # The user explicitly disabled X.
11762 case $x_includes,$x_libraries in #(
11763 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
11764 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
11765 $as_echo_n "(cached) " >&6
11767 # One or both of the vars are not set, and there is no cached value.
11768 ac_x_includes
=no ac_x_libraries
=no
11769 rm -f -r conftest.dir
11770 if mkdir conftest.dir
; then
11772 cat >Imakefile
<<'_ACEOF'
11774 @echo incroot='${INCROOT}'
11776 @echo usrlibdir='${USRLIBDIR}'
11778 @echo libdir='${LIBDIR}'
11780 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
11781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11782 for ac_var
in incroot usrlibdir libdir
; do
11783 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11785 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11786 for ac_extension
in a so sl dylib la dll
; do
11787 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11788 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11789 ac_im_usrlibdir
=$ac_im_libdir; break
11792 # Screen out bogus values from the imake configuration. They are
11793 # bogus both because they are the default anyway, and because
11794 # using them would break gcc on systems where it needs fixed includes.
11795 case $ac_im_incroot in
11796 /usr
/include
) ac_x_includes
= ;;
11797 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
11799 case $ac_im_usrlibdir in
11800 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
11801 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
11805 rm -f -r conftest.dir
11808 # Standard set of common directories for X headers.
11809 # Check X11 before X11Rn because it is often a symlink to the current release.
11823 /usr/local/X11/include
11824 /usr/local/X11R7/include
11825 /usr/local/X11R6/include
11826 /usr/local/X11R5/include
11827 /usr/local/X11R4/include
11829 /usr/local/include/X11
11830 /usr/local/include/X11R7
11831 /usr/local/include/X11R6
11832 /usr/local/include/X11R5
11833 /usr/local/include/X11R4
11837 /usr/XFree86/include/X11
11841 /usr/unsupported/include
11842 /usr/athena/include
11843 /usr/local/x11r5/include
11844 /usr/lpp/Xamples/include
11846 /usr/openwin/include
11847 /usr/openwin/share/include'
11849 if test "$ac_x_includes" = no
; then
11850 # Guess where to find include files, by looking for Xlib.h.
11851 # First, try using that file with no special directory specified.
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <X11/Xlib.h>
11856 if ac_fn_c_try_cpp
"$LINENO"; then :
11857 # We can compile using X headers with no special include directory.
11860 for ac_dir
in $ac_x_header_dirs; do
11861 if test -r "$ac_dir/X11/Xlib.h"; then
11862 ac_x_includes
=$ac_dir
11867 rm -f conftest.err conftest.i conftest.
$ac_ext
11868 fi # $ac_x_includes = no
11870 if test "$ac_x_libraries" = no
; then
11871 # Check for the libraries.
11872 # See if we find them without any special options.
11873 # Don't add to $LIBS permanently.
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <X11/Xlib.h>
11887 if ac_fn_c_try_link
"$LINENO"; then :
11889 # We can link X programs with no special library path.
11893 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11895 # Don't even attempt the hair of trying to link an X program!
11896 for ac_extension
in a so sl dylib la dll
; do
11897 if test -r "$ac_dir/libX11.$ac_extension"; then
11898 ac_x_libraries
=$ac_dir
11904 rm -f core conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11906 fi # $ac_x_libraries = no
11908 case $ac_x_includes,$ac_x_libraries in #(
11909 no
,* |
*,no |
*\'*)
11910 # Didn't find X, or a directory has "'" in its name.
11911 ac_cv_have_x
="have_x=no";; #(
11913 # Record where we found X for the cache.
11914 ac_cv_have_x
="have_x=yes\
11915 ac_x_includes='$ac_x_includes'\
11916 ac_x_libraries='$ac_x_libraries'"
11922 eval "$ac_cv_have_x"
11925 if test "$have_x" != yes; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11927 $as_echo "$have_x" >&6; }
11930 # If each of the values was on the command line, it overrides each guess.
11931 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
11932 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
11933 # Update the cache value to reflect the command line values.
11934 ac_cv_have_x
="have_x=yes\
11935 ac_x_includes='$x_includes'\
11936 ac_x_libraries='$x_libraries'"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11938 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11943 for path
in $x_libraries
11945 x_cflags
="$x_cflags -L$path"
11948 for path
in $x_includes
11950 x_cflags
="$x_cflags -I$path"
11953 if test "x-$no_x" = "x-yes" ; then
11955 if test "x-$x11_hidd" != "x-auto" ; then
11956 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11960 x11_hidd_target
=kernel-x11gfx-kobj
11963 # Check whether --enable-x11_shm was given.
11964 if test "${enable_x11_shm+set}" = set; then :
11965 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
11967 x11_hidd_shm
="auto"
11970 case "x-$x11_hidd_shm" in
11971 x-yes|x-no|x-auto
) ;;
11972 *) x11_hidd_shm
="auto" ;;
11977 if test "x-$x11_hidd_shm" != "x-no" ; then
11979 for ac_header
in sys
/ipc.h
11981 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11982 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
11983 cat >>confdefs.h
<<_ACEOF
11984 #define HAVE_SYS_IPC_H 1
11991 for ac_header
in sys
/shm.h
11993 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11994 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
11995 cat >>confdefs.h
<<_ACEOF
11996 #define HAVE_SYS_SHM_H 1
12004 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12006 save_cflags
="$CFLAGS"
12007 CFLAGS
="$CFLAGS $x_cflags"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
12009 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12010 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
12011 $as_echo_n "(cached) " >&6
12013 ac_check_lib_save_LIBS
=$LIBS
12014 LIBS
="-lXext $LIBS"
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12024 char XShmQueryExtension ();
12028 return XShmQueryExtension ();
12033 if ac_fn_c_try_link
"$LINENO"; then :
12034 ac_cv_lib_Xext_XShmQueryExtension
=yes
12036 ac_cv_lib_Xext_XShmQueryExtension
=no
12038 rm -f core conftest.err conftest.
$ac_objext \
12039 conftest
$ac_exeext conftest.
$ac_ext
12040 LIBS
=$ac_check_lib_save_LIBS
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12043 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12044 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
12048 CFLAGS
="$save_cflags"
12052 if test "x-$have_xshm" = "x-yes" ; then
12053 DO_XSHM_SUPPORT
="1"
12054 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12055 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
12057 DO_XSHM_SUPPORT
="0"
12061 # Check whether --enable-x11_vidmode was given.
12062 if test "${enable_x11_vidmode+set}" = set; then :
12063 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
12065 x11_hidd_vidmode
="auto"
12068 case "x-$x11_hidd_vidmode" in
12069 x-yes|x-no|x-auto
) ;;
12070 *) x11_hidd_vidmode
="auto" ;;
12075 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12077 save_cflags
="$CFLAGS"
12078 CFLAGS
="$CFLAGS $x_cflags"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12080 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12081 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
12082 $as_echo_n "(cached) " >&6
12084 ac_check_lib_save_LIBS
=$LIBS
12085 LIBS
="-lXxf86vm $LIBS"
12086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12095 char XF86VidModeQueryExtension ();
12099 return XF86VidModeQueryExtension ();
12104 if ac_fn_c_try_link
"$LINENO"; then :
12105 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
12107 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
12109 rm -f core conftest.err conftest.
$ac_objext \
12110 conftest
$ac_exeext conftest.
$ac_ext
12111 LIBS
=$ac_check_lib_save_LIBS
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12114 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12115 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
12119 CFLAGS
="$save_cflags"
12122 if test "x-$have_vidmode" = "x-yes" ; then
12123 DO_VIDMODE_SUPPORT
="1"
12124 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12125 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
12127 DO_VIDMODE_SUPPORT
="0"
12131 aros_host_x11_includes
=$x_includes
12132 aros_host_x11_libdirs
=$x_libraries
12136 # Check whether --enable-sdl_hidd was given.
12137 if test "${enable_sdl_hidd+set}" = set; then :
12138 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
12143 case "x-$sdl_hidd" in
12144 x-yes|x-no|x-auto
) ;;
12145 *) sdl_hidd
="auto" ;;
12148 if test "x-$sdl_hidd" != "x-no" ; then
12151 # Check whether --with-sdl-prefix was given.
12152 if test "${with_sdl_prefix+set}" = set; then :
12153 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
12159 # Check whether --with-sdl-exec-prefix was given.
12160 if test "${with_sdl_exec_prefix+set}" = set; then :
12161 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
12166 # Check whether --enable-sdltest was given.
12167 if test "${enable_sdltest+set}" = set; then :
12168 enableval
=$enable_sdltest;
12174 if test x
$sdl_exec_prefix != x
; then
12175 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
12176 if test x
${SDL_CONFIG+set} != xset
; then
12177 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
12180 if test x
$sdl_prefix != x
; then
12181 sdl_args
="$sdl_args --prefix=$sdl_prefix"
12182 if test x
${SDL_CONFIG+set} != xset
; then
12183 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
12187 if test "x$prefix" != xNONE
; then
12188 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
12190 # Extract the first word of "sdl-config", so it can be a program name with args.
12191 set dummy sdl-config
; ac_word
=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
12195 $as_echo_n "(cached) " >&6
12197 case $SDL_CONFIG in
12199 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
12202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12203 for as_dir
in $PATH
12206 test -z "$as_dir" && as_dir
=.
12207 for ac_exec_ext
in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
12221 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
12222 if test -n "$SDL_CONFIG"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12224 $as_echo "$SDL_CONFIG" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 min_sdl_version
=1.2.10
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12233 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12235 if test "$SDL_CONFIG" = "no" ; then
12238 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
12239 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
12241 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
12242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12243 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
12244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12245 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
12246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12247 if test "x$enable_sdltest" = "xyes" ; then
12248 ac_save_CFLAGS
="$CFLAGS"
12249 ac_save_CXXFLAGS
="$CXXFLAGS"
12250 ac_save_LIBS
="$LIBS"
12251 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12252 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12253 LIBS
="$LIBS $SDL_LIBS"
12255 if test "$cross_compiling" = yes; then :
12256 echo $ac_n "cross compiling; assumed OK... $ac_c"
12258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12262 #include <stdlib.h>
12263 #include <string.h>
12267 my_strdup (char *str)
12273 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12274 strcpy (new_str, str);
12282 int main (int argc, char *argv[])
12284 int major, minor, micro;
12287 /* This hangs on some systems (?)
12288 system ("touch conf.sdltest");
12290 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12292 /* HP/UX 9 (%@#!) writes to sscanf strings */
12293 tmp_version = my_strdup("$min_sdl_version");
12294 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12295 printf("%s, bad version string\n", "$min_sdl_version");
12299 if (($sdl_major_version > major) ||
12300 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12301 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12307 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12308 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12309 printf("*** best to upgrade to the required version.\n");
12310 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12311 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12312 printf("*** config.cache before re-running configure\n");
12319 if ac_fn_c_try_run
"$LINENO"; then :
12324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12328 CFLAGS
="$ac_save_CFLAGS"
12329 CXXFLAGS
="$ac_save_CXXFLAGS"
12330 LIBS
="$ac_save_LIBS"
12333 if test "x$no_sdl" = x
; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335 $as_echo "yes" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 if test "$SDL_CONFIG" = "no" ; then
12341 echo "*** The sdl-config script installed by SDL could not be found"
12342 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12343 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12344 echo "*** full path to sdl-config."
12346 if test -f conf.sdltest
; then
12349 echo "*** Could not run SDL test program, checking why..."
12350 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12351 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12352 LIBS
="$LIBS $SDL_LIBS"
12353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12359 int main(int argc, char *argv[])
12362 #define main K_and_R_C_main
12372 if ac_fn_c_try_link
"$LINENO"; then :
12373 echo "*** The test program compiled, but did not run. This usually means"
12374 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12375 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12376 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12377 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12378 echo "*** is required on your system"
12380 echo "*** If you have an old version installed, it is best to remove it, although"
12381 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12383 echo "*** The test program failed to compile or link. See the file config.log for the"
12384 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12385 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12386 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12388 rm -f core conftest.err conftest.
$ac_objext \
12389 conftest
$ac_exeext conftest.
$ac_ext
12390 CFLAGS
="$ac_save_CFLAGS"
12391 CXXFLAGS
="$ac_save_CXXFLAGS"
12392 LIBS
="$ac_save_LIBS"
12404 if test "x-$have_sdl" != "x-yes" ; then
12406 if test "x-$sdl_hidd" != "x-auto" ; then
12407 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12411 sdl_hidd_target
=kernel-hidd-sdl
12412 aros_host_sdl_cflags
=SDL_CFLAGS
12413 aros_host_sdl_libs
=SDL_LIBS
12417 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12418 if test "x$ac_cv_header_sys_soundcard_h" = xyes
; then :
12423 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12424 oss_library_target
=workbench-libs-oss-unix
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12430 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12431 # Check whether --enable-dbus was given.
12432 if test "${enable_dbus+set}" = set; then :
12433 enableval
=$enable_dbus; dbus
="yes"
12438 if test "$dbus" = "yes" ; then
12440 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
12441 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
12442 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
12443 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12448 $as_echo "$dbus" >&6; }
12450 if test "$use_kernel_cc_wrapper" = "yes" ; then
12451 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12466 # Compatability with other Amiga-like operation systems
12555 # Delinting target compiler flags
12579 # Native version related
12582 # Palm native version related
12588 # Unix/Hosted version related
12594 # Apple iOS related
12619 # Collect-aros stuff: "-ius" to ignore undefined symbols
12622 # C compiler related
12625 case "$aros_flavour" in
12626 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
12627 aros_flavour
="emulation" ;;
12628 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12629 aros_flavour
="emulation" ;;
12630 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
12631 aros_flavour
="standalone";;
12632 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12633 aros_flavour
="standalone";;
12634 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
12635 aros_flavour
="native" ;;
12636 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12637 aros_flavour
="native" ;;
12638 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
12639 aros_flavour
="linklib" ;;
12640 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12641 aros_flavour
="palmnative" ;;
12642 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12643 aros_flavour
="mac68knative" ;;
12644 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12645 aros_flavour
="ppcnative" ;;
12648 if test ! -d ${aros_inc_dir} ; then
12649 ${MKDIR} ${aros_inc_dir}
12651 if test ! -d ${aros_geninc_dir} ; then
12652 ${MKDIR} ${aros_geninc_dir}
12654 if test ! -d ${aros_hostcfg_dir} ; then
12655 ${MKDIR} ${aros_hostcfg_dir}
12657 if test ! -d ${aros_targetcfg_dir} ; then
12658 ${MKDIR} ${aros_targetcfg_dir}
12660 if test ! -d ${aros_tools_dir} ; then
12661 ${MKDIR} ${aros_tools_dir}
12663 if test ! -d ${aros_scripts_dir} ; then
12664 ${MKDIR} ${aros_scripts_dir}
12667 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12670 ac_config_commands
="$ac_config_commands compiler_executable"
12672 ac_config_commands
="$ac_config_commands genmf_executable"
12675 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}-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"
12678 cat >confcache
<<\_ACEOF
12679 # This file is a shell script that caches the results of configure
12680 # tests run on this system so they can be shared between configure
12681 # scripts and configure runs, see configure's option --config-cache.
12682 # It is not useful on other systems. If it contains results you don't
12683 # want to keep, you may remove or edit it.
12685 # config.status only pays attention to the cache file if you give it
12686 # the --recheck option to rerun configure.
12688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12690 # following values.
12694 # The following way of writing the cache mishandles newlines in values,
12695 # but we know of no workaround that is simple, portable, and efficient.
12696 # So, we kill variables containing newlines.
12697 # Ultrix sh set writes to stderr and can't be redirected directly,
12698 # and sets the high bit in the cache file unless we assign to the vars.
12700 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12701 eval ac_val
=\$
$ac_var
12705 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12709 _ | IFS | as_nl
) ;; #(
12710 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12711 *) { eval $ac_var=; unset $ac_var;} ;;
12717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12718 *${as_nl}ac_space
=\
*)
12719 # `set' does not quote correctly, so add quotes: double-quote
12720 # substitution turns \\\\ into \\, and sed turns \\ into \.
12723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12726 # `set' quotes correctly as required by POSIX, so do not add quotes.
12727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12740 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12741 if test -w "$cache_file"; then
12742 if test "x$cache_file" != "x/dev/null"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12744 $as_echo "$as_me: updating cache $cache_file" >&6;}
12745 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12746 cat confcache
>"$cache_file"
12748 case $cache_file in #(
12750 mv -f confcache
"$cache_file"$$
&&
12751 mv -f "$cache_file"$$
"$cache_file" ;; #(
12753 mv -f confcache
"$cache_file" ;;
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12764 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12765 # Let make expand exec_prefix.
12766 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12768 DEFS
=-DHAVE_CONFIG_H
12773 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12774 # 1. Remove the extension, and $U if already installed.
12775 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12776 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12778 # will be set to the directory where LIBOBJS objects are built.
12779 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12782 LIBOBJS
=$ac_libobjs
12784 LTLIBOBJS
=$ac_ltlibobjs
12788 : "${CONFIG_STATUS=./config.status}"
12790 ac_clean_files_save
=$ac_clean_files
12791 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12797 # Generated by $as_me.
12798 # Run this file to recreate the current configuration.
12799 # Compiler output produced by configure, useful for debugging
12800 # configure, is in config.log if it exists.
12803 ac_cs_recheck=false
12806 SHELL=\${CONFIG_SHELL-$SHELL}
12809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12810 ## -------------------- ##
12811 ## M4sh Initialization. ##
12812 ## -------------------- ##
12814 # Be more Bourne compatible
12815 DUALCASE
=1; export DUALCASE
# for MKS sh
12816 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12820 # is contrary to our usage. Disable this feature.
12821 alias -g '${1+"$@"}'='"$@"'
12822 setopt NO_GLOB_SUBST
12824 case `(set -o) 2>/dev/null` in #(
12836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12837 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12840 # Prefer a ksh shell builtin over an external printf program on Solaris,
12841 # but without wasting forks for bash or zsh.
12842 if test -z "$BASH_VERSION$ZSH_VERSION" \
12843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12844 as_echo='print
-r --'
12845 as_echo_n='print
-rn --'
12846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12847 as_echo='printf %s
\n'
12848 as_echo_n='printf %s
'
12850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12851 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12852 as_echo_n='/usr
/ucb
/echo -n'
12854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12855 as_echo_n_body='eval
12859 expr "X$arg" : "X\\(.*\\)$as_nl";
12860 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12862 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12864 export as_echo_n_body
12865 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12867 export as_echo_body
12868 as_echo='sh
-c $as_echo_body as_echo
'
12871 # The user is always right.
12872 if test "${PATH_SEPARATOR+set}" != set; then
12874 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12875 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12882 # We need space, tab and new line, in precisely that order. Quoting is
12883 # there to prevent editors from complaining about space-tab.
12884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12885 # splitting by setting IFS to empty value.)
12888 # Find who we are. Look in the path if we contain no directory separator.
12891 *[\\/]* ) as_myself=$0 ;;
12892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12896 test -z "$as_dir" && as_dir=.
12897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12903 # We did not find ourselves, most probably we were run as `sh COMMAND'
12904 # in which case we are not to be found in the path.
12905 if test "x$as_myself" = x
; then
12908 if test ! -f "$as_myself"; then
12909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12913 # Unset variables that we do not need and which cause bugs (e.g. in
12914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12915 # suppresses any "Segmentation fault" message there. '((' could
12916 # trigger a bug in pdksh 5.2.14.
12917 for as_var
in BASH_ENV ENV MAIL MAILPATH
12918 do eval test x\
${$as_var+set} = xset \
12919 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12932 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12936 # ----------------------------------------
12937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12939 # script with STATUS, using 1 if that was 0.
12942 as_status
=$1; test $as_status -eq 0 && as_status
=1
12944 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12947 $as_echo "$as_me: error: $2" >&2
12948 as_fn_exit
$as_status
12952 # as_fn_set_status STATUS
12953 # -----------------------
12954 # Set $? to STATUS, without forking.
12955 as_fn_set_status
()
12958 } # as_fn_set_status
12960 # as_fn_exit STATUS
12961 # -----------------
12962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12966 as_fn_set_status
$1
12972 # Portably unset VAR.
12975 { eval $1=; unset $1;}
12977 as_unset
=as_fn_unset
12978 # as_fn_append VAR VALUE
12979 # ----------------------
12980 # Append the text in VALUE to the end of the definition contained in VAR. Take
12981 # advantage of any shell optimizations that allow amortized linear growth over
12982 # repeated appends, instead of the typical quadratic growth present in naive
12984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12985 eval 'as_fn_append ()
12996 # as_fn_arith ARG...
12997 # ------------------
12998 # Perform arithmetic evaluation on the ARGs, and store the result in the
12999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13000 # must be portable across $(()) and expr.
13001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13002 eval 'as_fn_arith ()
13009 as_val
=`expr "$@" || test $? -eq 1`
13014 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13015 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13021 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13022 as_basename
=basename
13027 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13033 as_me
=`$as_basename -- "$0" ||
13034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13035 X"$0" : 'X\(//\)$' \| \
13036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13038 sed '/^.*\/\([^/][^/]*\)\/*$/{
13052 # Avoid depending upon Character Ranges.
13053 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13054 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13055 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13056 as_cr_digits
='0123456789'
13057 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13059 ECHO_C
= ECHO_N
= ECHO_T
=
13060 case `echo -n x` in #(((((
13062 case `echo 'xy\c'` in
13063 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13065 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13072 rm -f conf$$ conf$$.exe conf$$.
file
13073 if test -d conf$$.dir
; then
13074 rm -f conf$$.dir
/conf$$.
file
13077 mkdir conf$$.dir
2>/dev
/null
13079 if (echo >conf$$.
file) 2>/dev
/null
; then
13080 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13082 # ... but there are two gotchas:
13083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13085 # In both cases, we have to default to `cp -p'.
13086 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13088 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13096 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13097 rmdir conf$$.dir
2>/dev
/null
13102 # Create "$as_dir" as a directory, including parents if necessary.
13107 -*) as_dir
=.
/$as_dir;;
13109 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13113 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13114 *) as_qdir
=$as_dir;;
13116 as_dirs
="'$as_qdir' $as_dirs"
13117 as_dir
=`$as_dirname -- "$as_dir" ||
13118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13119 X"$as_dir" : 'X\(//\)[^/]' \| \
13120 X"$as_dir" : 'X\(//\)$' \| \
13121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13122 $as_echo X"$as_dir" |
13123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13127 /^X\(\/\/\)[^/].*/{
13140 test -d "$as_dir" && break
13142 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13143 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13147 if mkdir
-p .
2>/dev
/null
; then
13148 as_mkdir_p
='mkdir -p "$as_dir"'
13150 test -d .
/-p && rmdir .
/-p
13154 if test -x / >/dev
/null
2>&1; then
13155 as_test_x
='test -x'
13157 if ls -dL / >/dev
/null
2>&1; then
13164 if test -d "$1"; then
13170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13171 ???[sx]*):;;*)false;;esac;fi
13175 as_executable_p
=$as_test_x
13177 # Sed expression to map a string onto a valid CPP name.
13178 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13180 # Sed expression to map a string onto a valid variable name.
13181 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13185 ## ----------------------------------- ##
13186 ## Main body of $CONFIG_STATUS script. ##
13187 ## ----------------------------------- ##
13189 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13192 # Save the log message, to keep $0 and so on meaningful, and to
13193 # report actual input values of CONFIG_FILES etc. instead of their
13194 # values after options handling.
13196 This file was extended by $as_me, which was
13197 generated by GNU Autoconf 2.68. Invocation command line was
13199 CONFIG_FILES = $CONFIG_FILES
13200 CONFIG_HEADERS = $CONFIG_HEADERS
13201 CONFIG_LINKS = $CONFIG_LINKS
13202 CONFIG_COMMANDS = $CONFIG_COMMANDS
13205 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13210 case $ac_config_files in *"
13211 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13214 case $ac_config_headers in *"
13215 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220 # Files that config.status was made for.
13221 config_files="$ac_config_files"
13222 config_headers="$ac_config_headers"
13223 config_commands="$ac_config_commands"
13227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13229 \`$as_me' instantiates files and other configuration actions
13230 from templates according to the current configuration. Unless the files
13231 and actions are specified as TAGs, all are instantiated by default.
13233 Usage: $0 [OPTION]... [TAG]...
13235 -h, --help print this help, then exit
13236 -V, --version print version number and configuration settings, then exit
13237 --config print configuration, then exit
13238 -q, --quiet, --silent
13239 do not print progress messages
13240 -d, --debug don't remove temporary files
13241 --recheck update $as_me by reconfiguring in the same conditions
13242 --file=FILE[:TEMPLATE]
13243 instantiate the configuration file FILE
13244 --header=FILE[:TEMPLATE]
13245 instantiate the configuration header FILE
13247 Configuration files:
13250 Configuration headers:
13253 Configuration commands:
13256 Report bugs to the package provider."
13259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13260 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13263 configured by $0, generated by GNU Autoconf 2.68,
13264 with options \\"\$ac_cs_config\\"
13266 Copyright (C) 2010 Free Software Foundation, Inc.
13267 This config.status script is free software; the Free Software Foundation
13268 gives unlimited permission to copy, distribute and modify it."
13272 test -n "\$AWK" || AWK=awk
13275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13276 # The default lists apply if the user does not specify any file.
13282 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13283 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13287 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13299 # Handling of the options.
13300 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13302 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13303 $as_echo "$ac_cs_version"; exit ;;
13304 --config |
--confi |
--conf |
--con |
--co |
--c )
13305 $as_echo "$ac_cs_config"; exit ;;
13306 --debug |
--debu |
--deb |
--de |
--d |
-d )
13308 --file |
--fil |
--fi |
--f )
13311 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13312 '') as_fn_error $?
"missing file argument" ;;
13314 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13315 ac_need_defaults
=false
;;
13316 --header |
--heade |
--head |
--hea )
13319 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13321 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13322 ac_need_defaults
=false
;;
13324 # Conflict between --help and --header
13325 as_fn_error $?
"ambiguous option: \`$1'
13326 Try \`$0 --help' for more information.";;
13327 --help |
--hel |
-h )
13328 $as_echo "$ac_cs_usage"; exit ;;
13329 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13330 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13333 # This is an error.
13334 -*) as_fn_error $?
"unrecognized option: \`$1'
13335 Try \`$0 --help' for more information." ;;
13337 *) as_fn_append ac_config_targets
" $1"
13338 ac_need_defaults
=false
;;
13344 ac_configure_extra_args
=
13346 if $ac_cs_silent; then
13348 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13353 if \$ac_cs_recheck; then
13354 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13357 CONFIG_SHELL='$SHELL'
13358 export CONFIG_SHELL
13363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13368 ## Running $as_me. ##
13374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379 aros_host_exe_suffix=${aros_host_exe_suffix}
13380 aros_tools_dir=${aros_tools_dir}
13381 aros_target_cpu=${aros_target_cpu}
13382 aros_target_arch=${aros_target_arch}
13383 aros_target_suffix=${aros_target_suffix}
13384 aros_target_nm_ln=${aros_target_nm_ln}
13385 aros_target_as_ln=${aros_target_as_ln}
13386 aros_target_ar_ln=${aros_target_ar_ln}
13387 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13388 aros_target_objdump_ln=${aros_target_objdump_ln}
13389 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13390 aros_target_strip_ln=${aros_target_strip_ln}
13391 aros_kernel_ld=${aros_kernel_ld}
13394 aros_tools_dir=${aros_tools_dir}
13399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13401 # Handling of arguments.
13402 for ac_config_target
in $ac_config_targets
13404 case $ac_config_target in
13405 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13406 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
13407 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
13408 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13409 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
13410 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13411 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13412 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13413 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13414 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
13415 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13416 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13417 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13418 "${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" ;;
13419 "${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" ;;
13420 "${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" ;;
13421 "${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" ;;
13422 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13423 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
13424 "${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" ;;
13426 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13431 # If the user did not use the arguments to specify the items to instantiate,
13432 # then the envvar interface is used. Set only those that are not.
13433 # We use the long form for the default assignment because of an extremely
13434 # bizarre bug on SunOS 4.1.3.
13435 if $ac_need_defaults; then
13436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13441 # Have a temporary directory for convenience. Make it in the build tree
13442 # simply because there is no reason against having it here, and in addition,
13443 # creating and moving files from /tmp can sometimes cause problems.
13444 # Hook for its removal unless debugging.
13445 # Note that there is a small window in which the directory will not be cleaned:
13446 # after its creation but before its name has been assigned to `$tmp'.
13450 trap 'exit_status=$?
13451 : "${ac_tmp:=$tmp}"
13452 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13454 trap 'as_fn_exit 1' 1 2 13 15
13456 # Create a (secure) tmp directory for tmp files.
13459 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13463 tmp
=.
/conf$$
-$RANDOM
13464 (umask 077 && mkdir
"$tmp")
13465 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13468 # Set up the scripts for CONFIG_FILES section.
13469 # No need to generate them if there are no CONFIG_FILES.
13470 # This happens for instance with `./config.status config.h'.
13471 if test -n "$CONFIG_FILES"; then
13474 ac_cr
=`echo X | tr X '\015'`
13475 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13476 # But we know of no other shell where ac_cr would be empty at this
13477 # point, so we can use a bashism as a fallback.
13478 if test "x$ac_cr" = x
; then
13479 eval ac_cr
=\$
\'\\r
\'
13481 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13482 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13485 ac_cs_awk_cr
=$ac_cr
13488 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13493 echo "cat >conf$$subs.awk <<_ACEOF" &&
13494 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13496 } >conf$$subs.sh ||
13497 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13498 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13500 for ac_last_try in false false false false false :; do
13501 . ./conf$$subs.sh ||
13502 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13504 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13505 if test $ac_delim_n = $ac_delim_num; then
13507 elif $ac_last_try; then
13508 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13510 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13513 rm -f conf$$subs.sh
13515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13516 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13520 s/^/S["/; s
/!.
*/"]=/
13530 s/\(.\{148\}\)..*/\1/
13532 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13537 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13544 s/\(.\{148\}\)..*/\1/
13546 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13550 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13555 ' <conf$$subs.awk | sed '
13560 ' >>$CONFIG_STATUS || ac_write_fail=1
13561 rm -f conf$$subs.awk
13562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13565 for (key in S) S_is_set[key] = 1
13571 nfields = split(line, field, "@
")
13573 len = length(field[1])
13574 for (i = 2; i < nfields; i++) {
13576 keylen = length(key)
13577 if (S_is_set[key]) {
13579 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13580 len += length(value) + length(field[++i])
13591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13592 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13593 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13596 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13597 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13600 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13601 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13602 # trailing colons and then remove the whole line if VPATH becomes empty
13603 # (actually we leave an empty line to preserve line numbers).
13604 if test "x
$srcdir" = x.; then
13605 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13624 fi # test -n "$CONFIG_FILES"
13626 # Set up the scripts for CONFIG_HEADERS section.
13627 # No need to generate them if there are no CONFIG_HEADERS.
13628 # This happens for instance with `./config.status Makefile'.
13629 if test -n "$CONFIG_HEADERS"; then
13630 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13634 # Transform confdefs.h into an awk script `defines.awk', embedded as
13635 # here-document in config.status, that substitutes the proper values into
13636 # config.h.in to produce config.h.
13638 # Create a delimiter string that does not exist in confdefs.h, to ease
13639 # handling of long lines.
13641 for ac_last_try in false false :; do
13642 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13643 if test -z "$ac_tt"; then
13645 elif $ac_last_try; then
13646 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13648 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13652 # For the awk script, D is an array of macro values keyed by name,
13653 # likewise P contains macro parameters if any. Preserve backslash
13654 # newline sequences.
13656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13658 s/.\{148\}/&'"$ac_delim"'/g
13661 s/^[ ]*#[ ]*define[ ][ ]*/ /
13668 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13670 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13675 D["\
1"]=" \
3\\\\\\n
"\\/p
13677 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13682 s/.\{148\}/&'"$ac_delim"'/g
13687 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13690 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13692 ' <confdefs.h | sed '
13693 s/'"$ac_delim"'/"\\\
13694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 for (key in D) D_is_set[key] = 1
13700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13702 split(line, arg, " ")
13703 if (arg[1] == "#") {
13707 defundef
= substr
(arg
[1], 2)
13710 split(mac1
, mac2
, "(") #)
13712 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13713 if (D_is_set
[macro
]) {
13714 # Preserve the white space surrounding the "#".
13715 print prefix
"define", macro P
[macro
] D
[macro
]
13718 # Replace #undef with comments. This is necessary, for example,
13719 # in the case of _POSIX_SOURCE, which is predefined and required
13720 # on some systems where configure will not decide to define it.
13721 if (defundef
== "undef") {
13722 print
"/*", prefix defundef
, macro
, "*/"
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13731 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13732 fi # test -n "$CONFIG_HEADERS"
13735 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13740 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13742 case $ac_mode$ac_tag in
13744 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13745 :[FH
]-) ac_tag
=-:-;;
13746 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13763 -) ac_f
="$ac_tmp/stdin";;
13764 *) # Look for the file first in the build tree, then in the source tree
13765 # (if the path is not absolute). The absolute path cannot be DOS-style,
13766 # because $ac_f cannot contain `:'.
13770 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13772 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13774 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13775 as_fn_append ac_file_inputs
" '$ac_f'"
13778 # Let's still pretend it is `configure' which instantiates (i.e., don't
13779 # use $as_me), people would be surprised to read:
13780 # /* config.h. Generated by config.status. */
13781 configure_input
='Generated from '`
13782 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13784 if test x
"$ac_file" != x-
; then
13785 configure_input
="$ac_file. $configure_input"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13787 $as_echo "$as_me: creating $ac_file" >&6;}
13789 # Neutralize special characters interpreted by sed in replacement strings.
13790 case $configure_input in #(
13791 *\
&* |
*\|
* |
*\\* )
13792 ac_sed_conf_input
=`$as_echo "$configure_input" |
13793 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13794 *) ac_sed_conf_input
=$configure_input;;
13798 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13799 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13804 ac_dir
=`$as_dirname -- "$ac_file" ||
13805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13806 X"$ac_file" : 'X\(//\)[^/]' \| \
13807 X"$ac_file" : 'X\(//\)$' \| \
13808 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13809 $as_echo X"$ac_file" |
13810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13814 /^X\(\/\/\)[^/].*/{
13827 as_dir
="$ac_dir"; as_fn_mkdir_p
13831 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13833 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13834 # A ".." for each directory in $ac_dir_suffix.
13835 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13836 case $ac_top_builddir_sub in
13837 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13838 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13841 ac_abs_top_builddir
=$ac_pwd
13842 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13843 # for backward compatibility:
13844 ac_top_builddir
=$ac_top_build_prefix
13847 .
) # We are building in place.
13849 ac_top_srcdir
=$ac_top_builddir_sub
13850 ac_abs_top_srcdir
=$ac_pwd ;;
13851 [\\/]* | ?
:[\\/]* ) # Absolute name.
13852 ac_srcdir
=$srcdir$ac_dir_suffix;
13853 ac_top_srcdir
=$srcdir
13854 ac_abs_top_srcdir
=$srcdir ;;
13855 *) # Relative name.
13856 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13857 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13858 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13860 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13872 # If the template does not know about datarootdir, expand it.
13873 # FIXME: This hack should be removed a few years after 2.60.
13874 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13885 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13886 *datarootdir
*) ac_datarootdir_seen
=yes;;
13887 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13889 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13892 ac_datarootdir_hack='
13893 s&@datadir@&$datadir&g
13894 s&@docdir@&$docdir&g
13895 s&@infodir@&$infodir&g
13896 s&@localedir@&$localedir&g
13897 s&@mandir@&$mandir&g
13898 s&\\\${datarootdir}&$datarootdir&g' ;;
13902 # Neutralize VPATH when `$srcdir' = `.'.
13903 # Shell code in configure.ac might set extrasub.
13904 # FIXME: do we really want to maintain this feature?
13905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13906 ac_sed_extra="$ac_vpsub
13909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13911 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13912 s|@configure_input@|
$ac_sed_conf_input|
;t t
13913 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13914 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13915 s
&@srcdir@
&$ac_srcdir&;t t
13916 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13917 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13918 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13919 s
&@builddir@
&$ac_builddir&;t t
13920 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13921 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13922 $ac_datarootdir_hack
13924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13925 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13928 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13930 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13932 which seems to be undefined. Please make sure it is defined" >&5
13933 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13934 which seems to be undefined. Please make sure it is defined" >&2;}
13936 rm -f "$ac_tmp/stdin"
13938 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13939 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13947 if test x"$ac_file" != x-; then
13949 $as_echo "/* $configure_input */" \
13950 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13951 } >"$ac_tmp/config.h" \
13952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13953 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13955 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13958 mv "$ac_tmp/config.h" "$ac_file" \
13959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13962 $as_echo "/* $configure_input */" \
13963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13964 || as_fn_error $? "could not create -" "$LINENO" 5
13968 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13969 $as_echo "$as_me: executing $ac_file commands" >&6;}
13974 case $ac_file$ac_mode in
13975 "compiler_executable":C)
13976 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13978 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13979 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13983 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13985 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13986 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13987 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13988 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13989 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13990 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13991 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13993 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13995 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14003 ac_clean_files=$ac_clean_files_save
14005 test $ac_write_fail = 0 ||
14006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14009 # configure is writing to config.log, and then calls config.status.
14010 # config.status does its own redirection, appending to config.log.
14011 # Unfortunately, on DOS this fails, as config.log is still kept open
14012 # by configure, so config.status won't be able to
write to it
; its
14013 # output is simply discarded. So we exec the FD to /dev/null,
14014 # effectively closing config.log, so it can be properly (re)opened and
14015 # appended to by config.status. When coming back to configure, we
14016 # need to make the FD available again.
14017 if test "$no_create" != yes; then
14019 ac_config_status_args
=
14020 test "$silent" = yes &&
14021 ac_config_status_args
="$ac_config_status_args --quiet"
14023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14026 # would make configure fail if this is the last instruction.
14027 $ac_cs_success || as_fn_exit
1
14029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14036 #XXX compatability...
14037 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
14039 if test -n "$aros_shared_cflags" ; then
14040 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14041 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg