64 bit fixes (NicJA).
[AROS.git] / configure
blobe6fd373e4455c008e2cba5391098d7b50bf8cdfa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 aros_host_sdl_libs
657 aros_host_sdl_cflags
658 aros_host_x11_ldflags
659 aros_host_x11_cflags
660 DO_VIDMODE_SUPPORT
661 DO_XSHM_SUPPORT
662 aros_nominal_depth
663 aros_nominal_height
664 aros_nominal_width
665 pci_hidd_target
666 host_android_gfx
667 host_sdl_gfx
668 host_x_gfx
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_config_sysroot
696 aros_shared_ldflags
697 aros_shared_aflags
698 aros_shared_cflags
699 aros_arch_libs
700 aros_compiler_libs
701 spec_obj_format
702 aros_object_format
703 aros_shared_ld
704 aros_shared_default
705 aros_target_nm
706 aros_target_strip
707 aros_target_objcopy
708 aros_target_objdump
709 aros_target_cc_path
710 aros_target_cc_includes
711 aros_target_ld
712 aros_target_as
713 aros_target_cpp
714 aros_target_cxx
715 aros_target_cc
716 aros_plain_ar
717 aros_plain_nm
718 aros_target_ranlib
719 aros_target_ar
720 aros_target_suffix
721 aros_target_variant
722 aros_target_cpu_mode
723 aros_target_cpu
724 aros_target_family
725 aros_target_arch
726 aros_target_bootloader
727 aros_target_iconset
728 aros_target_guitheme
729 aros_tools_dir
730 aros_host_lib_suffix
731 aros_host_exe_suffix
732 aros_host_mkargs
733 aros_host_mkdep
734 aros_host_debug
735 aros_host_ldflags
736 gnu89_inline
737 aros_host_cxxflags
738 aros_host_cflags
739 aros_host_cppflags
740 aros_host_make
741 aros_host_cxx
742 aros_host_cc
743 aros_host_def_cc
744 aros_host_cpp
745 aros_host_cpu
746 aros_host_arch
747 aros_cc_pre
748 aros_amigaos_compliance
749 AROS_PORTSSRCDIR
750 AROS_CROSSTOOLSDIR
751 SRCDIR
752 AROS_BUILDDIR_UNIX
753 AROS_BUILDDIR
754 aros_build_host
755 aros_toolchain_ld
756 aros_target_toolchain
757 aros_flavour_uc
758 aros_flavour
759 aros_cpu
760 aros_arch
761 SDL_LIBS
762 SDL_CFLAGS
763 SDL_CONFIG
764 XMKMF
765 kernel_cflags_iquote_end
766 kernel_cflags_iquote
767 host_cflags_iquote_end
768 host_cflags_iquote
769 aros_toolchain
770 aros_target_nostdlib_ldflags
771 aros_target_detach_ldflags
772 aros_target_nix_ldflags
773 aros_target_nostartup_ldflags
774 aros_target_nostdinc_cflags
775 aros_kernel_rescomp
776 orig_target_objdump
777 orig_target_objcopy
778 orig_target_strip
779 orig_target_nm
780 orig_target_ranlib
781 orig_target_ar
782 orig_target_as
783 orig_target_ld
784 orig_target_cxx
785 orig_target_cc
786 orig_target_cpp
787 aros_kernel_objdump
788 aros_kernel_objcopy
789 aros_kernel_strip
790 aros_kernel_nm
791 aros_kernel_ranlib
792 aros_kernel_ar
793 aros_kernel_as
794 aros_kernel_ld
795 aros_kernel_cxx
796 aros_kernel_cc
797 aros_kernel_cpp
798 target_gcc_version
800 android_tool
801 CCACHE
802 DISTCC
803 LIBOBJS
804 EGREP
805 GREP
807 TEST
810 libpng_incdir
811 libpng_libextra
812 libpng
813 arosconfig_use_libpngconfig
814 pkgpyexecdir
815 pyexecdir
816 pkgpythondir
817 pythondir
818 PYTHON_PLATFORM
819 PYTHON_EXEC_PREFIX
820 PYTHON_PREFIX
821 PYTHON_VERSION
822 PYTHON
823 PATCH
824 CHMOD
826 PPMTOILBM
827 PNGTOPNM
828 FLEX
829 BISON
832 UNIQ
833 SORT
834 TOUCH
835 MKDIR
836 ECHO
840 aros_host_strip
841 aros_host_ranlib
842 aros_host_ar
843 aros_host_automake
844 aros_host_autoheader
845 aros_host_autoconf
846 aros_host_aclocal
847 aros_host_ld
848 MMAKE
851 ac_ct_CC
852 CFLAGS
854 OBJEXT
855 EXEEXT
856 ac_ct_CXX
857 CPPFLAGS
858 LDFLAGS
859 CXXFLAGS
861 host_os
862 host_vendor
863 host_cpu
864 host
865 build_os
866 build_vendor
867 build_cpu
868 build
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 with_c_compiler
911 with_cxx_compiler
912 enable_libpng_config
913 with_toolchain
914 enable_lto
915 enable_coverage
916 enable_build_type
917 enable_debug
918 enable_distcc
919 enable_ccache
920 with_kernel_gcc_version
921 with_optimization
922 with_paranoia
923 enable_target_variant
924 with_xcode
925 with_sdk_version
926 with_sdk
927 with_ndk
928 with_ndk_version
929 with_apk_version
930 enable_amigaos_compliance
931 with_kernel_toolchain_prefix
932 with_elf_toolchain_prefix
933 with_aros_toolchain
934 enable_crosstools
935 with_aros_toolchain_install
936 with_binutils_version
937 with_gcc_version
938 enable_objc
939 enable_java
940 with_cpu
941 with_fpu
942 with_float
943 with_portssources
944 with_bootloader
945 with_iconset
946 with_theme
947 enable_includes
948 with_resolution
949 with_serial_debug
950 enable_palm_debug_hack
951 enable_usb30_code
952 enable_nesting_supervisor
953 enable_mmu
954 enable_x11_hidd
955 with_x
956 enable_x11_shm
957 enable_x11_vidmode
958 enable_sdl_hidd
959 with_sdl_prefix
960 with_sdl_exec_prefix
961 enable_sdltest
962 enable_dbus
964 ac_precious_vars='build_alias
965 host_alias
966 target_alias
968 CXXFLAGS
969 LDFLAGS
970 LIBS
971 CPPFLAGS
974 CFLAGS
976 PYTHON
977 XMKMF'
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 ac_unrecognized_opts=
984 ac_unrecognized_sep=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1039 case $ac_option in
1040 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *=) ac_optarg= ;;
1042 *) ac_optarg=yes ;;
1043 esac
1045 # Accept the important Cygnus configure options, so we can diagnose typos.
1047 case $ac_dashdash$ac_option in
1049 ac_dashdash=yes ;;
1051 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052 ac_prev=bindir ;;
1053 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054 bindir=$ac_optarg ;;
1056 -build | --build | --buil | --bui | --bu)
1057 ac_prev=build_alias ;;
1058 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059 build_alias=$ac_optarg ;;
1061 -cache-file | --cache-file | --cache-fil | --cache-fi \
1062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063 ac_prev=cache_file ;;
1064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066 cache_file=$ac_optarg ;;
1068 --config-cache | -C)
1069 cache_file=config.cache ;;
1071 -datadir | --datadir | --datadi | --datad)
1072 ac_prev=datadir ;;
1073 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074 datadir=$ac_optarg ;;
1076 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077 | --dataroo | --dataro | --datar)
1078 ac_prev=datarootdir ;;
1079 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081 datarootdir=$ac_optarg ;;
1083 -disable-* | --disable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=no ;;
1099 -docdir | --docdir | --docdi | --doc | --do)
1100 ac_prev=docdir ;;
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105 ac_prev=dvidir ;;
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
1109 -enable-* | --enable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid feature name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1313 -with-* | --with-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=\$ac_optarg ;;
1329 -without-* | --without-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error $? "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=no ;;
1345 --x)
1346 # Obsolete; use --with-x.
1347 with_x=yes ;;
1349 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350 | --x-incl | --x-inc | --x-in | --x-i)
1351 ac_prev=x_includes ;;
1352 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354 x_includes=$ac_optarg ;;
1356 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358 ac_prev=x_libraries ;;
1359 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361 x_libraries=$ac_optarg ;;
1363 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1364 Try \`$0 --help' for more information"
1367 *=*)
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 case $ac_envvar in #(
1371 '' | [0-9]* | *[!_$as_cr_alnum]* )
1372 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1373 esac
1374 eval $ac_envvar=\$ac_optarg
1375 export $ac_envvar ;;
1378 # FIXME: should be removed in autoconf 3.0.
1379 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1385 esac
1386 done
1388 if test -n "$ac_prev"; then
1389 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390 as_fn_error $? "missing argument to $ac_option"
1393 if test -n "$ac_unrecognized_opts"; then
1394 case $enable_option_checking in
1395 no) ;;
1396 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1397 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398 esac
1401 # Check all directory arguments for consistency.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir
1407 eval ac_val=\$$ac_var
1408 # Remove trailing slashes.
1409 case $ac_val in
1410 */ )
1411 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412 eval $ac_var=\$ac_val;;
1413 esac
1414 # Be sure to have absolute directory names.
1415 case $ac_val in
1416 [\\/$]* | ?:[\\/]* ) continue;;
1417 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418 esac
1419 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1420 done
1422 # There might be people who depend on the old broken behavior: `$host'
1423 # used to hold the argument of --host etc.
1424 # FIXME: To remove some day.
1425 build=$build_alias
1426 host=$host_alias
1427 target=$target_alias
1429 # FIXME: To remove some day.
1430 if test "x$host_alias" != x; then
1431 if test "x$build_alias" = x; then
1432 cross_compiling=maybe
1433 elif test "x$build_alias" != "x$host_alias"; then
1434 cross_compiling=yes
1438 ac_tool_prefix=
1439 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441 test "$silent" = yes && exec 6>/dev/null
1444 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445 ac_ls_di=`ls -di .` &&
1446 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 as_fn_error $? "working directory cannot be determined"
1448 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449 as_fn_error $? "pwd does not report name of working directory"
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1470 /^X\(\/\/\)$/{
1471 s//\1/
1474 /^X\(\/\).*/{
1475 s//\1/
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1483 else
1484 ac_srcdir_defaulted=no
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1493 pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 srcdir=.
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1512 # Report the --help message.
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1517 cat <<_ACEOF
1518 \`configure' configures this package to adapt to many kinds of systems.
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1525 Defaults for the options are specified in brackets.
1527 Configuration:
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print \`checking ...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for \`--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 [PREFIX]
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1549 For better control, use the options below.
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1571 _ACEOF
1573 cat <<\_ACEOF
1575 X features:
1576 --x-includes=DIR X include files are in DIR
1577 --x-libraries=DIR X library files are in DIR
1579 System types:
1580 --build=BUILD configure for building on BUILD [guessed]
1581 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 _ACEOF
1585 if test -n "$ac_init_help"; then
1587 cat <<\_ACEOF
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --disable-libpng-config disable libpng-config test and configuration
1594 --enable-lto=yes|no Enable link time optimizations if the target
1595 compiler supports them (default=no)
1596 --enable-coverage=yes|no
1597 Enable coverage instrumentation if the target
1598 compiler supports it (default=no)
1599 --enable-build-type=TYPE
1600 Select the build type. Available types are:
1601 personal, nightly, snapshot, milestone, release. Do
1602 NOT use this option unless you know what you are
1603 doing! (default=personal)
1604 --enable-debug=list Enable different types of debug. Commas or
1605 whitespaces can be used to separate the items in the
1606 list. Available types of debug are: all, none,
1607 messages, stack, mungwall, modules, symbols. If no
1608 list is provided then "all" is assumed.
1609 (default=none)
1610 --enable-distcc Use distcc as a front end to the compiler
1611 (default=no).
1612 --enable-ccache Use ccache as a front end to the compiler
1613 (default=no).
1614 --enable-target-variant=NAME
1615 Enable a specific target variant (default=none)
1616 --enable-amigaos-compliance=VERSION
1617 Enforce userspace AmigaOS compliance to a specific
1618 KickStart version (default=none).
1619 --disable-crosstools Do not build cross-compiler toolchain
1620 --enable-objc Enable Objectve-C support (default=no)
1621 --enable-java Enable Java support (default=no)
1622 --enable-includes=dir Alternative system include directory
1623 --enable-palm-debug-hack
1624 Enable palm debug output hack in palm native
1625 (default=no)
1626 --enable-usb30-code Enable usb3.0 code (default=no)
1627 --enable-nesting-supervisor
1628 Enable nesting supervisor support in unix
1629 (default=no)
1630 --disable-mmu Disable MMU support (default=enabled)
1631 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1632 --enable-x11-shm use X11 shared memory (default=auto)
1633 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1634 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1635 --disable-sdltest Do not try to compile and run a test SDL program
1636 --enable-dbus Enable DBUS support via dbus.library (default=no)
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-c-compiler=VERSION
1642 Use specified c compiler for building AROS
1643 --with-cxx-compiler=VERSION
1644 Use specified c++ compiler building AROS
1645 --with-toolchain=family Which toolchain family to crosscompile with
1646 (defaults to gnu)
1647 --with-kernel-gcc-version=VERSION
1648 Use gcc-VERSION for building bootstrap
1649 --with-optimization=FLAGS
1650 Use optimization flags FLAGS (e.g
1651 --with-optimization=-O2).
1652 --with-paranoia=(yes|no|FLAGS)
1653 Specific compiler warning FLAGS to enable for
1654 paranoia builds (default=-Wall -Werror)
1655 --with-xcode=PATH Specify XCode path for iOS targets
1656 (default=/Developer).
1657 --with-sdk-version=VERSION
1658 Use iOS SDK version VERSION (default=4.1).
1659 --with-sdk=PATH Specify Android SDK path
1660 (default=$default_android_sdk).
1661 --with-ndk=PATH Specify Android NDK path (default=none).
1662 --with-sdk-version=LEVEL
1663 Use Android SDK for API LEVEL (default=12).
1664 --with-ndk-version=LEVEL
1665 Use Android NDK for API LEVEL (default=9).
1666 --with-apk-version=(release|debug)
1667 Which version of AROSBootstrap.apk to compile.
1668 Release version needs key for signing, debug version
1669 will only run in emulator. (default=release)
1670 --with-kernel-toolchain-prefix=...
1671 Specify crosscompile toolchain prefix for kernel
1672 objects
1673 --with-elf-toolchain-prefix=...
1674 Specify crosscompile toolchain prefix to wrap for
1675 AROS objects
1676 --with-aros-toolchain=PREFIX
1677 Specify prebuilt AROS toolchain. Use yes for default
1678 name
1679 --with-aros-toolchain-install=DIR
1680 Where to install or search for cross tools binaries
1681 --with-binutils-version=VERSION
1682 Use binutils-VERSION for building AROS
1683 --with-gcc-version=VERSION
1684 Compile gcc-VERSION for AROS
1685 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1686 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1687 --with-float=<spec> Specify floating point ABI
1688 (default=$gcc_default_float_abi).
1689 --with-portssources=DIR Where to download sourcecode for external ports
1690 --with-bootloader=NAME Use a specific bootloader
1691 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1692 --with-theme=NAME Use a specific GUI Theme
1693 --with-resolution=XRESxYRESxDEPTH
1694 Default resolution of the initial WorkbenchScreen
1695 --with-serial-debug Enable serial debug output in native (default=no)
1696 --with-x use the X Window System
1697 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1698 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1700 Some influential environment variables:
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CC C compiler command
1709 CFLAGS C compiler flags
1710 CPP C preprocessor
1711 PYTHON the Python interpreter
1712 XMKMF Path to xmkmf, Makefile generator for X Window System
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1717 Report bugs to the package provider.
1718 _ACEOF
1719 ac_status=$?
1722 if test "$ac_init_help" = "recursive"; then
1723 # If there are subdirs, report their specific --help.
1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1725 test -d "$ac_dir" ||
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 continue
1728 ac_builddir=.
1730 case "$ac_dir" in
1731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734 # A ".." for each directory in $ac_dir_suffix.
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736 case $ac_top_builddir_sub in
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 esac ;;
1740 esac
1741 ac_abs_top_builddir=$ac_pwd
1742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743 # for backward compatibility:
1744 ac_top_builddir=$ac_top_build_prefix
1746 case $srcdir in
1747 .) # We are building in place.
1748 ac_srcdir=.
1749 ac_top_srcdir=$ac_top_builddir_sub
1750 ac_abs_top_srcdir=$ac_pwd ;;
1751 [\\/]* | ?:[\\/]* ) # Absolute name.
1752 ac_srcdir=$srcdir$ac_dir_suffix;
1753 ac_top_srcdir=$srcdir
1754 ac_abs_top_srcdir=$srcdir ;;
1755 *) # Relative name.
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 esac
1760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762 cd "$ac_dir" || { ac_status=$?; continue; }
1763 # Check for guested configure.
1764 if test -f "$ac_srcdir/configure.gnu"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767 elif test -f "$ac_srcdir/configure"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure" --help=recursive
1770 else
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 fi || ac_status=$?
1773 cd "$ac_pwd" || { ac_status=$?; break; }
1774 done
1777 test -n "$ac_init_help" && exit $ac_status
1778 if $ac_init_version; then
1779 cat <<\_ACEOF
1780 configure
1781 generated by GNU Autoconf 2.69
1783 Copyright (C) 2012 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1786 _ACEOF
1787 exit
1790 ## ------------------------ ##
1791 ## Autoconf initialization. ##
1792 ## ------------------------ ##
1794 # ac_fn_cxx_try_compile LINENO
1795 # ----------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 ac_retval=1
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_cxx_try_compile
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_compile
1870 # ac_fn_c_try_cpp LINENO
1871 # ----------------------
1872 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_cpp ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } > conftest.i && {
1892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 }; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_retval=1
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_cpp
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_link ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 test -x conftest$ac_exeext
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=1
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1951 } # ac_fn_c_try_link
1953 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_c_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if eval \${$3+:} false; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_c_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.i conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_mongrel
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_c_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_c_try_run
2082 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2083 # -------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_c_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 } # ac_fn_c_check_header_compile
2113 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2114 # ----------------------------------------------------
2115 # Tries to find if the field MEMBER exists in type AGGR, after including
2116 # INCLUDES, setting cache variable VAR accordingly.
2117 ac_fn_c_check_member ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2121 $as_echo_n "checking for $2.$3... " >&6; }
2122 if eval \${$4+:} false; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 main ()
2131 static $2 ac_aggr;
2132 if (ac_aggr.$3)
2133 return 0;
2135 return 0;
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 eval "$4=yes"
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 static $2 ac_aggr;
2148 if (sizeof ac_aggr.$3)
2149 return 0;
2151 return 0;
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 eval "$4=yes"
2156 else
2157 eval "$4=no"
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 eval ac_res=\$$4
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_member
2170 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2171 # ---------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2173 # accordingly.
2174 ac_fn_c_check_decl ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 main ()
2190 #ifndef $as_decl_name
2191 #ifdef __cplusplus
2192 (void) $as_decl_use;
2193 #else
2194 (void) $as_decl_name;
2195 #endif
2196 #endif
2199 return 0;
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 eval "$3=yes"
2204 else
2205 eval "$3=no"
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_decl
2216 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2217 # -------------------------------------------
2218 # Tests whether TYPE exists after having included INCLUDES, setting cache
2219 # variable VAR accordingly.
2220 ac_fn_c_check_type ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 eval "$3=no"
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2233 main ()
2235 if (sizeof ($2))
2236 return 0;
2238 return 0;
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 if (sizeof (($2)))
2249 return 0;
2251 return 0;
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2256 else
2257 eval "$3=yes"
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_type
2270 # ac_fn_c_check_func LINENO FUNC VAR
2271 # ----------------------------------
2272 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2273 ac_fn_c_check_func ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2285 #define $2 innocuous_$2
2287 /* System header to define __stub macros and hopefully few prototypes,
2288 which can conflict with char $2 (); below.
2289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2290 <limits.h> exists even on freestanding compilers. */
2292 #ifdef __STDC__
2293 # include <limits.h>
2294 #else
2295 # include <assert.h>
2296 #endif
2298 #undef $2
2300 /* Override any GCC internal prototype to avoid an error.
2301 Use char because int might match the return type of a GCC
2302 builtin and then its argument prototype would still apply. */
2303 #ifdef __cplusplus
2304 extern "C"
2305 #endif
2306 char $2 ();
2307 /* The GNU C library defines this for functions which it implements
2308 to always fail with ENOSYS. Some functions are actually named
2309 something starting with __ and the normal name is an alias. */
2310 #if defined __stub_$2 || defined __stub___$2
2311 choke me
2312 #endif
2315 main ()
2317 return $2 ();
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_link "$LINENO"; then :
2323 eval "$3=yes"
2324 else
2325 eval "$3=no"
2327 rm -f core conftest.err conftest.$ac_objext \
2328 conftest$ac_exeext conftest.$ac_ext
2330 eval ac_res=\$$3
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 } # ac_fn_c_check_func
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2340 It was created by $as_me, which was
2341 generated by GNU Autoconf 2.69. Invocation command line was
2343 $ $0 $@
2345 _ACEOF
2346 exec 5>>config.log
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2370 _ASUNAME
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2378 done
2379 IFS=$as_save_IFS
2381 } >&5
2383 cat >&5 <<_ACEOF
2386 ## ----------- ##
2387 ## Core tests. ##
2388 ## ----------- ##
2390 _ACEOF
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2398 ac_configure_args=
2399 ac_configure_args0=
2400 ac_configure_args1=
2401 ac_must_keep_next=false
2402 for ac_pass in 1 2
2404 for ac_arg
2406 case $ac_arg in
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2410 continue ;;
2411 *\'*)
2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 esac
2414 case $ac_pass in
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2420 else
2421 case $ac_arg in
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 esac
2430 -* ) ac_must_keep_next=true ;;
2431 esac
2433 as_fn_append ac_configure_args " '$ac_arg'"
2435 esac
2436 done
2437 done
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2449 echo
2451 $as_echo "## ---------------- ##
2452 ## Cache variables. ##
2453 ## ---------------- ##"
2454 echo
2455 # The following way of writing the cache mishandles newlines in values,
2457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2458 eval ac_val=\$$ac_var
2459 case $ac_val in #(
2460 *${as_nl}*)
2461 case $ac_var in #(
2462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 esac
2465 case $ac_var in #(
2466 _ | IFS | as_nl) ;; #(
2467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2468 *) { eval $ac_var=; unset $ac_var;} ;;
2469 esac ;;
2470 esac
2471 done
2472 (set) 2>&1 |
2473 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2474 *${as_nl}ac_space=\ *)
2475 sed -n \
2476 "s/'\''/'\''\\\\'\'''\''/g;
2477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 ;; #(
2480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2482 esac |
2483 sort
2485 echo
2487 $as_echo "## ----------------- ##
2488 ## Output variables. ##
2489 ## ----------------- ##"
2490 echo
2491 for ac_var in $ac_subst_vars
2493 eval ac_val=\$$ac_var
2494 case $ac_val in
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 esac
2497 $as_echo "$ac_var='\''$ac_val'\''"
2498 done | sort
2499 echo
2501 if test -n "$ac_subst_files"; then
2502 $as_echo "## ------------------- ##
2503 ## File substitutions. ##
2504 ## ------------------- ##"
2505 echo
2506 for ac_var in $ac_subst_files
2508 eval ac_val=\$$ac_var
2509 case $ac_val in
2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 esac
2512 $as_echo "$ac_var='\''$ac_val'\''"
2513 done | sort
2514 echo
2517 if test -s confdefs.h; then
2518 $as_echo "## ----------- ##
2519 ## confdefs.h. ##
2520 ## ----------- ##"
2521 echo
2522 cat confdefs.h
2523 echo
2525 test "$ac_signal" != 0 &&
2526 $as_echo "$as_me: caught signal $ac_signal"
2527 $as_echo "$as_me: exit $exit_status"
2528 } >&5
2529 rm -f core *.core core.conftest.* &&
2530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531 exit $exit_status
2533 for ac_signal in 1 2 13 15; do
2534 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2535 done
2536 ac_signal=0
2538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2539 rm -f -r conftest* confdefs.h
2541 $as_echo "/* confdefs.h */" > confdefs.h
2543 # Predefined preprocessor variables.
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 _ACEOF
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 _ACEOF
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 _ACEOF
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_URL "$PACKAGE_URL"
2567 _ACEOF
2570 # Let the site file select an alternate cache file if it wants to.
2571 # Prefer an explicitly selected file to automatically selected ones.
2572 ac_site_file1=NONE
2573 ac_site_file2=NONE
2574 if test -n "$CONFIG_SITE"; then
2575 # We do not want a PATH search for config.site.
2576 case $CONFIG_SITE in #((
2577 -*) ac_site_file1=./$CONFIG_SITE;;
2578 */*) ac_site_file1=$CONFIG_SITE;;
2579 *) ac_site_file1=./$CONFIG_SITE;;
2580 esac
2581 elif test "x$prefix" != xNONE; then
2582 ac_site_file1=$prefix/share/config.site
2583 ac_site_file2=$prefix/etc/config.site
2584 else
2585 ac_site_file1=$ac_default_prefix/share/config.site
2586 ac_site_file2=$ac_default_prefix/etc/config.site
2588 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2590 test "x$ac_site_file" = xNONE && continue
2591 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2593 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2594 sed 's/^/| /' "$ac_site_file" >&5
2595 . "$ac_site_file" \
2596 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "failed to load site script $ac_site_file
2599 See \`config.log' for more details" "$LINENO" 5; }
2601 done
2603 if test -r "$cache_file"; then
2604 # Some versions of bash will fail to source /dev/null (special files
2605 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2606 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2608 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 case $cache_file in
2610 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2611 *) . "./$cache_file";;
2612 esac
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2616 $as_echo "$as_me: creating cache $cache_file" >&6;}
2617 >$cache_file
2620 as_fn_append ac_header_list " stdlib.h"
2621 as_fn_append ac_header_list " unistd.h"
2622 as_fn_append ac_header_list " sys/param.h"
2623 # Check that the precious variables saved in the cache have kept the same
2624 # value.
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2632 set,)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,set)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2640 ,);;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x $ac_old_val`
2645 ac_new_val_w=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted=:
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2659 fi;;
2660 esac
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2663 case $ac_new_val in
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 *) ac_arg=$ac_var=$ac_new_val ;;
2666 esac
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670 esac
2672 done
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 ac_aux_dir=
2693 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2694 if test -f "$ac_dir/install-sh"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/install-sh -c"
2697 break
2698 elif test -f "$ac_dir/install.sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install.sh -c"
2701 break
2702 elif test -f "$ac_dir/shtool"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/shtool install -c"
2705 break
2707 done
2708 if test -z "$ac_aux_dir"; then
2709 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2717 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2718 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2722 # Check what host we are running on.
2723 # If a target is not suggested, we use this one.
2724 # Note that what we call a target, Autoconf calls a host.
2725 # Make sure we can run config.sub.
2726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2727 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2730 $as_echo_n "checking build system type... " >&6; }
2731 if ${ac_cv_build+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 ac_build_alias=$build_alias
2735 test "x$ac_build_alias" = x &&
2736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2737 test "x$ac_build_alias" = x &&
2738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2744 $as_echo "$ac_cv_build" >&6; }
2745 case $ac_cv_build in
2746 *-*-*) ;;
2747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2748 esac
2749 build=$ac_cv_build
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_build
2752 shift
2753 build_cpu=$1
2754 build_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 build_os=$*
2759 IFS=$ac_save_IFS
2760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2764 $as_echo_n "checking host system type... " >&6; }
2765 if ${ac_cv_host+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test "x$host_alias" = x; then
2769 ac_cv_host=$ac_cv_build
2770 else
2771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2777 $as_echo "$ac_cv_host" >&6; }
2778 case $ac_cv_host in
2779 *-*-*) ;;
2780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2781 esac
2782 host=$ac_cv_host
2783 ac_save_IFS=$IFS; IFS='-'
2784 set x $ac_cv_host
2785 shift
2786 host_cpu=$1
2787 host_vendor=$2
2788 shift; shift
2789 # Remember, the first character of IFS is used to create $*,
2790 # except with old shells:
2791 host_os=$*
2792 IFS=$ac_save_IFS
2793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797 # Default versions for the gnu tools we build
2798 default_gcc_version="4.6.4"
2799 default_binutils_version="2.23.2"
2801 # The AROS target is slightly different to the normal GNU style
2802 # format. We don't have the middle part, and we reverse the order
2803 # of the $(CPU) and $(OS) bits.
2805 # Don't strip the version of the target yet, it might be
2806 # useful on some systems.
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2809 $as_echo_n "checking for AROS style target... " >&6; }
2811 if test "$target" = "NONE" ; then
2812 target=$host_os-$host_cpu
2813 else
2814 if test "$target" = "" ; then
2815 target=$host_os-$host_cpu
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2819 $as_echo "$target" >&6; }
2821 if test "$host_os" = "mingw32" ; then
2822 PWDCMD="pwd -W"
2825 # Don't know where else to put this...
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2827 $as_echo_n "checking building AROS in... " >&6; }
2828 AROS_BUILDDIR=`${PWDCMD-pwd}`
2829 AROS_BUILDDIR_UNIX=${PWD}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2831 $as_echo "$AROS_BUILDDIR" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2834 $as_echo_n "checking AROS source in... " >&6; }
2835 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2836 SRCDIR=${srcpwd}
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2838 $as_echo "$SRCDIR" >&6; }
2840 # Parse the target field into something useful.
2842 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2843 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2846 # Some debug output, to be removed again.
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2848 $as_echo_n "checking for target system (debug output)... " >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2850 $as_echo "$target_os" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2852 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2854 $as_echo "$target_cpu" >&6; }
2856 aros_nominal_width=800
2857 aros_nominal_height=600
2858 aros_nominal_depth=4
2861 default_c_compilers="gcc clang cc"
2863 # Check whether --with-c-compiler was given.
2864 if test "${with_c_compiler+set}" = set; then :
2865 withval=$with_c_compiler; use_c_compiler="$withval"
2866 else
2867 use_c_compiler=""
2870 if test "$use_c_compiler" = ""; then
2871 host_c_compilers="$default_c_compilers"
2872 else
2873 host_c_compilers="$use_c_compiler"
2876 default_cxx_compilers="g++ clang++ c++"
2878 # Check whether --with-cxx-compiler was given.
2879 if test "${with_cxx_compiler+set}" = set; then :
2880 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2881 else
2882 use_cxx_compiler=""
2885 if test "$use_cxx_compiler" = ""; then
2886 host_cxx_compilers="$default_cxx_compilers"
2887 else
2888 host_cxx_compilers="$use_cxx_compiler"
2892 # The first step is to find the host binaries.
2893 # Check for a compiler.
2894 # Due to a bug in autoconf check for c++ compiler first.
2895 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2896 ac_ext=cpp
2897 ac_cpp='$CXXCPP $CPPFLAGS'
2898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2901 if test -z "$CXX"; then
2902 if test -n "$CCC"; then
2903 CXX=$CCC
2904 else
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in ${host_cxx_compilers}
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CXX+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CXX"; then
2916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 CXX=$ac_cv_prog_CXX
2936 if test -n "$CXX"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2938 $as_echo "$CXX" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$CXX" && break
2946 done
2948 if test -z "$CXX"; then
2949 ac_ct_CXX=$CXX
2950 for ac_prog in ${host_cxx_compilers}
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$ac_ct_CXX"; then
2960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_CXX="$ac_prog"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2980 if test -n "$ac_ct_CXX"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2982 $as_echo "$ac_ct_CXX" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2989 test -n "$ac_ct_CXX" && break
2990 done
2992 if test "x$ac_ct_CXX" = x; then
2993 CXX="g++"
2994 else
2995 case $cross_compiling:$ac_tool_warned in
2996 yes:)
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 CXX=$ac_ct_CXX
3007 # Provide some information about the compiler.
3008 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3009 set X $ac_compile
3010 ac_compiler=$2
3011 for ac_option in --version -v -V -qversion; do
3012 { { ac_try="$ac_compiler $ac_option >&5"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3020 ac_status=$?
3021 if test -s conftest.err; then
3022 sed '10a\
3023 ... rest of stderr output deleted ...
3024 10q' conftest.err >conftest.er1
3025 cat conftest.er1 >&5
3027 rm -f conftest.er1 conftest.err
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 done
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3036 main ()
3040 return 0;
3042 _ACEOF
3043 ac_clean_files_save=$ac_clean_files
3044 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3045 # Try to create an executable without -o first, disregard a.out.
3046 # It will help us diagnose broken compilers, and finding out an intuition
3047 # of exeext.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3049 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3050 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 # The possible output files:
3053 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055 ac_rmfiles=
3056 for ac_file in $ac_files
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3061 esac
3062 done
3063 rm -f $ac_rmfiles
3065 if { { ac_try="$ac_link_default"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_link_default") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3079 # so that the user can short-circuit this test for compilers unknown to
3080 # Autoconf.
3081 for ac_file in $ac_files ''
3083 test -f "$ac_file" || continue
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087 [ab].out )
3088 # We found the default executable, but exeext='' is most
3089 # certainly right.
3090 break;;
3091 *.* )
3092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3093 then :; else
3094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 # We set ac_cv_exeext here because the later test for it is not
3097 # safe: cross compilers may not add the suffix if given an `-o'
3098 # argument, so we may need to know it at that point already.
3099 # Even if this section looks crufty: it has the advantage of
3100 # actually working.
3101 break;;
3103 break;;
3104 esac
3105 done
3106 test "$ac_cv_exeext" = no && ac_cv_exeext=
3108 else
3109 ac_file=''
3111 if test -z "$ac_file"; then :
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119 as_fn_error 77 "C++ compiler cannot create executables
3120 See \`config.log' for more details" "$LINENO" 5; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123 $as_echo "yes" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3126 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3128 $as_echo "$ac_file" >&6; }
3129 ac_exeext=$ac_cv_exeext
3131 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3134 $as_echo_n "checking for suffix of executables... " >&6; }
3135 if { { ac_try="$ac_link"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 # `rm'.
3150 for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 break;;
3156 * ) break;;
3157 esac
3158 done
3159 else
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details" "$LINENO" 5; }
3165 rm -f conftest conftest$ac_cv_exeext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3167 $as_echo "$ac_cv_exeext" >&6; }
3169 rm -f conftest.$ac_ext
3170 EXEEXT=$ac_cv_exeext
3171 ac_exeext=$EXEEXT
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174 #include <stdio.h>
3176 main ()
3178 FILE *f = fopen ("conftest.out", "w");
3179 return ferror (f) || fclose (f) != 0;
3182 return 0;
3184 _ACEOF
3185 ac_clean_files="$ac_clean_files conftest.out"
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3189 $as_echo_n "checking whether we are cross compiling... " >&6; }
3190 if test "$cross_compiling" != yes; then
3191 { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 if { ac_try='./conftest$ac_cv_exeext'
3203 { { case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; }; then
3213 cross_compiling=no
3214 else
3215 if test "$cross_compiling" = maybe; then
3216 cross_compiling=yes
3217 else
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot run C++ compiled programs.
3221 If you meant to cross compile, use \`--host'.
3222 See \`config.log' for more details" "$LINENO" 5; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3227 $as_echo "$cross_compiling" >&6; }
3229 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3230 ac_clean_files=$ac_clean_files_save
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232 $as_echo_n "checking for suffix of object files... " >&6; }
3233 if ${ac_cv_objext+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3240 main ()
3244 return 0;
3246 _ACEOF
3247 rm -f conftest.o conftest.obj
3248 if { { ac_try="$ac_compile"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_compile") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 for ac_file in conftest.o conftest.obj conftest.*; do
3260 test -f "$ac_file" || continue;
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264 break;;
3265 esac
3266 done
3267 else
3268 $as_echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot compute suffix of object files: cannot compile
3274 See \`config.log' for more details" "$LINENO" 5; }
3276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3279 $as_echo "$ac_cv_objext" >&6; }
3280 OBJEXT=$ac_cv_objext
3281 ac_objext=$OBJEXT
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3283 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3284 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3291 main ()
3293 #ifndef __GNUC__
3294 choke me
3295 #endif
3298 return 0;
3300 _ACEOF
3301 if ac_fn_cxx_try_compile "$LINENO"; then :
3302 ac_compiler_gnu=yes
3303 else
3304 ac_compiler_gnu=no
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3311 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3312 if test $ac_compiler_gnu = yes; then
3313 GXX=yes
3314 else
3315 GXX=
3317 ac_test_CXXFLAGS=${CXXFLAGS+set}
3318 ac_save_CXXFLAGS=$CXXFLAGS
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3320 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3321 if ${ac_cv_prog_cxx_g+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3325 ac_cxx_werror_flag=yes
3326 ac_cv_prog_cxx_g=no
3327 CXXFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3332 main ()
3336 return 0;
3338 _ACEOF
3339 if ac_fn_cxx_try_compile "$LINENO"; then :
3340 ac_cv_prog_cxx_g=yes
3341 else
3342 CXXFLAGS=""
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3347 main ()
3351 return 0;
3353 _ACEOF
3354 if ac_fn_cxx_try_compile "$LINENO"; then :
3356 else
3357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 CXXFLAGS="-g"
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3363 main ()
3367 return 0;
3369 _ACEOF
3370 if ac_fn_cxx_try_compile "$LINENO"; then :
3371 ac_cv_prog_cxx_g=yes
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3381 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3382 if test "$ac_test_CXXFLAGS" = set; then
3383 CXXFLAGS=$ac_save_CXXFLAGS
3384 elif test $ac_cv_prog_cxx_g = yes; then
3385 if test "$GXX" = yes; then
3386 CXXFLAGS="-g -O2"
3387 else
3388 CXXFLAGS="-g"
3390 else
3391 if test "$GXX" = yes; then
3392 CXXFLAGS="-O2"
3393 else
3394 CXXFLAGS=
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog in ${host_c_compilers}
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$CC" && break
3449 done
3451 if test -z "$CC"; then
3452 ac_ct_CC=$CC
3453 for ac_prog in ${host_c_compilers}
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3476 done
3477 done
3478 IFS=$as_save_IFS
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$ac_ct_CC" && break
3493 done
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 CC=$ac_ct_CC
3509 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details" "$LINENO" 5; }
3514 # Provide some information about the compiler.
3515 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3516 set X $ac_compile
3517 ac_compiler=$2
3518 for ac_option in --version -v -V -qversion; do
3519 { { ac_try="$ac_compiler $ac_option >&5"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3527 ac_status=$?
3528 if test -s conftest.err; then
3529 sed '10a\
3530 ... rest of stderr output deleted ...
3531 10q' conftest.err >conftest.er1
3532 cat conftest.er1 >&5
3534 rm -f conftest.er1 conftest.err
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 done
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541 if ${ac_cv_c_compiler_gnu+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_compiler_gnu=yes
3560 else
3561 ac_compiler_gnu=no
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569 if test $ac_compiler_gnu = yes; then
3570 GCC=yes
3571 else
3572 GCC=
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3578 if ${ac_cv_prog_cc_g+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3583 ac_cv_prog_cc_g=no
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3598 else
3599 CFLAGS=""
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3613 else
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 CFLAGS="-g"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_g=yes
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 $as_echo "$ac_cv_prog_cc_g" >&6; }
3639 if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3647 else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if ${ac_cv_prog_cc_c89+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_cv_prog_cc_c89=no
3660 ac_save_CC=$CC
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 struct stat;
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670 char **p;
3671 int i;
3673 return p[i];
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3677 char *s;
3678 va_list v;
3679 va_start (v,p);
3680 s = g (p, va_arg (v,int));
3681 va_end (v);
3682 return s;
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3706 main ()
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732 xno)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 aros_host_def_cc="$CC"
3751 case $ac_cv_prog_cc_stdc in #(
3752 no) :
3753 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3754 *) :
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3756 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3757 if ${ac_cv_prog_cc_c99+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_cv_prog_cc_c99=no
3761 ac_save_CC=$CC
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdarg.h>
3765 #include <stdbool.h>
3766 #include <stdlib.h>
3767 #include <wchar.h>
3768 #include <stdio.h>
3770 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3771 #define debug(...) fprintf (stderr, __VA_ARGS__)
3772 #define showlist(...) puts (#__VA_ARGS__)
3773 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3774 static void
3775 test_varargs_macros (void)
3777 int x = 1234;
3778 int y = 5678;
3779 debug ("Flag");
3780 debug ("X = %d\n", x);
3781 showlist (The first, second, and third items.);
3782 report (x>y, "x is %d but y is %d", x, y);
3785 // Check long long types.
3786 #define BIG64 18446744073709551615ull
3787 #define BIG32 4294967295ul
3788 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3789 #if !BIG_OK
3790 your preprocessor is broken;
3791 #endif
3792 #if BIG_OK
3793 #else
3794 your preprocessor is broken;
3795 #endif
3796 static long long int bignum = -9223372036854775807LL;
3797 static unsigned long long int ubignum = BIG64;
3799 struct incomplete_array
3801 int datasize;
3802 double data[];
3805 struct named_init {
3806 int number;
3807 const wchar_t *name;
3808 double average;
3811 typedef const char *ccp;
3813 static inline int
3814 test_restrict (ccp restrict text)
3816 // See if C++-style comments work.
3817 // Iterate through items via the restricted pointer.
3818 // Also check for declarations in for loops.
3819 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3820 continue;
3821 return 0;
3824 // Check varargs and va_copy.
3825 static void
3826 test_varargs (const char *format, ...)
3828 va_list args;
3829 va_start (args, format);
3830 va_list args_copy;
3831 va_copy (args_copy, args);
3833 const char *str;
3834 int number;
3835 float fnumber;
3837 while (*format)
3839 switch (*format++)
3841 case 's': // string
3842 str = va_arg (args_copy, const char *);
3843 break;
3844 case 'd': // int
3845 number = va_arg (args_copy, int);
3846 break;
3847 case 'f': // float
3848 fnumber = va_arg (args_copy, double);
3849 break;
3850 default:
3851 break;
3854 va_end (args_copy);
3855 va_end (args);
3859 main ()
3862 // Check bool.
3863 _Bool success = false;
3865 // Check restrict.
3866 if (test_restrict ("String literal") == 0)
3867 success = true;
3868 char *restrict newvar = "Another string";
3870 // Check varargs.
3871 test_varargs ("s, d' f .", "string", 65, 34.234);
3872 test_varargs_macros ();
3874 // Check flexible array members.
3875 struct incomplete_array *ia =
3876 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3877 ia->datasize = 10;
3878 for (int i = 0; i < ia->datasize; ++i)
3879 ia->data[i] = i * 1.234;
3881 // Check named initializers.
3882 struct named_init ni = {
3883 .number = 34,
3884 .name = L"Test wide string",
3885 .average = 543.34343,
3888 ni.number = 58;
3890 int dynamic_array[ni.number];
3891 dynamic_array[ni.number - 1] = 543;
3893 // work around unused variable warnings
3894 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3895 || dynamic_array[ni.number - 1] != 543);
3898 return 0;
3900 _ACEOF
3901 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c99=$ac_arg
3907 rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c99" != "xno" && break
3909 done
3910 rm -f conftest.$ac_ext
3911 CC=$ac_save_CC
3914 # AC_CACHE_VAL
3915 case "x$ac_cv_prog_cc_c99" in
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918 $as_echo "none needed" >&6; } ;;
3919 xno)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 $as_echo "unsupported" >&6; } ;;
3923 CC="$CC $ac_cv_prog_cc_c99"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3925 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3926 esac
3927 if test "x$ac_cv_prog_cc_c99" != xno; then :
3928 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3931 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3932 if ${ac_cv_prog_cc_c89+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 ac_cv_prog_cc_c89=no
3936 ac_save_CC=$CC
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <stdarg.h>
3940 #include <stdio.h>
3941 struct stat;
3942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3943 struct buf { int x; };
3944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3945 static char *e (p, i)
3946 char **p;
3947 int i;
3949 return p[i];
3951 static char *f (char * (*g) (char **, int), char **p, ...)
3953 char *s;
3954 va_list v;
3955 va_start (v,p);
3956 s = g (p, va_arg (v,int));
3957 va_end (v);
3958 return s;
3961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3962 function prototypes and stuff, but not '\xHH' hex character constants.
3963 These don't provoke an error unfortunately, instead are silently treated
3964 as 'x'. The following induces an error, until -std is added to get
3965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3966 array size at least. It's necessary to write '\x00'==0 to get something
3967 that's true only with -std. */
3968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3971 inside strings and character constants. */
3972 #define FOO(x) 'x'
3973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3975 int test (int i, double x);
3976 struct s1 {int (*f) (int a);};
3977 struct s2 {int (*f) (double a);};
3978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3979 int argc;
3980 char **argv;
3982 main ()
3984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3986 return 0;
3988 _ACEOF
3989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3992 CC="$ac_save_CC $ac_arg"
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_c89=$ac_arg
3996 rm -f core conftest.err conftest.$ac_objext
3997 test "x$ac_cv_prog_cc_c89" != "xno" && break
3998 done
3999 rm -f conftest.$ac_ext
4000 CC=$ac_save_CC
4003 # AC_CACHE_VAL
4004 case "x$ac_cv_prog_cc_c89" in
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4007 $as_echo "none needed" >&6; } ;;
4008 xno)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4010 $as_echo "unsupported" >&6; } ;;
4012 CC="$CC $ac_cv_prog_cc_c89"
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015 esac
4016 if test "x$ac_cv_prog_cc_c89" != xno; then :
4017 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4018 else
4019 ac_cv_prog_cc_stdc=no
4024 esac
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4026 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4027 if ${ac_cv_prog_cc_stdc+:} false; then :
4028 $as_echo_n "(cached) " >&6
4031 case $ac_cv_prog_cc_stdc in #(
4032 no) :
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;; #(
4035 '') :
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037 $as_echo "none needed" >&6; } ;; #(
4038 *) :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4040 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4041 esac
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4049 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4050 # On Suns, sometimes $CPP names a directory.
4051 if test -n "$CPP" && test -d "$CPP"; then
4052 CPP=
4054 if test -z "$CPP"; then
4055 if ${ac_cv_prog_CPP+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 # Double quotes because CPP needs to be expanded
4059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 ac_preproc_ok=false
4062 for ac_c_preproc_warn_flag in '' yes
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #ifdef __STDC__
4073 # include <limits.h>
4074 #else
4075 # include <assert.h>
4076 #endif
4077 Syntax error
4078 _ACEOF
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4081 else
4082 # Broken: fails on valid input.
4083 continue
4085 rm -f conftest.err conftest.i conftest.$ac_ext
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <ac_nonexistent.h>
4092 _ACEOF
4093 if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4095 continue
4096 else
4097 # Passes both tests.
4098 ac_preproc_ok=:
4099 break
4101 rm -f conftest.err conftest.i conftest.$ac_ext
4103 done
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.i conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then :
4107 break
4110 done
4111 ac_cv_prog_CPP=$CPP
4114 CPP=$ac_cv_prog_CPP
4115 else
4116 ac_cv_prog_CPP=$CPP
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4119 $as_echo "$CPP" >&6; }
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #ifdef __STDC__
4132 # include <limits.h>
4133 #else
4134 # include <assert.h>
4135 #endif
4136 Syntax error
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4140 else
4141 # Broken: fails on valid input.
4142 continue
4144 rm -f conftest.err conftest.i conftest.$ac_ext
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 # Passes both tests.
4157 ac_preproc_ok=:
4158 break
4160 rm -f conftest.err conftest.i conftest.$ac_ext
4162 done
4163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164 rm -f conftest.i conftest.err conftest.$ac_ext
4165 if $ac_preproc_ok; then :
4167 else
4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4171 See \`config.log' for more details" "$LINENO" 5; }
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 # Check for a compatible awk
4182 for ac_prog in gawk nawk
4184 # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_AWK+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$AWK"; then
4192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_AWK="$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4207 IFS=$as_save_IFS
4211 AWK=$ac_cv_prog_AWK
4212 if test -n "$AWK"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4214 $as_echo "$AWK" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4221 test -n "$AWK" && break
4222 done
4224 req_avail=yes
4225 if test "$AWK" = ""; then
4226 req_avail=no
4228 if test "$AWK" = "no"; then
4229 req_avail=no
4231 if test "$req_avail" = "no"; then
4232 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4234 # Extract the first word of "mmake", so it can be a program name with args.
4235 set dummy mmake; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_MMAKE+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$MMAKE"; then
4242 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_MMAKE="mmake "
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 MMAKE=$ac_cv_prog_MMAKE
4262 if test -n "$MMAKE"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4264 $as_echo "$MMAKE" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4272 # Perform some default variable assignments. Note all of these will be
4273 # Regenerated from the script, so there is no need to cache them.
4275 aros_build_host=$host
4276 aros_host_cpp="$CPP"
4277 aros_host_cc="$CC"
4278 aros_host_cxx="$CXX"
4279 if test "$GCC" = "yes"; then
4280 aros_gcc_ld=`$CC -print-prog-name=ld`
4281 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4282 set dummy `basename $aros_gcc_ld`; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_path_aros_host_ld+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 case $aros_host_ld in
4289 [\\/]* | ?:[\\/]*)
4290 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in `dirname $aros_gcc_ld`
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4306 IFS=$as_save_IFS
4309 esac
4311 aros_host_ld=$ac_cv_path_aros_host_ld
4312 if test -n "$aros_host_ld"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4314 $as_echo "$aros_host_ld" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4322 if test "$aros_host_ld" = ""; then
4323 # Extract the first word of "ld", so it can be a program name with args.
4324 set dummy ld; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_path_aros_host_ld+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 case $aros_host_ld in
4331 [\\/]* | ?:[\\/]*)
4332 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4351 esac
4353 aros_host_ld=$ac_cv_path_aros_host_ld
4354 if test -n "$aros_host_ld"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4356 $as_echo "$aros_host_ld" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4364 req_avail=yes
4365 if test "$aros_host_ld" = ""; then
4366 req_avail=no
4368 if test "$aros_host_ld" = "no"; then
4369 req_avail=no
4371 if test "$req_avail" = "no"; then
4372 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4374 aros_host_make="make"
4375 aros_host_cflags="$CFLAGS"
4376 aros_host_cxxflags="$CXXFLAGS"
4377 aros_host_cppflags="$CPPFLAGS"
4378 aros_host_ldflags="$LDFLAGS"
4379 aros_host_debug="-g -O0"
4380 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4381 aros_host_mkargs="--no-print-directory"
4382 aros_host_exe_suffix="$EXEEXT"
4383 aros_host_lib_suffix=""
4385 # Ignore all compliance, AROS ROMs = 0
4386 # KickStart v1.0 = 30
4387 # KickStart v1.3 = 34
4388 # KickStart v2.0 = 37
4389 # KickStart v3.0 = 39
4390 # KickStart v3.1 = 40
4391 # AmigaOS v3.5 = 44
4392 aros_amigaos_compliance=0
4394 for ac_prog in aclocal aclocal19 aclocal-1.9
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$aros_host_aclocal"; then
4404 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_aros_host_aclocal="$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4424 if test -n "$aros_host_aclocal"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4426 $as_echo "$aros_host_aclocal" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$aros_host_aclocal" && break
4434 done
4436 for ac_prog in autoconf autoconf259 autoconf253
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$aros_host_autoconf"; then
4446 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_aros_host_autoconf="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4466 if test -n "$aros_host_autoconf"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4468 $as_echo "$aros_host_autoconf" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$aros_host_autoconf" && break
4476 done
4478 for ac_prog in autoheader autoheader259 autoheader253
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$aros_host_autoheader"; then
4488 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_aros_host_autoheader="$ac_prog"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4508 if test -n "$aros_host_autoheader"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4510 $as_echo "$aros_host_autoheader" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4517 test -n "$aros_host_autoheader" && break
4518 done
4520 for ac_prog in automake automake19 automake-1.9
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_aros_host_automake+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -n "$aros_host_automake"; then
4530 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_aros_host_automake="$ac_prog"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 aros_host_automake=$ac_cv_prog_aros_host_automake
4550 if test -n "$aros_host_automake"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4552 $as_echo "$aros_host_automake" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4559 test -n "$aros_host_automake" && break
4560 done
4563 req_avail=yes
4564 if test "$aros_host_aclocal" = ""; then
4565 req_avail=no
4567 if test "$aros_host_aclocal" = "no"; then
4568 req_avail=no
4570 if test "$req_avail" = "no"; then
4571 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4573 req_avail=yes
4574 if test "$aros_host_automake" = ""; then
4575 req_avail=no
4577 if test "$aros_host_automake" = "no"; then
4578 req_avail=no
4580 if test "$req_avail" = "no"; then
4581 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4584 case "$aros_host_cc" in
4585 *clang*)
4586 aros_host_cc_pipe=""
4588 *gcc*)
4589 aros_host_cc_pipe="-pipe"
4591 icc)
4592 aros_host_cc_pipe=""
4595 aros_host_cc_pipe=""
4597 esac
4599 aros_kernel_cc_includes=""
4600 aros_target_cc_includes=""
4601 host_cc_elf=yes
4603 # ----------------------------------------------------------------------------------------
4604 # Host-specific defaults
4606 # This is the main host configuration section. It is where the host
4607 # can change the values of any variables it needs to change. We do
4608 # not look at anything that compiles to the target yet, we'll get
4609 # to that later.
4611 case "$host_os" in
4612 aros*)
4613 aros_host_arch="aros"
4614 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4615 case "$host_cpu" in
4616 *i?86*)
4617 aros_host_cpu="i386"
4619 *x86_64*)
4620 aros_host_cpu="x86_64"
4622 *powerpc*)
4623 aros_host_cpu="ppc"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4627 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4628 aros_host_cpu="$host_cpu"
4630 esac
4633 linux*)
4634 aros_host_arch="linux"
4635 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4636 android_build_os="linux-x86"
4637 android_tool="android"
4638 default_android_sdk="/opt/android-sdk-linux_x86"
4639 case "$host_cpu" in
4640 *i?86*)
4641 aros_host_cpu="i386"
4643 *x86_64*)
4644 aros_host_cpu="x86_64"
4646 *m68k*)
4647 aros_host_cpu="m68k"
4649 *powerpc*)
4650 aros_host_cpu="ppc"
4652 *arm*)
4653 aros_host_cpu="arm"
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4657 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4658 aros_host_cpu="$host_cpu"
4660 esac
4663 freebsd*)
4664 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4665 aros_host_make="gmake"
4666 aros_host_arch="freebsd"
4667 aros_host_cpu="i386"
4669 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4671 case $host_os in
4672 freebsd[234]*)
4673 aros_object_format="elf_i386"
4677 aros_object_format="elf_i386_fbsd"
4679 esac
4683 darwin*)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4685 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4686 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 test "$cross_compiling" = yes &&
4690 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4691 if test -r "/usr/include/stddef.h"; then
4692 ac_cv_file__usr_include_stddef_h=yes
4693 else
4694 ac_cv_file__usr_include_stddef_h=no
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4698 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4699 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4701 else
4702 as_fn_error $? "XCode incorrectly configured!
4703 please run 'xcode-select --install' before
4704 re-running configure" "$LINENO" 5
4708 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4709 aros_host_arch="darwin"
4710 host_cc_elf=no
4711 if [ -z ${SED+x} ]; then SED="gsed"; fi
4712 android_build_os="darwin-x86"
4713 android_tool="android"
4714 default_android_sdk="/android-sdk-mac_x86"
4715 case "$host_cpu" in
4716 *i?86*)
4717 aros_host_cpu="i386"
4719 *x86_64*)
4720 aros_host_cpu="x86_64"
4722 *powerpc*)
4723 aros_host_cpu="ppc"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4727 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4728 aros_host_cpu="$host_cpu"
4730 esac
4732 aros_host_ldflags="$aros_host_ldflags -liconv"
4736 dragonfly*)
4737 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4738 aros_host_make="gmake"
4739 aros_host_arch="dragonfly"
4740 case $host_cpu in
4741 *i?86*)
4742 aros_host_cpu="i386"
4744 *amd64*)
4745 aros_host_cpu="x86_64"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4749 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4750 aros_host_cpu="$host_cpu"
4752 esac
4755 netbsd*)
4756 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4757 aros_host_make="gmake"
4758 aros_host_arch="netbsd"
4759 case "$host_cpu" in
4760 *i?86*)
4761 aros_host_cpu="i386"
4763 *m68k*)
4764 aros_host_cpu="m68k"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu="$host_cpu"
4771 esac
4772 aros_host_lib_suffix=".0.0"
4775 openbsd*)
4776 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4777 aros_host_make="gmake"
4778 aros_host_arch="openbsd"
4779 case "$host_cpu" in
4780 *i?86*)
4781 aros_host_cpu="i386"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4785 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4786 aros_host_cpu="$host_cpu"
4788 esac
4791 solaris*)
4792 aros_host_arch="solaris"
4793 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4794 case "$host_cpu" in
4795 *i?86*)
4796 aros_host_cpu="i386"
4798 *sparc*)
4799 aros_host_cpu="sparc"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4803 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4804 aros_host_cpu="$host_cpu"
4806 esac
4809 morphos*)
4810 aros_host_arch="morphos"
4811 aros_host_cpu="ppc"
4812 host_cc_elf=no
4815 amiga*)
4816 aros_host_arch="amiga"
4817 host_cc_elf=no
4818 SORT="/gg/bin/sort"
4819 TEST="/gg/bin/test"
4820 UNIQ="/gg/bin/uniq"
4821 FOR="for"
4822 TOUCH="/gg/bin/touch"
4823 case "$host_cpu" in
4824 *m68k*)
4825 aros_host_cpu="m68k"
4827 *powerpc*)
4828 aros_host_cpu="ppc"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4832 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4833 aros_host_cpu="$host_cpu"
4835 esac
4838 cygwin*)
4839 aros_host_arch="cygwin"
4840 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4841 host_cc_elf=no
4842 android_build_os="windows"
4843 android_tool="android.bat"
4844 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4846 case "$host_cpu" in
4847 *i?86*)
4848 aros_host_cpu="i386"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 mingw32*)
4859 aros_host_arch="mingw32"
4860 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4861 host_cc_elf=no
4862 android_build_os="windows"
4863 android_tool="android.bat"
4864 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4866 libpng_libextra="-lws2_32"
4868 case "$host_cpu" in
4869 *i?86*)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4872 $as_echo_n "checking for Windows native gcc target... " >&6; }
4873 host_cpu=`gcc -dumpmachine`
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4875 $as_echo "$host_cpu" >&6; }
4878 esac
4880 case "$host_cpu" in
4881 *i?86*)
4882 aros_host_cpu="i386"
4885 mingw32*)
4886 aros_host_cpu="i386"
4889 *x86_64*)
4890 aros_host_cpu="x86_64"
4891 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4896 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4897 aros_host_cpu="$host_cpu"
4899 esac
4902 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4904 esac
4906 # Extract the first word of "ar", so it can be a program name with args.
4907 set dummy ar; 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_aros_host_ar+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$aros_host_ar"; then
4914 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_aros_host_ar="ar cr"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 aros_host_ar=$ac_cv_prog_aros_host_ar
4934 if test -n "$aros_host_ar"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4936 $as_echo "$aros_host_ar" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 req_avail=yes
4944 if test "$aros_host_ar" = ""; then
4945 req_avail=no
4947 if test "$aros_host_ar" = "no"; then
4948 req_avail=no
4950 if test "$req_avail" = "no"; then
4951 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4953 # Extract the first word of "ranlib", so it can be a program name with args.
4954 set dummy ranlib; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$aros_host_ranlib"; then
4961 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_aros_host_ranlib="ranlib "
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4981 if test -n "$aros_host_ranlib"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4983 $as_echo "$aros_host_ranlib" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 req_avail=yes
4991 if test "$aros_host_ranlib" = ""; then
4992 req_avail=no
4994 if test "$aros_host_ranlib" = "no"; then
4995 req_avail=no
4997 if test "$req_avail" = "no"; then
4998 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5000 # Extract the first word of "strip", so it can be a program name with args.
5001 set dummy strip; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_aros_host_strip+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$aros_host_strip"; then
5008 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_aros_host_strip="strip "
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 aros_host_strip=$ac_cv_prog_aros_host_strip
5028 if test -n "$aros_host_strip"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5030 $as_echo "$aros_host_strip" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 req_avail=yes
5038 if test "$aros_host_strip" = ""; then
5039 req_avail=no
5041 if test "$aros_host_strip" = "no"; then
5042 req_avail=no
5044 if test "$req_avail" = "no"; then
5045 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5048 # Extract the first word of "rm", so it can be a program name with args.
5049 set dummy rm; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_RM+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$RM"; then
5056 ac_cv_prog_RM="$RM" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_RM="rm -rf"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5069 done
5070 done
5071 IFS=$as_save_IFS
5075 RM=$ac_cv_prog_RM
5076 if test -n "$RM"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5078 $as_echo "$RM" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5085 req_avail=yes
5086 if test "$RM" = ""; then
5087 req_avail=no
5089 if test "$RM" = "no"; then
5090 req_avail=no
5092 if test "$req_avail" = "no"; then
5093 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "cp", so it can be a program name with args.
5096 set dummy cp; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_CP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$CP"; then
5103 ac_cv_prog_CP="$CP" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_CP="cp "
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 CP=$ac_cv_prog_CP
5123 if test -n "$CP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5125 $as_echo "$CP" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 req_avail=yes
5133 if test "$CP" = ""; then
5134 req_avail=no
5136 if test "$CP" = "no"; then
5137 req_avail=no
5139 if test "$req_avail" = "no"; then
5140 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5142 # Extract the first word of "mv", so it can be a program name with args.
5143 set dummy mv; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_MV+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$MV"; then
5150 ac_cv_prog_MV="$MV" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_MV="mv "
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 MV=$ac_cv_prog_MV
5170 if test -n "$MV"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5172 $as_echo "$MV" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 req_avail=yes
5180 if test "$MV" = ""; then
5181 req_avail=no
5183 if test "$MV" = "no"; then
5184 req_avail=no
5186 if test "$req_avail" = "no"; then
5187 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5189 # Extract the first word of "echo", so it can be a program name with args.
5190 set dummy echo; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_ECHO+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$ECHO"; then
5197 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_ECHO="echo "
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 ECHO=$ac_cv_prog_ECHO
5217 if test -n "$ECHO"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5219 $as_echo "$ECHO" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 req_avail=yes
5227 if test "$ECHO" = ""; then
5228 req_avail=no
5230 if test "$ECHO" = "no"; then
5231 req_avail=no
5233 if test "$req_avail" = "no"; then
5234 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5236 # Extract the first word of "mkdir", so it can be a program name with args.
5237 set dummy mkdir; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_MKDIR+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$MKDIR"; then
5244 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_MKDIR="mkdir -p"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 MKDIR=$ac_cv_prog_MKDIR
5264 if test -n "$MKDIR"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5266 $as_echo "$MKDIR" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5273 req_avail=yes
5274 if test "$MKDIR" = ""; then
5275 req_avail=no
5277 if test "$MKDIR" = "no"; then
5278 req_avail=no
5280 if test "$req_avail" = "no"; then
5281 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5283 # Extract the first word of "touch", so it can be a program name with args.
5284 set dummy touch; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_TOUCH+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$TOUCH"; then
5291 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_TOUCH="touch "
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 TOUCH=$ac_cv_prog_TOUCH
5311 if test -n "$TOUCH"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5313 $as_echo "$TOUCH" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 req_avail=yes
5321 if test "$TOUCH" = ""; then
5322 req_avail=no
5324 if test "$TOUCH" = "no"; then
5325 req_avail=no
5327 if test "$req_avail" = "no"; then
5328 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5330 # Extract the first word of "sort", so it can be a program name with args.
5331 set dummy sort; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_SORT+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$SORT"; then
5338 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_SORT="sort "
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5351 done
5352 done
5353 IFS=$as_save_IFS
5357 SORT=$ac_cv_prog_SORT
5358 if test -n "$SORT"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5360 $as_echo "$SORT" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 req_avail=yes
5368 if test "$SORT" = ""; then
5369 req_avail=no
5371 if test "$SORT" = "no"; then
5372 req_avail=no
5374 if test "$req_avail" = "no"; then
5375 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5377 # Extract the first word of "uniq", so it can be a program name with args.
5378 set dummy uniq; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_UNIQ+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$UNIQ"; then
5385 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_UNIQ="uniq "
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 UNIQ=$ac_cv_prog_UNIQ
5405 if test -n "$UNIQ"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5407 $as_echo "$UNIQ" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 req_avail=yes
5415 if test "$UNIQ" = ""; then
5416 req_avail=no
5418 if test "$UNIQ" = "no"; then
5419 req_avail=no
5421 if test "$req_avail" = "no"; then
5422 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5424 # Extract the first word of "true", so it can be a program name with args.
5425 set dummy true; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_NOP+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$NOP"; then
5432 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_NOP="true "
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 NOP=$ac_cv_prog_NOP
5452 if test -n "$NOP"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5454 $as_echo "$NOP" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5461 req_avail=yes
5462 if test "$NOP" = ""; then
5463 req_avail=no
5465 if test "$NOP" = "no"; then
5466 req_avail=no
5468 if test "$req_avail" = "no"; then
5469 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5471 # Extract the first word of "cat", so it can be a program name with args.
5472 set dummy cat; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_CAT+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$CAT"; then
5479 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_CAT="cat "
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5492 done
5493 done
5494 IFS=$as_save_IFS
5498 CAT=$ac_cv_prog_CAT
5499 if test -n "$CAT"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5501 $as_echo "$CAT" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5508 req_avail=yes
5509 if test "$CAT" = ""; then
5510 req_avail=no
5512 if test "$CAT" = "no"; then
5513 req_avail=no
5515 if test "$req_avail" = "no"; then
5516 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5518 # Extract the first word of "bison", so it can be a program name with args.
5519 set dummy bison; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_BISON+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$BISON"; then
5526 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_BISON="bison "
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 BISON=$ac_cv_prog_BISON
5546 if test -n "$BISON"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5548 $as_echo "$BISON" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 req_avail=yes
5556 if test "$BISON" = ""; then
5557 req_avail=no
5559 if test "$BISON" = "no"; then
5560 req_avail=no
5562 if test "$req_avail" = "no"; then
5563 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5565 # Extract the first word of "flex", so it can be a program name with args.
5566 set dummy flex; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_FLEX+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$FLEX"; then
5573 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_FLEX="flex "
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5586 done
5587 done
5588 IFS=$as_save_IFS
5592 FLEX=$ac_cv_prog_FLEX
5593 if test -n "$FLEX"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5595 $as_echo "$FLEX" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5602 req_avail=yes
5603 if test "$FLEX" = ""; then
5604 req_avail=no
5606 if test "$FLEX" = "no"; then
5607 req_avail=no
5609 if test "$req_avail" = "no"; then
5610 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5612 # Extract the first word of "pngtopnm", so it can be a program name with args.
5613 set dummy pngtopnm; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$PNGTOPNM"; then
5620 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_PNGTOPNM="pngtopnm "
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5639 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5640 if test -n "$PNGTOPNM"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5642 $as_echo "$PNGTOPNM" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5649 req_avail=yes
5650 if test "$PNGTOPNM" = ""; then
5651 req_avail=no
5653 if test "$PNGTOPNM" = "no"; then
5654 req_avail=no
5656 if test "$req_avail" = "no"; then
5657 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5659 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5660 set dummy ppmtoilbm; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$PPMTOILBM"; then
5667 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5680 done
5681 done
5682 IFS=$as_save_IFS
5686 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5687 if test -n "$PPMTOILBM"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5689 $as_echo "$PPMTOILBM" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 req_avail=yes
5697 if test "$PPMTOILBM" = ""; then
5698 req_avail=no
5700 if test "$PPMTOILBM" = "no"; then
5701 req_avail=no
5703 if test "$req_avail" = "no"; then
5704 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5706 # Extract the first word of "sed", so it can be a program name with args.
5707 set dummy sed; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_SED+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$SED"; then
5714 ac_cv_prog_SED="$SED" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_SED="sed "
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5729 IFS=$as_save_IFS
5733 SED=$ac_cv_prog_SED
5734 if test -n "$SED"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5736 $as_echo "$SED" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5743 req_avail=yes
5744 if test "$SED" = ""; then
5745 req_avail=no
5747 if test "$SED" = "no"; then
5748 req_avail=no
5750 if test "$req_avail" = "no"; then
5751 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5753 # Extract the first word of "chmod", so it can be a program name with args.
5754 set dummy chmod; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_CHMOD+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$CHMOD"; then
5761 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_CHMOD="chmod "
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5774 done
5775 done
5776 IFS=$as_save_IFS
5780 CHMOD=$ac_cv_prog_CHMOD
5781 if test -n "$CHMOD"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5783 $as_echo "$CHMOD" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5790 req_avail=yes
5791 if test "$CHMOD" = ""; then
5792 req_avail=no
5794 if test "$CHMOD" = "no"; then
5795 req_avail=no
5797 if test "$req_avail" = "no"; then
5798 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5800 # Extract the first word of "patch", so it can be a program name with args.
5801 set dummy patch; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_PATCH+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$PATCH"; then
5808 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_PATCH="patch "
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5821 done
5822 done
5823 IFS=$as_save_IFS
5827 PATCH=$ac_cv_prog_PATCH
5828 if test -n "$PATCH"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5830 $as_echo "$PATCH" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5837 req_avail=yes
5838 if test "$PATCH" = ""; then
5839 req_avail=no
5841 if test "$PATCH" = "no"; then
5842 req_avail=no
5844 if test "$req_avail" = "no"; then
5845 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5854 if test -n "$PYTHON"; then
5855 # If the user set $PYTHON, use it and don't search something else.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5857 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5858 prog="import sys
5859 # split strings by '.' and convert to numeric. Append some zeros
5860 # because we need at least 4 digits for the hex conversion.
5861 # map returns an iterator in Python 3.0 and a list in 2.x
5862 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5863 minverhex = 0
5864 # xrange is not present in Python 3.0 and range returns an iterator
5865 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5866 sys.exit(sys.hexversion < minverhex)"
5867 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5868 ($PYTHON -c "$prog") >&5 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; then :
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 $as_echo "yes" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5879 am_display_PYTHON=$PYTHON
5880 else
5881 # Otherwise, try each interpreter until we find one that satisfies
5882 # VERSION.
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5884 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5885 if ${am_cv_pathless_PYTHON+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5889 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5890 test "$am_cv_pathless_PYTHON" = none && break
5891 prog="import sys
5892 # split strings by '.' and convert to numeric. Append some zeros
5893 # because we need at least 4 digits for the hex conversion.
5894 # map returns an iterator in Python 3.0 and a list in 2.x
5895 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5896 minverhex = 0
5897 # xrange is not present in Python 3.0 and range returns an iterator
5898 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5899 sys.exit(sys.hexversion < minverhex)"
5900 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5901 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; then :
5905 break
5907 done
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5910 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5911 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5912 if test "$am_cv_pathless_PYTHON" = none; then
5913 PYTHON=:
5914 else
5915 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5916 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_path_PYTHON+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 case $PYTHON in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5938 done
5939 done
5940 IFS=$as_save_IFS
5943 esac
5945 PYTHON=$ac_cv_path_PYTHON
5946 if test -n "$PYTHON"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5948 $as_echo "$PYTHON" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5956 am_display_PYTHON=$am_cv_pathless_PYTHON
5960 if test "$PYTHON" = :; then
5961 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5962 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5966 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5967 if ${am_cv_python_version+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5973 $as_echo "$am_cv_python_version" >&6; }
5974 PYTHON_VERSION=$am_cv_python_version
5978 PYTHON_PREFIX='${prefix}'
5980 PYTHON_EXEC_PREFIX='${exec_prefix}'
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5985 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5986 if ${am_cv_python_platform+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5992 $as_echo "$am_cv_python_platform" >&6; }
5993 PYTHON_PLATFORM=$am_cv_python_platform
5996 # Just factor out some code duplication.
5997 am_python_setup_sysconfig="\
5998 import sys
5999 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6000 # with python 3.x. See automake bug#10227.
6001 try:
6002 import sysconfig
6003 except ImportError:
6004 can_use_sysconfig = 0
6005 else:
6006 can_use_sysconfig = 1
6007 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6008 # <https://github.com/pypa/virtualenv/issues/118>
6009 try:
6010 from platform import python_implementation
6011 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6012 can_use_sysconfig = 0
6013 except ImportError:
6014 pass"
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6018 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6019 if ${am_cv_python_pythondir+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test "x$prefix" = xNONE
6023 then
6024 am_py_prefix=$ac_default_prefix
6025 else
6026 am_py_prefix=$prefix
6028 am_cv_python_pythondir=`$PYTHON -c "
6029 $am_python_setup_sysconfig
6030 if can_use_sysconfig:
6031 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6032 else:
6033 from distutils import sysconfig
6034 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6035 sys.stdout.write(sitedir)"`
6036 case $am_cv_python_pythondir in
6037 $am_py_prefix*)
6038 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6039 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6042 case $am_py_prefix in
6043 /usr|/System*) ;;
6045 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6047 esac
6049 esac
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6053 $as_echo "$am_cv_python_pythondir" >&6; }
6054 pythondir=$am_cv_python_pythondir
6058 pkgpythondir=\${pythondir}/$PACKAGE
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6062 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6063 if ${am_cv_python_pyexecdir+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test "x$exec_prefix" = xNONE
6067 then
6068 am_py_exec_prefix=$am_py_prefix
6069 else
6070 am_py_exec_prefix=$exec_prefix
6072 am_cv_python_pyexecdir=`$PYTHON -c "
6073 $am_python_setup_sysconfig
6074 if can_use_sysconfig:
6075 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6076 else:
6077 from distutils import sysconfig
6078 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6079 sys.stdout.write(sitedir)"`
6080 case $am_cv_python_pyexecdir in
6081 $am_py_exec_prefix*)
6082 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6083 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6086 case $am_py_exec_prefix in
6087 /usr|/System*) ;;
6089 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6091 esac
6093 esac
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6097 $as_echo "$am_cv_python_pyexecdir" >&6; }
6098 pyexecdir=$am_cv_python_pyexecdir
6102 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6110 # Check whether --enable-libpng-config was given.
6111 if test "${enable_libpng_config+set}" = set; then :
6112 enableval=$enable_libpng_config;
6115 if test "$enable_libpng_config" != "no"; then
6116 # Extract the first word of "libpng-config", so it can be a program name with args.
6117 set dummy libpng-config; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$arosconfig_use_libpngconfig"; then
6124 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6137 done
6138 done
6139 IFS=$as_save_IFS
6141 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6144 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6145 if test -n "$arosconfig_use_libpngconfig"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6147 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6155 if test "$arosconfig_use_libpngconfig" = "yes"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6157 $as_echo_n "checking libpng-config library... " >&6; }
6158 libpng_incdir="`libpng-config --cflags`"
6159 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6160 libpng="`libpng-config --libs`"
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6162 $as_echo "$libpng" >&6; }
6163 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6166 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6167 if ${ac_cv_lib_png_png_read_png+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 ac_check_lib_save_LIBS=$LIBS
6171 LIBS="-lpng $LIBS"
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 /* Override any GCC internal prototype to avoid an error.
6176 Use char because int might match the return type of a GCC
6177 builtin and then its argument prototype would still apply. */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 char png_read_png ();
6183 main ()
6185 return png_read_png ();
6187 return 0;
6189 _ACEOF
6190 if ac_fn_c_try_link "$LINENO"; then :
6191 ac_cv_lib_png_png_read_png=yes
6192 else
6193 ac_cv_lib_png_png_read_png=no
6195 rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 LIBS=$ac_check_lib_save_LIBS
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6200 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6201 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6202 libpng="-lpng"
6203 else
6204 libpng="no"
6207 if test "$libpng_libextra" != ""; then
6208 if test "$libpng" != "no"; then
6209 libpng_libextra="$libpng_libextra $libpng"
6213 req_avail=yes
6214 if test "$libpng" = ""; then
6215 req_avail=no
6217 if test "$libpng" = "no"; then
6218 req_avail=no
6220 if test "$req_avail" = "no"; then
6221 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6227 FOR=for
6229 IF=if
6231 TEST=test
6233 CMP=cmp
6237 # Check for some includes for the X11 HIDD and the kernel
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6241 if ${ac_cv_path_GREP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -z "$GREP"; then
6245 ac_path_GREP_found=false
6246 # Loop through the user's path and test for each of PROGNAME-LIST
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_prog in grep ggrep; do
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6255 as_fn_executable_p "$ac_path_GREP" || continue
6256 # Check for GNU ac_path_GREP and select it if it is found.
6257 # Check for GNU $ac_path_GREP
6258 case `"$ac_path_GREP" --version 2>&1` in
6259 *GNU*)
6260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6262 ac_count=0
6263 $as_echo_n 0123456789 >"conftest.in"
6264 while :
6266 cat "conftest.in" "conftest.in" >"conftest.tmp"
6267 mv "conftest.tmp" "conftest.in"
6268 cp "conftest.in" "conftest.nl"
6269 $as_echo 'GREP' >> "conftest.nl"
6270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6272 as_fn_arith $ac_count + 1 && ac_count=$as_val
6273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6274 # Best one so far, save it but keep looking for a better one
6275 ac_cv_path_GREP="$ac_path_GREP"
6276 ac_path_GREP_max=$ac_count
6278 # 10*(2^10) chars as input seems more than enough
6279 test $ac_count -gt 10 && break
6280 done
6281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6282 esac
6284 $ac_path_GREP_found && break 3
6285 done
6286 done
6287 done
6288 IFS=$as_save_IFS
6289 if test -z "$ac_cv_path_GREP"; then
6290 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6292 else
6293 ac_cv_path_GREP=$GREP
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6298 $as_echo "$ac_cv_path_GREP" >&6; }
6299 GREP="$ac_cv_path_GREP"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6303 $as_echo_n "checking for egrep... " >&6; }
6304 if ${ac_cv_path_EGREP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6308 then ac_cv_path_EGREP="$GREP -E"
6309 else
6310 if test -z "$EGREP"; then
6311 ac_path_EGREP_found=false
6312 # Loop through the user's path and test for each of PROGNAME-LIST
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_prog in egrep; do
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6321 as_fn_executable_p "$ac_path_EGREP" || continue
6322 # Check for GNU ac_path_EGREP and select it if it is found.
6323 # Check for GNU $ac_path_EGREP
6324 case `"$ac_path_EGREP" --version 2>&1` in
6325 *GNU*)
6326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6328 ac_count=0
6329 $as_echo_n 0123456789 >"conftest.in"
6330 while :
6332 cat "conftest.in" "conftest.in" >"conftest.tmp"
6333 mv "conftest.tmp" "conftest.in"
6334 cp "conftest.in" "conftest.nl"
6335 $as_echo 'EGREP' >> "conftest.nl"
6336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6338 as_fn_arith $ac_count + 1 && ac_count=$as_val
6339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6340 # Best one so far, save it but keep looking for a better one
6341 ac_cv_path_EGREP="$ac_path_EGREP"
6342 ac_path_EGREP_max=$ac_count
6344 # 10*(2^10) chars as input seems more than enough
6345 test $ac_count -gt 10 && break
6346 done
6347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6348 esac
6350 $ac_path_EGREP_found && break 3
6351 done
6352 done
6353 done
6354 IFS=$as_save_IFS
6355 if test -z "$ac_cv_path_EGREP"; then
6356 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6358 else
6359 ac_cv_path_EGREP=$EGREP
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6365 $as_echo "$ac_cv_path_EGREP" >&6; }
6366 EGREP="$ac_cv_path_EGREP"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6370 $as_echo_n "checking for ANSI C header files... " >&6; }
6371 if ${ac_cv_header_stdc+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 #include <stdlib.h>
6377 #include <stdarg.h>
6378 #include <string.h>
6379 #include <float.h>
6382 main ()
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 ac_cv_header_stdc=yes
6391 else
6392 ac_cv_header_stdc=no
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 if test $ac_cv_header_stdc = yes; then
6397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <string.h>
6402 _ACEOF
6403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6404 $EGREP "memchr" >/dev/null 2>&1; then :
6406 else
6407 ac_cv_header_stdc=no
6409 rm -f conftest*
6413 if test $ac_cv_header_stdc = yes; then
6414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <stdlib.h>
6419 _ACEOF
6420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6421 $EGREP "free" >/dev/null 2>&1; then :
6423 else
6424 ac_cv_header_stdc=no
6426 rm -f conftest*
6430 if test $ac_cv_header_stdc = yes; then
6431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6432 if test "$cross_compiling" = yes; then :
6434 else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 #include <ctype.h>
6438 #include <stdlib.h>
6439 #if ((' ' & 0x0FF) == 0x020)
6440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6442 #else
6443 # define ISLOWER(c) \
6444 (('a' <= (c) && (c) <= 'i') \
6445 || ('j' <= (c) && (c) <= 'r') \
6446 || ('s' <= (c) && (c) <= 'z'))
6447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448 #endif
6450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6452 main ()
6454 int i;
6455 for (i = 0; i < 256; i++)
6456 if (XOR (islower (i), ISLOWER (i))
6457 || toupper (i) != TOUPPER (i))
6458 return 2;
6459 return 0;
6461 _ACEOF
6462 if ac_fn_c_try_run "$LINENO"; then :
6464 else
6465 ac_cv_header_stdc=no
6467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6468 conftest.$ac_objext conftest.beam conftest.$ac_ext
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6474 $as_echo "$ac_cv_header_stdc" >&6; }
6475 if test $ac_cv_header_stdc = yes; then
6477 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6483 inttypes.h stdint.h unistd.h
6484 do :
6485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491 _ACEOF
6495 done
6498 for ac_header in sys/ipc.h sys/shm.h \
6499 sys/mmap.h sys/mman.h sysexits.h \
6500 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6502 do :
6503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6505 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6506 cat >>confdefs.h <<_ACEOF
6507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6512 done
6515 for ac_header in sys/mount.h
6516 do :
6517 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6519 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6520 cat >>confdefs.h <<_ACEOF
6521 #define HAVE_SYS_MOUNT_H 1
6522 _ACEOF
6526 done
6529 ac_header_dirent=no
6530 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6531 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6533 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6534 if eval \${$as_ac_Header+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <sys/types.h>
6540 #include <$ac_hdr>
6543 main ()
6545 if ((DIR *) 0)
6546 return 0;
6548 return 0;
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 eval "$as_ac_Header=yes"
6553 else
6554 eval "$as_ac_Header=no"
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 eval ac_res=\$$as_ac_Header
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560 $as_echo "$ac_res" >&6; }
6561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6562 cat >>confdefs.h <<_ACEOF
6563 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6564 _ACEOF
6566 ac_header_dirent=$ac_hdr; break
6569 done
6570 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6571 if test $ac_header_dirent = dirent.h; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6573 $as_echo_n "checking for library containing opendir... " >&6; }
6574 if ${ac_cv_search_opendir+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 ac_func_search_save_LIBS=$LIBS
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6581 /* Override any GCC internal prototype to avoid an error.
6582 Use char because int might match the return type of a GCC
6583 builtin and then its argument prototype would still apply. */
6584 #ifdef __cplusplus
6585 extern "C"
6586 #endif
6587 char opendir ();
6589 main ()
6591 return opendir ();
6593 return 0;
6595 _ACEOF
6596 for ac_lib in '' dir; do
6597 if test -z "$ac_lib"; then
6598 ac_res="none required"
6599 else
6600 ac_res=-l$ac_lib
6601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 ac_cv_search_opendir=$ac_res
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext
6608 if ${ac_cv_search_opendir+:} false; then :
6609 break
6611 done
6612 if ${ac_cv_search_opendir+:} false; then :
6614 else
6615 ac_cv_search_opendir=no
6617 rm conftest.$ac_ext
6618 LIBS=$ac_func_search_save_LIBS
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6621 $as_echo "$ac_cv_search_opendir" >&6; }
6622 ac_res=$ac_cv_search_opendir
6623 if test "$ac_res" != no; then :
6624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6630 $as_echo_n "checking for library containing opendir... " >&6; }
6631 if ${ac_cv_search_opendir+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 ac_func_search_save_LIBS=$LIBS
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6638 /* Override any GCC internal prototype to avoid an error.
6639 Use char because int might match the return type of a GCC
6640 builtin and then its argument prototype would still apply. */
6641 #ifdef __cplusplus
6642 extern "C"
6643 #endif
6644 char opendir ();
6646 main ()
6648 return opendir ();
6650 return 0;
6652 _ACEOF
6653 for ac_lib in '' x; do
6654 if test -z "$ac_lib"; then
6655 ac_res="none required"
6656 else
6657 ac_res=-l$ac_lib
6658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 ac_cv_search_opendir=$ac_res
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext
6665 if ${ac_cv_search_opendir+:} false; then :
6666 break
6668 done
6669 if ${ac_cv_search_opendir+:} false; then :
6671 else
6672 ac_cv_search_opendir=no
6674 rm conftest.$ac_ext
6675 LIBS=$ac_func_search_save_LIBS
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6678 $as_echo "$ac_cv_search_opendir" >&6; }
6679 ac_res=$ac_cv_search_opendir
6680 if test "$ac_res" != no; then :
6681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6688 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6689 if ${ac_cv_header_stat_broken+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <sys/stat.h>
6697 #if defined S_ISBLK && defined S_IFDIR
6698 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6699 #endif
6701 #if defined S_ISBLK && defined S_IFCHR
6702 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6703 #endif
6705 #if defined S_ISLNK && defined S_IFREG
6706 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6707 #endif
6709 #if defined S_ISSOCK && defined S_IFREG
6710 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6711 #endif
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 ac_cv_header_stat_broken=no
6716 else
6717 ac_cv_header_stat_broken=yes
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6722 $as_echo "$ac_cv_header_stat_broken" >&6; }
6723 if test $ac_cv_header_stat_broken = yes; then
6725 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6730 $as_echo_n "checking for ANSI C header files... " >&6; }
6731 if ${ac_cv_header_stdc+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <stdlib.h>
6737 #include <stdarg.h>
6738 #include <string.h>
6739 #include <float.h>
6742 main ()
6746 return 0;
6748 _ACEOF
6749 if ac_fn_c_try_compile "$LINENO"; then :
6750 ac_cv_header_stdc=yes
6751 else
6752 ac_cv_header_stdc=no
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 if test $ac_cv_header_stdc = yes; then
6757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 #include <string.h>
6762 _ACEOF
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "memchr" >/dev/null 2>&1; then :
6766 else
6767 ac_cv_header_stdc=no
6769 rm -f conftest*
6773 if test $ac_cv_header_stdc = yes; then
6774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <stdlib.h>
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "free" >/dev/null 2>&1; then :
6783 else
6784 ac_cv_header_stdc=no
6786 rm -f conftest*
6790 if test $ac_cv_header_stdc = yes; then
6791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6792 if test "$cross_compiling" = yes; then :
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <ctype.h>
6798 #include <stdlib.h>
6799 #if ((' ' & 0x0FF) == 0x020)
6800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6802 #else
6803 # define ISLOWER(c) \
6804 (('a' <= (c) && (c) <= 'i') \
6805 || ('j' <= (c) && (c) <= 'r') \
6806 || ('s' <= (c) && (c) <= 'z'))
6807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6808 #endif
6810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6812 main ()
6814 int i;
6815 for (i = 0; i < 256; i++)
6816 if (XOR (islower (i), ISLOWER (i))
6817 || toupper (i) != TOUPPER (i))
6818 return 2;
6819 return 0;
6821 _ACEOF
6822 if ac_fn_c_try_run "$LINENO"; then :
6824 else
6825 ac_cv_header_stdc=no
6827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6828 conftest.$ac_objext conftest.beam conftest.$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6834 $as_echo "$ac_cv_header_stdc" >&6; }
6835 if test $ac_cv_header_stdc = yes; then
6837 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6842 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6843 if ${ac_cv_header_sys_wait_h+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 #include <sys/wait.h>
6850 #ifndef WEXITSTATUS
6851 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6852 #endif
6853 #ifndef WIFEXITED
6854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6855 #endif
6858 main ()
6860 int s;
6861 wait (&s);
6862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6864 return 0;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 ac_cv_header_sys_wait_h=yes
6869 else
6870 ac_cv_header_sys_wait_h=no
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6875 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6876 if test $ac_cv_header_sys_wait_h = yes; then
6878 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6883 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6884 if ${ac_cv_header_time+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 #include <sys/types.h>
6890 #include <sys/time.h>
6891 #include <time.h>
6894 main ()
6896 if ((struct tm *) 0)
6897 return 0;
6899 return 0;
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 ac_cv_header_time=yes
6904 else
6905 ac_cv_header_time=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6910 $as_echo "$ac_cv_header_time" >&6; }
6911 if test $ac_cv_header_time = yes; then
6913 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6917 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6918 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6922 _ACEOF
6925 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6930 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6931 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6935 _ACEOF
6938 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6940 else
6941 case " $LIBOBJS " in
6942 *" fileblocks.$ac_objext "* ) ;;
6943 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6945 esac
6950 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6951 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6953 cat >>confdefs.h <<_ACEOF
6954 #define HAVE_STRUCT_STAT_ST_RDEV 1
6955 _ACEOF
6958 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6964 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6965 if ${ac_cv_struct_tm+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 #include <sys/types.h>
6971 #include <time.h>
6974 main ()
6976 struct tm tm;
6977 int *p = &tm.tm_sec;
6978 return !p;
6980 return 0;
6982 _ACEOF
6983 if ac_fn_c_try_compile "$LINENO"; then :
6984 ac_cv_struct_tm=time.h
6985 else
6986 ac_cv_struct_tm=sys/time.h
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6991 $as_echo "$ac_cv_struct_tm" >&6; }
6992 if test $ac_cv_struct_tm = sys/time.h; then
6994 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6998 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6999 #include <$ac_cv_struct_tm>
7002 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7004 cat >>confdefs.h <<_ACEOF
7005 #define HAVE_STRUCT_TM_TM_ZONE 1
7006 _ACEOF
7011 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7013 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7015 else
7016 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7018 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7019 ac_have_decl=1
7020 else
7021 ac_have_decl=0
7024 cat >>confdefs.h <<_ACEOF
7025 #define HAVE_DECL_TZNAME $ac_have_decl
7026 _ACEOF
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7029 $as_echo_n "checking for tzname... " >&6; }
7030 if ${ac_cv_var_tzname+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 #include <time.h>
7036 #if !HAVE_DECL_TZNAME
7037 extern char *tzname[];
7038 #endif
7041 main ()
7043 return tzname[0][0];
7045 return 0;
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 ac_cv_var_tzname=yes
7050 else
7051 ac_cv_var_tzname=no
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7057 $as_echo "$ac_cv_var_tzname" >&6; }
7058 if test $ac_cv_var_tzname = yes; then
7060 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7065 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7066 if test "x$ac_cv_type_off_t" = xyes; then :
7068 else
7070 cat >>confdefs.h <<_ACEOF
7071 #define off_t long int
7072 _ACEOF
7076 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7077 if test "x$ac_cv_type_pid_t" = xyes; then :
7079 else
7081 cat >>confdefs.h <<_ACEOF
7082 #define pid_t int
7083 _ACEOF
7087 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7088 if test "x$ac_cv_type_size_t" = xyes; then :
7090 else
7092 cat >>confdefs.h <<_ACEOF
7093 #define size_t unsigned int
7094 _ACEOF
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7099 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7100 if ${ac_cv_type_uid_t+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105 #include <sys/types.h>
7107 _ACEOF
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "uid_t" >/dev/null 2>&1; then :
7110 ac_cv_type_uid_t=yes
7111 else
7112 ac_cv_type_uid_t=no
7114 rm -f conftest*
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7118 $as_echo "$ac_cv_type_uid_t" >&6; }
7119 if test $ac_cv_type_uid_t = no; then
7121 $as_echo "#define uid_t int" >>confdefs.h
7124 $as_echo "#define gid_t int" >>confdefs.h
7129 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7130 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7134 _ACEOF
7140 # Look for some functions
7141 for ac_func in getpagesize kqueue statfs statvfs \
7142 clone kse_create rfork_thread thr_create sa_register \
7143 getcontext makecontext setcontext sigaltstack swapcontext
7144 do :
7145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7148 cat >>confdefs.h <<_ACEOF
7149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7150 _ACEOF
7153 done
7159 for ac_header in $ac_header_list
7160 do :
7161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7165 cat >>confdefs.h <<_ACEOF
7166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7167 _ACEOF
7171 done
7180 for ac_func in getpagesize
7181 do :
7182 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7183 if test "x$ac_cv_func_getpagesize" = xyes; then :
7184 cat >>confdefs.h <<_ACEOF
7185 #define HAVE_GETPAGESIZE 1
7186 _ACEOF
7189 done
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7192 $as_echo_n "checking for working mmap... " >&6; }
7193 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test "$cross_compiling" = yes; then :
7197 ac_cv_func_mmap_fixed_mapped=no
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 $ac_includes_default
7202 /* malloc might have been renamed as rpl_malloc. */
7203 #undef malloc
7205 /* Thanks to Mike Haertel and Jim Avera for this test.
7206 Here is a matrix of mmap possibilities:
7207 mmap private not fixed
7208 mmap private fixed at somewhere currently unmapped
7209 mmap private fixed at somewhere already mapped
7210 mmap shared not fixed
7211 mmap shared fixed at somewhere currently unmapped
7212 mmap shared fixed at somewhere already mapped
7213 For private mappings, we should verify that changes cannot be read()
7214 back from the file, nor mmap's back from the file at a different
7215 address. (There have been systems where private was not correctly
7216 implemented like the infamous i386 svr4.0, and systems where the
7217 VM page cache was not coherent with the file system buffer cache
7218 like early versions of FreeBSD and possibly contemporary NetBSD.)
7219 For shared mappings, we should conversely verify that changes get
7220 propagated back to all the places they're supposed to be.
7222 Grep wants private fixed already mapped.
7223 The main things grep needs to know about mmap are:
7224 * does it exist and is it safe to write into the mmap'd area
7225 * how to use it (BSD variants) */
7227 #include <fcntl.h>
7228 #include <sys/mman.h>
7230 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7231 char *malloc ();
7232 #endif
7234 /* This mess was copied from the GNU getpagesize.h. */
7235 #ifndef HAVE_GETPAGESIZE
7236 # ifdef _SC_PAGESIZE
7237 # define getpagesize() sysconf(_SC_PAGESIZE)
7238 # else /* no _SC_PAGESIZE */
7239 # ifdef HAVE_SYS_PARAM_H
7240 # include <sys/param.h>
7241 # ifdef EXEC_PAGESIZE
7242 # define getpagesize() EXEC_PAGESIZE
7243 # else /* no EXEC_PAGESIZE */
7244 # ifdef NBPG
7245 # define getpagesize() NBPG * CLSIZE
7246 # ifndef CLSIZE
7247 # define CLSIZE 1
7248 # endif /* no CLSIZE */
7249 # else /* no NBPG */
7250 # ifdef NBPC
7251 # define getpagesize() NBPC
7252 # else /* no NBPC */
7253 # ifdef PAGESIZE
7254 # define getpagesize() PAGESIZE
7255 # endif /* PAGESIZE */
7256 # endif /* no NBPC */
7257 # endif /* no NBPG */
7258 # endif /* no EXEC_PAGESIZE */
7259 # else /* no HAVE_SYS_PARAM_H */
7260 # define getpagesize() 8192 /* punt totally */
7261 # endif /* no HAVE_SYS_PARAM_H */
7262 # endif /* no _SC_PAGESIZE */
7264 #endif /* no HAVE_GETPAGESIZE */
7267 main ()
7269 char *data, *data2, *data3;
7270 const char *cdata2;
7271 int i, pagesize;
7272 int fd, fd2;
7274 pagesize = getpagesize ();
7276 /* First, make a file with some known garbage in it. */
7277 data = (char *) malloc (pagesize);
7278 if (!data)
7279 return 1;
7280 for (i = 0; i < pagesize; ++i)
7281 *(data + i) = rand ();
7282 umask (0);
7283 fd = creat ("conftest.mmap", 0600);
7284 if (fd < 0)
7285 return 2;
7286 if (write (fd, data, pagesize) != pagesize)
7287 return 3;
7288 close (fd);
7290 /* Next, check that the tail of a page is zero-filled. File must have
7291 non-zero length, otherwise we risk SIGBUS for entire page. */
7292 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7293 if (fd2 < 0)
7294 return 4;
7295 cdata2 = "";
7296 if (write (fd2, cdata2, 1) != 1)
7297 return 5;
7298 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7299 if (data2 == MAP_FAILED)
7300 return 6;
7301 for (i = 0; i < pagesize; ++i)
7302 if (*(data2 + i))
7303 return 7;
7304 close (fd2);
7305 if (munmap (data2, pagesize))
7306 return 8;
7308 /* Next, try to mmap the file at a fixed address which already has
7309 something else allocated at it. If we can, also make sure that
7310 we see the same garbage. */
7311 fd = open ("conftest.mmap", O_RDWR);
7312 if (fd < 0)
7313 return 9;
7314 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7315 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7316 return 10;
7317 for (i = 0; i < pagesize; ++i)
7318 if (*(data + i) != *(data2 + i))
7319 return 11;
7321 /* Finally, make sure that changes to the mapped area do not
7322 percolate back to the file as seen by read(). (This is a bug on
7323 some variants of i386 svr4.0.) */
7324 for (i = 0; i < pagesize; ++i)
7325 *(data2 + i) = *(data2 + i) + 1;
7326 data3 = (char *) malloc (pagesize);
7327 if (!data3)
7328 return 12;
7329 if (read (fd, data3, pagesize) != pagesize)
7330 return 13;
7331 for (i = 0; i < pagesize; ++i)
7332 if (*(data + i) != *(data3 + i))
7333 return 14;
7334 close (fd);
7335 return 0;
7337 _ACEOF
7338 if ac_fn_c_try_run "$LINENO"; then :
7339 ac_cv_func_mmap_fixed_mapped=yes
7340 else
7341 ac_cv_func_mmap_fixed_mapped=no
7343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7344 conftest.$ac_objext conftest.beam conftest.$ac_ext
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7349 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7350 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7352 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7355 rm -f conftest.mmap conftest.txt
7358 #-----------------------------------------------------------------------------
7361 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7362 # it switched on by default, and we use the host compiler, so it compiles AROS
7363 # code with this enabled resulting in link failures as we don't have support
7364 # for it.
7366 # We use two methods to disable it. For the host compiler (used to compile
7367 # some hosted modules), we test to see if the compiler supports stack
7368 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7369 # work on all platforms.
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7373 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7374 save_cflags="$CFLAGS"
7375 CFLAGS="$CFLAGS -fno-stack-protector"
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7380 main ()
7384 return 0;
7386 _ACEOF
7387 if ac_fn_c_try_compile "$LINENO"; then :
7388 use_no_stack_protector="yes"
7389 else
7390 use_no_stack_protector="no"
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7394 $as_echo "$use_no_stack_protector" >&6; }
7395 if test "x-$use_no_stack_protector" = "x-yes" ; then
7396 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7398 CFLAGS="$save_cflags"
7400 #-----------------------------------------------------------------------------
7402 # Disable pointer-signedness warnings if the compiler recognises the option
7403 # (this only works for the host compiler at the moment)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7406 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7407 save_cflags="$CFLAGS"
7408 CFLAGS="$CFLAGS -Wno-pointer-sign"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7413 main ()
7417 return 0;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 use_no_sign_warning="yes"
7422 else
7423 use_no_sign_warning="no"
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7427 $as_echo "$use_no_sign_warning" >&6; }
7428 if test "x-$use_no_sign_warning" = "x-yes" ; then
7429 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7431 CFLAGS="$save_cflags"
7433 #-----------------------------------------------------------------------------
7435 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7438 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7439 save_cflags="$CFLAGS"
7440 CFLAGS="$CFLAGS -fgnu89-inline"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7445 main ()
7449 return 0;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 use_gnu89_inline="yes"
7454 else
7455 use_gnu89_inline="no"
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7459 $as_echo "$use_gnu89_inline" >&6; }
7460 if test "x-$use_gnu89_inline" = "x-yes" ; then
7461 gnu89_inline="-fgnu89-inline"
7463 CFLAGS="$save_cflags"
7466 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7467 # On GCC >= 4.0 -iquote should be used
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7470 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7471 CFLAGS="$CFLAGS -iquote."
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7476 main ()
7480 return 0;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 has_iquote="yes"
7485 else
7486 has_iquote="no"
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7490 $as_echo "$has_iquote" >&6; }
7491 if test "x-$has_iquote" = "x-yes" ; then
7492 host_cflags_iquote=-iquote
7493 host_cflags_iquote_end=
7494 else
7495 host_cflags_iquote=-I
7496 host_cflags_iquote_end=-I-
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7500 $as_echo "$as_me: Performing target configuration..." >&6;}
7503 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7505 toolchain_needs_sysroot=no
7507 aros_warn_flags=
7508 aros_isa_flags=
7509 aros_config_cppflags=
7510 aros_config_cflags=
7511 aros_config_cxxflags=
7512 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7513 aros_config_ldflags=""
7515 aros_shared_default=yes
7517 aros_shared_cflags="-fPIC"
7518 aros_shared_aflags=""
7519 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7520 aros_kernel_ldflags="-Wl,-rpath,./lib"
7522 aros_kernel_ar_flags="cr"
7523 aros_target_ar_flags="cr"
7524 aros_target_nm_flags="-C -ul"
7525 aros_target_strip_flags="--strip-unneeded -R.comment"
7527 aros_compiler_libs=
7528 aros_arch_libs=
7530 aros_target_genmap="-Wl,-Map -Xlinker"
7532 # Native flavour stuff
7533 aros_serial_debug="0"
7535 # Palm native flavour stuff
7536 aros_palm_debug_hack="0"
7538 # Unix flavour stuff
7539 aros_nesting_supervisor="0"
7541 # Collect-aros stuff: "-ius" to ignore undefined symbols
7542 ignore_undefined_symbols=""
7544 # Check for X11 by default
7545 need_x11="auto"
7547 host_x_gfx=no
7548 host_sdl_gfx=no
7549 host_android_gfx=no
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7553 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7555 # Check whether --with-toolchain was given.
7556 if test "${with_toolchain+set}" = set; then :
7557 withval=$with_toolchain; aros_toolchain="$withval"
7558 else
7559 aros_toolchain="gnu"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7563 $as_echo "$aros_toolchain" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7567 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7568 # Check whether --enable-lto was given.
7569 if test "${enable_lto+set}" = set; then :
7570 enableval=$enable_lto; aros_config_lto="$enableval"
7571 else
7572 aros_config_lto="no"
7575 if test "$aros_config_lto" != "no"; then
7576 aros_config_lto="yes"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7579 $as_echo "$aros_config_lto" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7582 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7583 # Check whether --enable-coverage was given.
7584 if test "${enable_coverage+set}" = set; then :
7585 enableval=$enable_coverage; aros_config_coverage="$enableval"
7586 else
7587 aros_config_coverage="no"
7590 if test "$aros_config_coverage" != "no"; then
7591 aros_config_coverage="yes"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7594 $as_echo "$aros_config_coverage" >&6; }
7596 use_ld_wrapper=yes
7598 case "$aros_toolchain" in
7599 *llvm*)
7600 # toolchain_needs_sysroot=yes
7601 toolchain_c_compiler="clang"
7602 toolchain_cxx_compiler="clang++"
7603 toolchain_cpp_preprocessor="clang -E"
7604 toolchain_ld="ld.lld"
7605 aros_ld="ld"
7606 toolchain_as="llvm-as"
7607 toolchain_ar="llvm-ar"
7608 toolchain_ranlib="llvm-ranlib"
7609 toolchain_nm="llvm-nm"
7610 toolchain_strip="true"
7611 toolchain_objcopy="llvm-objcopy"
7612 toolchain_objdump="llvm-objdump"
7614 *gnu*)
7615 toolchain_c_compiler="gcc"
7616 toolchain_cxx_compiler="g++"
7617 toolchain_cpp_preprocessor="gcc -E"
7618 toolchain_as="as"
7619 aros_ld="ld"
7620 if test "$aros_config_lto" != "yes"; then
7621 toolchain_ld="ld"
7622 toolchain_ar="ar"
7623 toolchain_ranlib="ranlib"
7624 toolchain_nm="nm"
7625 else
7626 toolchain_ld="ld.bfd"
7627 toolchain_ar="gcc-ar"
7628 toolchain_ranlib="gcc-ranlib"
7629 toolchain_nm="gcc-nm"
7631 toolchain_strip="strip"
7632 toolchain_objcopy="objcopy"
7633 toolchain_objdump="objdump"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7637 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7638 toolchain_c_compiler="cc"
7639 toolchain_cxx_compiler="c++"
7640 toolchain_cpp_preprocessor="cpp"
7641 toolchain_ld="ld"
7642 aros_ld="ld"
7643 toolchain_as="as"
7644 toolchain_ar="ar"
7645 toolchain_ranlib="ranlib"
7646 toolchain_nm="nm"
7647 toolchain_strip="strip"
7648 toolchain_objcopy="objcopy"
7649 toolchain_objdump="objdump"
7651 esac
7653 #-----------------------------------------------------------------------------
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7656 $as_echo_n "checking which type of build to do... " >&6; }
7657 # Check whether --enable-build_type was given.
7658 if test "${enable_build_type+set}" = set; then :
7659 enableval=$enable_build_type; build_type=$enableval
7660 else
7661 build_type="personal"
7665 if test "$build_type" = "nightly"; then
7666 build_type_string="NIGHTLY"
7667 elif test "$build_type" = "snapshot"; then
7668 build_type_string="SNAPSHOT"
7669 elif test "$build_type" = "milestone"; then
7670 build_type_string="MILESTONE"
7671 elif test "$build_type" = "release"; then
7672 build_type_string="RELEASE"
7673 else
7674 build_type_string="PERSONAL"
7675 build_type="personal"
7678 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7681 $as_echo "$build_type" >&6; }
7683 #-----------------------------------------------------------------------------
7684 all_debug_types="messages stack modules mungwall symbols"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7687 $as_echo_n "checking which debug types to enable... " >&6; }
7688 # Check whether --enable-debug was given.
7689 if test "${enable_debug+set}" = set; then :
7690 enableval=$enable_debug; debug="$enableval"
7691 else
7692 debug=""
7696 if test "$debug" = "" -o "$debug" = "no"; then
7697 debug="none"
7698 elif test "$debug" = "yes"; then
7699 debug="all"
7702 if test "$debug" = "all" ; then
7703 debug="messages stack modules symbols"
7704 for d in $all_debug_types; do
7705 export aros_${d}_debug="1"
7706 done
7707 else
7708 for d in $all_debug_types; do
7709 export aros_${d}_debug="0"
7710 done
7713 if test "$debug" != "none"; then
7714 debug=`echo $debug | sed s/,/\ /g`
7715 for d in $debug; do
7716 found="0"
7717 for d2 in $all_debug_types; do
7718 if test "$d2" = "$d"; then
7719 found="1"
7720 break
7722 done
7723 if test "$found" = "0"; then
7724 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7726 export aros_${d}_debug="1"
7727 done
7728 aros_debug="yes"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7731 $as_echo "$debug" >&6; }
7733 if test "$aros_messages_debug" = "1"; then
7734 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7735 else
7736 aros_messages_debug=""
7738 if test "$aros_symbols_debug" = "1"; then
7739 aros_symbols_debug="-g"
7740 else
7741 aros_symbols_debug=""
7744 # These are the flags to pass when compiling debugged programs
7745 aros_debug_cppflags="$aros_messages_debug"
7746 aros_debug_cflags="$aros_symbols_debug"
7747 aros_debug_cxxflags=
7748 aros_debug_aflags=""
7749 aros_debug_ldflags="$aros_symbols_debug"
7751 #-----------------------------------------------------------------------------
7752 # Checking for distcc and ccache.
7754 # Always apply the transforms in this particular order. Basically you should
7755 # always run 'ccache distcc compiler' in that order for the best performance.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7758 $as_echo_n "checking whether to enable distcc... " >&6; }
7759 # Check whether --enable-distcc was given.
7760 if test "${enable_distcc+set}" = set; then :
7761 enableval=$enable_distcc; distcc="$enableval"
7762 else
7763 distcc="no"
7766 if test "$distcc" != "" -a "$distcc" != "no"; then
7767 # AC_CHECK_PROG will print out the result in this case
7768 # Extract the first word of "distcc", so it can be a program name with args.
7769 set dummy distcc; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_path_DISTCC+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 case $DISTCC in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7793 IFS=$as_save_IFS
7795 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7797 esac
7799 DISTCC=$ac_cv_path_DISTCC
7800 if test -n "$DISTCC"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7802 $as_echo "$DISTCC" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7815 $as_echo_n "checking whether to enable ccache... " >&6; }
7816 # Check whether --enable-ccache was given.
7817 if test "${enable_ccache+set}" = set; then :
7818 enableval=$enable_ccache; ccache="$enableval"
7819 else
7820 ccache="no"
7823 if test "$ccache" != "" -a "$ccache" != "no"; then
7824 # AC_CHECK_PROG will print out the result in this case
7825 # Extract the first word of "ccache", so it can be a program name with args.
7826 set dummy ccache; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_CCACHE+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$CCACHE"; then
7833 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_CCACHE="ccache"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 CCACHE=$ac_cv_prog_CCACHE
7853 if test -n "$CCACHE"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7855 $as_echo "$CCACHE" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 #-----------------------------------------------------------------------------
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7869 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7871 # Check whether --with-kernel-gcc-version was given.
7872 if test "${with_kernel_gcc_version+set}" = set; then :
7873 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7874 else
7875 kernel_tool_version=""
7878 if test "$kernel_tool_version" != "" ; then
7879 msg_result=$kernel_tool_version
7880 else
7881 msg_result="default"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7884 $as_echo "$msg_result" >&6; }
7886 #-----------------------------------------------------------------------------
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7888 $as_echo_n "checking what optimization flags to use... " >&6; }
7890 # Check whether --with-optimization was given.
7891 if test "${with_optimization+set}" = set; then :
7892 withval=$with_optimization; optimization_level="$withval"
7893 else
7894 optimization_level="unknown"
7897 if test "$optimization_level" = "unknown"; then
7898 optimization="default"
7899 if test "$debug" != "none"; then
7900 optimization_level="-O0"
7901 else
7902 optimization_level="-O2"
7904 else
7905 optimization="$optimization_level"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7908 $as_echo "$optimization" >&6; }
7910 paranoia_default=yes
7911 #-----------------------------------------------------------------------------
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7913 $as_echo_n "checking which paranoia flags to use... " >&6; }
7915 # Check whether --with-paranoia was given.
7916 if test "${with_paranoia+set}" = set; then :
7917 withval=$with_paranoia; paranoia_flags="$withval"
7918 else
7919 paranoia_flags="$paranoia_default"
7922 if test "$paranoia_flags" = "no"; then
7923 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7924 msg_result="none"
7925 else
7926 if test "$paranoia_flags" = "yes"; then
7927 paranoia_flags="-Wall -Werror"
7929 msg_result="$paranoia_flags"
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7932 $as_echo "$msg_result" >&6; }
7933 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7935 #-----------------------------------------------------------------------------
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7937 $as_echo_n "checking what target variant to enable... " >&6; }
7938 # Check whether --enable-target_variant was given.
7939 if test "${enable_target_variant+set}" = set; then :
7940 enableval=$enable_target_variant; target_variant=$enableval
7941 else
7942 target_variant=""
7945 if test "$target_variant" = ""; then
7946 aros_target_variant=""
7947 aros_target_suffix=""
7948 enableval="none"
7949 else
7950 aros_target_variant="$target_variant"
7951 aros_target_suffix="-$target_variant"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7954 $as_echo "$enableval" >&6; }
7956 #-----------------------------------------------------------------------------
7957 # Target-specific defaults. You can override then on a per-target basis.
7959 # Bootloader name. Currently used by PC target.
7960 target_bootloader="none"
7961 PLATFORM_EXECSMP=
7962 ENABLE_EXECSMP=
7964 #-----------------------------------------------------------------------------
7965 # Additional options for some specific targets
7967 case "$aros_target_variant" in
7968 ios)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7970 $as_echo_n "checking XCode path... " >&6; }
7972 # Check whether --with-xcode was given.
7973 if test "${with_xcode+set}" = set; then :
7974 withval=$with_xcode; aros_xcode_path="$withval"
7975 else
7976 aros_xcode_path="/Developer"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7980 $as_echo "$aros_xcode_path" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7983 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7985 # Check whether --with-sdk-version was given.
7986 if test "${with_sdk_version+set}" = set; then :
7987 withval=$with_sdk_version; aros_sdk_version="$withval"
7988 else
7989 aros_sdk_version="4.1"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7993 $as_echo "$aros_sdk_version" >&6; }
7997 "android")
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7999 $as_echo_n "checking Android SDK path... " >&6; }
8001 # Check whether --with-sdk was given.
8002 if test "${with_sdk+set}" = set; then :
8003 withval=$with_sdk; aros_android_sdk="$withval"
8004 else
8005 aros_android_sdk=$default_android_sdk
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8009 $as_echo "$aros_android_sdk" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8012 $as_echo_n "checking Android NDK path... " >&6; }
8014 # Check whether --with-ndk was given.
8015 if test "${with_ndk+set}" = set; then :
8016 withval=$with_ndk; aros_android_ndk="$withval"
8017 else
8018 aros_android_ndk="none"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8022 $as_echo "$aros_android_ndk" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8025 $as_echo_n "checking what Android SDK version to use... " >&6; }
8027 # Check whether --with-sdk-version was given.
8028 if test "${with_sdk_version+set}" = set; then :
8029 withval=$with_sdk_version; aros_sdk_version="$withval"
8030 else
8031 aros_sdk_version="12"
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8035 $as_echo "$aros_sdk_version" >&6; }
8037 aros_android_level=android-$aros_sdk_version
8038 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8039 echo "Platform $aros_android_level is not installed in your SDK"
8040 echo "Use --with-sdk-version=<API level number> to select another platform version"
8041 echo "You can check what plaform versions are installed in your SDK"
8042 echo "by examining contents of $aros_android_sdk/platforms directory"
8043 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8046 export PATH="$aros_android_sdk/tools:$PATH"
8047 # Extract the first word of "$android_tool", so it can be a program name with args.
8048 set dummy $android_tool; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_path_android_tool+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 case $android_tool in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8075 esac
8077 android_tool=$ac_cv_path_android_tool
8078 if test -n "$android_tool"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8080 $as_echo "$android_tool" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 req_avail=yes
8088 if test "$android_tool" = ""; then
8089 req_avail=no
8091 if test "$android_tool" = "no"; then
8092 req_avail=no
8094 if test "$req_avail" = "no"; then
8095 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8098 if test "$aros_android_ndk" != "none"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8100 $as_echo_n "checking what Android NDK version to use... " >&6; }
8102 # Check whether --with-ndk-version was given.
8103 if test "${with_ndk_version+set}" = set; then :
8104 withval=$with_ndk_version; aros_ndk_version="$withval"
8105 else
8106 aros_ndk_version="9"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8110 $as_echo "$aros_ndk_version" >&6; }
8113 # Extract the first word of "ant", so it can be a program name with args.
8114 set dummy ant; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_path_ant+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 case $ant in
8121 [\\/]* | ?:[\\/]*)
8122 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8141 esac
8143 ant=$ac_cv_path_ant
8144 if test -n "$ant"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8146 $as_echo "$ant" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8153 if test "$ant" = ""; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8155 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8159 $as_echo_n "checking Build debug or release apk... " >&6; }
8161 # Check whether --with-apk-version was given.
8162 if test "${with_apk_version+set}" = set; then :
8163 withval=$with_apk_version; aros_android_antapk=$withval
8164 else
8165 aros_android_antapk=release
8168 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8169 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8172 $as_echo "$aros_android_antapk" >&6; }
8174 if test "$host_os" = "mingw32"; then
8175 android_tool="cmd //c $android_tool"
8178 need_dlopen="no"
8181 esac
8183 #-----------------------------------------------------------------------------
8184 # External toolchains
8185 kernel_tool_prefix="none"
8186 aros_tool_prefix="none"
8187 elf_tool_prefix="${target_cpu}-elf-"
8189 # This is the target configuration switch.
8190 case "$target_os" in
8191 linux*)
8192 aros_target_arch="linux"
8193 aros_target_family="unix"
8194 case "$target_cpu" in
8195 *m68k*)
8196 aros_target_cpu="m68k"
8197 aros_object_format="m68kelf"
8198 aros_flavour="emulcompat"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8200 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8201 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8202 gcc_target_cpu="mc68000"
8204 *i?86*)
8205 aros_target_cpu="i386"
8206 aros_object_format="elf_i386"
8207 aros_flavour="emulation"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8209 aros_kernel_ldflags="-Wl,-melf_i386"
8210 aros_nominal_depth=8
8211 gcc_target_cpu="i386"
8212 pci_hidd_target="hidd-pci-linux"
8213 android_tool_dir_prefix="x86"
8214 android_tool_prefix="i686-android-linux"
8215 android_ndk_arch="x86"
8217 *x86_64*)
8218 aros_target_cpu="x86_64"
8219 aros_object_format="elf_x86_64"
8220 aros_flavour="emulation"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8222 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8223 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8224 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8225 aros_nominal_depth=8
8226 pci_hidd_target="hidd-pci-linux"
8228 *powerpc*)
8229 aros_target_cpu="ppc"
8230 aros_object_format="elf32ppc"
8231 aros_flavour="emulation"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8233 aros_nominal_depth=8
8234 gcc_target_cpu="ppc"
8236 # TODO
8237 # Same as powerpc, but I need this for the nightly build to work again.
8238 # Actually, the nightly should be made working with powerpc target.
8239 # That just was too much work for the moment, another week or two.
8240 *ppc*)
8241 aros_target_cpu="ppc"
8242 aros_object_format="elf32ppc"
8243 aros_flavour="emulation"
8244 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8245 aros_nominal_depth=8
8246 gcc_target_cpu="ppc"
8248 *aarch64*)
8249 aros_target_cpu="aarch64"
8250 target_cpu="aarch64"
8251 aros_object_format="aarch64elf_aros"
8252 aros_flavour="emulation"
8253 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8254 gcc_target_cpu="aarch64"
8255 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8256 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8257 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8258 aros_arch_libs="-laeabi"
8259 gcc_default_float_abi="hard"
8260 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8262 *armhf*)
8263 aros_target_cpu="arm"
8264 target_cpu="arm"
8265 aros_object_format="armelf_aros"
8266 aros_flavour="emulation"
8267 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8268 gcc_target_cpu="arm"
8269 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8270 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8271 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8272 aros_arch_libs="-laeabi"
8273 gcc_default_float_abi="hard"
8274 android_tool_dir_prefix="arm-linux-androideabi"
8275 android_tool_prefix="arm-linux-androideabi"
8276 android_ndk_arch="arm"
8277 kernel_tool_prefix="arm-linux-gnueabihf-"
8279 *arm*)
8280 aros_target_cpu="arm"
8281 aros_object_format="armelf_aros"
8282 aros_flavour="emulation"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8284 gcc_target_cpu="arm"
8285 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8286 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8287 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8288 aros_arch_libs="-laeabi"
8289 android_tool_dir_prefix="arm-linux-androideabi"
8290 android_tool_prefix="arm-linux-androideabi"
8291 android_ndk_arch="arm"
8292 kernel_tool_prefix="arm-linux-gnueabi-"
8295 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8297 esac
8298 case "$aros_target_variant" in
8299 android)
8301 if test "$android_ndk_arch" = ""; then
8302 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8305 aros_nominal_width=320
8306 aros_nominal_height=480
8307 if test "$aros_android_ndk" = "none"; then
8308 aros_kernel_cflags="-mandroid"
8309 aros_kernel_ldflags="-mandroid"
8310 CFLAGS="-mandroid"
8311 else
8312 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8313 kernel_tool_version=""
8314 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8315 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8316 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8317 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8318 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8320 need_x11=no
8321 host_android_gfx=yes
8322 # Disable implicit PIC mode
8323 aros_config_cflags="$aros_config_cflags -fno-pic"
8324 kernel_tool_prefix="$android_tool_prefix-"
8326 esac
8330 aros_target_arch="pc"
8331 aros_shared_default="no"
8332 target_bootloader="grub2"
8333 case "$target_cpu" in
8334 *i?86*)
8335 aros_target_cpu="i386"
8338 if test "$aros_object_format" = "" ; then
8339 aros_object_format="elf_i386"
8341 aros_flavour="standalone"
8342 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8343 aros_kernel_ldflags="-Wl,-melf_i386"
8344 aros_nominal_width=640
8345 aros_nominal_height=480
8346 gcc_target_cpu="i386"
8348 *x86_64*)
8349 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8350 aros_target_cpu="x86_64"
8351 aros_serial_debug=1
8352 if test "$aros_object_format" = "" ; then
8353 aros_object_format="elf_x86_64"
8355 aros_flavour="standalone"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8357 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8358 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8359 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8360 aros_kernel_ldflags=""
8361 aros_nominal_width=640
8362 aros_nominal_height=480
8363 case "$aros_target_variant" in
8364 smp)
8365 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8367 esac
8370 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8372 esac
8375 prep)
8376 aros_target_arch="prep"
8377 aros_shared_default="no"
8378 aros_target_cpu="ppc"
8379 aros_object_format="elf32ppc"
8380 aros_flavour="ppcnative"
8381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8382 aros_kernel_ldflags=""
8383 aros_nominal_width=640
8384 aros_nominal_height=480
8385 gcc_target_cpu="ppc"
8388 freebsd*)
8389 aros_target_arch="freebsd"
8390 aros_target_family="unix"
8391 aros_target_cpu="i386"
8392 aros_flavour="emulation"
8393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8394 gcc_target_cpu="i386"
8396 aros_target_strip_flags="-x"
8399 darwin*)
8400 aros_target_arch="darwin"
8401 aros_target_family="unix"
8402 aros_flavour="emulation"
8403 case "$target_cpu" in
8404 *i?86*)
8405 aros_ios_platform="iPhoneSimulator"
8406 aros_target_cpu="i386"
8407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8408 aros_kernel_ldflags=""
8409 aros_macosx_version="10.4"
8410 aros_nominal_depth=8
8411 gcc_target_cpu="i386"
8412 aros_object_format="elf_i386"
8413 aros_kernel_ar_flags="-cr"
8414 aros_target_strip_flags="-x"
8415 kernel_tool_flags="-m32"
8417 *x86_64*)
8418 aros_target_cpu="x86_64"
8419 aros_object_format="elf_x86_64"
8420 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8421 aros_macosx_version="10.6"
8422 aros_isa_flags="$aros_isa_flags -mcmodel=large"
8423 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8424 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8425 aros_kernel_cflags="-m64"
8426 aros_kernel_ldflags="-m64"
8427 aros_nominal_depth=8
8428 aros_kernel_ar="ar"
8429 aros_kernel_ar_flags="-cr"
8430 aros_kernel_ld="ld"
8431 aros_kernel_as="as"
8432 aros_kernel_ranlib="ranlib"
8433 aros_kernel_nm="nm"
8434 aros_kernel_strip="strip"
8435 kernel_tool_prefix="i686-apple-darwin10-"
8437 *ppc*)
8438 aros_target_cpu="ppc"
8439 aros_object_format="elf32ppc"
8440 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8441 aros_kernel_ldflags=""
8442 aros_macosx_version="10.0"
8443 aros_nominal_depth=8
8444 gcc_target_cpu="ppc"
8445 aros_kernel_ar="ar"
8446 aros_kernel_ar_flags="-cr"
8447 aros_kernel_ld="ld -arch ppc"
8448 aros_kernel_as="as -arch ppc"
8449 aros_kernel_ranlib="ranlib -arch ppc"
8450 aros_kernel_nm="nm -arch ppc"
8451 aros_kernel_strip="strip -arch ppc"
8452 kernel_tool_prefix="powerpc-apple-darwin10-"
8454 *arm*)
8455 aros_ios_platform="iPhoneOS"
8456 aros_target_cpu="arm"
8457 aros_object_format="armelf_aros"
8458 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8459 aros_arch_libs="-laeabi"
8460 aros_nominal_depth=8
8461 gcc_target_cpu="arm"
8462 aros_kernel_ar="ar"
8463 aros_kernel_ar_flags="-cr"
8464 aros_kernel_ld="ld -arch arm"
8465 aros_kernel_ranlib="ranlib -arch arm"
8466 kernel_tool_prefix="arm-apple-darwin10-"
8467 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8470 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8472 esac
8473 case "$aros_target_variant" in
8474 ios)
8475 aros_ios_version="3.0"
8476 aros_nominal_width=320
8477 aros_nominal_height=480
8478 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8479 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8480 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8481 need_x11=no
8482 # This is here because it may depend on iOS or SDK version
8483 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8484 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8485 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8488 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8489 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8491 esac
8494 dragonfly*)
8495 aros_target_arch="dragonfly"
8496 aros_target_family="unix"
8497 aros_flavour="emulation"
8498 case "$target_cpu" in
8499 *i?86*)
8500 aros_target_cpu="i386"
8501 aros_object_format="elf_i386"
8502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8504 *x86_64*)
8505 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8506 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8507 aros_target_cpu="x86_64"
8508 aros_object_format="elf_x86_64"
8509 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8512 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8514 esac
8517 netbsd*)
8518 aros_target_arch="netbsd"
8519 aros_target_family="unix"
8520 case "$target_cpu" in
8521 *m68k*)
8522 aros_target_cpu="m68k"
8523 aros_object_format="m68kelf"
8524 aros_flavour="emulcompat"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8526 gcc_target_cpu="mc68000"
8528 *i?86*)
8529 aros_target_cpu="i386"
8530 aros_object_format="elf_i386"
8531 aros_flavour="emulation"
8532 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8533 aros_nominal_depth=8
8534 gcc_target_cpu="i386"
8537 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8539 esac
8540 aros_target_genmap="-Wl,-M -Xlinker >"
8541 aros_flavour="emulation"
8542 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8545 openbsd*)
8546 aros_target_arch="openbsd"
8547 aros_target_family="unix"
8548 case "$target_cpu" in
8549 *i?86*)
8550 aros_target_cpu="i386"
8551 aros_object_format="elf_i386"
8552 aros_flavour="emulation"
8553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8554 gcc_target_cpu="i386"
8557 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8559 esac
8560 aros_target_genmap="-Wl,-M -Xlinker >"
8561 aros_target_nm_flags="-u"
8562 aros_flavour="emulation"
8565 solaris*)
8566 aros_target_arch="solaris"
8567 aros_target_family="unix"
8568 case "$target_cpu" in
8569 *i?86*)
8570 aros_target_cpu="i386"
8571 aros_object_format="elf_i386"
8572 aros_flavour="emulation"
8573 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8574 aros_nominal_depth=8
8575 gcc_target_cpu="i386"
8577 *sparc*)
8578 aros_target_cpu="sparc"
8579 aros_object_format="elf_sparc"
8580 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8581 gcc_target_cpu="sparc"
8584 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8586 esac
8587 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8588 aros_flavour="emulation"
8591 morphos*)
8592 aros_target_arch="morphos"
8593 aros_shared_default="no"
8594 aros_target_cpu="ppc"
8595 aros_object_format="elf_ppc"
8596 aros_flavour="nativecompat"
8597 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8598 gcc_target_cpu="ppc"
8601 sam440)
8602 aros_target_arch="sam440"
8603 aros_shared_default="no"
8604 aros_target_cpu="ppc"
8605 aros_object_format="elf32ppc"
8606 aros_flavour="ppcnative"
8607 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8608 aros_kernel_ldflags=""
8609 aros_nominal_width=1024
8610 aros_nominal_height=768
8611 aros_nominal_depth=24
8612 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8613 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8614 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8615 gcc_target_cpu="powerpc"
8618 efika)
8619 aros_target_arch="efika"
8620 aros_shared_default="no"
8621 aros_target_cpu="arm"
8622 aros_object_format="armelf_aros"
8623 aros_flavour="standalone"
8624 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8625 aros_kernel_ldflags=""
8626 aros_nominal_width=1024
8627 aros_nominal_height=600
8628 aros_arch_libs="-laeabi"
8629 gcc_default_cpu="armv7-a"
8630 gcc_default_fpu="vfpv3"
8631 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8632 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8633 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8634 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8635 if test "$optimization" = "default"; then
8636 optimization_level="-Os"
8638 case "$target_cpu" in
8639 *armhf*)
8640 gcc_default_float_abi="hard"
8641 target_cpu=arm
8642 aros_target_cpu=arm
8644 *arm*)
8645 gcc_default_float_abi="softfp"
8648 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8650 esac
8653 chrp)
8654 aros_target_arch="chrp"
8655 aros_shared_default="no"
8656 aros_target_cpu="ppc"
8657 aros_object_format="elf32ppc"
8658 aros_flavour="ppcnative"
8659 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8660 aros_kernel_ldflags=""
8661 aros_nominal_width=640
8662 aros_nominal_height=480
8663 aros_isa_flags="$aros_isa_flags -mno-toc"
8664 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8665 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8666 gcc_target_cpu="powerpc"
8667 case "$aros_target_variant" in
8668 efika)
8669 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8670 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8672 esac
8675 r*pi)
8676 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8677 aros_flavour="standalone"
8678 aros_target_arch="raspi"
8680 aros_shared_default="no"
8682 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8684 case "$target_cpu" in
8685 *aarch64*)
8686 aros_target_cpu="aarch64"
8687 gcc_default_cpu="aarch64"
8688 aros_object_format="aarch64elf_aros"
8690 *armhf*)
8691 aros_target_cpu="arm"
8692 gcc_default_cpu="armv6zk"
8693 gcc_default_cpu_tune="arm1176jzf-s"
8694 aros_object_format="armelf_aros"
8695 aros_isa_flags="$aros_isa_flags -marm"
8696 aros_config_cflags="$aros_config_cflags"
8697 aros_config_cxxflags="$aros_config_cxxflags"
8698 aros_config_aflags="$aros_config_aflags -marm"
8699 aros_kernel_cflags="$aros_kernel_cflags -marm"
8700 aros_target_mkdep="$aros_target_mkdep -Darm"
8701 aros_arch_libs="-laeabi"
8703 *arm*)
8704 aros_target_cpu="arm"
8705 gcc_default_cpu="armv6zk"
8706 gcc_default_cpu_tune="arm1176jzf-s"
8707 aros_object_format="armelf_aros"
8708 aros_isa_flags="$aros_isa_flags -marm"
8709 aros_config_cflags="$aros_config_cflags"
8710 aros_config_cxxflags="$aros_config_cxxflags"
8711 aros_config_aflags="$aros_config_aflags -marm"
8712 aros_kernel_cflags="$aros_kernel_cflags -marm"
8713 aros_target_mkdep="$aros_target_mkdep -Darm"
8714 aros_arch_libs="-laeabi"
8717 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8719 esac
8721 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8722 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8723 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8724 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8726 case "$aros_target_variant" in
8727 smp)
8728 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8730 esac
8733 stm32f7_discovery)
8734 aros_flavour="standalone"
8735 aros_target_arch="stm32f7_discovery"
8736 aros_target_cpu="arm"
8737 aros_target_cpu_mode="thumb2"
8738 aros_object_format="armelf_aros"
8739 aros_shared_default="no"
8741 gcc_default_cpu="armv7e-m"
8742 gcc_default_cpu_tune="cortex-m7"
8743 gcc_default_fpu="fpv5-sp-d16"
8744 gcc_default_float_abi="hard"
8746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8749 amiga*)
8750 aros_target_arch="amiga"
8751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8752 aros_shared_default="no"
8754 case "$target_cpu" in
8755 *m68k*)
8756 # Check whether --enable-amigaos_compliance was given.
8757 if test "${enable_amigaos_compliance+set}" = set; then :
8758 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8761 aros_enable_mmu=no
8762 aros_target_cpu="m68k"
8763 aros_object_format="m68kelf"
8764 aros_flavour="standcompat"
8765 gcc_target_cpu="m68000"
8766 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8767 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8768 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8769 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8770 if test "$optimization" = "default"; then
8771 optimization_level="-Os"
8773 aros_config_aflags="$aros_config_aflags"
8774 aros_target_strip_flags="-R.comment --strip-debug"
8775 aros_nominal_width=640
8776 aros_nominal_height=256
8777 aros_nominal_depth=2
8779 *ppc*)
8780 aros_cpu="ppc"
8781 aros_flavour="native"
8782 gcc_target_cpu="ppc"
8785 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8787 esac
8790 mingw*)
8791 aros_target_arch="mingw32"
8792 aros_shared_default="no"
8793 aros_flavour="emulation"
8794 aros_shared_cflags=""
8795 need_crosstools="yes"
8796 need_dlopen="no"
8797 rescomp="windres"
8798 case "$target_cpu" in
8799 *i?86*)
8800 aros_target_cpu="i386"
8801 aros_object_format="elf_i386"
8802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8803 aros_nominal_depth=8
8804 gcc_target_cpu="i386"
8806 kernel_tool_prefix="i386-mingw32-"
8808 *x86_64*)
8809 aros_target_cpu="x86_64"
8810 aros_object_format="elf_x86_64"
8811 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8812 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8813 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8814 aros_nominal_depth=8
8815 kernel_tool_prefix="x86_64-w64-mingw32-"
8817 *arm*)
8818 aros_target_cpu="arm"
8819 aros_object_format="armelf_aros"
8820 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8821 aros_arch_libs="-laeabi"
8822 aros_nominal_depth=8
8823 gcc_target_cpu="arm"
8824 gcc_default_float_abi="soft"
8825 kernel_tool_prefix="arm-mingw32ce-"
8826 aros_nominal_width=160
8827 aros_nominal_height=160
8830 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8832 esac
8833 if test $host_os = "cygwin"; then
8834 aros_kernel_cflags="-mno-cygwin"
8837 pp*)
8838 aros_target_arch="pp"
8839 aros_shared_default="no"
8840 case "$target_cpu" in
8841 *m68k*)
8842 aros_target_cpu="m68k"
8843 aros_object_format="m68kelf"
8844 aros_flavour="palmnative"
8845 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8846 aros_nominal_width=160
8847 aros_nominal_height=160
8848 aros_nominal_depth=1
8849 aros_target_ar_flags="cru"
8850 aros_compiler_libs="-lgcc1"
8851 aros_shared_default=no
8852 aros_shared_cflags="-fpic"
8853 aros_shared_aflags=""
8854 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8855 aros_kernel_ldflags="-Wl,-rpath,./lib"
8856 aros_debug_cppflags="$aros_messages_debug"
8857 aros_debug_cflags="$aros_symbols_debug"
8858 aros_debug_aflags=""
8859 aros_debug_ldflags="$aros_symbols_debug"
8860 aros_mungwall_debug="0"
8861 aros_modules_debug="0"
8862 gcc_target_cpu="mc68000"
8863 ignore_undefined_symbols="-ius"
8866 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8868 esac
8871 mac*)
8872 aros_target_arch="mac"
8873 aros_shared_default="no"
8874 case "$target_cpu" in
8875 *m68k*)
8876 aros_target_cpu="m68k"
8877 aros_object_format="m68kelf"
8878 aros_flavour="mac68knative"
8879 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8880 aros_nominal_width=512
8881 aros_nominal_height=384
8882 aros_nominal_depth=8
8883 aros_target_ar_flags="cru"
8884 aros_compiler_libs="-lgcc1"
8885 aros_shared_default=no
8886 aros_shared_cflags="-fpic"
8887 aros_shared_aflags=""
8888 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8889 aros_kernel_ldflags="-Wl,-rpath,./lib"
8890 aros_debug_cppflags="$aros_messages_debug"
8891 aros_debug_cflags="$aros_symbols_debug"
8892 aros_debug_aflags=""
8893 aros_debug_ldflags="$aros_symbols_debug"
8894 aros_mungwall_debug="0"
8895 aros_modules_debug="0"
8896 gcc_target_cpu="mc68000"
8897 ignore_undefined_symbols="-ius"
8900 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8902 esac
8906 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8908 esac
8910 #-----------------------------------------------------------------------------
8911 crosstools_guess="yes"
8912 aros_target_toolchain="no"
8913 aros_config_sysroot=""
8914 aros_kernel_sysroot=""
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8917 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8919 # Check whether --with-kernel-toolchain-prefix was given.
8920 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8921 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8925 $as_echo "$kernel_tool_prefix" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8928 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8930 # Check whether --with-elf-toolchain-prefix was given.
8931 if test "${with_elf_toolchain_prefix+set}" = set; then :
8932 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8933 crosstools_guess="no"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8937 $as_echo "$elf_tool_prefix" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8940 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8942 # Check whether --with-aros-toolchain was given.
8943 if test "${with_aros_toolchain+set}" = set; then :
8944 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8945 crosstools_guess="no"
8948 if test "$aros_tool_prefix" = "yes" ; then
8949 aros_tool_prefix=$aros_target_cpu-aros-
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8952 $as_echo "$aros_tool_prefix" >&6; }
8954 #-----------------------------------------------------------------------------
8955 # Checking if we should build crosstools..
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8957 $as_echo_n "checking whether to build crosstools... " >&6; }
8958 # Check whether --enable-crosstools was given.
8959 if test "${enable_crosstools+set}" = set; then :
8960 enableval=$enable_crosstools; crosstools="$enableval"
8961 else
8962 crosstools="$crosstools_guess"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8966 $as_echo "$crosstools" >&6; }
8968 if test "${crosstools}" = "yes"; then
8969 if test "${crosstools_guess}" = "no"; then
8970 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8974 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8975 aros_target_toolchain="yes"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8979 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8981 # Check whether --with-aros-toolchain-install was given.
8982 if test "${with_aros_toolchain_install+set}" = set; then :
8983 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8986 if test "x$aros_toolchain_install" = "x"; then
8987 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8988 else
8989 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8990 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8991 if test "$crosstools_guess" = "no" ; then
8992 toolchain_needs_sysroot=yes
8994 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8995 aros_kernel_sysroot = $aros_config_sysroot
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9000 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9003 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9004 if test "$toolchain_needs_sysroot" = "yes" ; then
9005 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9008 $as_echo "$toolchain_needs_sysroot" >&6; }
9010 #-----------------------------------------------------------------------------
9011 if test "$aros_toolchain" = "gnu" ; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9013 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9016 # Check whether --with-binutils-version was given.
9017 if test "${with_binutils_version+set}" = set; then :
9018 withval=$with_binutils_version; use_binutils_version="$withval"
9019 else
9020 use_binutils_version=""
9023 if test "$use_binutils_version" = ""; then
9024 target_binutils_version="$default_binutils_version"
9025 else
9026 target_binutils_version="$use_binutils_version"
9028 if test "$aros_toolchain" = "gnu" ; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9030 $as_echo "$target_binutils_version" >&6; }
9034 # Helper to identify gcc version
9037 #-----------------------------------------------------------------------------
9038 if test "$aros_toolchain" = "gnu" ; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9040 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9043 # Check whether --with-gcc-version was given.
9044 if test "${with_gcc_version+set}" = set; then :
9045 withval=$with_gcc_version; use_gcc_version="$withval"
9046 else
9047 use_gcc_version=""
9050 if test "$use_gcc_version" = ""; then
9051 if test "${crosstools}" = "no"; then
9052 if test "x$aros_toolchain_install" != "x"; then
9054 target_gcc_version=""
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9056 $as_echo_n "checking gcc version... " >&6; }
9057 if ${ax_cv_gcc_version+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9061 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9062 if test "x$ax_cv_gcc_version" = "x"; then :
9064 ax_cv_gcc_version=""
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9070 $as_echo "$ax_cv_gcc_version" >&6; }
9071 target_gcc_version=$ax_cv_gcc_version
9076 if test "$use_gcc_version" = ""; then
9077 target_gcc_version="$default_gcc_version"
9079 else
9080 target_gcc_version="$use_gcc_version"
9082 if test "$aros_toolchain" = "gnu" ; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9084 $as_echo "$target_gcc_version" >&6; }
9086 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9087 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9088 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9090 gcc_fix_bitfields="false"
9091 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9092 gcc_fix_bitfields="true"
9093 else
9094 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9095 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9096 gcc_fix_bitfields="true"
9101 if test "$gcc_fix_bitfields" = "true" ; then
9102 case "$aros_target_cpu" in
9103 *x86_64*)
9104 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9105 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9107 i386)
9108 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9109 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9111 esac
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9116 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9117 # Check whether --enable-objc was given.
9118 if test "${enable_objc+set}" = set; then :
9119 enableval=$enable_objc; objc="$enableval"
9120 else
9121 objc="no"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9125 $as_echo "$objc" >&6; }
9126 if test "x$objc" = "xyes"; then
9127 objc_target="$objc"
9128 else
9129 objc_target="no-objc"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9133 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9134 # Check whether --enable-java was given.
9135 if test "${enable_java+set}" = set; then :
9136 enableval=$enable_java; java="$enableval"
9137 else
9138 java="no"
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9142 $as_echo "$java" >&6; }
9143 if test "x$java" != "xno"; then
9144 java_target="$java"
9145 else
9146 java_target="no-java"
9149 spec_obj_format="-m $aros_object_format"
9150 # Now process extra architecture-specific options.
9151 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9152 # as well as floating-point ABI.
9153 case "$aros_target_cpu" in
9154 *x86_64*)
9155 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9157 arm*)
9158 if test "$gcc_default_cpu" = ""; then
9159 gcc_default_cpu="armv6"
9161 if test "$gcc_default_fpu" = ""; then
9162 gcc_default_fpu="vfp"
9164 if test "$gcc_default_float_abi" = ""; then
9165 if test "$target_cpu" = "armhf"; then
9166 gcc_default_float_abi="hard"
9167 else
9168 gcc_default_float_abi="softfp"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9173 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9175 # Check whether --with-cpu was given.
9176 if test "${with_cpu+set}" = set; then :
9177 withval=$with_cpu; aros_gcc_cpu="$withval"
9178 else
9179 aros_gcc_cpu=$gcc_default_cpu
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9183 $as_echo "$aros_gcc_cpu" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9186 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9188 # Check whether --with-fpu was given.
9189 if test "${with_fpu+set}" = set; then :
9190 withval=$with_fpu; aros_gcc_fpu="$withval"
9191 else
9192 aros_gcc_fpu=$gcc_default_fpu
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9196 $as_echo "$aros_gcc_fpu" >&6; }
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9199 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9201 # Check whether --with-float was given.
9202 if test "${with_float+set}" = set; then :
9203 withval=$with_float; aros_gcc_float_abi="$withval"
9204 else
9205 aros_gcc_float_abi=$gcc_default_float_abi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9209 $as_echo "$aros_gcc_float_abi" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9212 $as_echo_n "checking Which ARM mode to use... " >&6; }
9213 if test "$aros_target_cpu_mode" = ""; then
9214 aros_target_cpu_mode="arm32"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9216 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9219 $as_echo "$aros_target_cpu_mode" >&6; }
9222 case "$aros_target_cpu_mode" in
9223 arm32)
9224 gcc_default_mode="arm"
9225 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9227 arm64)
9228 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9230 thumb)
9231 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9233 thumb1)
9234 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9236 thumb2)
9237 gcc_default_mode="thumb"
9238 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9239 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9242 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9244 esac
9246 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9247 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9248 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9250 i386)
9251 aros_isa_flags="$aros_isa_flags -m32 -march=i486"
9252 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9253 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9255 esac
9257 # Some architectures may need custom ELF specs.
9258 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9259 elf_specs_in=config/${aros_object_format}-specs.in
9260 else
9261 elf_specs_in=config/elf-specs.in
9264 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9265 # Since we override specs, we may need to put these defines there
9266 if test "$gcc_target_cpu" != ""; then
9267 gcc_target_cpu="-D__${gcc_target_cpu}__"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9271 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9273 # Check whether --with-portssources was given.
9274 if test "${with_portssources+set}" = set; then :
9275 withval=$with_portssources; with_portssrcdir=$withval
9276 else
9277 with_portssrcdir="default"
9280 if test "$with_portssrcdir" = "default"; then
9281 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9282 else
9283 AROS_PORTSSRCDIR="$with_portssrcdir"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9286 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9289 $as_echo_n "checking which bootloader to use... " >&6; }
9291 # Check whether --with-bootloader was given.
9292 if test "${with_bootloader+set}" = set; then :
9293 withval=$with_bootloader; target_bootloader=$withval
9294 else
9295 target_bootloader=$target_bootloader
9298 if test "$target_bootloader" = "none"; then
9299 aros_target_bootloader=""
9300 else
9301 aros_target_bootloader="$target_bootloader"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9304 $as_echo "$target_bootloader" >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9307 $as_echo_n "checking which icon-set to use... " >&6; }
9309 # Check whether --with-iconset was given.
9310 if test "${with_iconset+set}" = set; then :
9311 withval=$with_iconset; target_iconset=$withval
9312 else
9313 target_iconset="default"
9316 if test "$target_iconset" = "default"; then
9317 aros_target_iconset="Gorilla"
9318 target_iconset="default (Gorilla)"
9319 else
9320 aros_target_iconset="$target_iconset"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9323 $as_echo "$target_iconset" >&6; }
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9326 $as_echo_n "checking which GUI Theme to use... " >&6; }
9328 # Check whether --with-theme was given.
9329 if test "${with_theme+set}" = set; then :
9330 withval=$with_theme; target_guitheme=$withval
9331 else
9332 target_guitheme="default"
9335 if test "$target_guitheme" = "default"; then
9336 aros_target_guitheme="Ice"
9337 else
9338 aros_target_guitheme="$target_guitheme"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9341 $as_echo "$aros_target_guitheme" >&6; }
9343 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9344 # for target code)
9345 cross_compiling=no
9347 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9348 cross_compiling=yes
9351 if test "$aros_host_cpu" == "x86_64" ; then
9352 if test "$aros_target_cpu" == "i386" ; then
9353 cross_compiling=no
9357 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9358 if test "$aros_host_arch" != "$aros_target_arch" ; then
9359 cross_compiling=yes
9361 else
9362 if test "$host_cc_elf" = "no" ; then
9363 cross_compiling=yes
9367 if test "$cross_compiling" = "no" ; then
9368 kernel_tool_prefix=""
9369 if test "$host_cc_elf" = "yes" ; then
9370 elf_tool_prefix=""
9374 if test "$kernel_tool_version" != ""; then
9375 kernel_tool_version="-$kernel_tool_version"
9378 #######################################################################
9379 ## Compute what toolchains to use, and their paths ##
9380 #######################################################################
9382 # This takes, as input:
9383 # crosstools {yes,no}
9384 # kernel_tool_version {"",[version]}
9385 # target_tool_version {"",[version]}
9386 # kernel_tool_prefix {none,[some-arch-os-]}
9387 # gnu-toolchain -:
9388 # target_tool_prefix ${aros_target_cpu}-aros-
9389 # aros_tool_prefix ${aros_target_cpu}-aros-
9391 # The output is
9392 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9393 # Where the 'kernel' binaries are located
9394 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9395 # Where the 'target' binaries are located
9396 # (not the symlink farm - that is aros_target_*!)
9398 # The rules are:
9399 # if crosstools then
9400 # if kernel_tools_prefix = "no-kernel-prefix-"
9401 # aros_kernel_* = crosstools cc paths
9402 # aros_kernel_cc = elf cc wrapper around crosstools cc
9403 # else
9404 # VALIDATE(${kernel_tools_prefix}*)
9405 # aros_kernel_* = ${kernel_tools_prefix}*
9406 # if ${kernel_tools_prefix}cc is an AROS gcc
9407 # aros_kernel_cc = ${kernel_tools_prefix}cc
9408 # else
9409 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9410 # fi
9411 # fi
9413 # orig_target_* = aros built crosstools
9414 # orig_target_cc = elf cc wrapper around crosstools cc
9415 # else
9416 # VALIDATE(${kernel_tools_prefix}*)
9418 # orig_target_* = aros_kernel_*
9419 # if aros_kernel_cc is an AROS gcc
9420 # orig_target_cc = aros_kernel_cc
9421 # else
9422 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9423 # fi
9424 # fi
9426 if test "$aros_toolchain" = "gnu" ; then
9427 target_tool_prefix="${aros_target_cpu}-aros-"
9428 elif test "$aros_toolchain" = "llvm" ; then
9429 target_tool_prefix="bin/"
9432 if test "$kernel_tool_prefix" != "" ; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9434 $as_echo_n "checking which kernel tools... " >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9436 $as_echo "$kernel_tool_prefix" >&6; };
9439 if test "$kernel_tool_prefix" = "none" ; then
9440 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9441 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9443 else
9444 # Kernel tools required - find them
9445 # Note that 'normally', aros_kernel_* overrides will be
9446 # empty, unless specified in the per-arch sections above.
9447 if test "x$aros_kernel_cpp" = "x"; then
9448 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9450 if test "${kernel_tool_version}" != ""; then
9451 if test "$aros_kernel_cpp" != ""; then
9452 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9453 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9454 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9458 if test "$aros_kernel_cpp" = ""; then
9459 if test "$cross_compiling" = "yes" ; then
9460 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9461 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 case $aros_kernel_cpp in
9468 [\\/]* | ?:[\\/]*)
9469 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9483 done
9484 done
9485 IFS=$as_save_IFS
9488 esac
9490 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9491 if test -n "$aros_kernel_cpp"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9493 $as_echo "$aros_kernel_cpp" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9500 else
9501 if test "$GCC" = "yes"; then
9502 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9503 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9504 set dummy `basename $aros_gcc_cpp`; 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_kernel_cpp+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 case $aros_kernel_cpp in
9511 [\\/]* | ?:[\\/]*)
9512 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in `dirname $aros_gcc_cpp`
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9526 done
9527 done
9528 IFS=$as_save_IFS
9531 esac
9533 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9534 if test -n "$aros_kernel_cpp"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9536 $as_echo "$aros_kernel_cpp" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9544 if test "$aros_kernel_cpp" = ""; then
9545 # Extract the first word of "cpp", so it can be a program name with args.
9546 set dummy cpp; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 case $aros_kernel_cpp in
9553 [\\/]* | ?:[\\/]*)
9554 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 for as_dir in $PATH
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9564 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9566 break 2
9568 done
9569 done
9570 IFS=$as_save_IFS
9573 esac
9575 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9576 if test -n "$aros_kernel_cpp"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9578 $as_echo "$aros_kernel_cpp" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9587 else
9588 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9589 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9590 set dummy $aros_kernel_cpp; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 case $aros_kernel_cpp in
9597 [\\/]* | ?:[\\/]*)
9598 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9612 done
9613 done
9614 IFS=$as_save_IFS
9617 esac
9619 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9620 if test -n "$aros_kernel_cpp"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9622 $as_echo "$aros_kernel_cpp" >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9629 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9632 req_avail=yes
9633 if test "$aros_kernel_cpp" = ""; then
9634 req_avail=no
9636 if test "$aros_kernel_cpp" = "no"; then
9637 req_avail=no
9639 if test "$req_avail" = "no"; then
9640 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9643 if test "x$aros_kernel_cc" = "x"; then
9644 aros_kernel_cc=${kernel_tool_prefix}${CC}
9646 if test "${kernel_tool_version}" != ""; then
9647 if test "$aros_kernel_cc" != ""; then
9648 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9649 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9650 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9654 if test "$aros_kernel_cc" = ""; then
9655 if test "$cross_compiling" = "yes" ; then
9656 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9657 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $aros_kernel_cc in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9679 done
9680 done
9681 IFS=$as_save_IFS
9684 esac
9686 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9687 if test -n "$aros_kernel_cc"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9689 $as_echo "$aros_kernel_cc" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9696 else
9697 if test "$GCC" = "yes"; then
9698 aros_gcc_cc=`$CC -print-prog-name=cc`
9699 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9700 set dummy `basename $aros_gcc_cc`; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 case $aros_kernel_cc in
9707 [\\/]* | ?:[\\/]*)
9708 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in `dirname $aros_gcc_cc`
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720 break 2
9722 done
9723 done
9724 IFS=$as_save_IFS
9727 esac
9729 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9730 if test -n "$aros_kernel_cc"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9732 $as_echo "$aros_kernel_cc" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9740 if test "$aros_kernel_cc" = ""; then
9741 # Extract the first word of "cc", so it can be a program name with args.
9742 set dummy cc; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 case $aros_kernel_cc in
9749 [\\/]* | ?:[\\/]*)
9750 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9764 done
9765 done
9766 IFS=$as_save_IFS
9769 esac
9771 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9772 if test -n "$aros_kernel_cc"; then
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9774 $as_echo "$aros_kernel_cc" >&6; }
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 $as_echo "no" >&6; }
9783 else
9784 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9785 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9786 set dummy $aros_kernel_cc; ac_word=$2
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9788 $as_echo_n "checking for $ac_word... " >&6; }
9789 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 case $aros_kernel_cc in
9793 [\\/]* | ?:[\\/]*)
9794 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 for as_dir in $PATH
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9804 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9808 done
9809 done
9810 IFS=$as_save_IFS
9813 esac
9815 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9816 if test -n "$aros_kernel_cc"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9818 $as_echo "$aros_kernel_cc" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9825 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9828 req_avail=yes
9829 if test "$aros_kernel_cc" = ""; then
9830 req_avail=no
9832 if test "$aros_kernel_cc" = "no"; then
9833 req_avail=no
9835 if test "$req_avail" = "no"; then
9836 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9839 if test "x$aros_kernel_cxx" = "x"; then
9840 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9842 if test "${kernel_tool_version}" != ""; then
9843 if test "$aros_kernel_cxx" != ""; then
9844 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9845 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9846 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9850 if test "$aros_kernel_cxx" = ""; then
9851 if test "$cross_compiling" = "yes" ; then
9852 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9853 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855 $as_echo_n "checking for $ac_word... " >&6; }
9856 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 case $aros_kernel_cxx in
9860 [\\/]* | ?:[\\/]*)
9861 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9875 done
9876 done
9877 IFS=$as_save_IFS
9880 esac
9882 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9883 if test -n "$aros_kernel_cxx"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9885 $as_echo "$aros_kernel_cxx" >&6; }
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9892 else
9893 if test "$GCC" = "yes"; then
9894 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9895 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9896 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 case $aros_kernel_cxx in
9903 [\\/]* | ?:[\\/]*)
9904 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in `dirname $aros_gcc_cxx`
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9918 done
9919 done
9920 IFS=$as_save_IFS
9923 esac
9925 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9926 if test -n "$aros_kernel_cxx"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9928 $as_echo "$aros_kernel_cxx" >&6; }
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9936 if test "$aros_kernel_cxx" = ""; then
9937 # Extract the first word of "cxx", so it can be a program name with args.
9938 set dummy cxx; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 case $aros_kernel_cxx in
9945 [\\/]* | ?:[\\/]*)
9946 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9960 done
9961 done
9962 IFS=$as_save_IFS
9965 esac
9967 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9968 if test -n "$aros_kernel_cxx"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9970 $as_echo "$aros_kernel_cxx" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9979 else
9980 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9981 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9982 set dummy $aros_kernel_cxx; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 case $aros_kernel_cxx in
9989 [\\/]* | ?:[\\/]*)
9990 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10004 done
10005 done
10006 IFS=$as_save_IFS
10009 esac
10011 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10012 if test -n "$aros_kernel_cxx"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10014 $as_echo "$aros_kernel_cxx" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10021 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10024 # If it's set, make sure it's really there
10025 if test "x$aros_kernel_cxx" != "x" ; then
10026 req_avail=yes
10027 if test "$aros_kernel_cxx" = ""; then
10028 req_avail=no
10030 if test "$aros_kernel_cxx" = "no"; then
10031 req_avail=no
10033 if test "$req_avail" = "no"; then
10034 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10038 if test "$aros_kernel_ld" = ""; then
10039 if test "$cross_compiling" = "yes" ; then
10040 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10041 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 case $aros_kernel_ld in
10048 [\\/]* | ?:[\\/]*)
10049 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10068 esac
10070 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10071 if test -n "$aros_kernel_ld"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10073 $as_echo "$aros_kernel_ld" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10080 else
10081 if test "$GCC" = "yes"; then
10082 aros_gcc_ld=`$CC -print-prog-name=ld`
10083 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10084 set dummy `basename $aros_gcc_ld`; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 case $aros_kernel_ld in
10091 [\\/]* | ?:[\\/]*)
10092 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in `dirname $aros_gcc_ld`
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10106 done
10107 done
10108 IFS=$as_save_IFS
10111 esac
10113 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10114 if test -n "$aros_kernel_ld"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10116 $as_echo "$aros_kernel_ld" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10124 if test "$aros_kernel_ld" = ""; then
10125 # Extract the first word of "ld", so it can be a program name with args.
10126 set dummy ld; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 case $aros_kernel_ld in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10148 done
10149 done
10150 IFS=$as_save_IFS
10153 esac
10155 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10156 if test -n "$aros_kernel_ld"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10158 $as_echo "$aros_kernel_ld" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10167 else
10168 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10169 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10170 set dummy $aros_kernel_ld; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 case $aros_kernel_ld in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10197 esac
10199 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10200 if test -n "$aros_kernel_ld"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10202 $as_echo "$aros_kernel_ld" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10209 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10212 req_avail=yes
10213 if test "$aros_kernel_ld" = ""; then
10214 req_avail=no
10216 if test "$aros_kernel_ld" = "no"; then
10217 req_avail=no
10219 if test "$req_avail" = "no"; then
10220 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10223 if test "$aros_kernel_as" = ""; then
10224 if test "$cross_compiling" = "yes" ; then
10225 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10226 set dummy ${kernel_tool_prefix}as; 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_as+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 case $aros_kernel_as in
10233 [\\/]* | ?:[\\/]*)
10234 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10248 done
10249 done
10250 IFS=$as_save_IFS
10253 esac
10255 aros_kernel_as=$ac_cv_path_aros_kernel_as
10256 if test -n "$aros_kernel_as"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10258 $as_echo "$aros_kernel_as" >&6; }
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10265 else
10266 if test "$GCC" = "yes"; then
10267 aros_gcc_as=`$CC -print-prog-name=as`
10268 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10269 set dummy `basename $aros_gcc_as`; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_path_aros_kernel_as+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 case $aros_kernel_as in
10276 [\\/]* | ?:[\\/]*)
10277 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in `dirname $aros_gcc_as`
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10291 done
10292 done
10293 IFS=$as_save_IFS
10296 esac
10298 aros_kernel_as=$ac_cv_path_aros_kernel_as
10299 if test -n "$aros_kernel_as"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10301 $as_echo "$aros_kernel_as" >&6; }
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10309 if test "$aros_kernel_as" = ""; then
10310 # Extract the first word of "as", so it can be a program name with args.
10311 set dummy as; 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_as+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 case $aros_kernel_as in
10318 [\\/]* | ?:[\\/]*)
10319 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10338 esac
10340 aros_kernel_as=$ac_cv_path_aros_kernel_as
10341 if test -n "$aros_kernel_as"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10343 $as_echo "$aros_kernel_as" >&6; }
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10352 else
10353 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10354 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10355 set dummy $aros_kernel_as; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_path_aros_kernel_as+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 case $aros_kernel_as in
10362 [\\/]* | ?:[\\/]*)
10363 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10377 done
10378 done
10379 IFS=$as_save_IFS
10382 esac
10384 aros_kernel_as=$ac_cv_path_aros_kernel_as
10385 if test -n "$aros_kernel_as"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10387 $as_echo "$aros_kernel_as" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10394 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10397 req_avail=yes
10398 if test "$aros_kernel_as" = ""; then
10399 req_avail=no
10401 if test "$aros_kernel_as" = "no"; then
10402 req_avail=no
10404 if test "$req_avail" = "no"; then
10405 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10408 if test "$aros_kernel_ar" = ""; then
10409 if test "$cross_compiling" = "yes" ; then
10410 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10411 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 case $aros_kernel_ar in
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10433 done
10434 done
10435 IFS=$as_save_IFS
10438 esac
10440 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10441 if test -n "$aros_kernel_ar"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10443 $as_echo "$aros_kernel_ar" >&6; }
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10450 else
10451 if test "$GCC" = "yes"; then
10452 aros_gcc_ar=`$CC -print-prog-name=ar`
10453 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10454 set dummy `basename $aros_gcc_ar`; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 case $aros_kernel_ar in
10461 [\\/]* | ?:[\\/]*)
10462 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in `dirname $aros_gcc_ar`
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10472 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10481 esac
10483 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10484 if test -n "$aros_kernel_ar"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10486 $as_echo "$aros_kernel_ar" >&6; }
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10494 if test "$aros_kernel_ar" = ""; then
10495 # Extract the first word of "ar", so it can be a program name with args.
10496 set dummy ar; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 case $aros_kernel_ar in
10503 [\\/]* | ?:[\\/]*)
10504 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10518 done
10519 done
10520 IFS=$as_save_IFS
10523 esac
10525 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10526 if test -n "$aros_kernel_ar"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10528 $as_echo "$aros_kernel_ar" >&6; }
10529 else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10537 else
10538 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10539 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10540 set dummy $aros_kernel_ar; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 case $aros_kernel_ar in
10547 [\\/]* | ?:[\\/]*)
10548 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10562 done
10563 done
10564 IFS=$as_save_IFS
10567 esac
10569 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10570 if test -n "$aros_kernel_ar"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10572 $as_echo "$aros_kernel_ar" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10579 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10582 req_avail=yes
10583 if test "$aros_kernel_ar" = ""; then
10584 req_avail=no
10586 if test "$aros_kernel_ar" = "no"; then
10587 req_avail=no
10589 if test "$req_avail" = "no"; then
10590 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10593 if test "$aros_kernel_ranlib" = ""; then
10594 if test "$cross_compiling" = "yes" ; then
10595 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10596 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 case $aros_kernel_ranlib in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10618 done
10619 done
10620 IFS=$as_save_IFS
10623 esac
10625 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10626 if test -n "$aros_kernel_ranlib"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10628 $as_echo "$aros_kernel_ranlib" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10635 else
10636 if test "$GCC" = "yes"; then
10637 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10638 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10639 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 case $aros_kernel_ranlib in
10646 [\\/]* | ?:[\\/]*)
10647 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in `dirname $aros_gcc_ranlib`
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10661 done
10662 done
10663 IFS=$as_save_IFS
10666 esac
10668 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10669 if test -n "$aros_kernel_ranlib"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10671 $as_echo "$aros_kernel_ranlib" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10679 if test "$aros_kernel_ranlib" = ""; then
10680 # Extract the first word of "ranlib", so it can be a program name with args.
10681 set dummy ranlib; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 case $aros_kernel_ranlib in
10688 [\\/]* | ?:[\\/]*)
10689 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10703 done
10704 done
10705 IFS=$as_save_IFS
10708 esac
10710 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10711 if test -n "$aros_kernel_ranlib"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10713 $as_echo "$aros_kernel_ranlib" >&6; }
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10722 else
10723 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10724 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10725 set dummy $aros_kernel_ranlib; ac_word=$2
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727 $as_echo_n "checking for $ac_word... " >&6; }
10728 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 case $aros_kernel_ranlib in
10732 [\\/]* | ?:[\\/]*)
10733 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10752 esac
10754 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10755 if test -n "$aros_kernel_ranlib"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10757 $as_echo "$aros_kernel_ranlib" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10764 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10767 req_avail=yes
10768 if test "$aros_kernel_ranlib" = ""; then
10769 req_avail=no
10771 if test "$aros_kernel_ranlib" = "no"; then
10772 req_avail=no
10774 if test "$req_avail" = "no"; then
10775 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10778 if test "$aros_kernel_nm" = ""; then
10779 if test "$cross_compiling" = "yes" ; then
10780 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10781 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 case $aros_kernel_nm in
10788 [\\/]* | ?:[\\/]*)
10789 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10803 done
10804 done
10805 IFS=$as_save_IFS
10808 esac
10810 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10811 if test -n "$aros_kernel_nm"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10813 $as_echo "$aros_kernel_nm" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10820 else
10821 if test "$GCC" = "yes"; then
10822 aros_gcc_nm=`$CC -print-prog-name=nm`
10823 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10824 set dummy `basename $aros_gcc_nm`; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 case $aros_kernel_nm in
10831 [\\/]* | ?:[\\/]*)
10832 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in `dirname $aros_gcc_nm`
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10846 done
10847 done
10848 IFS=$as_save_IFS
10851 esac
10853 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10854 if test -n "$aros_kernel_nm"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10856 $as_echo "$aros_kernel_nm" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10864 if test "$aros_kernel_nm" = ""; then
10865 # Extract the first word of "nm", so it can be a program name with args.
10866 set dummy nm; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 case $aros_kernel_nm in
10873 [\\/]* | ?:[\\/]*)
10874 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10888 done
10889 done
10890 IFS=$as_save_IFS
10893 esac
10895 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10896 if test -n "$aros_kernel_nm"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10898 $as_echo "$aros_kernel_nm" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10907 else
10908 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10909 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10910 set dummy $aros_kernel_nm; ac_word=$2
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912 $as_echo_n "checking for $ac_word... " >&6; }
10913 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 case $aros_kernel_nm in
10917 [\\/]* | ?:[\\/]*)
10918 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 break 2
10932 done
10933 done
10934 IFS=$as_save_IFS
10937 esac
10939 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10940 if test -n "$aros_kernel_nm"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10942 $as_echo "$aros_kernel_nm" >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10949 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10952 req_avail=yes
10953 if test "$aros_kernel_nm" = ""; then
10954 req_avail=no
10956 if test "$aros_kernel_nm" = "no"; then
10957 req_avail=no
10959 if test "$req_avail" = "no"; then
10960 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10963 if test "$aros_kernel_strip" = ""; then
10964 if test "$cross_compiling" = "yes" ; then
10965 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10966 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $aros_kernel_strip in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10993 esac
10995 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10996 if test -n "$aros_kernel_strip"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10998 $as_echo "$aros_kernel_strip" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11005 else
11006 if test "$GCC" = "yes"; then
11007 aros_gcc_strip=`$CC -print-prog-name=strip`
11008 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11009 set dummy `basename $aros_gcc_strip`; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 case $aros_kernel_strip in
11016 [\\/]* | ?:[\\/]*)
11017 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in `dirname $aros_gcc_strip`
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11027 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 break 2
11031 done
11032 done
11033 IFS=$as_save_IFS
11036 esac
11038 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11039 if test -n "$aros_kernel_strip"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11041 $as_echo "$aros_kernel_strip" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11049 if test "$aros_kernel_strip" = ""; then
11050 # Extract the first word of "strip", so it can be a program name with args.
11051 set dummy strip; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 case $aros_kernel_strip in
11058 [\\/]* | ?:[\\/]*)
11059 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11073 done
11074 done
11075 IFS=$as_save_IFS
11078 esac
11080 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11081 if test -n "$aros_kernel_strip"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11083 $as_echo "$aros_kernel_strip" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11092 else
11093 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11094 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11095 set dummy $aros_kernel_strip; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 case $aros_kernel_strip in
11102 [\\/]* | ?:[\\/]*)
11103 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11117 done
11118 done
11119 IFS=$as_save_IFS
11122 esac
11124 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11125 if test -n "$aros_kernel_strip"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11127 $as_echo "$aros_kernel_strip" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11134 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11137 req_avail=yes
11138 if test "$aros_kernel_strip" = ""; then
11139 req_avail=no
11141 if test "$aros_kernel_strip" = "no"; then
11142 req_avail=no
11144 if test "$req_avail" = "no"; then
11145 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11148 # Objcopy and objdump are not required for the kernel
11149 # toolchain on many architectures.
11150 # So we'll look for them, but not make them strictly required.
11152 if test "$aros_kernel_objcopy" = ""; then
11153 if test "$cross_compiling" = "yes" ; then
11154 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11155 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 case $aros_kernel_objcopy in
11162 [\\/]* | ?:[\\/]*)
11163 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11177 done
11178 done
11179 IFS=$as_save_IFS
11182 esac
11184 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11185 if test -n "$aros_kernel_objcopy"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11187 $as_echo "$aros_kernel_objcopy" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11194 else
11195 if test "$GCC" = "yes"; then
11196 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11197 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11198 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 case $aros_kernel_objcopy in
11205 [\\/]* | ?:[\\/]*)
11206 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in `dirname $aros_gcc_objcopy`
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11220 done
11221 done
11222 IFS=$as_save_IFS
11225 esac
11227 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11228 if test -n "$aros_kernel_objcopy"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11230 $as_echo "$aros_kernel_objcopy" >&6; }
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11238 if test "$aros_kernel_objcopy" = ""; then
11239 # Extract the first word of "objcopy", so it can be a program name with args.
11240 set dummy objcopy; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 case $aros_kernel_objcopy in
11247 [\\/]* | ?:[\\/]*)
11248 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11262 done
11263 done
11264 IFS=$as_save_IFS
11267 esac
11269 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11270 if test -n "$aros_kernel_objcopy"; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11272 $as_echo "$aros_kernel_objcopy" >&6; }
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11281 else
11282 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11283 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11284 set dummy $aros_kernel_objcopy; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 case $aros_kernel_objcopy in
11291 [\\/]* | ?:[\\/]*)
11292 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11306 done
11307 done
11308 IFS=$as_save_IFS
11311 esac
11313 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11314 if test -n "$aros_kernel_objcopy"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11316 $as_echo "$aros_kernel_objcopy" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11323 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11327 if test "$aros_kernel_objdump" = ""; then
11328 if test "$cross_compiling" = "yes" ; then
11329 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11330 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 case $aros_kernel_objdump in
11337 [\\/]* | ?:[\\/]*)
11338 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11348 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 break 2
11352 done
11353 done
11354 IFS=$as_save_IFS
11357 esac
11359 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11360 if test -n "$aros_kernel_objdump"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11362 $as_echo "$aros_kernel_objdump" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11369 else
11370 if test "$GCC" = "yes"; then
11371 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11372 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11373 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 case $aros_kernel_objdump in
11380 [\\/]* | ?:[\\/]*)
11381 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in `dirname $aros_gcc_objdump`
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11395 done
11396 done
11397 IFS=$as_save_IFS
11400 esac
11402 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11403 if test -n "$aros_kernel_objdump"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11405 $as_echo "$aros_kernel_objdump" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11413 if test "$aros_kernel_objdump" = ""; then
11414 # Extract the first word of "objdump", so it can be a program name with args.
11415 set dummy objdump; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 case $aros_kernel_objdump in
11422 [\\/]* | ?:[\\/]*)
11423 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11442 esac
11444 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11445 if test -n "$aros_kernel_objdump"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11447 $as_echo "$aros_kernel_objdump" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11456 else
11457 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11458 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11459 set dummy $aros_kernel_objdump; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 case $aros_kernel_objdump in
11466 [\\/]* | ?:[\\/]*)
11467 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11481 done
11482 done
11483 IFS=$as_save_IFS
11486 esac
11488 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11489 if test -n "$aros_kernel_objdump"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11491 $as_echo "$aros_kernel_objdump" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11498 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11501 if test "x${crosstools}" != "xyes" ; then
11502 req_avail=yes
11503 if test "$aros_kernel_objcopy" = ""; then
11504 req_avail=no
11506 if test "$aros_kernel_objcopy" = "no"; then
11507 req_avail=no
11509 if test "$req_avail" = "no"; then
11510 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11512 req_avail=yes
11513 if test "$aros_kernel_objdump" = ""; then
11514 req_avail=no
11516 if test "$aros_kernel_objdump" = "no"; then
11517 req_avail=no
11519 if test "$req_avail" = "no"; then
11520 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11526 $as_echo_n "checking which target tools to use... " >&6; }
11527 if test "$aros_target_toolchain" = "yes"; then
11528 if test "$aros_toolchain" = "llvm" ; then
11529 msg_result="llvm"
11530 else
11531 msg_result=$target_tool_prefix
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11534 $as_echo "$msg_result" >&6; }
11535 # We are building AROS crosstools
11536 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11537 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11538 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11539 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11540 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11541 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11542 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11543 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11544 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11545 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11546 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11547 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11548 else
11549 # Determine whether AROS or ELF tools should be used
11550 if test "$aros_tool_prefix" = "none"; then
11551 aros_tool_prefix="${elf_tool_prefix}"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11555 $as_echo "$aros_tool_prefix" >&6; }
11556 # We are *not* building AROS crosstools - use the AROS or ELF tools
11558 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11559 if test "$cross_compiling" = "yes" ; then
11560 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11561 set dummy ${target_tool_prefix}cpp; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if ${ac_cv_path_orig_target_cpp+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 case $orig_target_cpp in
11568 [\\/]* | ?:[\\/]*)
11569 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11583 done
11584 done
11585 IFS=$as_save_IFS
11588 esac
11590 orig_target_cpp=$ac_cv_path_orig_target_cpp
11591 if test -n "$orig_target_cpp"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11593 $as_echo "$orig_target_cpp" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11600 else
11601 if test "$GCC" = "yes"; then
11602 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11603 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11604 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_path_orig_target_cpp+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 case $orig_target_cpp in
11611 [\\/]* | ?:[\\/]*)
11612 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in `dirname $aros_gcc_cpp`
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11622 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 break 2
11626 done
11627 done
11628 IFS=$as_save_IFS
11631 esac
11633 orig_target_cpp=$ac_cv_path_orig_target_cpp
11634 if test -n "$orig_target_cpp"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11636 $as_echo "$orig_target_cpp" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11644 if test "$orig_target_cpp" = ""; then
11645 # Extract the first word of "cpp", so it can be a program name with args.
11646 set dummy cpp; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_path_orig_target_cpp+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 case $orig_target_cpp in
11653 [\\/]* | ?:[\\/]*)
11654 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11668 done
11669 done
11670 IFS=$as_save_IFS
11673 esac
11675 orig_target_cpp=$ac_cv_path_orig_target_cpp
11676 if test -n "$orig_target_cpp"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11678 $as_echo "$orig_target_cpp" >&6; }
11679 else
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11687 else
11688 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11689 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11690 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if ${ac_cv_path_orig_target_cpp+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 case $orig_target_cpp in
11697 [\\/]* | ?:[\\/]*)
11698 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11712 done
11713 done
11714 IFS=$as_save_IFS
11717 esac
11719 orig_target_cpp=$ac_cv_path_orig_target_cpp
11720 if test -n "$orig_target_cpp"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11722 $as_echo "$orig_target_cpp" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11729 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11732 req_avail=yes
11733 if test "$orig_target_cpp" = ""; then
11734 req_avail=no
11736 if test "$orig_target_cpp" = "no"; then
11737 req_avail=no
11739 if test "$req_avail" = "no"; then
11740 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11743 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11744 if test "$cross_compiling" = "yes" ; then
11745 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11746 set dummy ${target_tool_prefix}gcc; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_orig_target_cc+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 case $orig_target_cc in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11768 done
11769 done
11770 IFS=$as_save_IFS
11773 esac
11775 orig_target_cc=$ac_cv_path_orig_target_cc
11776 if test -n "$orig_target_cc"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11778 $as_echo "$orig_target_cc" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11785 else
11786 if test "$GCC" = "yes"; then
11787 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11788 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11789 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_orig_target_cc+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $orig_target_cc in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in `dirname $aros_gcc_gcc`
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11816 esac
11818 orig_target_cc=$ac_cv_path_orig_target_cc
11819 if test -n "$orig_target_cc"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11821 $as_echo "$orig_target_cc" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11829 if test "$orig_target_cc" = ""; then
11830 # Extract the first word of "gcc", so it can be a program name with args.
11831 set dummy gcc; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_orig_target_cc+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $orig_target_cc in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11853 done
11854 done
11855 IFS=$as_save_IFS
11858 esac
11860 orig_target_cc=$ac_cv_path_orig_target_cc
11861 if test -n "$orig_target_cc"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11863 $as_echo "$orig_target_cc" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11872 else
11873 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11874 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11875 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if ${ac_cv_path_orig_target_cc+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 case $orig_target_cc in
11882 [\\/]* | ?:[\\/]*)
11883 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11897 done
11898 done
11899 IFS=$as_save_IFS
11902 esac
11904 orig_target_cc=$ac_cv_path_orig_target_cc
11905 if test -n "$orig_target_cc"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11907 $as_echo "$orig_target_cc" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11914 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11917 req_avail=yes
11918 if test "$orig_target_cc" = ""; then
11919 req_avail=no
11921 if test "$orig_target_cc" = "no"; then
11922 req_avail=no
11924 if test "$req_avail" = "no"; then
11925 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11928 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11929 if test "$cross_compiling" = "yes" ; then
11930 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11931 set dummy ${target_tool_prefix}g++; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if ${ac_cv_path_orig_target_cxx+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 case $orig_target_cxx in
11938 [\\/]* | ?:[\\/]*)
11939 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
11947 for ac_exec_ext in '' $ac_executable_extensions; do
11948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11949 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 break 2
11953 done
11954 done
11955 IFS=$as_save_IFS
11958 esac
11960 orig_target_cxx=$ac_cv_path_orig_target_cxx
11961 if test -n "$orig_target_cxx"; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11963 $as_echo "$orig_target_cxx" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11970 else
11971 if test "$GCC" = "yes"; then
11972 aros_gcc_g++=`$CC -print-prog-name=g++`
11973 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11974 set dummy `basename $aros_gcc_g++`; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_orig_target_cxx+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 case $orig_target_cxx in
11981 [\\/]* | ?:[\\/]*)
11982 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in `dirname $aros_gcc_g++`
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11996 done
11997 done
11998 IFS=$as_save_IFS
12001 esac
12003 orig_target_cxx=$ac_cv_path_orig_target_cxx
12004 if test -n "$orig_target_cxx"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12006 $as_echo "$orig_target_cxx" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12014 if test "$orig_target_cxx" = ""; then
12015 # Extract the first word of "g++", so it can be a program name with args.
12016 set dummy g++; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if ${ac_cv_path_orig_target_cxx+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case $orig_target_cxx in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12038 done
12039 done
12040 IFS=$as_save_IFS
12043 esac
12045 orig_target_cxx=$ac_cv_path_orig_target_cxx
12046 if test -n "$orig_target_cxx"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12048 $as_echo "$orig_target_cxx" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12057 else
12058 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12059 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12060 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_orig_target_cxx+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 case $orig_target_cxx in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12082 done
12083 done
12084 IFS=$as_save_IFS
12087 esac
12089 orig_target_cxx=$ac_cv_path_orig_target_cxx
12090 if test -n "$orig_target_cxx"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12092 $as_echo "$orig_target_cxx" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12099 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12102 req_avail=yes
12103 if test "$orig_target_cxx" = ""; then
12104 req_avail=no
12106 if test "$orig_target_cxx" = "no"; then
12107 req_avail=no
12109 if test "$req_avail" = "no"; then
12110 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12113 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12114 if test "$cross_compiling" = "yes" ; then
12115 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12116 set dummy ${target_tool_prefix}gcc; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_orig_target_ld+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 case $orig_target_ld in
12123 [\\/]* | ?:[\\/]*)
12124 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12138 done
12139 done
12140 IFS=$as_save_IFS
12143 esac
12145 orig_target_ld=$ac_cv_path_orig_target_ld
12146 if test -n "$orig_target_ld"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12148 $as_echo "$orig_target_ld" >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12155 else
12156 if test "$GCC" = "yes"; then
12157 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12158 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12159 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_path_orig_target_ld+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 case $orig_target_ld in
12166 [\\/]* | ?:[\\/]*)
12167 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in `dirname $aros_gcc_gcc`
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 break 2
12181 done
12182 done
12183 IFS=$as_save_IFS
12186 esac
12188 orig_target_ld=$ac_cv_path_orig_target_ld
12189 if test -n "$orig_target_ld"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12191 $as_echo "$orig_target_ld" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12199 if test "$orig_target_ld" = ""; then
12200 # Extract the first word of "gcc", so it can be a program name with args.
12201 set dummy gcc; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_ld+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_ld in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_ld=$ac_cv_path_orig_target_ld
12231 if test -n "$orig_target_ld"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12233 $as_echo "$orig_target_ld" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12242 else
12243 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12244 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12245 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if ${ac_cv_path_orig_target_ld+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 case $orig_target_ld in
12252 [\\/]* | ?:[\\/]*)
12253 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12263 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12267 done
12268 done
12269 IFS=$as_save_IFS
12272 esac
12274 orig_target_ld=$ac_cv_path_orig_target_ld
12275 if test -n "$orig_target_ld"; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12277 $as_echo "$orig_target_ld" >&6; }
12278 else
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12284 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12287 req_avail=yes
12288 if test "$orig_target_ld" = ""; then
12289 req_avail=no
12291 if test "$orig_target_ld" = "no"; then
12292 req_avail=no
12294 if test "$req_avail" = "no"; then
12295 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12298 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12299 if test "$cross_compiling" = "yes" ; then
12300 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12301 set dummy ${target_tool_prefix}as; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_path_orig_target_as+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 case $orig_target_as in
12308 [\\/]* | ?:[\\/]*)
12309 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12323 done
12324 done
12325 IFS=$as_save_IFS
12328 esac
12330 orig_target_as=$ac_cv_path_orig_target_as
12331 if test -n "$orig_target_as"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12333 $as_echo "$orig_target_as" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12340 else
12341 if test "$GCC" = "yes"; then
12342 aros_gcc_as=`$CC -print-prog-name=as`
12343 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12344 set dummy `basename $aros_gcc_as`; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_path_orig_target_as+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 case $orig_target_as in
12351 [\\/]* | ?:[\\/]*)
12352 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in `dirname $aros_gcc_as`
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12366 done
12367 done
12368 IFS=$as_save_IFS
12371 esac
12373 orig_target_as=$ac_cv_path_orig_target_as
12374 if test -n "$orig_target_as"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12376 $as_echo "$orig_target_as" >&6; }
12377 else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12384 if test "$orig_target_as" = ""; then
12385 # Extract the first word of "as", so it can be a program name with args.
12386 set dummy as; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_path_orig_target_as+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 case $orig_target_as in
12393 [\\/]* | ?:[\\/]*)
12394 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12408 done
12409 done
12410 IFS=$as_save_IFS
12413 esac
12415 orig_target_as=$ac_cv_path_orig_target_as
12416 if test -n "$orig_target_as"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12418 $as_echo "$orig_target_as" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12427 else
12428 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12429 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12430 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_path_orig_target_as+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 case $orig_target_as in
12437 [\\/]* | ?:[\\/]*)
12438 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12452 done
12453 done
12454 IFS=$as_save_IFS
12457 esac
12459 orig_target_as=$ac_cv_path_orig_target_as
12460 if test -n "$orig_target_as"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12462 $as_echo "$orig_target_as" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12469 orig_target_as="$orig_target_as $ac_tool_optarg"
12472 req_avail=yes
12473 if test "$orig_target_as" = ""; then
12474 req_avail=no
12476 if test "$orig_target_as" = "no"; then
12477 req_avail=no
12479 if test "$req_avail" = "no"; then
12480 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12483 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12484 if test "$cross_compiling" = "yes" ; then
12485 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12486 set dummy ${target_tool_prefix}ar; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_path_orig_target_ar+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 case $orig_target_ar in
12493 [\\/]* | ?:[\\/]*)
12494 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12508 done
12509 done
12510 IFS=$as_save_IFS
12513 esac
12515 orig_target_ar=$ac_cv_path_orig_target_ar
12516 if test -n "$orig_target_ar"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12518 $as_echo "$orig_target_ar" >&6; }
12519 else
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12525 else
12526 if test "$GCC" = "yes"; then
12527 aros_gcc_ar=`$CC -print-prog-name=ar`
12528 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12529 set dummy `basename $aros_gcc_ar`; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_path_orig_target_ar+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 case $orig_target_ar in
12536 [\\/]* | ?:[\\/]*)
12537 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in `dirname $aros_gcc_ar`
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12551 done
12552 done
12553 IFS=$as_save_IFS
12556 esac
12558 orig_target_ar=$ac_cv_path_orig_target_ar
12559 if test -n "$orig_target_ar"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12561 $as_echo "$orig_target_ar" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12569 if test "$orig_target_ar" = ""; then
12570 # Extract the first word of "ar", so it can be a program name with args.
12571 set dummy ar; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_orig_target_ar+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 case $orig_target_ar in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12598 esac
12600 orig_target_ar=$ac_cv_path_orig_target_ar
12601 if test -n "$orig_target_ar"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12603 $as_echo "$orig_target_ar" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12612 else
12613 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12614 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12615 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_path_orig_target_ar+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 case $orig_target_ar in
12622 [\\/]* | ?:[\\/]*)
12623 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12637 done
12638 done
12639 IFS=$as_save_IFS
12642 esac
12644 orig_target_ar=$ac_cv_path_orig_target_ar
12645 if test -n "$orig_target_ar"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12647 $as_echo "$orig_target_ar" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12654 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12657 req_avail=yes
12658 if test "$orig_target_ar" = ""; then
12659 req_avail=no
12661 if test "$orig_target_ar" = "no"; then
12662 req_avail=no
12664 if test "$req_avail" = "no"; then
12665 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12668 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12669 if test "$cross_compiling" = "yes" ; then
12670 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12671 set dummy ${target_tool_prefix}ar; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 case $orig_target_ranlib in
12678 [\\/]* | ?:[\\/]*)
12679 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12693 done
12694 done
12695 IFS=$as_save_IFS
12698 esac
12700 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12701 if test -n "$orig_target_ranlib"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12703 $as_echo "$orig_target_ranlib" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12710 else
12711 if test "$GCC" = "yes"; then
12712 aros_gcc_ar=`$CC -print-prog-name=ar`
12713 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12714 set dummy `basename $aros_gcc_ar`; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 case $orig_target_ranlib in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in `dirname $aros_gcc_ar`
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12736 done
12737 done
12738 IFS=$as_save_IFS
12741 esac
12743 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12744 if test -n "$orig_target_ranlib"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12746 $as_echo "$orig_target_ranlib" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12754 if test "$orig_target_ranlib" = ""; then
12755 # Extract the first word of "ar", so it can be a program name with args.
12756 set dummy ar; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 case $orig_target_ranlib in
12763 [\\/]* | ?:[\\/]*)
12764 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12783 esac
12785 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12786 if test -n "$orig_target_ranlib"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12788 $as_echo "$orig_target_ranlib" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12797 else
12798 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12799 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12800 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 case $orig_target_ranlib in
12807 [\\/]* | ?:[\\/]*)
12808 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12822 done
12823 done
12824 IFS=$as_save_IFS
12827 esac
12829 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12830 if test -n "$orig_target_ranlib"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12832 $as_echo "$orig_target_ranlib" >&6; }
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12839 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12842 req_avail=yes
12843 if test "$orig_target_ranlib" = ""; then
12844 req_avail=no
12846 if test "$orig_target_ranlib" = "no"; then
12847 req_avail=no
12849 if test "$req_avail" = "no"; then
12850 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12853 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12854 if test "$cross_compiling" = "yes" ; then
12855 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12856 set dummy ${target_tool_prefix}nm; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if ${ac_cv_path_orig_target_nm+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 case $orig_target_nm in
12863 [\\/]* | ?:[\\/]*)
12864 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12878 done
12879 done
12880 IFS=$as_save_IFS
12883 esac
12885 orig_target_nm=$ac_cv_path_orig_target_nm
12886 if test -n "$orig_target_nm"; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12888 $as_echo "$orig_target_nm" >&6; }
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12895 else
12896 if test "$GCC" = "yes"; then
12897 aros_gcc_nm=`$CC -print-prog-name=nm`
12898 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12899 set dummy `basename $aros_gcc_nm`; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if ${ac_cv_path_orig_target_nm+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 case $orig_target_nm in
12906 [\\/]* | ?:[\\/]*)
12907 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in `dirname $aros_gcc_nm`
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12917 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 break 2
12921 done
12922 done
12923 IFS=$as_save_IFS
12926 esac
12928 orig_target_nm=$ac_cv_path_orig_target_nm
12929 if test -n "$orig_target_nm"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12931 $as_echo "$orig_target_nm" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12939 if test "$orig_target_nm" = ""; then
12940 # Extract the first word of "nm", so it can be a program name with args.
12941 set dummy nm; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_orig_target_nm+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 case $orig_target_nm in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12963 done
12964 done
12965 IFS=$as_save_IFS
12968 esac
12970 orig_target_nm=$ac_cv_path_orig_target_nm
12971 if test -n "$orig_target_nm"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12973 $as_echo "$orig_target_nm" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12982 else
12983 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12984 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12985 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if ${ac_cv_path_orig_target_nm+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 case $orig_target_nm in
12992 [\\/]* | ?:[\\/]*)
12993 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12999 IFS=$as_save_IFS
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13003 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 break 2
13007 done
13008 done
13009 IFS=$as_save_IFS
13012 esac
13014 orig_target_nm=$ac_cv_path_orig_target_nm
13015 if test -n "$orig_target_nm"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13017 $as_echo "$orig_target_nm" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13024 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13027 req_avail=yes
13028 if test "$orig_target_nm" = ""; then
13029 req_avail=no
13031 if test "$orig_target_nm" = "no"; then
13032 req_avail=no
13034 if test "$req_avail" = "no"; then
13035 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13038 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13039 if test "$cross_compiling" = "yes" ; then
13040 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13041 set dummy ${target_tool_prefix}strip; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if ${ac_cv_path_orig_target_strip+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 case $orig_target_strip in
13048 [\\/]* | ?:[\\/]*)
13049 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13059 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13063 done
13064 done
13065 IFS=$as_save_IFS
13068 esac
13070 orig_target_strip=$ac_cv_path_orig_target_strip
13071 if test -n "$orig_target_strip"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13073 $as_echo "$orig_target_strip" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13080 else
13081 if test "$GCC" = "yes"; then
13082 aros_gcc_strip=`$CC -print-prog-name=strip`
13083 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13084 set dummy `basename $aros_gcc_strip`; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_path_orig_target_strip+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 case $orig_target_strip in
13091 [\\/]* | ?:[\\/]*)
13092 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in `dirname $aros_gcc_strip`
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13106 done
13107 done
13108 IFS=$as_save_IFS
13111 esac
13113 orig_target_strip=$ac_cv_path_orig_target_strip
13114 if test -n "$orig_target_strip"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13116 $as_echo "$orig_target_strip" >&6; }
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13124 if test "$orig_target_strip" = ""; then
13125 # Extract the first word of "strip", so it can be a program name with args.
13126 set dummy strip; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_path_orig_target_strip+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 case $orig_target_strip in
13133 [\\/]* | ?:[\\/]*)
13134 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 break 2
13148 done
13149 done
13150 IFS=$as_save_IFS
13153 esac
13155 orig_target_strip=$ac_cv_path_orig_target_strip
13156 if test -n "$orig_target_strip"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13158 $as_echo "$orig_target_strip" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13167 else
13168 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13169 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13170 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_path_orig_target_strip+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 case $orig_target_strip in
13177 [\\/]* | ?:[\\/]*)
13178 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13188 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13192 done
13193 done
13194 IFS=$as_save_IFS
13197 esac
13199 orig_target_strip=$ac_cv_path_orig_target_strip
13200 if test -n "$orig_target_strip"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13202 $as_echo "$orig_target_strip" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13209 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13212 req_avail=yes
13213 if test "$orig_target_strip" = ""; then
13214 req_avail=no
13216 if test "$orig_target_strip" = "no"; then
13217 req_avail=no
13219 if test "$req_avail" = "no"; then
13220 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13223 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13224 if test "$cross_compiling" = "yes" ; then
13225 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13226 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 case $orig_target_objcopy in
13233 [\\/]* | ?:[\\/]*)
13234 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13253 esac
13255 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13256 if test -n "$orig_target_objcopy"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13258 $as_echo "$orig_target_objcopy" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13265 else
13266 if test "$GCC" = "yes"; then
13267 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13268 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13269 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 case $orig_target_objcopy in
13276 [\\/]* | ?:[\\/]*)
13277 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in `dirname $aros_gcc_objcopy`
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13291 done
13292 done
13293 IFS=$as_save_IFS
13296 esac
13298 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13299 if test -n "$orig_target_objcopy"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13301 $as_echo "$orig_target_objcopy" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13309 if test "$orig_target_objcopy" = ""; then
13310 # Extract the first word of "objcopy", so it can be a program name with args.
13311 set dummy objcopy; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 case $orig_target_objcopy in
13318 [\\/]* | ?:[\\/]*)
13319 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13333 done
13334 done
13335 IFS=$as_save_IFS
13338 esac
13340 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13341 if test -n "$orig_target_objcopy"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13343 $as_echo "$orig_target_objcopy" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13352 else
13353 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13354 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13355 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 case $orig_target_objcopy in
13362 [\\/]* | ?:[\\/]*)
13363 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13377 done
13378 done
13379 IFS=$as_save_IFS
13382 esac
13384 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13385 if test -n "$orig_target_objcopy"; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13387 $as_echo "$orig_target_objcopy" >&6; }
13388 else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13394 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13397 req_avail=yes
13398 if test "$orig_target_objcopy" = ""; then
13399 req_avail=no
13401 if test "$orig_target_objcopy" = "no"; then
13402 req_avail=no
13404 if test "$req_avail" = "no"; then
13405 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13408 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13409 if test "$cross_compiling" = "yes" ; then
13410 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13411 set dummy ${target_tool_prefix}objdump; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if ${ac_cv_path_orig_target_objdump+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 case $orig_target_objdump in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13438 esac
13440 orig_target_objdump=$ac_cv_path_orig_target_objdump
13441 if test -n "$orig_target_objdump"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13443 $as_echo "$orig_target_objdump" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13450 else
13451 if test "$GCC" = "yes"; then
13452 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13453 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13454 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_path_orig_target_objdump+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 case $orig_target_objdump in
13461 [\\/]* | ?:[\\/]*)
13462 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in `dirname $aros_gcc_objdump`
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
13470 for ac_exec_ext in '' $ac_executable_extensions; do
13471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 break 2
13476 done
13477 done
13478 IFS=$as_save_IFS
13481 esac
13483 orig_target_objdump=$ac_cv_path_orig_target_objdump
13484 if test -n "$orig_target_objdump"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13486 $as_echo "$orig_target_objdump" >&6; }
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13494 if test "$orig_target_objdump" = ""; then
13495 # Extract the first word of "objdump", so it can be a program name with args.
13496 set dummy objdump; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_path_orig_target_objdump+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 case $orig_target_objdump in
13503 [\\/]* | ?:[\\/]*)
13504 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13518 done
13519 done
13520 IFS=$as_save_IFS
13523 esac
13525 orig_target_objdump=$ac_cv_path_orig_target_objdump
13526 if test -n "$orig_target_objdump"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13528 $as_echo "$orig_target_objdump" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13537 else
13538 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13539 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13540 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if ${ac_cv_path_orig_target_objdump+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 case $orig_target_objdump in
13547 [\\/]* | ?:[\\/]*)
13548 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13562 done
13563 done
13564 IFS=$as_save_IFS
13567 esac
13569 orig_target_objdump=$ac_cv_path_orig_target_objdump
13570 if test -n "$orig_target_objdump"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13572 $as_echo "$orig_target_objdump" >&6; }
13573 else
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13579 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13582 req_avail=yes
13583 if test "$orig_target_objdump" = ""; then
13584 req_avail=no
13586 if test "$orig_target_objdump" = "no"; then
13587 req_avail=no
13589 if test "$req_avail" = "no"; then
13590 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13594 if test "$kernel_tool_prefix" = "none" ; then
13595 # No kernel tools specified
13596 # Assume target tools == kernel tools with ELF wrapper
13597 aros_kernel_cc=$orig_target_cc
13598 aros_kernel_cxx=$orig_target_cxx
13599 aros_kernel_cpp=$orig_target_cpp
13600 aros_kernel_ld=$orig_target_ld
13601 aros_kernel_as=$orig_target_as
13602 aros_kernel_ar=$orig_target_ar
13603 aros_kernel_ranlib=$orig_target_ranlib
13604 aros_kernel_nm=$orig_target_nm
13605 aros_kernel_strip=$orig_target_strip
13606 aros_kernel_objcopy=$orig_target_objcopy
13607 aros_kernel_objdump=$orig_target_objdump
13608 use_kernel_cc_wrapper=yes
13611 # At this point, all aros_kernel_* and aros_target_*
13612 # tools should be set up correctly
13614 CC="$aros_kernel_cc $kernel_tool_flags"
13615 CPP="$aros_kernel_cpp"
13617 #-----------------------------------------------------------------------------
13619 # Find all the tools we need to compile. This could be cross-compiling
13620 # though! If that is the case we use the GNU form of the target and
13621 # simply add this to the front of the binary name. This is rather simple,
13622 # but it should work under most circumstances.
13624 # The default tools are to use the same as the host, but only if the
13625 # host and target CPU are the same. With GCC this is normally enough.
13628 aros_cc_pre=""
13629 aros_shared_ld="$aros_host_ld"
13631 aros_target_mkdep="$aros_host_mkdep"
13633 # The default tools executables to be linked to.
13634 if test "$rescomp" != ""; then
13635 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13636 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 case $aros_kernel_rescomp in
13643 [\\/]* | ?:[\\/]*)
13644 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13654 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13658 done
13659 done
13660 IFS=$as_save_IFS
13663 esac
13665 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13666 if test -n "$aros_kernel_rescomp"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13668 $as_echo "$aros_kernel_rescomp" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13675 req_avail=yes
13676 if test "$aros_kernel_rescomp" = ""; then
13677 req_avail=no
13679 if test "$aros_kernel_rescomp" = "no"; then
13680 req_avail=no
13682 if test "$req_avail" = "no"; then
13683 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13687 # Set up the sources for the symlink farm
13688 if test "$crosstools" = "yes"; then
13689 crosstools_target=tools-crosstools
13692 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13693 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13695 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13696 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13697 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13698 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13699 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13700 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13701 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13703 # aros_cc_pre is a variable that is added to the front of the compiler name
13704 # in the generated aros-gcc shell script. We need this to enable the cache
13705 # to work across cleaned builds. Also, support DISTCC using the correct
13706 # environment variable.
13709 if test "x${DISTCC}" != "x" ; then
13710 if test "x${CCACHE}" != "x" ; then
13711 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13712 else
13713 aros_cc_pre="${DISTCC} "
13715 else
13716 if test "x${CCACHE}" != "x" ; then
13717 aros_cc_pre="${CCACHE} "
13721 aros_target_nostdinc_cflags=-nostdinc
13723 aros_target_nostartup_ldflags=-nostartfiles
13725 aros_target_nix_ldflags=-nix
13727 aros_target_detach_ldflags=-detach
13729 aros_target_nostdlib_ldflags=-nostdlib
13732 # Target tools
13734 if test "$aros_target_toolchain" != "yes"; then
13735 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13736 if test "$GCC" = "yes"; then
13737 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13739 else
13740 # We do not know which c compiler version we are going to build and what we need to know
13741 # here is different for different versions so this will be set later during the
13742 # build of crosstools.
13743 if test "$aros_toolchain" = "gnu" ; then
13744 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13745 elif test "$aros_toolchain" = "llvm" ; then
13746 prefix="$AROS_CROSSTOOLSDIR/bin/"
13748 aros_target_cc_path=@aros_target_cc_path@
13750 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13751 aros_target_cc="${prefix}${toolchain_c_compiler}"
13752 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13753 aros_target_as="${prefix}${toolchain_as}"
13754 if test "${use_ld_wrapper}" = "yes"; then
13755 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13756 else
13757 aros_target_ld="${prefix}${toolchain_ld}"
13759 aros_toolchain_ld="${prefix}${toolchain_ld}"
13761 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13762 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13763 aros_target_objdump="${prefix}${toolchain_objdump}"
13764 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13765 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13766 aros_target_strip="${prefix}${toolchain_strip}"
13767 aros_plain_nm="${prefix}${toolchain_nm}"
13768 aros_plain_ar="${prefix}${toolchain_ar}"
13770 # Check whether --enable-includes was given.
13771 if test "${enable_includes+set}" = set; then :
13772 enableval=$enable_includes; aros_target_incl=$enable_includes
13773 else
13774 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13778 if test "$aros_kernel_includes" = ""; then
13779 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13780 aros_kernel_includes="-isystem $aros_target_incl"
13784 if test "$aros_kernel_includes" != "" ; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13786 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13787 if test "$aros_kernel_cc_includes" = "" ; then
13788 # Try to guess where the directory is.
13789 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13790 if test -d $aros_kernel_cc_includes; then
13791 # Check if there is also an include-fixed directory and add it
13792 # to kernel compiler's include path as it may contain some of
13793 # the headers we need.
13794 if test -d "$aros_kernel_cc_includes"-fixed; then
13795 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13797 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13798 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13799 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13801 else
13802 # The directory doesn't exist, we need to do some more work.
13803 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13805 # These are the headers we're looking for.
13806 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13807 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13808 zutil.h stdint.h"
13810 dirs=
13811 for h in $headers; do
13812 # Which other headers are needed by each of the above?
13813 deps=$(echo "#include <$h>" | \
13814 $aros_kernel_cc -E -M - 2>/dev/null | \
13815 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13817 # Copy all the needed headers to a directory beneath gendir.
13818 for d in $deps; do
13819 h=$(basename $d)
13820 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13821 sed -n "s,^.*/include\(/.*\),\1,p")
13822 ! test -d $dir && mkdir -p $dir
13823 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13824 done
13825 done
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13829 $as_echo "$aros_kernel_cc_includes" >&6; }
13830 # Adding -nostdinc to kernel includes as they are always used together.
13831 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13834 if test "$crosstools" != "yes"; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13836 $as_echo_n "checking for the target compiler's include path... " >&6; }
13837 if test "$aros_target_cc_includes" = "" ; then
13838 #try to guess where the directory is
13839 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13840 if ! test -d $aros_target_cc_includes; then
13841 #the directory doesn't exist, we need to do some more work
13842 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13844 #these are the headers we're looking for
13845 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13846 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13847 zutil.h"
13849 dirs=
13850 for h in $headers; do
13851 #which other headers each of the above headers needs?
13852 deps=$(echo "#include <$h>" | \
13853 $orig_target_cc -E -M - 2>/dev/null | \
13854 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13856 #copy all the needed headers to a directory beneath gendir
13857 for d in $deps; do
13858 h=$(basename $d)
13859 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13860 sed -n "s,^.*/include\(/.*\),\1,p")
13861 ! test -d $dir && mkdir -p $dir
13862 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13863 done
13864 done
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13868 $as_echo "$aros_target_cc_includes" >&6; }
13869 else
13870 # We do not know which c compiler version we are going to build and what we need to know
13871 # here is different for different versions so this will be set later during the
13872 # build of crosstools.
13873 aros_target_cc_includes=@aros_target_cc_includes@
13877 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13878 # On GCC >= 4.0 -iquote should be used
13881 save_cc="$CC"
13882 save_cflags="$CFLAGS"
13883 CFLAGS="-iquote."
13884 kernel_cflags_iquote=$host_cflags_iquote
13885 kernel_cflags_iquote_end=$host_cflags_iquote_end
13886 if test "x-$cross_compiling" = "x-yes"; then
13887 CC="$aros_kernel_cc"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13889 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13890 if test "x-$crosstools" != "x-yes"; then
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13895 main ()
13899 return 0;
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 use_no_stack_protector="yes"
13904 else
13905 use_no_stack_protector="no"
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 else
13909 # we do know it is supported for the smallest version of gcc we are going to build
13910 # we assume it's also supported by later versions
13911 use_no_stack_protector=yes
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13914 $as_echo "$use_no_stack_protector" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13916 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13917 if test "x-$crosstools" != "x-yes"; then
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13922 main ()
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_compile "$LINENO"; then :
13930 has_iquote="yes"
13931 else
13932 has_iquote="no"
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 else
13936 # we do know it is supported for the smallest version of gcc we are going to build
13937 # we assume it's also supported by later versions
13938 has_iquote=yes
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13941 $as_echo "$has_iquote" >&6; }
13942 if test "x-$has_iquote" = "x-yes" ; then
13943 kernel_cflags_iquote=-iquote
13944 kernel_cflags_iquote_end=
13945 else
13946 kernel_cflags_iquote=-I
13947 kernel_cflags_iquote_end=-I-
13950 if test "x-$use_no_stack_protector" = "x-yes" ; then
13951 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13954 #-----------------------------------------------------------------------------
13956 # Check if we can explicitly choose older version of symbol hashing
13958 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13959 CC="$aros_kernel_cc"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13961 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13966 main ()
13970 return 0;
13972 _ACEOF
13973 if ac_fn_c_try_link "$LINENO"; then :
13974 use_hash_style="yes"
13975 else
13976 use_hash_style="no"
13978 rm -f core conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13981 $as_echo "$use_hash_style" >&6; }
13982 if test "x-$use_hash_style" = "x-yes" ; then
13983 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13985 CC="$save_cc"
13986 CFLAGS="$save_cflags"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13995 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13997 # Check whether --with-resolution was given.
13998 if test "${with_resolution+set}" = set; then :
13999 withval=$with_resolution; resolution=$withval
14000 else
14001 resolution=none
14004 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14005 if test "$resolution" = "yes" ; then
14006 resolution="none"
14008 if test "$resolution" = "no" ; then
14009 resolution="none"
14011 if test "$resolution" != "none" ; then
14012 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14013 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14014 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14017 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14018 aros_cv_nominal_width=$aros_nominal_width
14019 aros_cv_nominal_height=$aros_nominal_height
14020 aros_cv_nominal_depth=$aros_nominal_depth
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14023 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14025 # Check whether --with-serial-debug was given.
14026 if test "${with_serial_debug+set}" = set; then :
14027 withval=$with_serial_debug; serial_debug=$withval
14028 else
14029 serial_debug=none
14032 if test "$aros_serial_debug" = 0 ; then
14033 serial_debug_forced=""
14034 if test "$serial_debug" = "yes" ; then
14035 serial_debug="1"
14037 if test "$serial_debug" = "no" ; then
14038 serial_debug="none"
14040 else
14041 serial_debug_forced="(forced)"
14042 serial_debug=$aros_serial_debug
14044 if test "$serial_debug" != "none" ; then
14045 aros_serial_debug=$serial_debug
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14047 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14054 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14055 # Check whether --enable-palm_debug_hack was given.
14056 if test "${enable_palm_debug_hack+set}" = set; then :
14057 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14058 else
14059 palm_debug_hack="no"
14062 if test "$palm_debug_hack" = "yes" ; then
14063 aros_palm_debug_hack="1"
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14066 $as_echo "$palm_debug_hack" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14069 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14070 # Check whether --enable-usb30_code was given.
14071 if test "${enable_usb30_code+set}" = set; then :
14072 enableval=$enable_usb30_code; usb30_code="yes"
14073 else
14074 usb30_code="no"
14077 if test "$usb30_code" = "yes" ; then
14078 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14079 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14082 $as_echo "$usb30_code" >&6; }
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14085 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14086 # Check whether --enable-nesting_supervisor was given.
14087 if test "${enable_nesting_supervisor+set}" = set; then :
14088 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14089 else
14090 nesting_supervisor="no"
14093 if test "$nesting_supervisor" = "yes" ; then
14094 aros_nesting_supervisor="1"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14097 $as_echo "$nesting_supervisor" >&6; }
14099 if test "$aros_enable_mmu" = "" ; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14101 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14102 # Check whether --enable-mmu was given.
14103 if test "${enable_mmu+set}" = set; then :
14104 enableval=$enable_mmu; aros_enable_mmu=$enableval
14105 else
14106 aros_enable_mmu="yes"
14109 if test "$aros_enable_mmu" = "" ; then
14110 aros_enable_mmu="yes"
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14113 $as_echo "$aros_enable_mmu" >&6; }
14115 if test "$aros_enable_mmu" = "no" ; then
14116 aros_enable_mmu="0"
14117 else
14118 aros_enable_mmu="1"
14122 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14124 if test "x-$need_dlopen" != "x-no" ; then
14125 save_libs="$LIBS"
14126 LIBS=""
14127 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14128 if test "x$ac_cv_func_dlopen" = xyes; then :
14129 have_dl="yes"
14130 else
14131 have_dl="no"
14134 if test "x-$have_dl" = "x-no" ; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14137 if ${ac_cv_lib_dl_dlopen+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-ldl $LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char dlopen ();
14153 main ()
14155 return dlopen ();
14157 return 0;
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_lib_dl_dlopen=yes
14162 else
14163 ac_cv_lib_dl_dlopen=no
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14172 have_dl="yes"
14173 aros_host_ldflags="$aros_host_ldflags -ldl"
14174 else
14175 have_dl="no"
14179 if test "x-$have_dl" = "x-no" ; then
14180 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14182 LIBS="$save_libs"
14186 # Check whether --enable-x11_hidd was given.
14187 if test "${enable_x11_hidd+set}" = set; then :
14188 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14189 else
14190 x11_hidd="$need_x11"
14193 case "x-$x11_hidd" in
14194 x-yes|x-no|x-auto) ;;
14195 *) x11_hidd="$need_x11" ;;
14196 esac
14198 ENABLE_X11=0
14200 if test "x-$x11_hidd" != "x-no" ; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14203 $as_echo_n "checking for X... " >&6; }
14206 # Check whether --with-x was given.
14207 if test "${with_x+set}" = set; then :
14208 withval=$with_x;
14211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14212 if test "x$with_x" = xno; then
14213 # The user explicitly disabled X.
14214 have_x=disabled
14215 else
14216 case $x_includes,$x_libraries in #(
14217 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14218 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 # One or both of the vars are not set, and there is no cached value.
14222 ac_x_includes=no ac_x_libraries=no
14223 rm -f -r conftest.dir
14224 if mkdir conftest.dir; then
14225 cd conftest.dir
14226 cat >Imakefile <<'_ACEOF'
14227 incroot:
14228 @echo incroot='${INCROOT}'
14229 usrlibdir:
14230 @echo usrlibdir='${USRLIBDIR}'
14231 libdir:
14232 @echo libdir='${LIBDIR}'
14233 _ACEOF
14234 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14235 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14236 for ac_var in incroot usrlibdir libdir; do
14237 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14238 done
14239 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14240 for ac_extension in a so sl dylib la dll; do
14241 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14242 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14243 ac_im_usrlibdir=$ac_im_libdir; break
14245 done
14246 # Screen out bogus values from the imake configuration. They are
14247 # bogus both because they are the default anyway, and because
14248 # using them would break gcc on systems where it needs fixed includes.
14249 case $ac_im_incroot in
14250 /usr/include) ac_x_includes= ;;
14251 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14252 esac
14253 case $ac_im_usrlibdir in
14254 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14255 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14256 esac
14258 cd ..
14259 rm -f -r conftest.dir
14262 # Standard set of common directories for X headers.
14263 # Check X11 before X11Rn because it is often a symlink to the current release.
14264 ac_x_header_dirs='
14265 /usr/X11/include
14266 /usr/X11R7/include
14267 /usr/X11R6/include
14268 /usr/X11R5/include
14269 /usr/X11R4/include
14271 /usr/include/X11
14272 /usr/include/X11R7
14273 /usr/include/X11R6
14274 /usr/include/X11R5
14275 /usr/include/X11R4
14277 /usr/local/X11/include
14278 /usr/local/X11R7/include
14279 /usr/local/X11R6/include
14280 /usr/local/X11R5/include
14281 /usr/local/X11R4/include
14283 /usr/local/include/X11
14284 /usr/local/include/X11R7
14285 /usr/local/include/X11R6
14286 /usr/local/include/X11R5
14287 /usr/local/include/X11R4
14289 /usr/X386/include
14290 /usr/x386/include
14291 /usr/XFree86/include/X11
14293 /usr/include
14294 /usr/local/include
14295 /usr/unsupported/include
14296 /usr/athena/include
14297 /usr/local/x11r5/include
14298 /usr/lpp/Xamples/include
14300 /usr/openwin/include
14301 /usr/openwin/share/include'
14303 if test "$ac_x_includes" = no; then
14304 # Guess where to find include files, by looking for Xlib.h.
14305 # First, try using that file with no special directory specified.
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 #include <X11/Xlib.h>
14309 _ACEOF
14310 if ac_fn_c_try_cpp "$LINENO"; then :
14311 # We can compile using X headers with no special include directory.
14312 ac_x_includes=
14313 else
14314 for ac_dir in $ac_x_header_dirs; do
14315 if test -r "$ac_dir/X11/Xlib.h"; then
14316 ac_x_includes=$ac_dir
14317 break
14319 done
14321 rm -f conftest.err conftest.i conftest.$ac_ext
14322 fi # $ac_x_includes = no
14324 if test "$ac_x_libraries" = no; then
14325 # Check for the libraries.
14326 # See if we find them without any special options.
14327 # Don't add to $LIBS permanently.
14328 ac_save_LIBS=$LIBS
14329 LIBS="-lX11 $LIBS"
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #include <X11/Xlib.h>
14334 main ()
14336 XrmInitialize ()
14338 return 0;
14340 _ACEOF
14341 if ac_fn_c_try_link "$LINENO"; then :
14342 LIBS=$ac_save_LIBS
14343 # We can link X programs with no special library path.
14344 ac_x_libraries=
14345 else
14346 LIBS=$ac_save_LIBS
14347 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14349 # Don't even attempt the hair of trying to link an X program!
14350 for ac_extension in a so sl dylib la dll; do
14351 if test -r "$ac_dir/libX11.$ac_extension"; then
14352 ac_x_libraries=$ac_dir
14353 break 2
14355 done
14356 done
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 fi # $ac_x_libraries = no
14362 case $ac_x_includes,$ac_x_libraries in #(
14363 no,* | *,no | *\'*)
14364 # Didn't find X, or a directory has "'" in its name.
14365 ac_cv_have_x="have_x=no";; #(
14367 # Record where we found X for the cache.
14368 ac_cv_have_x="have_x=yes\
14369 ac_x_includes='$ac_x_includes'\
14370 ac_x_libraries='$ac_x_libraries'"
14371 esac
14373 ;; #(
14374 *) have_x=yes;;
14375 esac
14376 eval "$ac_cv_have_x"
14377 fi # $with_x != no
14379 if test "$have_x" != yes; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14381 $as_echo "$have_x" >&6; }
14382 no_x=yes
14383 else
14384 # If each of the values was on the command line, it overrides each guess.
14385 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14386 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14387 # Update the cache value to reflect the command line values.
14388 ac_cv_have_x="have_x=yes\
14389 ac_x_includes='$x_includes'\
14390 ac_x_libraries='$x_libraries'"
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14392 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14396 if test -n "$x_includes"; then
14397 X_CFLAGS="$X_CFLAGS -I$x_includes"
14400 if test -n "$x_libraries"; then
14401 X_LIBS="$X_LIBS -L$x_libraries"
14404 if test "x-$no_x" = "x-yes" ; then
14406 if test "x-$x11_hidd" != "x-auto" ; then
14407 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14410 else
14411 host_x_gfx=yes
14412 ENABLE_X11=1
14414 aros_host_x11_cflags="$X_CFLAGS"
14415 aros_host_x11_ldflags="$X_LIBS -lX11"
14417 # Check whether --enable-x11_shm was given.
14418 if test "${enable_x11_shm+set}" = set; then :
14419 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14420 else
14421 x11_hidd_shm="auto"
14424 case "x-$x11_hidd_shm" in
14425 x-yes|x-no|x-auto) ;;
14426 *) x11_hidd_shm="auto" ;;
14427 esac
14429 have_xshm=no
14431 if test "x-$x11_hidd_shm" != "x-no" ; then
14433 for ac_header in sys/ipc.h
14434 do :
14435 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14436 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_SYS_IPC_H 1
14439 _ACEOF
14443 done
14445 for ac_header in sys/shm.h
14446 do :
14447 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14448 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_SYS_SHM_H 1
14451 _ACEOF
14455 done
14458 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14460 save_cflags="$CFLAGS"
14461 save_ldflags="$LDFLAGS"
14462 CFLAGS="$CFLAGS $X_CFLAGS"
14463 LDFLAGS="$LDFLAGS $X_LIBS"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14465 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14466 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 ac_check_lib_save_LIBS=$LIBS
14470 LIBS="-lXext $LIBS"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477 #ifdef __cplusplus
14478 extern "C"
14479 #endif
14480 char XShmQueryExtension ();
14482 main ()
14484 return XShmQueryExtension ();
14486 return 0;
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490 ac_cv_lib_Xext_XShmQueryExtension=yes
14491 else
14492 ac_cv_lib_Xext_XShmQueryExtension=no
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14496 LIBS=$ac_check_lib_save_LIBS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14499 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14500 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14501 have_xshm=yes
14504 CFLAGS="$save_cflags"
14505 LDFLAGS="$save_ldflags"
14509 if test "x-$have_xshm" = "x-yes" ; then
14510 DO_XSHM_SUPPORT="1"
14511 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14512 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14513 else
14514 DO_XSHM_SUPPORT="0"
14518 # Check whether --enable-x11_vidmode was given.
14519 if test "${enable_x11_vidmode+set}" = set; then :
14520 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14521 else
14522 x11_hidd_vidmode="auto"
14525 case "x-$x11_hidd_vidmode" in
14526 x-yes|x-no|x-auto) ;;
14527 *) x11_hidd_vidmode="auto" ;;
14528 esac
14530 have_vidmode=no
14532 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14534 save_cflags="$CFLAGS"
14535 save_ldflags="$LDFLAGS"
14536 CFLAGS="$CFLAGS $X_CFLAGS"
14537 LDFLAGS="$LDFLAGS $X_LIBS"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14539 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14540 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lXxf86vm $LIBS"
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14548 /* Override any GCC internal prototype to avoid an error.
14549 Use char because int might match the return type of a GCC
14550 builtin and then its argument prototype would still apply. */
14551 #ifdef __cplusplus
14552 extern "C"
14553 #endif
14554 char XF86VidModeQueryExtension ();
14556 main ()
14558 return XF86VidModeQueryExtension ();
14560 return 0;
14562 _ACEOF
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14565 else
14566 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14573 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14574 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14575 have_vidmode=yes
14578 CFLAGS="$save_cflags"
14579 LDFLAGS="$save_ldflags"
14582 if test "x-$have_vidmode" = "x-yes" ; then
14583 DO_VIDMODE_SUPPORT="1"
14584 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14585 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14586 else
14587 DO_VIDMODE_SUPPORT="0"
14592 # Check whether --enable-sdl_hidd was given.
14593 if test "${enable_sdl_hidd+set}" = set; then :
14594 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14595 else
14596 sdl_hidd="auto"
14599 case "x-$sdl_hidd" in
14600 x-yes|x-no|x-auto) ;;
14601 *) sdl_hidd="auto" ;;
14602 esac
14604 if test "x-$sdl_hidd" != "x-no" ; then
14606 SDL_VERSION=1.2.5
14608 # Check whether --with-sdl-prefix was given.
14609 if test "${with_sdl_prefix+set}" = set; then :
14610 withval=$with_sdl_prefix; sdl_prefix="$withval"
14611 else
14612 sdl_prefix=""
14616 # Check whether --with-sdl-exec-prefix was given.
14617 if test "${with_sdl_exec_prefix+set}" = set; then :
14618 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14619 else
14620 sdl_exec_prefix=""
14623 # Check whether --enable-sdltest was given.
14624 if test "${enable_sdltest+set}" = set; then :
14625 enableval=$enable_sdltest;
14626 else
14627 enable_sdltest=yes
14631 if test x$sdl_exec_prefix != x ; then
14632 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14633 if test x${SDL_CONFIG+set} != xset ; then
14634 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14637 if test x$sdl_prefix != x ; then
14638 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14639 if test x${SDL_CONFIG+set} != xset ; then
14640 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14644 as_save_PATH="$PATH"
14645 if test "x$prefix" != xNONE; then
14646 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14648 # Extract the first word of "sdl-config", so it can be a program name with args.
14649 set dummy sdl-config; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 case $SDL_CONFIG in
14656 [\\/]* | ?:[\\/]*)
14657 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661 for as_dir in $PATH
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14669 break 2
14671 done
14672 done
14673 IFS=$as_save_IFS
14675 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14677 esac
14679 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14680 if test -n "$SDL_CONFIG"; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14682 $as_echo "$SDL_CONFIG" >&6; }
14683 else
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14689 PATH="$as_save_PATH"
14690 min_sdl_version=$SDL_VERSION
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14692 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14693 no_sdl=""
14694 if test "$SDL_CONFIG" = "no" ; then
14695 no_sdl=yes
14696 else
14697 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14698 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14700 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14701 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14702 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14703 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14704 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14706 if test "x$enable_sdltest" = "xyes" ; then
14707 ac_save_CFLAGS="$CFLAGS"
14708 ac_save_CXXFLAGS="$CXXFLAGS"
14709 ac_save_LIBS="$LIBS"
14710 CFLAGS="$CFLAGS $SDL_CFLAGS"
14711 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14712 LIBS="$LIBS $SDL_LIBS"
14713 rm -f conf.sdltest
14714 if test "$cross_compiling" = yes; then :
14715 echo $ac_n "cross compiling; assumed OK... $ac_c"
14716 else
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14720 #include <stdio.h>
14721 #include <stdlib.h>
14722 #include <string.h>
14723 #include "SDL.h"
14725 char*
14726 my_strdup (char *str)
14728 char *new_str;
14730 if (str)
14732 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14733 strcpy (new_str, str);
14735 else
14736 new_str = NULL;
14738 return new_str;
14741 int main (int argc, char *argv[])
14743 int major, minor, micro;
14744 char *tmp_version;
14746 /* This hangs on some systems (?)
14747 system ("touch conf.sdltest");
14749 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14751 /* HP/UX 9 (%@#!) writes to sscanf strings */
14752 tmp_version = my_strdup("$min_sdl_version");
14753 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14754 printf("%s, bad version string\n", "$min_sdl_version");
14755 exit(1);
14758 if (($sdl_major_version > major) ||
14759 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14760 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14762 return 0;
14764 else
14766 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14767 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14768 printf("*** best to upgrade to the required version.\n");
14769 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14770 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14771 printf("*** config.cache before re-running configure\n");
14772 return 1;
14777 _ACEOF
14778 if ac_fn_c_try_run "$LINENO"; then :
14780 else
14781 no_sdl=yes
14783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14784 conftest.$ac_objext conftest.beam conftest.$ac_ext
14787 CFLAGS="$ac_save_CFLAGS"
14788 CXXFLAGS="$ac_save_CXXFLAGS"
14789 LIBS="$ac_save_LIBS"
14792 if test "x$no_sdl" = x ; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14794 $as_echo "yes" >&6; }
14795 have_sdl="yes"
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 $as_echo "no" >&6; }
14799 if test "$SDL_CONFIG" = "no" ; then
14800 echo "*** The sdl-config script installed by SDL could not be found"
14801 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14802 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14803 echo "*** full path to sdl-config."
14804 else
14805 if test -f conf.sdltest ; then
14807 else
14808 echo "*** Could not run SDL test program, checking why..."
14809 CFLAGS="$CFLAGS $SDL_CFLAGS"
14810 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14811 LIBS="$LIBS $SDL_LIBS"
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14815 #include <stdio.h>
14816 #include "SDL.h"
14818 int main(int argc, char *argv[])
14819 { return 0; }
14820 #undef main
14821 #define main K_and_R_C_main
14824 main ()
14826 return 0;
14828 return 0;
14830 _ACEOF
14831 if ac_fn_c_try_link "$LINENO"; then :
14832 echo "*** The test program compiled, but did not run. This usually means"
14833 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14834 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14835 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14836 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14837 echo "*** is required on your system"
14838 echo "***"
14839 echo "*** If you have an old version installed, it is best to remove it, although"
14840 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14841 else
14842 echo "*** The test program failed to compile or link. See the file config.log for the"
14843 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14844 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14845 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14847 rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
14849 CFLAGS="$ac_save_CFLAGS"
14850 CXXFLAGS="$ac_save_CXXFLAGS"
14851 LIBS="$ac_save_LIBS"
14854 SDL_CFLAGS=""
14855 SDL_LIBS=""
14856 have_sdl="no"
14860 rm -f conf.sdltest
14863 if test "x-$have_sdl" != "x-yes" ; then
14865 if test "x-$sdl_hidd" != "x-auto" ; then
14866 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14869 else
14870 host_sdl_gfx=yes
14871 aros_host_sdl_cflags=$SDL_CFLAGS
14872 aros_host_sdl_libs=$SDL_LIBS
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14880 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14881 # Check whether --enable-dbus was given.
14882 if test "${enable_dbus+set}" = set; then :
14883 enableval=$enable_dbus; dbus="yes"
14884 else
14885 dbus="no"
14888 if test "$dbus" = "yes" ; then
14889 ENABLE_DBUS=1
14890 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14891 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14892 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14893 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14894 else
14895 ENABLE_DBUS=0
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14898 $as_echo "$dbus" >&6; }
14900 if test "$use_kernel_cc_wrapper" = "yes" ; then
14901 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14904 aros_kernel_cppflags=$aros_config_cppflags
14905 aros_optimization_cflags="$optimization_level"
14906 if test "$optimization" = "default"; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14908 $as_echo_n "checking default optimization level to use... " >&6; }
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14910 $as_echo "$optimization_level" >&6; }
14914 # Generic
14928 # Compatability with other Amiga-like operation systems
14931 # Host related
14961 # Target Related
15040 # Hosted Graphics Related
15058 # Native version related
15063 # Palm native version related
15066 # Unix/Hosted version related
15069 # MMU related
15072 # Apple iOS related
15077 # ARM default GCC target related
15084 # Android related
15089 # DBUS related
15096 #X11 related
15099 # Debug related
15105 # Collect-aros stuff: "-ius" to ignore undefined symbols
15108 # C compiler related
15113 #ObjC compiler related
15116 #Java related
15119 # USB3.0 code
15122 case "$aros_flavour" in
15123 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15124 aros_flavour="emulation" ;;
15125 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15126 aros_flavour="emulation" ;;
15127 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15128 aros_flavour="standalone";;
15129 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15130 aros_flavour="standalone";;
15131 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15132 aros_flavour="native" ;;
15133 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15134 aros_flavour="native" ;;
15135 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15136 aros_flavour="linklib" ;;
15137 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15138 aros_flavour="palmnative" ;;
15139 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15140 aros_flavour="mac68knative" ;;
15141 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15142 aros_flavour="ppcnative" ;;
15143 esac
15145 if test ! -d ${aros_inc_dir} ; then
15146 ${MKDIR} ${aros_inc_dir}
15148 if test ! -d ${aros_geninc_dir} ; then
15149 ${MKDIR} ${aros_geninc_dir}
15151 if test ! -d ${aros_hostcfg_dir} ; then
15152 ${MKDIR} ${aros_hostcfg_dir}
15154 if test ! -d ${aros_targetcfg_dir} ; then
15155 ${MKDIR} ${aros_targetcfg_dir}
15157 if test ! -d ${aros_tools_dir} ; then
15158 ${MKDIR} ${aros_tools_dir}
15160 if test ! -d ${aros_scripts_dir} ; then
15161 ${MKDIR} ${aros_scripts_dir}
15164 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15167 # Generic build tools (metamake, etc)
15168 ac_config_commands="$ac_config_commands genmf-executable-support"
15170 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15173 # Binutils
15174 ac_config_commands="$ac_config_commands binutils-support"
15176 if test "${use_ld_wrapper}" = "yes"; then
15177 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15180 # Bare Elf support script and spec
15181 if test "${use_kernel_cc_wrapper}" = "yes"; then
15182 ac_config_commands="$ac_config_commands elf-compiler-support"
15184 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15188 # Host compiler support scripts and spec
15189 if test "${aros_target_toolchain}" = "no"; then
15190 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15192 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15196 # Android support
15197 if test "$aros_target_variant" == "android"; then
15198 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15202 # cmake helper
15203 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15206 cat >confcache <<\_ACEOF
15207 # This file is a shell script that caches the results of configure
15208 # tests run on this system so they can be shared between configure
15209 # scripts and configure runs, see configure's option --config-cache.
15210 # It is not useful on other systems. If it contains results you don't
15211 # want to keep, you may remove or edit it.
15213 # config.status only pays attention to the cache file if you give it
15214 # the --recheck option to rerun configure.
15216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15218 # following values.
15220 _ACEOF
15222 # The following way of writing the cache mishandles newlines in values,
15223 # but we know of no workaround that is simple, portable, and efficient.
15224 # So, we kill variables containing newlines.
15225 # Ultrix sh set writes to stderr and can't be redirected directly,
15226 # and sets the high bit in the cache file unless we assign to the vars.
15228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15229 eval ac_val=\$$ac_var
15230 case $ac_val in #(
15231 *${as_nl}*)
15232 case $ac_var in #(
15233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15235 esac
15236 case $ac_var in #(
15237 _ | IFS | as_nl) ;; #(
15238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15239 *) { eval $ac_var=; unset $ac_var;} ;;
15240 esac ;;
15241 esac
15242 done
15244 (set) 2>&1 |
15245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15246 *${as_nl}ac_space=\ *)
15247 # `set' does not quote correctly, so add quotes: double-quote
15248 # substitution turns \\\\ into \\, and sed turns \\ into \.
15249 sed -n \
15250 "s/'/'\\\\''/g;
15251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15252 ;; #(
15254 # `set' quotes correctly as required by POSIX, so do not add quotes.
15255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15257 esac |
15258 sort
15260 sed '
15261 /^ac_cv_env_/b end
15262 t clear
15263 :clear
15264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15265 t end
15266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15267 :end' >>confcache
15268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15269 if test -w "$cache_file"; then
15270 if test "x$cache_file" != "x/dev/null"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15272 $as_echo "$as_me: updating cache $cache_file" >&6;}
15273 if test ! -f "$cache_file" || test -h "$cache_file"; then
15274 cat confcache >"$cache_file"
15275 else
15276 case $cache_file in #(
15277 */* | ?:*)
15278 mv -f confcache "$cache_file"$$ &&
15279 mv -f "$cache_file"$$ "$cache_file" ;; #(
15281 mv -f confcache "$cache_file" ;;
15282 esac
15285 else
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15287 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15290 rm -f confcache
15292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15293 # Let make expand exec_prefix.
15294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15296 DEFS=-DHAVE_CONFIG_H
15298 ac_libobjs=
15299 ac_ltlibobjs=
15301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15302 # 1. Remove the extension, and $U if already installed.
15303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15306 # will be set to the directory where LIBOBJS objects are built.
15307 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15308 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15309 done
15310 LIBOBJS=$ac_libobjs
15312 LTLIBOBJS=$ac_ltlibobjs
15316 : "${CONFIG_STATUS=./config.status}"
15317 ac_write_fail=0
15318 ac_clean_files_save=$ac_clean_files
15319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15321 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15322 as_write_fail=0
15323 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15324 #! $SHELL
15325 # Generated by $as_me.
15326 # Run this file to recreate the current configuration.
15327 # Compiler output produced by configure, useful for debugging
15328 # configure, is in config.log if it exists.
15330 debug=false
15331 ac_cs_recheck=false
15332 ac_cs_silent=false
15334 SHELL=\${CONFIG_SHELL-$SHELL}
15335 export SHELL
15336 _ASEOF
15337 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15338 ## -------------------- ##
15339 ## M4sh Initialization. ##
15340 ## -------------------- ##
15342 # Be more Bourne compatible
15343 DUALCASE=1; export DUALCASE # for MKS sh
15344 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15345 emulate sh
15346 NULLCMD=:
15347 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15348 # is contrary to our usage. Disable this feature.
15349 alias -g '${1+"$@"}'='"$@"'
15350 setopt NO_GLOB_SUBST
15351 else
15352 case `(set -o) 2>/dev/null` in #(
15353 *posix*) :
15354 set -o posix ;; #(
15355 *) :
15357 esac
15361 as_nl='
15363 export as_nl
15364 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15365 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15368 # Prefer a ksh shell builtin over an external printf program on Solaris,
15369 # but without wasting forks for bash or zsh.
15370 if test -z "$BASH_VERSION$ZSH_VERSION" \
15371 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15372 as_echo='print -r --'
15373 as_echo_n='print -rn --'
15374 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15375 as_echo='printf %s\n'
15376 as_echo_n='printf %s'
15377 else
15378 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15379 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15380 as_echo_n='/usr/ucb/echo -n'
15381 else
15382 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15383 as_echo_n_body='eval
15384 arg=$1;
15385 case $arg in #(
15386 *"$as_nl"*)
15387 expr "X$arg" : "X\\(.*\\)$as_nl";
15388 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15389 esac;
15390 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15392 export as_echo_n_body
15393 as_echo_n='sh -c $as_echo_n_body as_echo'
15395 export as_echo_body
15396 as_echo='sh -c $as_echo_body as_echo'
15399 # The user is always right.
15400 if test "${PATH_SEPARATOR+set}" != set; then
15401 PATH_SEPARATOR=:
15402 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15403 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15404 PATH_SEPARATOR=';'
15409 # IFS
15410 # We need space, tab and new line, in precisely that order. Quoting is
15411 # there to prevent editors from complaining about space-tab.
15412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15413 # splitting by setting IFS to empty value.)
15414 IFS=" "" $as_nl"
15416 # Find who we are. Look in the path if we contain no directory separator.
15417 as_myself=
15418 case $0 in #((
15419 *[\\/]* ) as_myself=$0 ;;
15420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15423 IFS=$as_save_IFS
15424 test -z "$as_dir" && as_dir=.
15425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15426 done
15427 IFS=$as_save_IFS
15430 esac
15431 # We did not find ourselves, most probably we were run as `sh COMMAND'
15432 # in which case we are not to be found in the path.
15433 if test "x$as_myself" = x; then
15434 as_myself=$0
15436 if test ! -f "$as_myself"; then
15437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15438 exit 1
15441 # Unset variables that we do not need and which cause bugs (e.g. in
15442 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15443 # suppresses any "Segmentation fault" message there. '((' could
15444 # trigger a bug in pdksh 5.2.14.
15445 for as_var in BASH_ENV ENV MAIL MAILPATH
15446 do eval test x\${$as_var+set} = xset \
15447 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15448 done
15449 PS1='$ '
15450 PS2='> '
15451 PS4='+ '
15453 # NLS nuisances.
15454 LC_ALL=C
15455 export LC_ALL
15456 LANGUAGE=C
15457 export LANGUAGE
15459 # CDPATH.
15460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15463 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15464 # ----------------------------------------
15465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15467 # script with STATUS, using 1 if that was 0.
15468 as_fn_error ()
15470 as_status=$1; test $as_status -eq 0 && as_status=1
15471 if test "$4"; then
15472 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15475 $as_echo "$as_me: error: $2" >&2
15476 as_fn_exit $as_status
15477 } # as_fn_error
15480 # as_fn_set_status STATUS
15481 # -----------------------
15482 # Set $? to STATUS, without forking.
15483 as_fn_set_status ()
15485 return $1
15486 } # as_fn_set_status
15488 # as_fn_exit STATUS
15489 # -----------------
15490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15491 as_fn_exit ()
15493 set +e
15494 as_fn_set_status $1
15495 exit $1
15496 } # as_fn_exit
15498 # as_fn_unset VAR
15499 # ---------------
15500 # Portably unset VAR.
15501 as_fn_unset ()
15503 { eval $1=; unset $1;}
15505 as_unset=as_fn_unset
15506 # as_fn_append VAR VALUE
15507 # ----------------------
15508 # Append the text in VALUE to the end of the definition contained in VAR. Take
15509 # advantage of any shell optimizations that allow amortized linear growth over
15510 # repeated appends, instead of the typical quadratic growth present in naive
15511 # implementations.
15512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15513 eval 'as_fn_append ()
15515 eval $1+=\$2
15517 else
15518 as_fn_append ()
15520 eval $1=\$$1\$2
15522 fi # as_fn_append
15524 # as_fn_arith ARG...
15525 # ------------------
15526 # Perform arithmetic evaluation on the ARGs, and store the result in the
15527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15528 # must be portable across $(()) and expr.
15529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15530 eval 'as_fn_arith ()
15532 as_val=$(( $* ))
15534 else
15535 as_fn_arith ()
15537 as_val=`expr "$@" || test $? -eq 1`
15539 fi # as_fn_arith
15542 if expr a : '\(a\)' >/dev/null 2>&1 &&
15543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15544 as_expr=expr
15545 else
15546 as_expr=false
15549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15550 as_basename=basename
15551 else
15552 as_basename=false
15555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15556 as_dirname=dirname
15557 else
15558 as_dirname=false
15561 as_me=`$as_basename -- "$0" ||
15562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15563 X"$0" : 'X\(//\)$' \| \
15564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15565 $as_echo X/"$0" |
15566 sed '/^.*\/\([^/][^/]*\)\/*$/{
15567 s//\1/
15570 /^X\/\(\/\/\)$/{
15571 s//\1/
15574 /^X\/\(\/\).*/{
15575 s//\1/
15578 s/.*/./; q'`
15580 # Avoid depending upon Character Ranges.
15581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15584 as_cr_digits='0123456789'
15585 as_cr_alnum=$as_cr_Letters$as_cr_digits
15587 ECHO_C= ECHO_N= ECHO_T=
15588 case `echo -n x` in #(((((
15589 -n*)
15590 case `echo 'xy\c'` in
15591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15592 xy) ECHO_C='\c';;
15593 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15594 ECHO_T=' ';;
15595 esac;;
15597 ECHO_N='-n';;
15598 esac
15600 rm -f conf$$ conf$$.exe conf$$.file
15601 if test -d conf$$.dir; then
15602 rm -f conf$$.dir/conf$$.file
15603 else
15604 rm -f conf$$.dir
15605 mkdir conf$$.dir 2>/dev/null
15607 if (echo >conf$$.file) 2>/dev/null; then
15608 if ln -s conf$$.file conf$$ 2>/dev/null; then
15609 as_ln_s='ln -s'
15610 # ... but there are two gotchas:
15611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15613 # In both cases, we have to default to `cp -pR'.
15614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15615 as_ln_s='cp -pR'
15616 elif ln conf$$.file conf$$ 2>/dev/null; then
15617 as_ln_s=ln
15618 else
15619 as_ln_s='cp -pR'
15621 else
15622 as_ln_s='cp -pR'
15624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15625 rmdir conf$$.dir 2>/dev/null
15628 # as_fn_mkdir_p
15629 # -------------
15630 # Create "$as_dir" as a directory, including parents if necessary.
15631 as_fn_mkdir_p ()
15634 case $as_dir in #(
15635 -*) as_dir=./$as_dir;;
15636 esac
15637 test -d "$as_dir" || eval $as_mkdir_p || {
15638 as_dirs=
15639 while :; do
15640 case $as_dir in #(
15641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15642 *) as_qdir=$as_dir;;
15643 esac
15644 as_dirs="'$as_qdir' $as_dirs"
15645 as_dir=`$as_dirname -- "$as_dir" ||
15646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15647 X"$as_dir" : 'X\(//\)[^/]' \| \
15648 X"$as_dir" : 'X\(//\)$' \| \
15649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15650 $as_echo X"$as_dir" |
15651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15652 s//\1/
15655 /^X\(\/\/\)[^/].*/{
15656 s//\1/
15659 /^X\(\/\/\)$/{
15660 s//\1/
15663 /^X\(\/\).*/{
15664 s//\1/
15667 s/.*/./; q'`
15668 test -d "$as_dir" && break
15669 done
15670 test -z "$as_dirs" || eval "mkdir $as_dirs"
15671 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15674 } # as_fn_mkdir_p
15675 if mkdir -p . 2>/dev/null; then
15676 as_mkdir_p='mkdir -p "$as_dir"'
15677 else
15678 test -d ./-p && rmdir ./-p
15679 as_mkdir_p=false
15683 # as_fn_executable_p FILE
15684 # -----------------------
15685 # Test if FILE is an executable regular file.
15686 as_fn_executable_p ()
15688 test -f "$1" && test -x "$1"
15689 } # as_fn_executable_p
15690 as_test_x='test -x'
15691 as_executable_p=as_fn_executable_p
15693 # Sed expression to map a string onto a valid CPP name.
15694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15696 # Sed expression to map a string onto a valid variable name.
15697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15700 exec 6>&1
15701 ## ----------------------------------- ##
15702 ## Main body of $CONFIG_STATUS script. ##
15703 ## ----------------------------------- ##
15704 _ASEOF
15705 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 # Save the log message, to keep $0 and so on meaningful, and to
15709 # report actual input values of CONFIG_FILES etc. instead of their
15710 # values after options handling.
15711 ac_log="
15712 This file was extended by $as_me, which was
15713 generated by GNU Autoconf 2.69. Invocation command line was
15715 CONFIG_FILES = $CONFIG_FILES
15716 CONFIG_HEADERS = $CONFIG_HEADERS
15717 CONFIG_LINKS = $CONFIG_LINKS
15718 CONFIG_COMMANDS = $CONFIG_COMMANDS
15719 $ $0 $@
15721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15724 _ACEOF
15726 case $ac_config_files in *"
15727 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15728 esac
15730 case $ac_config_headers in *"
15731 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15732 esac
15735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736 # Files that config.status was made for.
15737 config_files="$ac_config_files"
15738 config_headers="$ac_config_headers"
15739 config_commands="$ac_config_commands"
15741 _ACEOF
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 ac_cs_usage="\
15745 \`$as_me' instantiates files and other configuration actions
15746 from templates according to the current configuration. Unless the files
15747 and actions are specified as TAGs, all are instantiated by default.
15749 Usage: $0 [OPTION]... [TAG]...
15751 -h, --help print this help, then exit
15752 -V, --version print version number and configuration settings, then exit
15753 --config print configuration, then exit
15754 -q, --quiet, --silent
15755 do not print progress messages
15756 -d, --debug don't remove temporary files
15757 --recheck update $as_me by reconfiguring in the same conditions
15758 --file=FILE[:TEMPLATE]
15759 instantiate the configuration file FILE
15760 --header=FILE[:TEMPLATE]
15761 instantiate the configuration header FILE
15763 Configuration files:
15764 $config_files
15766 Configuration headers:
15767 $config_headers
15769 Configuration commands:
15770 $config_commands
15772 Report bugs to the package provider."
15774 _ACEOF
15775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15777 ac_cs_version="\\
15778 config.status
15779 configured by $0, generated by GNU Autoconf 2.69,
15780 with options \\"\$ac_cs_config\\"
15782 Copyright (C) 2012 Free Software Foundation, Inc.
15783 This config.status script is free software; the Free Software Foundation
15784 gives unlimited permission to copy, distribute and modify it."
15786 ac_pwd='$ac_pwd'
15787 srcdir='$srcdir'
15788 test -n "\$AWK" || AWK=awk
15789 _ACEOF
15791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792 # The default lists apply if the user does not specify any file.
15793 ac_need_defaults=:
15794 while test $# != 0
15796 case $1 in
15797 --*=?*)
15798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15800 ac_shift=:
15802 --*=)
15803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15804 ac_optarg=
15805 ac_shift=:
15808 ac_option=$1
15809 ac_optarg=$2
15810 ac_shift=shift
15812 esac
15814 case $ac_option in
15815 # Handling of the options.
15816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15817 ac_cs_recheck=: ;;
15818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15819 $as_echo "$ac_cs_version"; exit ;;
15820 --config | --confi | --conf | --con | --co | --c )
15821 $as_echo "$ac_cs_config"; exit ;;
15822 --debug | --debu | --deb | --de | --d | -d )
15823 debug=: ;;
15824 --file | --fil | --fi | --f )
15825 $ac_shift
15826 case $ac_optarg in
15827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15828 '') as_fn_error $? "missing file argument" ;;
15829 esac
15830 as_fn_append CONFIG_FILES " '$ac_optarg'"
15831 ac_need_defaults=false;;
15832 --header | --heade | --head | --hea )
15833 $ac_shift
15834 case $ac_optarg in
15835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15836 esac
15837 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15838 ac_need_defaults=false;;
15839 --he | --h)
15840 # Conflict between --help and --header
15841 as_fn_error $? "ambiguous option: \`$1'
15842 Try \`$0 --help' for more information.";;
15843 --help | --hel | -h )
15844 $as_echo "$ac_cs_usage"; exit ;;
15845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15846 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15847 ac_cs_silent=: ;;
15849 # This is an error.
15850 -*) as_fn_error $? "unrecognized option: \`$1'
15851 Try \`$0 --help' for more information." ;;
15853 *) as_fn_append ac_config_targets " $1"
15854 ac_need_defaults=false ;;
15856 esac
15857 shift
15858 done
15860 ac_configure_extra_args=
15862 if $ac_cs_silent; then
15863 exec 6>/dev/null
15864 ac_configure_extra_args="$ac_configure_extra_args --silent"
15867 _ACEOF
15868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869 if \$ac_cs_recheck; then
15870 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15871 shift
15872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15873 CONFIG_SHELL='$SHELL'
15874 export CONFIG_SHELL
15875 exec "\$@"
15878 _ACEOF
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15880 exec 5>>config.log
15882 echo
15883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15884 ## Running $as_me. ##
15885 _ASBOX
15886 $as_echo "$ac_log"
15887 } >&5
15889 _ACEOF
15890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15892 # INIT-COMMANDS
15895 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15896 aros_tools_dir=${aros_tools_dir}
15900 aros_host_exe_suffix=${aros_host_exe_suffix}
15901 aros_tools_dir=${aros_tools_dir}
15902 aros_target_cpu=${aros_target_cpu}
15903 aros_target_arch=${aros_target_arch}
15904 aros_target_suffix=${aros_target_suffix}
15905 orig_target_nm=${orig_target_nm}
15906 orig_target_as=${orig_target_as}
15907 orig_target_ar=${orig_target_ar}
15908 orig_target_ranlib=${orig_target_ranlib}
15909 orig_target_objdump=${orig_target_objdump}
15910 orig_target_objcopy=${orig_target_objcopy}
15911 orig_target_strip=${orig_target_strip}
15912 aros_kernel_ld=${aros_kernel_ld}
15916 aros_host_exe_suffix=${aros_host_exe_suffix}
15917 aros_tools_dir=${aros_tools_dir}
15918 aros_target_cpu=${aros_target_cpu}
15919 aros_target_arch=${aros_target_arch}
15920 aros_target_suffix=${aros_target_suffix}
15921 aros_kernel_ld=${aros_kernel_ld}
15925 aros_host_exe_suffix=${aros_host_exe_suffix}
15926 aros_tools_dir=${aros_tools_dir}
15927 aros_target_cpu=${aros_target_cpu}
15928 aros_target_arch=${aros_target_arch}
15929 aros_target_suffix=${aros_target_suffix}
15933 _ACEOF
15935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 # Handling of arguments.
15938 for ac_config_target in $ac_config_targets
15940 case $ac_config_target in
15941 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15942 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15943 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15944 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15945 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15946 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15947 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15948 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15949 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15950 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15951 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15952 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15953 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15954 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15955 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15956 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15957 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
15958 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15959 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15960 "${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" ;;
15961 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15962 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15963 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
15964 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
15965 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
15966 "${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" ;;
15967 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15969 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15970 esac
15971 done
15974 # If the user did not use the arguments to specify the items to instantiate,
15975 # then the envvar interface is used. Set only those that are not.
15976 # We use the long form for the default assignment because of an extremely
15977 # bizarre bug on SunOS 4.1.3.
15978 if $ac_need_defaults; then
15979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15984 # Have a temporary directory for convenience. Make it in the build tree
15985 # simply because there is no reason against having it here, and in addition,
15986 # creating and moving files from /tmp can sometimes cause problems.
15987 # Hook for its removal unless debugging.
15988 # Note that there is a small window in which the directory will not be cleaned:
15989 # after its creation but before its name has been assigned to `$tmp'.
15990 $debug ||
15992 tmp= ac_tmp=
15993 trap 'exit_status=$?
15994 : "${ac_tmp:=$tmp}"
15995 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15997 trap 'as_fn_exit 1' 1 2 13 15
15999 # Create a (secure) tmp directory for tmp files.
16002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16003 test -d "$tmp"
16004 } ||
16006 tmp=./conf$$-$RANDOM
16007 (umask 077 && mkdir "$tmp")
16008 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16009 ac_tmp=$tmp
16011 # Set up the scripts for CONFIG_FILES section.
16012 # No need to generate them if there are no CONFIG_FILES.
16013 # This happens for instance with `./config.status config.h'.
16014 if test -n "$CONFIG_FILES"; then
16017 ac_cr=`echo X | tr X '\015'`
16018 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16019 # But we know of no other shell where ac_cr would be empty at this
16020 # point, so we can use a bashism as a fallback.
16021 if test "x$ac_cr" = x; then
16022 eval ac_cr=\$\'\\r\'
16024 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16025 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16026 ac_cs_awk_cr='\\r'
16027 else
16028 ac_cs_awk_cr=$ac_cr
16031 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16032 _ACEOF
16036 echo "cat >conf$$subs.awk <<_ACEOF" &&
16037 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16038 echo "_ACEOF"
16039 } >conf$$subs.sh ||
16040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16041 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16042 ac_delim='%!_!# '
16043 for ac_last_try in false false false false false :; do
16044 . ./conf$$subs.sh ||
16045 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16047 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16048 if test $ac_delim_n = $ac_delim_num; then
16049 break
16050 elif $ac_last_try; then
16051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16052 else
16053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16055 done
16056 rm -f conf$$subs.sh
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16060 _ACEOF
16061 sed -n '
16063 s/^/S["/; s/!.*/"]=/
16066 s/^[^!]*!//
16067 :repl
16068 t repl
16069 s/'"$ac_delim"'$//
16070 t delim
16073 s/\(.\{148\}\)..*/\1/
16074 t more1
16075 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16078 b repl
16079 :more1
16080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16083 s/.\{148\}//
16084 t nl
16085 :delim
16087 s/\(.\{148\}\)..*/\1/
16088 t more2
16089 s/["\\]/\\&/g; s/^/"/; s/$/"/
16092 :more2
16093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16096 s/.\{148\}//
16097 t delim
16098 ' <conf$$subs.awk | sed '
16099 /^[^""]/{
16101 s/\n//
16103 ' >>$CONFIG_STATUS || ac_write_fail=1
16104 rm -f conf$$subs.awk
16105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16106 _ACAWK
16107 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16108 for (key in S) S_is_set[key] = 1
16109 FS = "\a"
16113 line = $ 0
16114 nfields = split(line, field, "@")
16115 substed = 0
16116 len = length(field[1])
16117 for (i = 2; i < nfields; i++) {
16118 key = field[i]
16119 keylen = length(key)
16120 if (S_is_set[key]) {
16121 value = S[key]
16122 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16123 len += length(value) + length(field[++i])
16124 substed = 1
16125 } else
16126 len += 1 + keylen
16129 print line
16132 _ACAWK
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16136 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16137 else
16139 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16140 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16141 _ACEOF
16143 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16144 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16145 # trailing colons and then remove the whole line if VPATH becomes empty
16146 # (actually we leave an empty line to preserve line numbers).
16147 if test "x$srcdir" = x.; then
16148 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16150 s///
16151 s/^/:/
16152 s/[ ]*$/:/
16153 s/:\$(srcdir):/:/g
16154 s/:\${srcdir}:/:/g
16155 s/:@srcdir@:/:/g
16156 s/^:*//
16157 s/:*$//
16159 s/\(=[ ]*\).*/\1/
16161 s/\n//
16162 s/^[^=]*=[ ]*$//
16166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16167 fi # test -n "$CONFIG_FILES"
16169 # Set up the scripts for CONFIG_HEADERS section.
16170 # No need to generate them if there are no CONFIG_HEADERS.
16171 # This happens for instance with `./config.status Makefile'.
16172 if test -n "$CONFIG_HEADERS"; then
16173 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16174 BEGIN {
16175 _ACEOF
16177 # Transform confdefs.h into an awk script `defines.awk', embedded as
16178 # here-document in config.status, that substitutes the proper values into
16179 # config.h.in to produce config.h.
16181 # Create a delimiter string that does not exist in confdefs.h, to ease
16182 # handling of long lines.
16183 ac_delim='%!_!# '
16184 for ac_last_try in false false :; do
16185 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16186 if test -z "$ac_tt"; then
16187 break
16188 elif $ac_last_try; then
16189 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16190 else
16191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16193 done
16195 # For the awk script, D is an array of macro values keyed by name,
16196 # likewise P contains macro parameters if any. Preserve backslash
16197 # newline sequences.
16199 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16200 sed -n '
16201 s/.\{148\}/&'"$ac_delim"'/g
16202 t rset
16203 :rset
16204 s/^[ ]*#[ ]*define[ ][ ]*/ /
16205 t def
16207 :def
16208 s/\\$//
16209 t bsnl
16210 s/["\\]/\\&/g
16211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16212 D["\1"]=" \3"/p
16213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16215 :bsnl
16216 s/["\\]/\\&/g
16217 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16218 D["\1"]=" \3\\\\\\n"\\/p
16219 t cont
16220 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16221 t cont
16223 :cont
16225 s/.\{148\}/&'"$ac_delim"'/g
16226 t clear
16227 :clear
16228 s/\\$//
16229 t bsnlc
16230 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16232 :bsnlc
16233 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16234 b cont
16235 ' <confdefs.h | sed '
16236 s/'"$ac_delim"'/"\\\
16237 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 for (key in D) D_is_set[key] = 1
16241 FS = "\a"
16243 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16244 line = \$ 0
16245 split(line, arg, " ")
16246 if (arg[1] == "#") {
16247 defundef = arg[2]
16248 mac1 = arg[3]
16249 } else {
16250 defundef = substr(arg[1], 2)
16251 mac1 = arg[2]
16253 split(mac1, mac2, "(") #)
16254 macro = mac2[1]
16255 prefix = substr(line, 1, index(line, defundef) - 1)
16256 if (D_is_set[macro]) {
16257 # Preserve the white space surrounding the "#".
16258 print prefix "define", macro P[macro] D[macro]
16259 next
16260 } else {
16261 # Replace #undef with comments. This is necessary, for example,
16262 # in the case of _POSIX_SOURCE, which is predefined and required
16263 # on some systems where configure will not decide to define it.
16264 if (defundef == "undef") {
16265 print "/*", prefix defundef, macro, "*/"
16266 next
16270 { print }
16271 _ACAWK
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16275 fi # test -n "$CONFIG_HEADERS"
16278 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16279 shift
16280 for ac_tag
16282 case $ac_tag in
16283 :[FHLC]) ac_mode=$ac_tag; continue;;
16284 esac
16285 case $ac_mode$ac_tag in
16286 :[FHL]*:*);;
16287 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16288 :[FH]-) ac_tag=-:-;;
16289 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16290 esac
16291 ac_save_IFS=$IFS
16292 IFS=:
16293 set x $ac_tag
16294 IFS=$ac_save_IFS
16295 shift
16296 ac_file=$1
16297 shift
16299 case $ac_mode in
16300 :L) ac_source=$1;;
16301 :[FH])
16302 ac_file_inputs=
16303 for ac_f
16305 case $ac_f in
16306 -) ac_f="$ac_tmp/stdin";;
16307 *) # Look for the file first in the build tree, then in the source tree
16308 # (if the path is not absolute). The absolute path cannot be DOS-style,
16309 # because $ac_f cannot contain `:'.
16310 test -f "$ac_f" ||
16311 case $ac_f in
16312 [\\/$]*) false;;
16313 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16314 esac ||
16315 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16316 esac
16317 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16318 as_fn_append ac_file_inputs " '$ac_f'"
16319 done
16321 # Let's still pretend it is `configure' which instantiates (i.e., don't
16322 # use $as_me), people would be surprised to read:
16323 # /* config.h. Generated by config.status. */
16324 configure_input='Generated from '`
16325 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16326 `' by configure.'
16327 if test x"$ac_file" != x-; then
16328 configure_input="$ac_file. $configure_input"
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16330 $as_echo "$as_me: creating $ac_file" >&6;}
16332 # Neutralize special characters interpreted by sed in replacement strings.
16333 case $configure_input in #(
16334 *\&* | *\|* | *\\* )
16335 ac_sed_conf_input=`$as_echo "$configure_input" |
16336 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16337 *) ac_sed_conf_input=$configure_input;;
16338 esac
16340 case $ac_tag in
16341 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16343 esac
16345 esac
16347 ac_dir=`$as_dirname -- "$ac_file" ||
16348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16349 X"$ac_file" : 'X\(//\)[^/]' \| \
16350 X"$ac_file" : 'X\(//\)$' \| \
16351 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16352 $as_echo X"$ac_file" |
16353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16354 s//\1/
16357 /^X\(\/\/\)[^/].*/{
16358 s//\1/
16361 /^X\(\/\/\)$/{
16362 s//\1/
16365 /^X\(\/\).*/{
16366 s//\1/
16369 s/.*/./; q'`
16370 as_dir="$ac_dir"; as_fn_mkdir_p
16371 ac_builddir=.
16373 case "$ac_dir" in
16374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16376 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16377 # A ".." for each directory in $ac_dir_suffix.
16378 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16379 case $ac_top_builddir_sub in
16380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16382 esac ;;
16383 esac
16384 ac_abs_top_builddir=$ac_pwd
16385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16386 # for backward compatibility:
16387 ac_top_builddir=$ac_top_build_prefix
16389 case $srcdir in
16390 .) # We are building in place.
16391 ac_srcdir=.
16392 ac_top_srcdir=$ac_top_builddir_sub
16393 ac_abs_top_srcdir=$ac_pwd ;;
16394 [\\/]* | ?:[\\/]* ) # Absolute name.
16395 ac_srcdir=$srcdir$ac_dir_suffix;
16396 ac_top_srcdir=$srcdir
16397 ac_abs_top_srcdir=$srcdir ;;
16398 *) # Relative name.
16399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16400 ac_top_srcdir=$ac_top_build_prefix$srcdir
16401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16402 esac
16403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16406 case $ac_mode in
16409 # CONFIG_FILE
16412 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 # If the template does not know about datarootdir, expand it.
16416 # FIXME: This hack should be removed a few years after 2.60.
16417 ac_datarootdir_hack=; ac_datarootdir_seen=
16418 ac_sed_dataroot='
16419 /datarootdir/ {
16423 /@datadir@/p
16424 /@docdir@/p
16425 /@infodir@/p
16426 /@localedir@/p
16427 /@mandir@/p'
16428 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16429 *datarootdir*) ac_datarootdir_seen=yes;;
16430 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16432 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16433 _ACEOF
16434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16435 ac_datarootdir_hack='
16436 s&@datadir@&$datadir&g
16437 s&@docdir@&$docdir&g
16438 s&@infodir@&$infodir&g
16439 s&@localedir@&$localedir&g
16440 s&@mandir@&$mandir&g
16441 s&\\\${datarootdir}&$datarootdir&g' ;;
16442 esac
16443 _ACEOF
16445 # Neutralize VPATH when `$srcdir' = `.'.
16446 # Shell code in configure.ac might set extrasub.
16447 # FIXME: do we really want to maintain this feature?
16448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16449 ac_sed_extra="$ac_vpsub
16450 $extrasub
16451 _ACEOF
16452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16455 s|@configure_input@|$ac_sed_conf_input|;t t
16456 s&@top_builddir@&$ac_top_builddir_sub&;t t
16457 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16458 s&@srcdir@&$ac_srcdir&;t t
16459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16460 s&@top_srcdir@&$ac_top_srcdir&;t t
16461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16462 s&@builddir@&$ac_builddir&;t t
16463 s&@abs_builddir@&$ac_abs_builddir&;t t
16464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16465 $ac_datarootdir_hack
16467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16473 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16475 which seems to be undefined. Please make sure it is defined" >&5
16476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16477 which seems to be undefined. Please make sure it is defined" >&2;}
16479 rm -f "$ac_tmp/stdin"
16480 case $ac_file in
16481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16483 esac \
16484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16488 # CONFIG_HEADER
16490 if test x"$ac_file" != x-; then
16492 $as_echo "/* $configure_input */" \
16493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16494 } >"$ac_tmp/config.h" \
16495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16499 else
16500 rm -f "$ac_file"
16501 mv "$ac_tmp/config.h" "$ac_file" \
16502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16504 else
16505 $as_echo "/* $configure_input */" \
16506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16507 || as_fn_error $? "could not create -" "$LINENO" 5
16511 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16512 $as_echo "$as_me: executing $ac_file commands" >&6;}
16514 esac
16517 case $ac_file$ac_mode in
16518 "genmf-executable-support":C)
16519 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16520 chmod a+x ${aros_tools_dir}/genmf.py
16522 "binutils-support":C)
16523 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16524 mkdir -p $prefix
16525 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16527 chmod a+x ${prefix2}-ld
16529 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16530 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16531 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16532 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16533 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16534 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16535 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16537 "elf-compiler-support":C)
16538 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16539 mkdir -p $prefix
16540 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16542 chmod a+x ${prefix2}-gcc
16544 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16546 "host-compiler-wrapper-support":C)
16547 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16548 mkdir -p $prefix
16549 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16551 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16554 esac
16555 done # for ac_tag
16558 as_fn_exit 0
16559 _ACEOF
16560 ac_clean_files=$ac_clean_files_save
16562 test $ac_write_fail = 0 ||
16563 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16566 # configure is writing to config.log, and then calls config.status.
16567 # config.status does its own redirection, appending to config.log.
16568 # Unfortunately, on DOS this fails, as config.log is still kept open
16569 # by configure, so config.status won't be able to write to it; its
16570 # output is simply discarded. So we exec the FD to /dev/null,
16571 # effectively closing config.log, so it can be properly (re)opened and
16572 # appended to by config.status. When coming back to configure, we
16573 # need to make the FD available again.
16574 if test "$no_create" != yes; then
16575 ac_cs_success=:
16576 ac_config_status_args=
16577 test "$silent" = yes &&
16578 ac_config_status_args="$ac_config_status_args --quiet"
16579 exec 5>/dev/null
16580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16581 exec 5>>config.log
16582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16583 # would make configure fail if this is the last instruction.
16584 $ac_cs_success || as_fn_exit 1
16586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16588 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16593 #XXX compatability...
16594 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16596 if test -n "$aros_shared_cflags" ; then
16597 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16598 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg