check for volatile-register-var as needed by m68k
[AROS.git] / configure
blob6d7d4571d3f4bc8c92f5132d741d8108ac046f30
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 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_target_strip_flags
673 aros_target_genmap
674 aros_debug_ldflags
675 aros_debug_aflags
676 aros_debug_cflags
677 aros_target_cflags
678 aros_kernel_ldflags
679 aros_kernel_objcflags
680 aros_kernel_includes
681 aros_kernel_cflags
682 aros_kernel_sysroot
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_nowarn_flags
687 aros_config_sysroot
688 aros_shared_ldflags
689 aros_shared_aflags
690 aros_shared_cflags
691 aros_arch_libs
692 aros_compiler_libs
693 spec_obj_format
694 aros_object_format
695 aros_shared_ld
696 aros_shared_default
697 aros_target_nm
698 aros_target_strip
699 aros_target_objcopy
700 aros_target_objdump
701 aros_target_cc_path
702 aros_target_cc_includes
703 aros_target_ld
704 aros_target_as
705 aros_target_cpp
706 aros_target_cxx
707 aros_target_cc
708 aros_plain_ar
709 aros_plain_nm
710 aros_target_ranlib
711 aros_target_ar
712 aros_target_suffix
713 aros_target_variant
714 aros_target_cpu_mode
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_def_cc
735 aros_host_cpp
736 aros_host_cpu
737 aros_host_arch
738 aros_cc_pre
739 aros_amigaos_compliance
740 AROS_PORTSSRCDIR
741 AROS_CROSSTOOLSDIR
742 SRCDIR
743 AROS_BUILDDIR_UNIX
744 AROS_BUILDDIR
745 aros_build_host
746 aros_target_toolchain
747 aros_flavour_uc
748 aros_flavour
749 aros_cpu
750 aros_arch
751 SDL_LIBS
752 SDL_CFLAGS
753 SDL_CONFIG
754 XMKMF
755 aros_cflags_iquote_end
756 aros_cflags_iquote
757 kernel_cflags_iquote_end
758 kernel_cflags_iquote
759 host_cflags_iquote_end
760 host_cflags_iquote
761 aros_toolchain
762 aros_target_nostdlib_ldflags
763 aros_target_detach_ldflags
764 aros_target_nix_ldflags
765 aros_target_nostartup_ldflags
766 aros_target_nostdinc_cflags
767 aros_kernel_rescomp
768 orig_target_objdump
769 orig_target_objcopy
770 orig_target_strip
771 orig_target_nm
772 orig_target_ranlib
773 orig_target_ar
774 orig_target_as
775 orig_target_ld
776 orig_target_cxx
777 orig_target_cc
778 orig_target_cpp
779 aros_kernel_objdump
780 aros_kernel_objcopy
781 aros_kernel_strip
782 aros_kernel_nm
783 aros_kernel_ranlib
784 aros_kernel_ar
785 aros_kernel_as
786 aros_kernel_ld
787 aros_kernel_cxx
788 aros_kernel_cc
789 aros_kernel_cpp
790 target_gcc_version
792 android_tool
793 CCACHE
794 DISTCC
795 LIBOBJS
796 EGREP
797 GREP
799 TEST
802 libpng
803 pkgpyexecdir
804 pyexecdir
805 pkgpythondir
806 pythondir
807 PYTHON_PLATFORM
808 PYTHON_EXEC_PREFIX
809 PYTHON_PREFIX
810 PYTHON_VERSION
811 PYTHON
812 PATCH
813 CHMOD
815 PPMTOILBM
816 PNGTOPNM
817 FLEX
818 BISON
821 UNIQ
822 SORT
823 TOUCH
824 MKDIR
825 ECHO
829 aros_host_strip
830 aros_host_ranlib
831 aros_host_ar
832 aros_host_automake
833 aros_host_autoheader
834 aros_host_autoconf
835 aros_host_aclocal
836 aros_host_ld
837 MMAKE
840 ac_ct_CC
841 CFLAGS
843 OBJEXT
844 EXEEXT
845 ac_ct_CXX
846 CPPFLAGS
847 LDFLAGS
848 CXXFLAGS
850 host_os
851 host_vendor
852 host_cpu
853 host
854 build_os
855 build_vendor
856 build_cpu
857 build
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 with_c_compiler
900 with_cxx_compiler
901 with_toolchain
902 enable_build_type
903 enable_debug
904 enable_distcc
905 enable_ccache
906 with_kernel_gcc_version
907 with_optimization
908 with_paranoia
909 enable_target_variant
910 with_xcode
911 with_sdk_version
912 with_sdk
913 with_ndk
914 with_ndk_version
915 with_apk_version
916 enable_amigaos_compliance
917 with_kernel_toolchain_prefix
918 with_elf_toolchain_prefix
919 with_aros_toolchain
920 enable_crosstools
921 with_aros_toolchain_install
922 with_binutils_version
923 with_gcc_version
924 enable_objc
925 enable_java
926 with_cpu
927 with_fpu
928 with_float
929 with_portssources
930 with_bootloader
931 with_iconset
932 with_theme
933 enable_includes
934 with_resolution
935 with_serial_debug
936 enable_palm_debug_hack
937 enable_usb30_code
938 enable_nesting_supervisor
939 enable_mmu
940 enable_x11_hidd
941 with_x
942 enable_x11_shm
943 enable_x11_vidmode
944 enable_sdl_hidd
945 with_sdl_prefix
946 with_sdl_exec_prefix
947 enable_sdltest
948 enable_dbus
950 ac_precious_vars='build_alias
951 host_alias
952 target_alias
954 CXXFLAGS
955 LDFLAGS
956 LIBS
957 CPPFLAGS
960 CFLAGS
962 PYTHON
963 XMKMF'
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 ac_unrecognized_opts=
970 ac_unrecognized_sep=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE}'
1005 infodir='${datarootdir}/info'
1006 htmldir='${docdir}'
1007 dvidir='${docdir}'
1008 pdfdir='${docdir}'
1009 psdir='${docdir}'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1014 ac_prev=
1015 ac_dashdash=
1016 for ac_option
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\$ac_option
1021 ac_prev=
1022 continue
1025 case $ac_option in
1026 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 *=) ac_optarg= ;;
1028 *) ac_optarg=yes ;;
1029 esac
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1035 ac_dashdash=yes ;;
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1057 -datadir | --datadir | --datadi | --datad)
1058 ac_prev=datadir ;;
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1349 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359 esac
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1371 esac
1372 done
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error $? "missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error $? "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error $? "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking ...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 X features:
1562 --x-includes=DIR X include files are in DIR
1563 --x-libraries=DIR X library files are in DIR
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 _ACEOF
1571 if test -n "$ac_init_help"; then
1573 cat <<\_ACEOF
1575 Optional Features:
1576 --disable-option-checking ignore unrecognized --enable/--with options
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-build-type=TYPE
1580 Select the build type. Available types are:
1581 personal, nightly, snapshot, milestone, release. Do
1582 NOT use this option unless you know what you are
1583 doing! (default=personal)
1584 --enable-debug=list Enable different types of debug. Commas or
1585 whitespaces can be used to separate the items in the
1586 list. Available types of debug are: all, none,
1587 messages, stack, mungwall, modules, symbols. If no
1588 list is provided then "all" is assumed.
1589 (default=none)
1590 --enable-distcc Use distcc as a front end to the compiler
1591 (default=no).
1592 --enable-ccache Use ccache as a front end to the compiler
1593 (default=no).
1594 --enable-target-variant=NAME
1595 Enable a specific target variant(default=none)
1596 --enable-amigaos-compliance=VERSION
1597 Enforce userspace AmigaOS compliance to a specific
1598 KickStart version (default=none).
1599 --disable-crosstools Do not build cross-compiler toolchain
1600 --enable-objc Enable Objectve-C support (default=no)
1601 --enable-java Enable Java support (default=no)
1602 --enable-includes=dir Alternative system include directory
1603 --enable-palm-debug-hack
1604 Enable palm debug output hack in palm native
1605 (default=no)
1606 --enable-usb30-code Enable usb3.0 code (default=no)
1607 --enable-nesting-supervisor
1608 Enable nesting supervisor support in unix
1609 (default=no)
1610 --disable-mmu Disable MMU support (default=enabled)
1611 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1612 --enable-x11-shm use X11 shared memory (default=auto)
1613 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1614 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1615 --disable-sdltest Do not try to compile and run a test SDL program
1616 --enable-dbus Enable DBUS support via dbus.library (default=no)
1618 Optional Packages:
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-c-compiler=VERSION
1622 Use specified c compiler for building AROS
1623 --with-cxx-compiler=VERSION
1624 Use specified c++ compiler building AROS
1625 --with-toolchain=family Which toolchain family to crosscompile with
1626 (defaults to gnu)
1627 --with-kernel-gcc-version=VERSION
1628 Use gcc-VERSION for building bootstrap
1629 --with-optimization=FLAGS
1630 Use optimization flags FLAGS (default=-O2).
1631 --with-paranoia=FLAGS compiler warning flags to enable for paranoia
1632 --with-xcode=PATH Specify XCode path for iOS targets
1633 (default=/Developer).
1634 --with-sdk-version=VERSION
1635 Use iOS SDK version VERSION (default=4.1).
1636 --with-sdk=PATH Specify Android SDK path
1637 (default=$default_android_sdk).
1638 --with-ndk=PATH Specify Android NDK path (default=none).
1639 --with-sdk-version=LEVEL
1640 Use Android SDK for API LEVEL (default=12).
1641 --with-ndk-version=LEVEL
1642 Use Android NDK for API LEVEL (default=9).
1643 --with-apk-version=(release|debug)
1644 Which version of AROSBootstrap.apk to compile.
1645 Release version needs key for signing, debug version
1646 will only run in emulator. (default=release)
1647 --with-kernel-toolchain-prefix=...
1648 Specify crosscompile toolchain prefix for kernel
1649 objects
1650 --with-elf-toolchain-prefix=...
1651 Specify crosscompile toolchain prefix to wrap for
1652 AROS objects
1653 --with-aros-toolchain=PREFIX
1654 Specify prebuilt AROS toolchain. Use yes for default
1655 name
1656 --with-aros-toolchain-install=DIR
1657 Where to install or search for cross tools binaries
1658 --with-binutils-version=VERSION
1659 Use binutils-VERSION for building AROS
1660 --with-gcc-version=VERSION
1661 Compile gcc-VERSION for AROS
1662 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1663 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1664 --with-float=<spec> Specify floating point ABI
1665 (default=$gcc_default_float_abi).
1666 --with-portssources=DIR Where to download sourcecode for external ports
1667 --with-bootloader=NAME Use a specific bootloader
1668 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1669 --with-theme=NAME Use a specific GUI Theme
1670 --with-resolution=XRESxYRESxDEPTH
1671 Default resolution of the initial WorkbenchScreen
1672 --with-serial-debug Enable serial debug output in native (default=no)
1673 --with-x use the X Window System
1674 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1675 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1677 Some influential environment variables:
1678 CXX C++ compiler command
1679 CXXFLAGS C++ compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1685 CC C compiler command
1686 CFLAGS C compiler flags
1687 CPP C preprocessor
1688 PYTHON the Python interpreter
1689 XMKMF Path to xmkmf, Makefile generator for X Window System
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1705 ac_builddir=.
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1723 case $srcdir in
1724 .) # We are building in place.
1725 ac_srcdir=.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1747 else
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1751 done
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756 cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764 exit
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_cxx_try_compile LINENO
1772 # ----------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_cxx_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_cxx_try_compile
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 ac_retval=1
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_compile
1847 # ac_fn_c_try_cpp LINENO
1848 # ----------------------
1849 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_cpp ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_cpp conftest.$ac_ext"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } > conftest.i && {
1869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=1
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_cpp
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2021 ac_fn_c_try_run ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2042 ac_status=$?
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_c_try_run
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$3=yes"
2078 else
2079 eval "$3=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2091 # ----------------------------------------------------
2092 # Tries to find if the field MEMBER exists in type AGGR, after including
2093 # INCLUDES, setting cache variable VAR accordingly.
2094 ac_fn_c_check_member ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2098 $as_echo_n "checking for $2.$3... " >&6; }
2099 if eval \${$4+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 static $2 ac_aggr;
2109 if (ac_aggr.$3)
2110 return 0;
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$4=yes"
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static $2 ac_aggr;
2125 if (sizeof ac_aggr.$3)
2126 return 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 eval "$4=yes"
2133 else
2134 eval "$4=no"
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 eval ac_res=\$$4
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_member
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2148 # ---------------------------------------------
2149 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_decl ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 as_decl_name=`echo $2|sed 's/ *(.*//'`
2155 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2157 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 #ifndef $as_decl_name
2168 #ifdef __cplusplus
2169 (void) $as_decl_use;
2170 #else
2171 (void) $as_decl_name;
2172 #endif
2173 #endif
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_decl
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 eval "$3=no"
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 if (sizeof ($2))
2213 return 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2223 main ()
2225 if (sizeof (($2)))
2226 return 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2233 else
2234 eval "$3=yes"
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_type
2247 # ac_fn_c_check_func LINENO FUNC VAR
2248 # ----------------------------------
2249 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2250 ac_fn_c_check_func ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2262 #define $2 innocuous_$2
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $2 (); below.
2266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2267 <limits.h> exists even on freestanding compilers. */
2269 #ifdef __STDC__
2270 # include <limits.h>
2271 #else
2272 # include <assert.h>
2273 #endif
2275 #undef $2
2277 /* Override any GCC internal prototype to avoid an error.
2278 Use char because int might match the return type of a GCC
2279 builtin and then its argument prototype would still apply. */
2280 #ifdef __cplusplus
2281 extern "C"
2282 #endif
2283 char $2 ();
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined __stub_$2 || defined __stub___$2
2288 choke me
2289 #endif
2292 main ()
2294 return $2 ();
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_link "$LINENO"; then :
2300 eval "$3=yes"
2301 else
2302 eval "$3=no"
2304 rm -f core conftest.err conftest.$ac_objext \
2305 conftest$ac_exeext conftest.$ac_ext
2307 eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_func
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2320 $ $0 $@
2322 _ACEOF
2323 exec 5>>config.log
2325 cat <<_ASUNAME
2326 ## --------- ##
2327 ## Platform. ##
2328 ## --------- ##
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2340 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2343 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2344 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2345 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347 _ASUNAME
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2355 done
2356 IFS=$as_save_IFS
2358 } >&5
2360 cat >&5 <<_ACEOF
2363 ## ----------- ##
2364 ## Core tests. ##
2365 ## ----------- ##
2367 _ACEOF
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_configure_args=
2376 ac_configure_args0=
2377 ac_configure_args1=
2378 ac_must_keep_next=false
2379 for ac_pass in 1 2
2381 for ac_arg
2383 case $ac_arg in
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2387 continue ;;
2388 *\'*)
2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 esac
2391 case $ac_pass in
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2397 else
2398 case $ac_arg in
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 esac
2407 -* ) ac_must_keep_next=true ;;
2408 esac
2410 as_fn_append ac_configure_args " '$ac_arg'"
2412 esac
2413 done
2414 done
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2426 echo
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2431 echo
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in #(
2437 *${as_nl}*)
2438 case $ac_var in #(
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 esac
2442 case $ac_var in #(
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2446 esac ;;
2447 esac
2448 done
2449 (set) 2>&1 |
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2452 sed -n \
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 ;; #(
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 esac |
2460 sort
2462 echo
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2467 echo
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2471 case $ac_val in
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 esac
2474 $as_echo "$ac_var='\''$ac_val'\''"
2475 done | sort
2476 echo
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2482 echo
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2496 ## confdefs.h. ##
2497 ## ----------- ##"
2498 echo
2499 cat confdefs.h
2500 echo
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2505 } >&5
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508 exit $exit_status
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 done
2513 ac_signal=0
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2524 _ACEOF
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528 _ACEOF
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2532 _ACEOF
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2536 _ACEOF
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2544 _ACEOF
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2549 ac_site_file1=NONE
2550 ac_site_file2=NONE
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2557 esac
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2561 else
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2572 . "$ac_site_file" \
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2578 done
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2586 case $cache_file in
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2589 esac
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 >$cache_file
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2649 done
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 ac_aux_dir=
2670 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2671 if test -f "$ac_dir/install-sh"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2674 break
2675 elif test -f "$ac_dir/install.sh"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2678 break
2679 elif test -f "$ac_dir/shtool"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 break
2684 done
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 # Check what host we are running on.
2700 # If a target is not suggested, we use this one.
2701 # Note that what we call a target, Autoconf calls a host.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if ${ac_cv_build+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if ${ac_cv_host+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774 # Default versions for the gnu tools we build
2775 default_gcc_version="4.6.4"
2776 default_binutils_version="2.23.2"
2778 # The AROS target is slightly different to the normal GNU style
2779 # format. We don't have the middle part, and we reverse the order
2780 # of the $(CPU) and $(OS) bits.
2782 # Don't strip the version of the target yet, it might be
2783 # useful on some systems.
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2786 $as_echo_n "checking for AROS style target... " >&6; }
2788 if test "$target" = "NONE" ; then
2789 target=$host_os-$host_cpu
2790 else
2791 if test "$target" = "" ; then
2792 target=$host_os-$host_cpu
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2796 $as_echo "$target" >&6; }
2798 if test "$host_os" = "mingw32" ; then
2799 PWDCMD="pwd -W"
2802 # Don't know where else to put this...
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2804 $as_echo_n "checking building AROS in... " >&6; }
2805 AROS_BUILDDIR=`${PWDCMD-pwd}`
2806 AROS_BUILDDIR_UNIX=${PWD}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2808 $as_echo "$AROS_BUILDDIR" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2811 $as_echo_n "checking AROS source in... " >&6; }
2812 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2813 SRCDIR=${srcpwd}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2815 $as_echo "$SRCDIR" >&6; }
2817 # Parse the target field into something useful.
2819 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2820 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2823 # Some debug output, to be removed again.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2825 $as_echo_n "checking for target system (debug output)... " >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2827 $as_echo "$target_os" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2829 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2831 $as_echo "$target_cpu" >&6; }
2833 aros_nominal_width=800
2834 aros_nominal_height=600
2835 aros_nominal_depth=4
2838 default_c_compilers="gcc clang cc"
2840 # Check whether --with-c-compiler was given.
2841 if test "${with_c_compiler+set}" = set; then :
2842 withval=$with_c_compiler; use_c_compiler="$withval"
2843 else
2844 use_c_compiler=""
2847 if test "$use_c_compiler" = ""; then
2848 host_c_compilers="$default_c_compilers"
2849 else
2850 host_c_compilers="$use_c_compiler"
2853 default_cxx_compilers="g++ clang++ c++"
2855 # Check whether --with-cxx-compiler was given.
2856 if test "${with_cxx_compiler+set}" = set; then :
2857 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2858 else
2859 use_cxx_compiler=""
2862 if test "$use_cxx_compiler" = ""; then
2863 host_cxx_compilers="$default_cxx_compilers"
2864 else
2865 host_cxx_compilers="$use_cxx_compiler"
2869 # The first step is to find the host binaries.
2870 # Check for a compiler.
2871 # Due to a bug in autoconf check for c++ compiler first.
2872 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2873 ac_ext=cpp
2874 ac_cpp='$CXXCPP $CPPFLAGS'
2875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2878 if test -z "$CXX"; then
2879 if test -n "$CCC"; then
2880 CXX=$CCC
2881 else
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in ${host_cxx_compilers}
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CXX+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CXX"; then
2893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2908 IFS=$as_save_IFS
2912 CXX=$ac_cv_prog_CXX
2913 if test -n "$CXX"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2915 $as_echo "$CXX" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$CXX" && break
2923 done
2925 if test -z "$CXX"; then
2926 ac_ct_CXX=$CXX
2927 for ac_prog in ${host_cxx_compilers}
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_CXX"; then
2937 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CXX="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2950 done
2951 done
2952 IFS=$as_save_IFS
2956 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2957 if test -n "$ac_ct_CXX"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2959 $as_echo "$ac_ct_CXX" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$ac_ct_CXX" && break
2967 done
2969 if test "x$ac_ct_CXX" = x; then
2970 CXX="g++"
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CXX=$ac_ct_CXX
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2986 set X $ac_compile
2987 ac_compiler=$2
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 ac_status=$?
2998 if test -s conftest.err; then
2999 sed '10a\
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err >conftest.er1
3002 cat conftest.er1 >&5
3004 rm -f conftest.er1 conftest.err
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3007 done
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3013 main ()
3017 return 0;
3019 _ACEOF
3020 ac_clean_files_save=$ac_clean_files
3021 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3024 # of exeext.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3026 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3027 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029 # The possible output files:
3030 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3032 ac_rmfiles=
3033 for ac_file in $ac_files
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3038 esac
3039 done
3040 rm -f $ac_rmfiles
3042 if { { ac_try="$ac_link_default"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3054 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3055 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3056 # so that the user can short-circuit this test for compilers unknown to
3057 # Autoconf.
3058 for ac_file in $ac_files ''
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064 [ab].out )
3065 # We found the default executable, but exeext='' is most
3066 # certainly right.
3067 break;;
3068 *.* )
3069 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3070 then :; else
3071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 # We set ac_cv_exeext here because the later test for it is not
3074 # safe: cross compilers may not add the suffix if given an `-o'
3075 # argument, so we may need to know it at that point already.
3076 # Even if this section looks crufty: it has the advantage of
3077 # actually working.
3078 break;;
3080 break;;
3081 esac
3082 done
3083 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085 else
3086 ac_file=''
3088 if test -z "$ac_file"; then :
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error 77 "C++ compiler cannot create executables
3097 See \`config.log' for more details" "$LINENO" 5; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 $as_echo "yes" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3103 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3105 $as_echo "$ac_file" >&6; }
3106 ac_exeext=$ac_cv_exeext
3108 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3109 ac_clean_files=$ac_clean_files_save
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe'), while it won't with
3126 # `rm'.
3127 for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 break;;
3133 * ) break;;
3134 esac
3135 done
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details" "$LINENO" 5; }
3142 rm -f conftest conftest$ac_cv_exeext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144 $as_echo "$ac_cv_exeext" >&6; }
3146 rm -f conftest.$ac_ext
3147 EXEEXT=$ac_cv_exeext
3148 ac_exeext=$EXEEXT
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3151 #include <stdio.h>
3153 main ()
3155 FILE *f = fopen ("conftest.out", "w");
3156 return ferror (f) || fclose (f) != 0;
3159 return 0;
3161 _ACEOF
3162 ac_clean_files="$ac_clean_files conftest.out"
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3166 $as_echo_n "checking whether we are cross compiling... " >&6; }
3167 if test "$cross_compiling" != yes; then
3168 { { ac_try="$ac_link"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_link") 2>&5
3176 ac_status=$?
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }
3179 if { ac_try='./conftest$ac_cv_exeext'
3180 { { case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_try") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; }; then
3190 cross_compiling=no
3191 else
3192 if test "$cross_compiling" = maybe; then
3193 cross_compiling=yes
3194 else
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "cannot run C++ compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details" "$LINENO" 5; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3206 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3207 ac_clean_files=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3209 $as_echo_n "checking for suffix of object files... " >&6; }
3210 if ${ac_cv_objext+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.o conftest.obj
3225 if { { ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_compile") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 for ac_file in conftest.o conftest.obj conftest.*; do
3237 test -f "$ac_file" || continue;
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3240 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241 break;;
3242 esac
3243 done
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "cannot compute suffix of object files: cannot compile
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3256 $as_echo "$ac_cv_objext" >&6; }
3257 OBJEXT=$ac_cv_objext
3258 ac_objext=$OBJEXT
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3261 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3270 #ifndef __GNUC__
3271 choke me
3272 #endif
3275 return 0;
3277 _ACEOF
3278 if ac_fn_cxx_try_compile "$LINENO"; then :
3279 ac_compiler_gnu=yes
3280 else
3281 ac_compiler_gnu=no
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3289 if test $ac_compiler_gnu = yes; then
3290 GXX=yes
3291 else
3292 GXX=
3294 ac_test_CXXFLAGS=${CXXFLAGS+set}
3295 ac_save_CXXFLAGS=$CXXFLAGS
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3298 if ${ac_cv_prog_cxx_g+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3302 ac_cxx_werror_flag=yes
3303 ac_cv_prog_cxx_g=no
3304 CXXFLAGS="-g"
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 if ac_fn_cxx_try_compile "$LINENO"; then :
3317 ac_cv_prog_cxx_g=yes
3318 else
3319 CXXFLAGS=""
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_cxx_try_compile "$LINENO"; then :
3333 else
3334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 CXXFLAGS="-g"
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3348 ac_cv_prog_cxx_g=yes
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3359 if test "$ac_test_CXXFLAGS" = set; then
3360 CXXFLAGS=$ac_save_CXXFLAGS
3361 elif test $ac_cv_prog_cxx_g = yes; then
3362 if test "$GXX" = yes; then
3363 CXXFLAGS="-g -O2"
3364 else
3365 CXXFLAGS="-g"
3367 else
3368 if test "$GXX" = yes; then
3369 CXXFLAGS="-O2"
3370 else
3371 CXXFLAGS=
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386 for ac_prog in ${host_c_compilers}
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$CC" && break
3426 done
3428 if test -z "$CC"; then
3429 ac_ct_CC=$CC
3430 for ac_prog in ${host_c_compilers}
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3453 done
3454 done
3455 IFS=$as_save_IFS
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$ac_ct_CC" && break
3470 done
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481 CC=$ac_ct_CC
3486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details" "$LINENO" 5; }
3491 # Provide some information about the compiler.
3492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3493 set X $ac_compile
3494 ac_compiler=$2
3495 for ac_option in --version -v -V -qversion; do
3496 { { ac_try="$ac_compiler $ac_option >&5"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3504 ac_status=$?
3505 if test -s conftest.err; then
3506 sed '10a\
3507 ... rest of stderr output deleted ...
3508 10q' conftest.err >conftest.er1
3509 cat conftest.er1 >&5
3511 rm -f conftest.er1 conftest.err
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3514 done
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3517 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3518 if ${ac_cv_c_compiler_gnu+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3527 #ifndef __GNUC__
3528 choke me
3529 #endif
3532 return 0;
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_compiler_gnu=yes
3537 else
3538 ac_compiler_gnu=no
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3545 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3546 if test $ac_compiler_gnu = yes; then
3547 GCC=yes
3548 else
3549 GCC=
3551 ac_test_CFLAGS=${CFLAGS+set}
3552 ac_save_CFLAGS=$CFLAGS
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3554 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3555 if ${ac_cv_prog_cc_g+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 ac_save_c_werror_flag=$ac_c_werror_flag
3559 ac_c_werror_flag=yes
3560 ac_cv_prog_cc_g=no
3561 CFLAGS="-g"
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_cv_prog_cc_g=yes
3575 else
3576 CFLAGS=""
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3581 main ()
3585 return 0;
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3590 else
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3592 CFLAGS="-g"
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3597 main ()
3601 return 0;
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_prog_cc_g=yes
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3620 CFLAGS="-g -O2"
3621 else
3622 CFLAGS="-g"
3624 else
3625 if test "$GCC" = yes; then
3626 CFLAGS="-O2"
3627 else
3628 CFLAGS=
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if ${ac_cv_prog_cc_c89+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 ac_cv_prog_cc_c89=no
3637 ac_save_CC=$CC
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640 #include <stdarg.h>
3641 #include <stdio.h>
3642 struct stat;
3643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644 struct buf { int x; };
3645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646 static char *e (p, i)
3647 char **p;
3648 int i;
3650 return p[i];
3652 static char *f (char * (*g) (char **, int), char **p, ...)
3654 char *s;
3655 va_list v;
3656 va_start (v,p);
3657 s = g (p, va_arg (v,int));
3658 va_end (v);
3659 return s;
3662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
3665 as 'x'. The following induces an error, until -std is added to get
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
3668 that's true only with -std. */
3669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672 inside strings and character constants. */
3673 #define FOO(x) 'x'
3674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676 int test (int i, double x);
3677 struct s1 {int (*f) (int a);};
3678 struct s2 {int (*f) (double a);};
3679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680 int argc;
3681 char **argv;
3683 main ()
3685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 return 0;
3689 _ACEOF
3690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_c89=$ac_arg
3697 rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3704 # AC_CACHE_VAL
3705 case "x$ac_cv_prog_cc_c89" in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 $as_echo "none needed" >&6; } ;;
3709 xno)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 $as_echo "unsupported" >&6; } ;;
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716 esac
3717 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 aros_host_def_cc="$CC"
3728 case $ac_cv_prog_cc_stdc in #(
3729 no) :
3730 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3731 *) :
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3734 if ${ac_cv_prog_cc_c99+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_cv_prog_cc_c99=no
3738 ac_save_CC=$CC
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdarg.h>
3742 #include <stdbool.h>
3743 #include <stdlib.h>
3744 #include <wchar.h>
3745 #include <stdio.h>
3747 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3748 #define debug(...) fprintf (stderr, __VA_ARGS__)
3749 #define showlist(...) puts (#__VA_ARGS__)
3750 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3751 static void
3752 test_varargs_macros (void)
3754 int x = 1234;
3755 int y = 5678;
3756 debug ("Flag");
3757 debug ("X = %d\n", x);
3758 showlist (The first, second, and third items.);
3759 report (x>y, "x is %d but y is %d", x, y);
3762 // Check long long types.
3763 #define BIG64 18446744073709551615ull
3764 #define BIG32 4294967295ul
3765 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3766 #if !BIG_OK
3767 your preprocessor is broken;
3768 #endif
3769 #if BIG_OK
3770 #else
3771 your preprocessor is broken;
3772 #endif
3773 static long long int bignum = -9223372036854775807LL;
3774 static unsigned long long int ubignum = BIG64;
3776 struct incomplete_array
3778 int datasize;
3779 double data[];
3782 struct named_init {
3783 int number;
3784 const wchar_t *name;
3785 double average;
3788 typedef const char *ccp;
3790 static inline int
3791 test_restrict (ccp restrict text)
3793 // See if C++-style comments work.
3794 // Iterate through items via the restricted pointer.
3795 // Also check for declarations in for loops.
3796 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3797 continue;
3798 return 0;
3801 // Check varargs and va_copy.
3802 static void
3803 test_varargs (const char *format, ...)
3805 va_list args;
3806 va_start (args, format);
3807 va_list args_copy;
3808 va_copy (args_copy, args);
3810 const char *str;
3811 int number;
3812 float fnumber;
3814 while (*format)
3816 switch (*format++)
3818 case 's': // string
3819 str = va_arg (args_copy, const char *);
3820 break;
3821 case 'd': // int
3822 number = va_arg (args_copy, int);
3823 break;
3824 case 'f': // float
3825 fnumber = va_arg (args_copy, double);
3826 break;
3827 default:
3828 break;
3831 va_end (args_copy);
3832 va_end (args);
3836 main ()
3839 // Check bool.
3840 _Bool success = false;
3842 // Check restrict.
3843 if (test_restrict ("String literal") == 0)
3844 success = true;
3845 char *restrict newvar = "Another string";
3847 // Check varargs.
3848 test_varargs ("s, d' f .", "string", 65, 34.234);
3849 test_varargs_macros ();
3851 // Check flexible array members.
3852 struct incomplete_array *ia =
3853 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3854 ia->datasize = 10;
3855 for (int i = 0; i < ia->datasize; ++i)
3856 ia->data[i] = i * 1.234;
3858 // Check named initializers.
3859 struct named_init ni = {
3860 .number = 34,
3861 .name = L"Test wide string",
3862 .average = 543.34343,
3865 ni.number = 58;
3867 int dynamic_array[ni.number];
3868 dynamic_array[ni.number - 1] = 543;
3870 // work around unused variable warnings
3871 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3872 || dynamic_array[ni.number - 1] != 543);
3875 return 0;
3877 _ACEOF
3878 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c99=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c99" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c99" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896 xno)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c99"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3902 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c99" != xno; then :
3905 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3908 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3909 if ${ac_cv_prog_cc_c89+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 ac_cv_prog_cc_c89=no
3913 ac_save_CC=$CC
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #include <stdarg.h>
3917 #include <stdio.h>
3918 struct stat;
3919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920 struct buf { int x; };
3921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3923 char **p;
3924 int i;
3926 return p[i];
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3930 char *s;
3931 va_list v;
3932 va_start (v,p);
3933 s = g (p, va_arg (v,int));
3934 va_end (v);
3935 return s;
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3949 #define FOO(x) 'x'
3950 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956 int argc;
3957 char **argv;
3959 main ()
3961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3963 return 0;
3965 _ACEOF
3966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969 CC="$ac_save_CC $ac_arg"
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_prog_cc_c89=$ac_arg
3973 rm -f core conftest.err conftest.$ac_objext
3974 test "x$ac_cv_prog_cc_c89" != "xno" && break
3975 done
3976 rm -f conftest.$ac_ext
3977 CC=$ac_save_CC
3980 # AC_CACHE_VAL
3981 case "x$ac_cv_prog_cc_c89" in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984 $as_echo "none needed" >&6; } ;;
3985 xno)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987 $as_echo "unsupported" >&6; } ;;
3989 CC="$CC $ac_cv_prog_cc_c89"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3992 esac
3993 if test "x$ac_cv_prog_cc_c89" != xno; then :
3994 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3995 else
3996 ac_cv_prog_cc_stdc=no
4001 esac
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4003 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4004 if ${ac_cv_prog_cc_stdc+:} false; then :
4005 $as_echo_n "(cached) " >&6
4008 case $ac_cv_prog_cc_stdc in #(
4009 no) :
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4011 $as_echo "unsupported" >&6; } ;; #(
4012 '') :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;; #(
4015 *) :
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4017 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4018 esac
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4027 # On Suns, sometimes $CPP names a directory.
4028 if test -n "$CPP" && test -d "$CPP"; then
4029 CPP=
4031 if test -z "$CPP"; then
4032 if ${ac_cv_prog_CPP+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 # Double quotes because CPP needs to be expanded
4036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4038 ac_preproc_ok=false
4039 for ac_c_preproc_warn_flag in '' yes
4041 # Use a header file that comes with gcc, so configuring glibc
4042 # with a fresh cross-compiler works.
4043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044 # <limits.h> exists even on freestanding compilers.
4045 # On the NeXT, cc -E runs the code through the compiler's parser,
4046 # not just through cpp. "Syntax error" is here to catch this case.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #ifdef __STDC__
4050 # include <limits.h>
4051 #else
4052 # include <assert.h>
4053 #endif
4054 Syntax error
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4058 else
4059 # Broken: fails on valid input.
4060 continue
4062 rm -f conftest.err conftest.i conftest.$ac_ext
4064 # OK, works on sane cases. Now check whether nonexistent headers
4065 # can be detected and how.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071 # Broken: success on invalid input.
4072 continue
4073 else
4074 # Passes both tests.
4075 ac_preproc_ok=:
4076 break
4078 rm -f conftest.err conftest.i conftest.$ac_ext
4080 done
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.i conftest.err conftest.$ac_ext
4083 if $ac_preproc_ok; then :
4084 break
4087 done
4088 ac_cv_prog_CPP=$CPP
4091 CPP=$ac_cv_prog_CPP
4092 else
4093 ac_cv_prog_CPP=$CPP
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4096 $as_echo "$CPP" >&6; }
4097 ac_preproc_ok=false
4098 for ac_c_preproc_warn_flag in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103 # <limits.h> exists even on freestanding compilers.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #ifdef __STDC__
4109 # include <limits.h>
4110 #else
4111 # include <assert.h>
4112 #endif
4113 Syntax error
4114 _ACEOF
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4117 else
4118 # Broken: fails on valid input.
4119 continue
4121 rm -f conftest.err conftest.i conftest.$ac_ext
4123 # OK, works on sane cases. Now check whether nonexistent headers
4124 # can be detected and how.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if ac_fn_c_try_cpp "$LINENO"; then :
4130 # Broken: success on invalid input.
4131 continue
4132 else
4133 # Passes both tests.
4134 ac_preproc_ok=:
4135 break
4137 rm -f conftest.err conftest.i conftest.$ac_ext
4139 done
4140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141 rm -f conftest.i conftest.err conftest.$ac_ext
4142 if $ac_preproc_ok; then :
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details" "$LINENO" 5; }
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 # Check for a compatible awk
4159 for ac_prog in gawk nawk
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_AWK+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$AWK"; then
4169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_AWK="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4182 done
4183 done
4184 IFS=$as_save_IFS
4188 AWK=$ac_cv_prog_AWK
4189 if test -n "$AWK"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4191 $as_echo "$AWK" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4198 test -n "$AWK" && break
4199 done
4201 req_avail=yes
4202 if test "$AWK" = ""; then
4203 req_avail=no
4205 if test "$AWK" = "no"; then
4206 req_avail=no
4208 if test "$req_avail" = "no"; then
4209 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4211 # Extract the first word of "mmake", so it can be a program name with args.
4212 set dummy mmake; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_MMAKE+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$MMAKE"; then
4219 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_MMAKE="mmake "
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 MMAKE=$ac_cv_prog_MMAKE
4239 if test -n "$MMAKE"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4241 $as_echo "$MMAKE" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4249 # Perform some default variable assignments. Note all of these will be
4250 # Regenerated from the script, so there is no need to cache them.
4252 aros_build_host=$host
4253 aros_host_cpp="$CPP"
4254 aros_host_cc="$CC"
4255 aros_host_cxx="$CXX"
4256 if test "$GCC" = "yes"; then
4257 aros_gcc_ld=`$CC -print-prog-name=ld`
4258 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4259 set dummy `basename $aros_gcc_ld`; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_path_aros_host_ld+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 case $aros_host_ld in
4266 [\\/]* | ?:[\\/]*)
4267 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in `dirname $aros_gcc_ld`
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4286 esac
4288 aros_host_ld=$ac_cv_path_aros_host_ld
4289 if test -n "$aros_host_ld"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4291 $as_echo "$aros_host_ld" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4299 if test "$aros_host_ld" = ""; then
4300 # Extract the first word of "ld", so it can be a program name with args.
4301 set dummy ld; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_path_aros_host_ld+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 case $aros_host_ld in
4308 [\\/]* | ?:[\\/]*)
4309 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4328 esac
4330 aros_host_ld=$ac_cv_path_aros_host_ld
4331 if test -n "$aros_host_ld"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4333 $as_echo "$aros_host_ld" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4341 req_avail=yes
4342 if test "$aros_host_ld" = ""; then
4343 req_avail=no
4345 if test "$aros_host_ld" = "no"; then
4346 req_avail=no
4348 if test "$req_avail" = "no"; then
4349 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4351 aros_host_make="make"
4352 aros_host_cflags="$CFLAGS"
4353 aros_host_cxxflags="$CXXFLAGS"
4354 aros_host_ldflags="$LDFLAGS"
4355 aros_host_debug="-g -O0"
4356 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4357 aros_host_mkargs="--no-print-directory"
4358 aros_host_exe_suffix="$EXEEXT"
4359 aros_host_lib_suffix=""
4361 # Ignore all compliance, AROS ROMs = 0
4362 # KickStart v1.0 = 30
4363 # KickStart v1.3 = 34
4364 # KickStart v2.0 = 37
4365 # KickStart v3.0 = 39
4366 # KickStart v3.1 = 40
4367 # AmigaOS v3.5 = 44
4368 aros_amigaos_compliance=0
4370 for ac_prog in aclocal aclocal19 aclocal-1.9
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -n "$aros_host_aclocal"; then
4380 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_aros_host_aclocal="$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4400 if test -n "$aros_host_aclocal"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4402 $as_echo "$aros_host_aclocal" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 test -n "$aros_host_aclocal" && break
4410 done
4412 for ac_prog in autoconf autoconf259 autoconf253
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$aros_host_autoconf"; then
4422 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_aros_host_autoconf="$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4442 if test -n "$aros_host_autoconf"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4444 $as_echo "$aros_host_autoconf" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$aros_host_autoconf" && break
4452 done
4454 for ac_prog in autoheader autoheader259 autoheader253
4456 # Extract the first word of "$ac_prog", so it can be a program name with args.
4457 set dummy $ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$aros_host_autoheader"; then
4464 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_aros_host_autoheader="$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4484 if test -n "$aros_host_autoheader"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4486 $as_echo "$aros_host_autoheader" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$aros_host_autoheader" && break
4494 done
4496 for ac_prog in automake automake19 automake-1.9
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_prog_aros_host_automake+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 if test -n "$aros_host_automake"; then
4506 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_aros_host_automake="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4519 done
4520 done
4521 IFS=$as_save_IFS
4525 aros_host_automake=$ac_cv_prog_aros_host_automake
4526 if test -n "$aros_host_automake"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4528 $as_echo "$aros_host_automake" >&6; }
4529 else
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$aros_host_automake" && break
4536 done
4539 req_avail=yes
4540 if test "$aros_host_aclocal" = ""; then
4541 req_avail=no
4543 if test "$aros_host_aclocal" = "no"; then
4544 req_avail=no
4546 if test "$req_avail" = "no"; then
4547 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4549 req_avail=yes
4550 if test "$aros_host_automake" = ""; then
4551 req_avail=no
4553 if test "$aros_host_automake" = "no"; then
4554 req_avail=no
4556 if test "$req_avail" = "no"; then
4557 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 case "$aros_host_cc" in
4561 *clang*)
4562 aros_host_cc_pipe=""
4564 *gcc*)
4565 aros_host_cc_pipe="-pipe"
4567 icc)
4568 aros_host_cc_pipe=""
4571 aros_host_cc_pipe=""
4573 esac
4575 aros_kernel_cc_includes=""
4576 aros_target_cc_includes=""
4577 host_cc_elf=yes
4579 # ----------------------------------------------------------------------------------------
4580 # Host-specific defaults
4582 # This is the main host configuration section. It is where the host
4583 # can change the values of any variables it needs to change. We do
4584 # not look at anything that compiles to the target yet, we'll get
4585 # to that later.
4587 case "$host_os" in
4588 aros*)
4589 aros_host_arch="aros"
4590 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4591 case "$host_cpu" in
4592 *i?86*)
4593 aros_host_cpu="i386"
4595 *x86_64*)
4596 aros_host_cpu="x86_64"
4598 *powerpc*)
4599 aros_host_cpu="ppc"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4603 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4604 aros_host_cpu="$host_cpu"
4606 esac
4609 linux*)
4610 aros_host_arch="linux"
4611 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4612 android_build_os="linux-x86"
4613 android_tool="android"
4614 default_android_sdk="/opt/android-sdk-linux_x86"
4615 case "$host_cpu" in
4616 *i?86*)
4617 aros_host_cpu="i386"
4619 *x86_64*)
4620 aros_host_cpu="x86_64"
4622 *m68k*)
4623 aros_host_cpu="m68k"
4625 *powerpc*)
4626 aros_host_cpu="ppc"
4628 *arm*)
4629 aros_host_cpu="arm"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4633 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4634 aros_host_cpu="$host_cpu"
4636 esac
4639 freebsd*)
4640 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4641 aros_host_make="gmake"
4642 aros_host_arch="freebsd"
4643 aros_host_cpu="i386"
4645 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4647 case $host_os in
4648 freebsd[234]*)
4649 aros_object_format="elf_i386"
4653 aros_object_format="elf_i386_fbsd"
4655 esac
4659 darwin*)
4660 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4661 aros_host_arch="darwin"
4662 host_cc_elf=no
4663 if [ -z ${SED+x} ]; then SED="gsed"; fi
4664 android_build_os="darwin-x86"
4665 android_tool="android"
4666 default_android_sdk="/android-sdk-mac_x86"
4667 case "$host_cpu" in
4668 *i?86*)
4669 aros_host_cpu="i386"
4671 *x86_64*)
4672 aros_host_cpu="x86_64"
4674 *powerpc*)
4675 aros_host_cpu="ppc"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4680 aros_host_cpu="$host_cpu"
4682 esac
4684 aros_host_ldflags="$aros_host_ldflags -liconv"
4688 dragonfly*)
4689 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4690 aros_host_make="gmake"
4691 aros_host_arch="dragonfly"
4692 case $host_cpu in
4693 *i?86*)
4694 aros_host_cpu="i386"
4696 *amd64*)
4697 aros_host_cpu="x86_64"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu="$host_cpu"
4704 esac
4707 netbsd*)
4708 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4709 aros_host_make="gmake"
4710 aros_host_arch="netbsd"
4711 case "$host_cpu" in
4712 *i?86*)
4713 aros_host_cpu="i386"
4715 *m68k*)
4716 aros_host_cpu="m68k"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4720 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4721 aros_host_cpu="$host_cpu"
4723 esac
4724 aros_host_lib_suffix=".0.0"
4727 openbsd*)
4728 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4729 aros_host_make="gmake"
4730 aros_host_arch="openbsd"
4731 case "$host_cpu" in
4732 *i?86*)
4733 aros_host_cpu="i386"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4738 aros_host_cpu="$host_cpu"
4740 esac
4743 solaris*)
4744 aros_host_arch="solaris"
4745 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4746 case "$host_cpu" in
4747 *i?86*)
4748 aros_host_cpu="i386"
4750 *sparc*)
4751 aros_host_cpu="sparc"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4755 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4756 aros_host_cpu="$host_cpu"
4758 esac
4761 morphos*)
4762 aros_host_arch="morphos"
4763 aros_host_cpu="ppc"
4764 host_cc_elf=no
4767 amiga*)
4768 aros_host_arch="amiga"
4769 host_cc_elf=no
4770 SORT="/gg/bin/sort"
4771 TEST="/gg/bin/test"
4772 UNIQ="/gg/bin/uniq"
4773 FOR="for"
4774 TOUCH="/gg/bin/touch"
4775 case "$host_cpu" in
4776 *m68k*)
4777 aros_host_cpu="m68k"
4779 *powerpc*)
4780 aros_host_cpu="ppc"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4790 cygwin*)
4791 aros_host_arch="cygwin"
4792 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4793 host_cc_elf=no
4794 android_build_os="windows"
4795 android_tool="android.bat"
4796 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4804 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4805 aros_host_cpu="$host_cpu"
4807 esac
4810 mingw32*)
4811 aros_host_arch="mingw32"
4812 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4813 host_cc_elf=no
4814 android_build_os="windows"
4815 android_tool="android.bat"
4816 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4818 case "$host_cpu" in
4819 *i?86*)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4822 $as_echo_n "checking for Windows native gcc target... " >&6; }
4823 host_cpu=`gcc -dumpmachine`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4825 $as_echo "$host_cpu" >&6; }
4828 esac
4830 case "$host_cpu" in
4831 *i?86*)
4832 aros_host_cpu="i386"
4835 mingw32*)
4836 aros_host_cpu="i386"
4839 *x86_64*)
4840 aros_host_cpu="x86_64"
4841 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4852 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4854 esac
4856 # Extract the first word of "ar", so it can be a program name with args.
4857 set dummy ar; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_aros_host_ar+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$aros_host_ar"; then
4864 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_aros_host_ar="ar cr"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 aros_host_ar=$ac_cv_prog_aros_host_ar
4884 if test -n "$aros_host_ar"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4886 $as_echo "$aros_host_ar" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 req_avail=yes
4894 if test "$aros_host_ar" = ""; then
4895 req_avail=no
4897 if test "$aros_host_ar" = "no"; then
4898 req_avail=no
4900 if test "$req_avail" = "no"; then
4901 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4903 # Extract the first word of "ranlib", so it can be a program name with args.
4904 set dummy ranlib; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$aros_host_ranlib"; then
4911 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_aros_host_ranlib="ranlib "
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4931 if test -n "$aros_host_ranlib"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4933 $as_echo "$aros_host_ranlib" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 req_avail=yes
4941 if test "$aros_host_ranlib" = ""; then
4942 req_avail=no
4944 if test "$aros_host_ranlib" = "no"; then
4945 req_avail=no
4947 if test "$req_avail" = "no"; then
4948 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4950 # Extract the first word of "strip", so it can be a program name with args.
4951 set dummy strip; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_aros_host_strip+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$aros_host_strip"; then
4958 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_aros_host_strip="strip "
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 aros_host_strip=$ac_cv_prog_aros_host_strip
4978 if test -n "$aros_host_strip"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4980 $as_echo "$aros_host_strip" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 req_avail=yes
4988 if test "$aros_host_strip" = ""; then
4989 req_avail=no
4991 if test "$aros_host_strip" = "no"; then
4992 req_avail=no
4994 if test "$req_avail" = "no"; then
4995 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4998 # Extract the first word of "rm", so it can be a program name with args.
4999 set dummy rm; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_RM+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$RM"; then
5006 ac_cv_prog_RM="$RM" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RM="rm -rf"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 RM=$ac_cv_prog_RM
5026 if test -n "$RM"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5028 $as_echo "$RM" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 req_avail=yes
5036 if test "$RM" = ""; then
5037 req_avail=no
5039 if test "$RM" = "no"; then
5040 req_avail=no
5042 if test "$req_avail" = "no"; then
5043 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "cp", so it can be a program name with args.
5046 set dummy cp; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_CP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$CP"; then
5053 ac_cv_prog_CP="$CP" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_CP="cp "
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 CP=$ac_cv_prog_CP
5073 if test -n "$CP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5075 $as_echo "$CP" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 req_avail=yes
5083 if test "$CP" = ""; then
5084 req_avail=no
5086 if test "$CP" = "no"; then
5087 req_avail=no
5089 if test "$req_avail" = "no"; then
5090 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5092 # Extract the first word of "mv", so it can be a program name with args.
5093 set dummy mv; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_MV+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$MV"; then
5100 ac_cv_prog_MV="$MV" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_MV="mv "
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 MV=$ac_cv_prog_MV
5120 if test -n "$MV"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5122 $as_echo "$MV" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5129 req_avail=yes
5130 if test "$MV" = ""; then
5131 req_avail=no
5133 if test "$MV" = "no"; then
5134 req_avail=no
5136 if test "$req_avail" = "no"; then
5137 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5139 # Extract the first word of "echo", so it can be a program name with args.
5140 set dummy echo; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ECHO+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$ECHO"; then
5147 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ECHO="echo "
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 ECHO=$ac_cv_prog_ECHO
5167 if test -n "$ECHO"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5169 $as_echo "$ECHO" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 req_avail=yes
5177 if test "$ECHO" = ""; then
5178 req_avail=no
5180 if test "$ECHO" = "no"; then
5181 req_avail=no
5183 if test "$req_avail" = "no"; then
5184 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "mkdir", so it can be a program name with args.
5187 set dummy mkdir; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_MKDIR+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$MKDIR"; then
5194 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_MKDIR="mkdir -p"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 MKDIR=$ac_cv_prog_MKDIR
5214 if test -n "$MKDIR"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5216 $as_echo "$MKDIR" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 req_avail=yes
5224 if test "$MKDIR" = ""; then
5225 req_avail=no
5227 if test "$MKDIR" = "no"; then
5228 req_avail=no
5230 if test "$req_avail" = "no"; then
5231 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5233 # Extract the first word of "touch", so it can be a program name with args.
5234 set dummy touch; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_TOUCH+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$TOUCH"; then
5241 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_TOUCH="touch "
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5260 TOUCH=$ac_cv_prog_TOUCH
5261 if test -n "$TOUCH"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5263 $as_echo "$TOUCH" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5270 req_avail=yes
5271 if test "$TOUCH" = ""; then
5272 req_avail=no
5274 if test "$TOUCH" = "no"; then
5275 req_avail=no
5277 if test "$req_avail" = "no"; then
5278 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5280 # Extract the first word of "sort", so it can be a program name with args.
5281 set dummy sort; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_SORT+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$SORT"; then
5288 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_SORT="sort "
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5307 SORT=$ac_cv_prog_SORT
5308 if test -n "$SORT"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5310 $as_echo "$SORT" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 req_avail=yes
5318 if test "$SORT" = ""; then
5319 req_avail=no
5321 if test "$SORT" = "no"; then
5322 req_avail=no
5324 if test "$req_avail" = "no"; then
5325 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 # Extract the first word of "uniq", so it can be a program name with args.
5328 set dummy uniq; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_UNIQ+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$UNIQ"; then
5335 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_UNIQ="uniq "
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 UNIQ=$ac_cv_prog_UNIQ
5355 if test -n "$UNIQ"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5357 $as_echo "$UNIQ" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 req_avail=yes
5365 if test "$UNIQ" = ""; then
5366 req_avail=no
5368 if test "$UNIQ" = "no"; then
5369 req_avail=no
5371 if test "$req_avail" = "no"; then
5372 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5374 # Extract the first word of "true", so it can be a program name with args.
5375 set dummy true; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_NOP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$NOP"; then
5382 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_NOP="true "
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 NOP=$ac_cv_prog_NOP
5402 if test -n "$NOP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5404 $as_echo "$NOP" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 req_avail=yes
5412 if test "$NOP" = ""; then
5413 req_avail=no
5415 if test "$NOP" = "no"; then
5416 req_avail=no
5418 if test "$req_avail" = "no"; then
5419 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5421 # Extract the first word of "cat", so it can be a program name with args.
5422 set dummy cat; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_CAT+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$CAT"; then
5429 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CAT="cat "
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5442 done
5443 done
5444 IFS=$as_save_IFS
5448 CAT=$ac_cv_prog_CAT
5449 if test -n "$CAT"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5451 $as_echo "$CAT" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5458 req_avail=yes
5459 if test "$CAT" = ""; then
5460 req_avail=no
5462 if test "$CAT" = "no"; then
5463 req_avail=no
5465 if test "$req_avail" = "no"; then
5466 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "bison", so it can be a program name with args.
5469 set dummy bison; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_BISON+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$BISON"; then
5476 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_BISON="bison "
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5491 IFS=$as_save_IFS
5495 BISON=$ac_cv_prog_BISON
5496 if test -n "$BISON"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5498 $as_echo "$BISON" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 req_avail=yes
5506 if test "$BISON" = ""; then
5507 req_avail=no
5509 if test "$BISON" = "no"; then
5510 req_avail=no
5512 if test "$req_avail" = "no"; then
5513 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5515 # Extract the first word of "flex", so it can be a program name with args.
5516 set dummy flex; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_FLEX+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$FLEX"; then
5523 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_FLEX="flex "
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 FLEX=$ac_cv_prog_FLEX
5543 if test -n "$FLEX"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5545 $as_echo "$FLEX" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 req_avail=yes
5553 if test "$FLEX" = ""; then
5554 req_avail=no
5556 if test "$FLEX" = "no"; then
5557 req_avail=no
5559 if test "$req_avail" = "no"; then
5560 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5562 # Extract the first word of "pngtopnm", so it can be a program name with args.
5563 set dummy pngtopnm; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -n "$PNGTOPNM"; then
5570 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_PNGTOPNM="pngtopnm "
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5583 done
5584 done
5585 IFS=$as_save_IFS
5589 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5590 if test -n "$PNGTOPNM"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5592 $as_echo "$PNGTOPNM" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 req_avail=yes
5600 if test "$PNGTOPNM" = ""; then
5601 req_avail=no
5603 if test "$PNGTOPNM" = "no"; then
5604 req_avail=no
5606 if test "$req_avail" = "no"; then
5607 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5609 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5610 set dummy ppmtoilbm; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$PPMTOILBM"; then
5617 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5632 IFS=$as_save_IFS
5636 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5637 if test -n "$PPMTOILBM"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5639 $as_echo "$PPMTOILBM" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5646 req_avail=yes
5647 if test "$PPMTOILBM" = ""; then
5648 req_avail=no
5650 if test "$PPMTOILBM" = "no"; then
5651 req_avail=no
5653 if test "$req_avail" = "no"; then
5654 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5656 # Extract the first word of "sed", so it can be a program name with args.
5657 set dummy sed; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_SED+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$SED"; then
5664 ac_cv_prog_SED="$SED" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_SED="sed "
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 SED=$ac_cv_prog_SED
5684 if test -n "$SED"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5686 $as_echo "$SED" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5693 req_avail=yes
5694 if test "$SED" = ""; then
5695 req_avail=no
5697 if test "$SED" = "no"; then
5698 req_avail=no
5700 if test "$req_avail" = "no"; then
5701 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5703 # Extract the first word of "chmod", so it can be a program name with args.
5704 set dummy chmod; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_CHMOD+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$CHMOD"; then
5711 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CHMOD="chmod "
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5726 IFS=$as_save_IFS
5730 CHMOD=$ac_cv_prog_CHMOD
5731 if test -n "$CHMOD"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5733 $as_echo "$CHMOD" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 req_avail=yes
5741 if test "$CHMOD" = ""; then
5742 req_avail=no
5744 if test "$CHMOD" = "no"; then
5745 req_avail=no
5747 if test "$req_avail" = "no"; then
5748 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5750 # Extract the first word of "patch", so it can be a program name with args.
5751 set dummy patch; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_PATCH+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$PATCH"; then
5758 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_PATCH="patch "
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5777 PATCH=$ac_cv_prog_PATCH
5778 if test -n "$PATCH"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5780 $as_echo "$PATCH" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5787 req_avail=yes
5788 if test "$PATCH" = ""; then
5789 req_avail=no
5791 if test "$PATCH" = "no"; then
5792 req_avail=no
5794 if test "$req_avail" = "no"; then
5795 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5804 if test -n "$PYTHON"; then
5805 # If the user set $PYTHON, use it and don't search something else.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5807 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5808 prog="import sys
5809 # split strings by '.' and convert to numeric. Append some zeros
5810 # because we need at least 4 digits for the hex conversion.
5811 # map returns an iterator in Python 3.0 and a list in 2.x
5812 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5813 minverhex = 0
5814 # xrange is not present in Python 3.0 and range returns an iterator
5815 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5816 sys.exit(sys.hexversion < minverhex)"
5817 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5818 ($PYTHON -c "$prog") >&5 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; then :
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5829 am_display_PYTHON=$PYTHON
5830 else
5831 # Otherwise, try each interpreter until we find one that satisfies
5832 # VERSION.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5834 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5835 if ${am_cv_pathless_PYTHON+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5839 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
5840 test "$am_cv_pathless_PYTHON" = none && break
5841 prog="import sys
5842 # split strings by '.' and convert to numeric. Append some zeros
5843 # because we need at least 4 digits for the hex conversion.
5844 # map returns an iterator in Python 3.0 and a list in 2.x
5845 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5846 minverhex = 0
5847 # xrange is not present in Python 3.0 and range returns an iterator
5848 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5849 sys.exit(sys.hexversion < minverhex)"
5850 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5851 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then :
5855 break
5857 done
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5860 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5861 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5862 if test "$am_cv_pathless_PYTHON" = none; then
5863 PYTHON=:
5864 else
5865 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5866 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_PYTHON+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 case $PYTHON in
5873 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5888 done
5889 done
5890 IFS=$as_save_IFS
5893 esac
5895 PYTHON=$ac_cv_path_PYTHON
5896 if test -n "$PYTHON"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5898 $as_echo "$PYTHON" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 am_display_PYTHON=$am_cv_pathless_PYTHON
5910 if test "$PYTHON" = :; then
5911 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5912 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5916 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5917 if ${am_cv_python_version+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5923 $as_echo "$am_cv_python_version" >&6; }
5924 PYTHON_VERSION=$am_cv_python_version
5928 PYTHON_PREFIX='${prefix}'
5930 PYTHON_EXEC_PREFIX='${exec_prefix}'
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5935 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5936 if ${am_cv_python_platform+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5942 $as_echo "$am_cv_python_platform" >&6; }
5943 PYTHON_PLATFORM=$am_cv_python_platform
5946 # Just factor out some code duplication.
5947 am_python_setup_sysconfig="\
5948 import sys
5949 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5950 # with python 3.x. See automake bug#10227.
5951 try:
5952 import sysconfig
5953 except ImportError:
5954 can_use_sysconfig = 0
5955 else:
5956 can_use_sysconfig = 1
5957 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5958 # <https://github.com/pypa/virtualenv/issues/118>
5959 try:
5960 from platform import python_implementation
5961 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5962 can_use_sysconfig = 0
5963 except ImportError:
5964 pass"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5968 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5969 if ${am_cv_python_pythondir+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test "x$prefix" = xNONE
5973 then
5974 am_py_prefix=$ac_default_prefix
5975 else
5976 am_py_prefix=$prefix
5978 am_cv_python_pythondir=`$PYTHON -c "
5979 $am_python_setup_sysconfig
5980 if can_use_sysconfig:
5981 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5982 else:
5983 from distutils import sysconfig
5984 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5985 sys.stdout.write(sitedir)"`
5986 case $am_cv_python_pythondir in
5987 $am_py_prefix*)
5988 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5989 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5992 case $am_py_prefix in
5993 /usr|/System*) ;;
5995 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5997 esac
5999 esac
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6003 $as_echo "$am_cv_python_pythondir" >&6; }
6004 pythondir=$am_cv_python_pythondir
6008 pkgpythondir=\${pythondir}/$PACKAGE
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6012 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6013 if ${am_cv_python_pyexecdir+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test "x$exec_prefix" = xNONE
6017 then
6018 am_py_exec_prefix=$am_py_prefix
6019 else
6020 am_py_exec_prefix=$exec_prefix
6022 am_cv_python_pyexecdir=`$PYTHON -c "
6023 $am_python_setup_sysconfig
6024 if can_use_sysconfig:
6025 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6026 else:
6027 from distutils import sysconfig
6028 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6029 sys.stdout.write(sitedir)"`
6030 case $am_cv_python_pyexecdir in
6031 $am_py_exec_prefix*)
6032 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6033 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6036 case $am_py_exec_prefix in
6037 /usr|/System*) ;;
6039 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6041 esac
6043 esac
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6047 $as_echo "$am_cv_python_pyexecdir" >&6; }
6048 pyexecdir=$am_cv_python_pyexecdir
6052 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng16" >&5
6062 $as_echo_n "checking for png_read_png in -lpng16... " >&6; }
6063 if ${ac_cv_lib_png16_png_read_png+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-lpng16 $LIBS"
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 /* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 char png_read_png ();
6079 main ()
6081 return png_read_png ();
6083 return 0;
6085 _ACEOF
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 ac_cv_lib_png16_png_read_png=yes
6088 else
6089 ac_cv_lib_png16_png_read_png=no
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_read_png" >&5
6096 $as_echo "$ac_cv_lib_png16_png_read_png" >&6; }
6097 if test "x$ac_cv_lib_png16_png_read_png" = xyes; then :
6098 libpng="png16"
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6101 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6102 if ${ac_cv_lib_png_png_read_png+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lpng $LIBS"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6110 /* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
6113 #ifdef __cplusplus
6114 extern "C"
6115 #endif
6116 char png_read_png ();
6118 main ()
6120 return png_read_png ();
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_lib_png_png_read_png=yes
6127 else
6128 ac_cv_lib_png_png_read_png=no
6130 rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6135 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6136 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6137 libpng="png"
6138 else
6139 libpng="no"
6144 req_avail=yes
6145 if test "$libpng" = ""; then
6146 req_avail=no
6148 if test "$libpng" = "no"; then
6149 req_avail=no
6151 if test "$req_avail" = "no"; then
6152 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6156 FOR=for
6158 IF=if
6160 TEST=test
6162 CMP=cmp
6166 # Check for some includes for the X11 HIDD and the kernel
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6170 if ${ac_cv_path_GREP+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -z "$GREP"; then
6174 ac_path_GREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in grep ggrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6184 as_fn_executable_p "$ac_path_GREP" || continue
6185 # Check for GNU ac_path_GREP and select it if it is found.
6186 # Check for GNU $ac_path_GREP
6187 case `"$ac_path_GREP" --version 2>&1` in
6188 *GNU*)
6189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6191 ac_count=0
6192 $as_echo_n 0123456789 >"conftest.in"
6193 while :
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'GREP' >> "conftest.nl"
6199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_GREP="$ac_path_GREP"
6205 ac_path_GREP_max=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6213 $ac_path_GREP_found && break 3
6214 done
6215 done
6216 done
6217 IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_GREP"; then
6219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6221 else
6222 ac_cv_path_GREP=$GREP
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6227 $as_echo "$ac_cv_path_GREP" >&6; }
6228 GREP="$ac_cv_path_GREP"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6232 $as_echo_n "checking for egrep... " >&6; }
6233 if ${ac_cv_path_EGREP+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6237 then ac_cv_path_EGREP="$GREP -E"
6238 else
6239 if test -z "$EGREP"; then
6240 ac_path_EGREP_found=false
6241 # Loop through the user's path and test for each of PROGNAME-LIST
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_prog in egrep; do
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6250 as_fn_executable_p "$ac_path_EGREP" || continue
6251 # Check for GNU ac_path_EGREP and select it if it is found.
6252 # Check for GNU $ac_path_EGREP
6253 case `"$ac_path_EGREP" --version 2>&1` in
6254 *GNU*)
6255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6257 ac_count=0
6258 $as_echo_n 0123456789 >"conftest.in"
6259 while :
6261 cat "conftest.in" "conftest.in" >"conftest.tmp"
6262 mv "conftest.tmp" "conftest.in"
6263 cp "conftest.in" "conftest.nl"
6264 $as_echo 'EGREP' >> "conftest.nl"
6265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6267 as_fn_arith $ac_count + 1 && ac_count=$as_val
6268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6269 # Best one so far, save it but keep looking for a better one
6270 ac_cv_path_EGREP="$ac_path_EGREP"
6271 ac_path_EGREP_max=$ac_count
6273 # 10*(2^10) chars as input seems more than enough
6274 test $ac_count -gt 10 && break
6275 done
6276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6277 esac
6279 $ac_path_EGREP_found && break 3
6280 done
6281 done
6282 done
6283 IFS=$as_save_IFS
6284 if test -z "$ac_cv_path_EGREP"; then
6285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6287 else
6288 ac_cv_path_EGREP=$EGREP
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6294 $as_echo "$ac_cv_path_EGREP" >&6; }
6295 EGREP="$ac_cv_path_EGREP"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6299 $as_echo_n "checking for ANSI C header files... " >&6; }
6300 if ${ac_cv_header_stdc+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <stdlib.h>
6306 #include <stdarg.h>
6307 #include <string.h>
6308 #include <float.h>
6311 main ()
6315 return 0;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 ac_cv_header_stdc=yes
6320 else
6321 ac_cv_header_stdc=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 if test $ac_cv_header_stdc = yes; then
6326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <string.h>
6331 _ACEOF
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "memchr" >/dev/null 2>&1; then :
6335 else
6336 ac_cv_header_stdc=no
6338 rm -f conftest*
6342 if test $ac_cv_header_stdc = yes; then
6343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 #include <stdlib.h>
6348 _ACEOF
6349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6350 $EGREP "free" >/dev/null 2>&1; then :
6352 else
6353 ac_cv_header_stdc=no
6355 rm -f conftest*
6359 if test $ac_cv_header_stdc = yes; then
6360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6361 if test "$cross_compiling" = yes; then :
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <ctype.h>
6367 #include <stdlib.h>
6368 #if ((' ' & 0x0FF) == 0x020)
6369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371 #else
6372 # define ISLOWER(c) \
6373 (('a' <= (c) && (c) <= 'i') \
6374 || ('j' <= (c) && (c) <= 'r') \
6375 || ('s' <= (c) && (c) <= 'z'))
6376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377 #endif
6379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 main ()
6383 int i;
6384 for (i = 0; i < 256; i++)
6385 if (XOR (islower (i), ISLOWER (i))
6386 || toupper (i) != TOUPPER (i))
6387 return 2;
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_run "$LINENO"; then :
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6397 conftest.$ac_objext conftest.beam conftest.$ac_ext
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6403 $as_echo "$ac_cv_header_stdc" >&6; }
6404 if test $ac_cv_header_stdc = yes; then
6406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6412 inttypes.h stdint.h unistd.h
6413 do :
6414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6418 cat >>confdefs.h <<_ACEOF
6419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420 _ACEOF
6424 done
6427 for ac_header in sys/ipc.h sys/shm.h \
6428 sys/mmap.h sys/mman.h sysexits.h \
6429 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6431 do :
6432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6435 cat >>confdefs.h <<_ACEOF
6436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6444 for ac_header in sys/mount.h
6445 do :
6446 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6448 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_SYS_MOUNT_H 1
6451 _ACEOF
6455 done
6458 ac_header_dirent=no
6459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6460 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6462 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6463 if eval \${$as_ac_Header+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6469 #include <$ac_hdr>
6472 main ()
6474 if ((DIR *) 0)
6475 return 0;
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_ac_Header=yes"
6482 else
6483 eval "$as_ac_Header=no"
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_ac_Header
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6493 _ACEOF
6495 ac_header_dirent=$ac_hdr; break
6498 done
6499 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6500 if test $ac_header_dirent = dirent.h; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6502 $as_echo_n "checking for library containing opendir... " >&6; }
6503 if ${ac_cv_search_opendir+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 ac_func_search_save_LIBS=$LIBS
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6513 #ifdef __cplusplus
6514 extern "C"
6515 #endif
6516 char opendir ();
6518 main ()
6520 return opendir ();
6522 return 0;
6524 _ACEOF
6525 for ac_lib in '' dir; do
6526 if test -z "$ac_lib"; then
6527 ac_res="none required"
6528 else
6529 ac_res=-l$ac_lib
6530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 ac_cv_search_opendir=$ac_res
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext
6537 if ${ac_cv_search_opendir+:} false; then :
6538 break
6540 done
6541 if ${ac_cv_search_opendir+:} false; then :
6543 else
6544 ac_cv_search_opendir=no
6546 rm conftest.$ac_ext
6547 LIBS=$ac_func_search_save_LIBS
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6550 $as_echo "$ac_cv_search_opendir" >&6; }
6551 ac_res=$ac_cv_search_opendir
6552 if test "$ac_res" != no; then :
6553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6559 $as_echo_n "checking for library containing opendir... " >&6; }
6560 if ${ac_cv_search_opendir+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_func_search_save_LIBS=$LIBS
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6570 #ifdef __cplusplus
6571 extern "C"
6572 #endif
6573 char opendir ();
6575 main ()
6577 return opendir ();
6579 return 0;
6581 _ACEOF
6582 for ac_lib in '' x; do
6583 if test -z "$ac_lib"; then
6584 ac_res="none required"
6585 else
6586 ac_res=-l$ac_lib
6587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_search_opendir=$ac_res
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext
6594 if ${ac_cv_search_opendir+:} false; then :
6595 break
6597 done
6598 if ${ac_cv_search_opendir+:} false; then :
6600 else
6601 ac_cv_search_opendir=no
6603 rm conftest.$ac_ext
6604 LIBS=$ac_func_search_save_LIBS
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6607 $as_echo "$ac_cv_search_opendir" >&6; }
6608 ac_res=$ac_cv_search_opendir
6609 if test "$ac_res" != no; then :
6610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6617 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6618 if ${ac_cv_header_stat_broken+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <sys/stat.h>
6626 #if defined S_ISBLK && defined S_IFDIR
6627 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6628 #endif
6630 #if defined S_ISBLK && defined S_IFCHR
6631 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6632 #endif
6634 #if defined S_ISLNK && defined S_IFREG
6635 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6636 #endif
6638 #if defined S_ISSOCK && defined S_IFREG
6639 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6640 #endif
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 ac_cv_header_stat_broken=no
6645 else
6646 ac_cv_header_stat_broken=yes
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6651 $as_echo "$ac_cv_header_stat_broken" >&6; }
6652 if test $ac_cv_header_stat_broken = yes; then
6654 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6659 $as_echo_n "checking for ANSI C header files... " >&6; }
6660 if ${ac_cv_header_stdc+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <stdlib.h>
6666 #include <stdarg.h>
6667 #include <string.h>
6668 #include <float.h>
6671 main ()
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_header_stdc=yes
6680 else
6681 ac_cv_header_stdc=no
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 if test $ac_cv_header_stdc = yes; then
6686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <string.h>
6691 _ACEOF
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "memchr" >/dev/null 2>&1; then :
6695 else
6696 ac_cv_header_stdc=no
6698 rm -f conftest*
6702 if test $ac_cv_header_stdc = yes; then
6703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <stdlib.h>
6708 _ACEOF
6709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6710 $EGREP "free" >/dev/null 2>&1; then :
6712 else
6713 ac_cv_header_stdc=no
6715 rm -f conftest*
6719 if test $ac_cv_header_stdc = yes; then
6720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6721 if test "$cross_compiling" = yes; then :
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 #include <ctype.h>
6727 #include <stdlib.h>
6728 #if ((' ' & 0x0FF) == 0x020)
6729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6731 #else
6732 # define ISLOWER(c) \
6733 (('a' <= (c) && (c) <= 'i') \
6734 || ('j' <= (c) && (c) <= 'r') \
6735 || ('s' <= (c) && (c) <= 'z'))
6736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6737 #endif
6739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6741 main ()
6743 int i;
6744 for (i = 0; i < 256; i++)
6745 if (XOR (islower (i), ISLOWER (i))
6746 || toupper (i) != TOUPPER (i))
6747 return 2;
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_run "$LINENO"; then :
6753 else
6754 ac_cv_header_stdc=no
6756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6757 conftest.$ac_objext conftest.beam conftest.$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6763 $as_echo "$ac_cv_header_stdc" >&6; }
6764 if test $ac_cv_header_stdc = yes; then
6766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6771 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6772 if ${ac_cv_header_sys_wait_h+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6778 #include <sys/wait.h>
6779 #ifndef WEXITSTATUS
6780 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6781 #endif
6782 #ifndef WIFEXITED
6783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6784 #endif
6787 main ()
6789 int s;
6790 wait (&s);
6791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6793 return 0;
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 ac_cv_header_sys_wait_h=yes
6798 else
6799 ac_cv_header_sys_wait_h=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6804 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6805 if test $ac_cv_header_sys_wait_h = yes; then
6807 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6812 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6813 if ${ac_cv_header_time+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6820 #include <time.h>
6823 main ()
6825 if ((struct tm *) 0)
6826 return 0;
6828 return 0;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_header_time=yes
6833 else
6834 ac_cv_header_time=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6839 $as_echo "$ac_cv_header_time" >&6; }
6840 if test $ac_cv_header_time = yes; then
6842 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6846 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6847 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6851 _ACEOF
6854 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6859 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6860 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6862 cat >>confdefs.h <<_ACEOF
6863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6864 _ACEOF
6867 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6869 else
6870 case " $LIBOBJS " in
6871 *" fileblocks.$ac_objext "* ) ;;
6872 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6874 esac
6879 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6880 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_STRUCT_STAT_ST_RDEV 1
6884 _ACEOF
6887 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6893 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6894 if ${ac_cv_struct_tm+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6900 #include <time.h>
6903 main ()
6905 struct tm tm;
6906 int *p = &tm.tm_sec;
6907 return !p;
6909 return 0;
6911 _ACEOF
6912 if ac_fn_c_try_compile "$LINENO"; then :
6913 ac_cv_struct_tm=time.h
6914 else
6915 ac_cv_struct_tm=sys/time.h
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6920 $as_echo "$ac_cv_struct_tm" >&6; }
6921 if test $ac_cv_struct_tm = sys/time.h; then
6923 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6927 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6928 #include <$ac_cv_struct_tm>
6931 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_STRUCT_TM_TM_ZONE 1
6935 _ACEOF
6940 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6942 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6944 else
6945 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6947 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6948 ac_have_decl=1
6949 else
6950 ac_have_decl=0
6953 cat >>confdefs.h <<_ACEOF
6954 #define HAVE_DECL_TZNAME $ac_have_decl
6955 _ACEOF
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6958 $as_echo_n "checking for tzname... " >&6; }
6959 if ${ac_cv_var_tzname+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 #include <time.h>
6965 #if !HAVE_DECL_TZNAME
6966 extern char *tzname[];
6967 #endif
6970 main ()
6972 return tzname[0][0];
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_var_tzname=yes
6979 else
6980 ac_cv_var_tzname=no
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6986 $as_echo "$ac_cv_var_tzname" >&6; }
6987 if test $ac_cv_var_tzname = yes; then
6989 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6994 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6995 if test "x$ac_cv_type_off_t" = xyes; then :
6997 else
6999 cat >>confdefs.h <<_ACEOF
7000 #define off_t long int
7001 _ACEOF
7005 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7006 if test "x$ac_cv_type_pid_t" = xyes; then :
7008 else
7010 cat >>confdefs.h <<_ACEOF
7011 #define pid_t int
7012 _ACEOF
7016 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7017 if test "x$ac_cv_type_size_t" = xyes; then :
7019 else
7021 cat >>confdefs.h <<_ACEOF
7022 #define size_t unsigned int
7023 _ACEOF
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7028 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7029 if ${ac_cv_type_uid_t+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <sys/types.h>
7036 _ACEOF
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "uid_t" >/dev/null 2>&1; then :
7039 ac_cv_type_uid_t=yes
7040 else
7041 ac_cv_type_uid_t=no
7043 rm -f conftest*
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7047 $as_echo "$ac_cv_type_uid_t" >&6; }
7048 if test $ac_cv_type_uid_t = no; then
7050 $as_echo "#define uid_t int" >>confdefs.h
7053 $as_echo "#define gid_t int" >>confdefs.h
7058 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7059 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7063 _ACEOF
7069 # Look for some functions
7070 for ac_func in getpagesize kqueue statfs statvfs \
7071 clone kse_create rfork_thread thr_create sa_register \
7072 getcontext makecontext setcontext sigaltstack swapcontext
7073 do :
7074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7079 _ACEOF
7082 done
7088 for ac_header in $ac_header_list
7089 do :
7090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7094 cat >>confdefs.h <<_ACEOF
7095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096 _ACEOF
7100 done
7109 for ac_func in getpagesize
7110 do :
7111 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7112 if test "x$ac_cv_func_getpagesize" = xyes; then :
7113 cat >>confdefs.h <<_ACEOF
7114 #define HAVE_GETPAGESIZE 1
7115 _ACEOF
7118 done
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7121 $as_echo_n "checking for working mmap... " >&6; }
7122 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test "$cross_compiling" = yes; then :
7126 ac_cv_func_mmap_fixed_mapped=no
7127 else
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 $ac_includes_default
7131 /* malloc might have been renamed as rpl_malloc. */
7132 #undef malloc
7134 /* Thanks to Mike Haertel and Jim Avera for this test.
7135 Here is a matrix of mmap possibilities:
7136 mmap private not fixed
7137 mmap private fixed at somewhere currently unmapped
7138 mmap private fixed at somewhere already mapped
7139 mmap shared not fixed
7140 mmap shared fixed at somewhere currently unmapped
7141 mmap shared fixed at somewhere already mapped
7142 For private mappings, we should verify that changes cannot be read()
7143 back from the file, nor mmap's back from the file at a different
7144 address. (There have been systems where private was not correctly
7145 implemented like the infamous i386 svr4.0, and systems where the
7146 VM page cache was not coherent with the file system buffer cache
7147 like early versions of FreeBSD and possibly contemporary NetBSD.)
7148 For shared mappings, we should conversely verify that changes get
7149 propagated back to all the places they're supposed to be.
7151 Grep wants private fixed already mapped.
7152 The main things grep needs to know about mmap are:
7153 * does it exist and is it safe to write into the mmap'd area
7154 * how to use it (BSD variants) */
7156 #include <fcntl.h>
7157 #include <sys/mman.h>
7159 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7160 char *malloc ();
7161 #endif
7163 /* This mess was copied from the GNU getpagesize.h. */
7164 #ifndef HAVE_GETPAGESIZE
7165 # ifdef _SC_PAGESIZE
7166 # define getpagesize() sysconf(_SC_PAGESIZE)
7167 # else /* no _SC_PAGESIZE */
7168 # ifdef HAVE_SYS_PARAM_H
7169 # include <sys/param.h>
7170 # ifdef EXEC_PAGESIZE
7171 # define getpagesize() EXEC_PAGESIZE
7172 # else /* no EXEC_PAGESIZE */
7173 # ifdef NBPG
7174 # define getpagesize() NBPG * CLSIZE
7175 # ifndef CLSIZE
7176 # define CLSIZE 1
7177 # endif /* no CLSIZE */
7178 # else /* no NBPG */
7179 # ifdef NBPC
7180 # define getpagesize() NBPC
7181 # else /* no NBPC */
7182 # ifdef PAGESIZE
7183 # define getpagesize() PAGESIZE
7184 # endif /* PAGESIZE */
7185 # endif /* no NBPC */
7186 # endif /* no NBPG */
7187 # endif /* no EXEC_PAGESIZE */
7188 # else /* no HAVE_SYS_PARAM_H */
7189 # define getpagesize() 8192 /* punt totally */
7190 # endif /* no HAVE_SYS_PARAM_H */
7191 # endif /* no _SC_PAGESIZE */
7193 #endif /* no HAVE_GETPAGESIZE */
7196 main ()
7198 char *data, *data2, *data3;
7199 const char *cdata2;
7200 int i, pagesize;
7201 int fd, fd2;
7203 pagesize = getpagesize ();
7205 /* First, make a file with some known garbage in it. */
7206 data = (char *) malloc (pagesize);
7207 if (!data)
7208 return 1;
7209 for (i = 0; i < pagesize; ++i)
7210 *(data + i) = rand ();
7211 umask (0);
7212 fd = creat ("conftest.mmap", 0600);
7213 if (fd < 0)
7214 return 2;
7215 if (write (fd, data, pagesize) != pagesize)
7216 return 3;
7217 close (fd);
7219 /* Next, check that the tail of a page is zero-filled. File must have
7220 non-zero length, otherwise we risk SIGBUS for entire page. */
7221 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7222 if (fd2 < 0)
7223 return 4;
7224 cdata2 = "";
7225 if (write (fd2, cdata2, 1) != 1)
7226 return 5;
7227 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7228 if (data2 == MAP_FAILED)
7229 return 6;
7230 for (i = 0; i < pagesize; ++i)
7231 if (*(data2 + i))
7232 return 7;
7233 close (fd2);
7234 if (munmap (data2, pagesize))
7235 return 8;
7237 /* Next, try to mmap the file at a fixed address which already has
7238 something else allocated at it. If we can, also make sure that
7239 we see the same garbage. */
7240 fd = open ("conftest.mmap", O_RDWR);
7241 if (fd < 0)
7242 return 9;
7243 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7244 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7245 return 10;
7246 for (i = 0; i < pagesize; ++i)
7247 if (*(data + i) != *(data2 + i))
7248 return 11;
7250 /* Finally, make sure that changes to the mapped area do not
7251 percolate back to the file as seen by read(). (This is a bug on
7252 some variants of i386 svr4.0.) */
7253 for (i = 0; i < pagesize; ++i)
7254 *(data2 + i) = *(data2 + i) + 1;
7255 data3 = (char *) malloc (pagesize);
7256 if (!data3)
7257 return 12;
7258 if (read (fd, data3, pagesize) != pagesize)
7259 return 13;
7260 for (i = 0; i < pagesize; ++i)
7261 if (*(data + i) != *(data3 + i))
7262 return 14;
7263 close (fd);
7264 return 0;
7266 _ACEOF
7267 if ac_fn_c_try_run "$LINENO"; then :
7268 ac_cv_func_mmap_fixed_mapped=yes
7269 else
7270 ac_cv_func_mmap_fixed_mapped=no
7272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7273 conftest.$ac_objext conftest.beam conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7278 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7279 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7281 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7284 rm -f conftest.mmap conftest.txt
7287 #-----------------------------------------------------------------------------
7290 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7291 # it switched on by default, and we use the host compiler, so it compiles AROS
7292 # code with this enabled resulting in link failures as we don't have support
7293 # for it.
7295 # We use two methods to disable it. For the host compiler (used to compile
7296 # some hosted modules), we test to see if the compiler supports stack
7297 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7298 # work on all platforms.
7300 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7301 # (this is done unconditionally, as it should have no effect on compilers
7302 # without the stack protection feature). This may be specific to the way that
7303 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7304 # strong enough to disable it in a generic way though, so we'll live with it
7305 # until another vendor ships GCC with it enabled in a different way, and deal
7306 # with it then.
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7310 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7311 save_cflags="$CFLAGS"
7312 CFLAGS="$CFLAGS -fno-stack-protector"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7317 main ()
7321 return 0;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 use_no_stack_protector="yes"
7326 else
7327 use_no_stack_protector="no"
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7331 $as_echo "$use_no_stack_protector" >&6; }
7332 if test "x-$use_no_stack_protector" = "x-yes" ; then
7333 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7335 CFLAGS="$save_cflags"
7337 #-----------------------------------------------------------------------------
7339 # Disable pointer-signedness warnings if the compiler recognises the option
7340 # (this only works for the host compiler at the moment)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7343 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7344 save_cflags="$CFLAGS"
7345 CFLAGS="$CFLAGS -Wno-pointer-sign"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 main ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 use_no_sign_warning="yes"
7359 else
7360 use_no_sign_warning="no"
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7364 $as_echo "$use_no_sign_warning" >&6; }
7365 if test "x-$use_no_sign_warning" = "x-yes" ; then
7366 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7368 CFLAGS="$save_cflags"
7370 #-----------------------------------------------------------------------------
7372 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7375 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7376 save_cflags="$CFLAGS"
7377 CFLAGS="$CFLAGS -fgnu89-inline"
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7382 main ()
7386 return 0;
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"; then :
7390 use_gnu89_inline="yes"
7391 else
7392 use_gnu89_inline="no"
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7396 $as_echo "$use_gnu89_inline" >&6; }
7397 if test "x-$use_gnu89_inline" = "x-yes" ; then
7398 gnu89_inline="-fgnu89-inline"
7400 CFLAGS="$save_cflags"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7403 $as_echo "$as_me: Performing target configuration..." >&6;}
7406 aros_nowarn_flags="NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7408 toolchain_needs_sysroot=no
7410 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7411 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7412 aros_config_ldflags=""
7414 aros_shared_default=yes
7416 aros_shared_cflags="-fPIC"
7417 aros_shared_aflags=""
7418 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7419 aros_kernel_ldflags="-Wl,-rpath,./lib"
7421 aros_kernel_ar_flags="cr"
7422 aros_target_ar_flags="cr"
7423 aros_target_nm_flags="-C -ul"
7424 aros_target_strip_flags="--strip-unneeded -R.comment"
7426 aros_compiler_libs=
7427 aros_arch_libs=
7429 aros_target_genmap="-Wl,-Map -Xlinker"
7431 # Native flavour stuff
7432 aros_serial_debug="0"
7434 # Palm native flavour stuff
7435 aros_palm_debug_hack="0"
7437 # Unix flavour stuff
7438 aros_nesting_supervisor="0"
7440 # Collect-aros stuff: "-ius" to ignore undefined symbols
7441 ignore_undefined_symbols=""
7443 # Check for X11 by default
7444 need_x11="auto"
7446 host_x_gfx=no
7447 host_sdl_gfx=no
7448 host_android_gfx=no
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7452 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7454 # Check whether --with-toolchain was given.
7455 if test "${with_toolchain+set}" = set; then :
7456 withval=$with_toolchain; aros_toolchain="$withval"
7457 else
7458 aros_toolchain="gnu"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7462 $as_echo "$aros_toolchain" >&6; }
7464 case "$aros_toolchain" in
7465 *llvm*)
7466 # toolchain_needs_sysroot=yes
7467 toolchain_c_compiler="clang"
7468 toolchain_cxx_compiler="clang++"
7469 toolchain_cpp_preprocessor="clang -E"
7470 toolchain_ld="lld"
7471 toolchain_as="llvm-as"
7472 toolchain_ar="llvm-ar"
7473 toolchain_ranlib="llvm-ranlib"
7474 toolchain_nm="llvm-nm"
7475 toolchain_strip="true"
7476 toolchain_objcopy="llvm-objcopy"
7477 toolchain_objdump="llvm-objdump"
7479 *gnu*)
7480 toolchain_c_compiler="gcc"
7481 toolchain_cxx_compiler="g++"
7482 toolchain_cpp_preprocessor="cpp"
7483 toolchain_ld="ld"
7484 toolchain_as="as"
7485 toolchain_ar="ar"
7486 toolchain_ranlib="ranlib"
7487 toolchain_nm="nm"
7488 toolchain_strip="strip"
7489 toolchain_objcopy="objcopy"
7490 toolchain_objdump="objdump"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7494 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7495 toolchain_c_compiler="cc"
7496 toolchain_cxx_compiler="c++"
7497 toolchain_cpp_preprocessor="cpp"
7498 toolchain_ld="ld"
7499 toolchain_as="as"
7500 toolchain_ar="ar"
7501 toolchain_ranlib="ranlib"
7502 toolchain_nm="nm"
7503 toolchain_strip="strip"
7504 toolchain_objcopy="objcopy"
7505 toolchain_objdump="objdump"
7507 esac
7509 #-----------------------------------------------------------------------------
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7512 $as_echo_n "checking which type of build to do... " >&6; }
7513 # Check whether --enable-build_type was given.
7514 if test "${enable_build_type+set}" = set; then :
7515 enableval=$enable_build_type; build_type=$enableval
7516 else
7517 build_type="personal"
7521 if test "$build_type" = "nightly"; then
7522 build_type_string="NIGHTLY"
7523 elif test "$build_type" = "snapshot"; then
7524 build_type_string="SNAPSHOT"
7525 elif test "$build_type" = "milestone"; then
7526 build_type_string="MILESTONE"
7527 elif test "$build_type" = "release"; then
7528 build_type_string="RELEASE"
7529 else
7530 build_type_string="PERSONAL"
7531 build_type="personal"
7534 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7537 $as_echo "$build_type" >&6; }
7539 #-----------------------------------------------------------------------------
7540 all_debug_types="messages stack modules mungwall symbols"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7543 $as_echo_n "checking which debug types to enable... " >&6; }
7544 # Check whether --enable-debug was given.
7545 if test "${enable_debug+set}" = set; then :
7546 enableval=$enable_debug; debug="$enableval"
7547 else
7548 debug=""
7552 if test "$debug" = "" -o "$debug" = "no"; then
7553 debug="none"
7554 elif test "$debug" = "yes"; then
7555 debug="all"
7558 if test "$debug" = "all" ; then
7559 debug="messages stack modules symbols"
7560 for d in $all_debug_types; do
7561 export aros_${d}_debug="1"
7562 done
7563 else
7564 for d in $all_debug_types; do
7565 export aros_${d}_debug="0"
7566 done
7569 if test "$debug" != "none"; then
7570 debug=`echo $debug | sed s/,/\ /g`
7571 for d in $debug; do
7572 found="0"
7573 for d2 in $all_debug_types; do
7574 if test "$d2" = "$d"; then
7575 found="1"
7576 break
7578 done
7579 if test "$found" = "0"; then
7580 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7582 export aros_${d}_debug="1"
7583 done
7584 aros_debug="yes"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7587 $as_echo "$debug" >&6; }
7589 if test "$aros_messages_debug" = "1"; then
7590 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7591 else
7592 aros_messages_debug=""
7594 if test "$aros_symbols_debug" = "1"; then
7595 aros_symbols_debug="-g"
7596 else
7597 aros_symbols_debug=""
7600 # These are the flags to pass when compiling debugged programs
7601 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7602 aros_debug_aflags=""
7603 aros_debug_ldflags="$aros_symbols_debug"
7605 #-----------------------------------------------------------------------------
7606 # Checking for distcc and ccache.
7608 # Always apply the transforms in this particular order. Basically you should
7609 # always run 'ccache distcc compiler' in that order for the best performance.
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7612 $as_echo_n "checking whether to enable distcc... " >&6; }
7613 # Check whether --enable-distcc was given.
7614 if test "${enable_distcc+set}" = set; then :
7615 enableval=$enable_distcc; distcc="$enableval"
7616 else
7617 distcc="no"
7620 if test "$distcc" != "" -a "$distcc" != "no"; then
7621 # AC_CHECK_PROG will print out the result in this case
7622 # Extract the first word of "distcc", so it can be a program name with args.
7623 set dummy distcc; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_path_DISTCC+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 case $DISTCC in
7630 [\\/]* | ?:[\\/]*)
7631 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7645 done
7646 done
7647 IFS=$as_save_IFS
7649 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7651 esac
7653 DISTCC=$ac_cv_path_DISTCC
7654 if test -n "$DISTCC"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7656 $as_echo "$DISTCC" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7669 $as_echo_n "checking whether to enable ccache... " >&6; }
7670 # Check whether --enable-ccache was given.
7671 if test "${enable_ccache+set}" = set; then :
7672 enableval=$enable_ccache; ccache="$enableval"
7673 else
7674 ccache="no"
7677 if test "$ccache" != "" -a "$ccache" != "no"; then
7678 # AC_CHECK_PROG will print out the result in this case
7679 # Extract the first word of "ccache", so it can be a program name with args.
7680 set dummy ccache; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_CCACHE+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$CCACHE"; then
7687 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_CCACHE="ccache"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7702 IFS=$as_save_IFS
7706 CCACHE=$ac_cv_prog_CCACHE
7707 if test -n "$CCACHE"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7709 $as_echo "$CCACHE" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7721 #-----------------------------------------------------------------------------
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7723 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7725 # Check whether --with-kernel-gcc-version was given.
7726 if test "${with_kernel_gcc_version+set}" = set; then :
7727 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7728 else
7729 kernel_tool_version=""
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7733 $as_echo "$kernel_tool_version" >&6; }
7735 #-----------------------------------------------------------------------------
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7737 $as_echo_n "checking what optimization flags to use... " >&6; }
7739 # Check whether --with-optimization was given.
7740 if test "${with_optimization+set}" = set; then :
7741 withval=$with_optimization; optimization="$withval"
7742 else
7743 optimization="unknown"
7746 if test "$optimization" = "unknown"; then
7747 if test "$debug" != "none"; then
7748 optimization="-O0"
7749 else
7750 optimization="-O2"
7753 aros_optimization_cflags="$optimization"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7755 $as_echo "$optimization" >&6; }
7757 #-----------------------------------------------------------------------------
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7759 $as_echo_n "checking which paranoia flags to use... " >&6; }
7761 # Check whether --with-paranoia was given.
7762 if test "${with_paranoia+set}" = set; then :
7763 withval=$with_paranoia; paranoia_flags="$withval"
7764 else
7765 paranoia_flags="default"
7768 if test "$paranoia_flags" = "default"; then
7769 paranoia_flags=""
7770 msg_result="none"
7771 else if test "$paranoia_flags" = "yes"; then
7772 paranoia_flags="-Wall -Werror"
7773 msg_result="$paranoia_flags"
7774 fi fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7776 $as_echo "$msg_result" >&6; }
7777 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7779 #-----------------------------------------------------------------------------
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7781 $as_echo_n "checking what target variant to enable... " >&6; }
7782 # Check whether --enable-target_variant was given.
7783 if test "${enable_target_variant+set}" = set; then :
7784 enableval=$enable_target_variant; target_variant=$enableval
7785 else
7786 target_variant=""
7789 if test "$target_variant" = ""; then
7790 aros_target_variant=""
7791 aros_target_suffix=""
7792 enableval="none"
7793 else
7794 aros_target_variant="$target_variant"
7795 aros_target_suffix="-$target_variant"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7798 $as_echo "$enableval" >&6; }
7800 #-----------------------------------------------------------------------------
7801 # Target-specific defaults. You can override then on a per-target basis.
7803 # Bootloader name. Currently used by PC target.
7804 target_bootloader="none"
7805 ENABLE_EXECSMP=
7807 #-----------------------------------------------------------------------------
7808 # Additional options for some specific targets
7810 case "$aros_target_variant" in
7811 ios)
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7813 $as_echo_n "checking XCode path... " >&6; }
7815 # Check whether --with-xcode was given.
7816 if test "${with_xcode+set}" = set; then :
7817 withval=$with_xcode; aros_xcode_path="$withval"
7818 else
7819 aros_xcode_path="/Developer"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7823 $as_echo "$aros_xcode_path" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7826 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7828 # Check whether --with-sdk-version was given.
7829 if test "${with_sdk_version+set}" = set; then :
7830 withval=$with_sdk_version; aros_sdk_version="$withval"
7831 else
7832 aros_sdk_version="4.1"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7836 $as_echo "$aros_sdk_version" >&6; }
7840 "android")
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7842 $as_echo_n "checking Android SDK path... " >&6; }
7844 # Check whether --with-sdk was given.
7845 if test "${with_sdk+set}" = set; then :
7846 withval=$with_sdk; aros_android_sdk="$withval"
7847 else
7848 aros_android_sdk=$default_android_sdk
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7852 $as_echo "$aros_android_sdk" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7855 $as_echo_n "checking Android NDK path... " >&6; }
7857 # Check whether --with-ndk was given.
7858 if test "${with_ndk+set}" = set; then :
7859 withval=$with_ndk; aros_android_ndk="$withval"
7860 else
7861 aros_android_ndk="none"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7865 $as_echo "$aros_android_ndk" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7868 $as_echo_n "checking what Android SDK version to use... " >&6; }
7870 # Check whether --with-sdk-version was given.
7871 if test "${with_sdk_version+set}" = set; then :
7872 withval=$with_sdk_version; aros_sdk_version="$withval"
7873 else
7874 aros_sdk_version="12"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7878 $as_echo "$aros_sdk_version" >&6; }
7880 aros_android_level=android-$aros_sdk_version
7881 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7882 echo "Platform $aros_android_level is not installed in your SDK"
7883 echo "Use --with-sdk-version=<API level number> to select another platform version"
7884 echo "You can check what plaform versions are installed in your SDK"
7885 echo "by examining contents of $aros_android_sdk/platforms directory"
7886 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7889 export PATH="$aros_android_sdk/tools:$PATH"
7890 # Extract the first word of "$android_tool", so it can be a program name with args.
7891 set dummy $android_tool; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_path_android_tool+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 case $android_tool in
7898 [\\/]* | ?:[\\/]*)
7899 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7918 esac
7920 android_tool=$ac_cv_path_android_tool
7921 if test -n "$android_tool"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7923 $as_echo "$android_tool" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7930 req_avail=yes
7931 if test "$android_tool" = ""; then
7932 req_avail=no
7934 if test "$android_tool" = "no"; then
7935 req_avail=no
7937 if test "$req_avail" = "no"; then
7938 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7941 if test "$aros_android_ndk" != "none"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7943 $as_echo_n "checking what Android NDK version to use... " >&6; }
7945 # Check whether --with-ndk-version was given.
7946 if test "${with_ndk_version+set}" = set; then :
7947 withval=$with_ndk_version; aros_ndk_version="$withval"
7948 else
7949 aros_ndk_version="9"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7953 $as_echo "$aros_ndk_version" >&6; }
7956 # Extract the first word of "ant", so it can be a program name with args.
7957 set dummy ant; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_path_ant+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 case $ant in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7984 esac
7986 ant=$ac_cv_path_ant
7987 if test -n "$ant"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7989 $as_echo "$ant" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7996 if test "$ant" = ""; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7998 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8002 $as_echo_n "checking Build debug or release apk... " >&6; }
8004 # Check whether --with-apk-version was given.
8005 if test "${with_apk_version+set}" = set; then :
8006 withval=$with_apk_version; aros_android_antapk=$withval
8007 else
8008 aros_android_antapk=release
8011 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8012 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8015 $as_echo "$aros_android_antapk" >&6; }
8017 if test "$host_os" = "mingw32"; then
8018 android_tool="cmd //c $android_tool"
8021 need_dlopen="no"
8024 esac
8026 #-----------------------------------------------------------------------------
8027 # External toolchains
8028 kernel_tool_prefix="none"
8029 aros_tool_prefix="none"
8030 elf_tool_prefix="${target_cpu}-elf-"
8032 # This is the target configuration switch.
8033 case "$target_os" in
8034 linux*)
8035 aros_target_arch="linux"
8036 aros_target_family="unix"
8037 case "$target_cpu" in
8038 *m68k*)
8039 aros_target_cpu="m68k"
8040 aros_object_format="m68kelf"
8041 aros_flavour="emulcompat"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8043 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8044 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8045 gcc_target_cpu="mc68000"
8047 *i?86*)
8048 aros_target_cpu="i386"
8049 aros_object_format="elf_i386"
8050 aros_flavour="emulation"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8052 aros_kernel_ldflags="-Wl,-melf_i386"
8053 aros_nominal_depth=8
8054 gcc_target_cpu="i386"
8055 pci_hidd_target="hidd-pci-linux"
8056 android_tool_dir_prefix="x86"
8057 android_tool_prefix="i686-android-linux"
8058 android_ndk_arch="x86"
8060 *x86_64*)
8061 aros_target_cpu="x86_64"
8062 aros_object_format="elf_x86_64"
8063 aros_flavour="emulation"
8064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8065 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8066 aros_nominal_depth=8
8067 pci_hidd_target="hidd-pci-linux"
8069 *powerpc*)
8070 aros_target_cpu="ppc"
8071 aros_object_format="elf32ppc"
8072 aros_flavour="emulation"
8073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8074 aros_nominal_depth=8
8075 gcc_target_cpu="ppc"
8077 # TODO
8078 # Same as powerpc, but I need this for the nightly build to work again.
8079 # Actually, the nightly should be made working with powerpc target.
8080 # That just was too much work for the moment, another week or two.
8081 *ppc*)
8082 aros_target_cpu="ppc"
8083 aros_object_format="elf32ppc"
8084 aros_flavour="emulation"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8086 aros_nominal_depth=8
8087 gcc_target_cpu="ppc"
8089 *armhf*)
8090 aros_target_cpu="arm"
8091 target_cpu="arm"
8092 aros_object_format="armelf_aros"
8093 aros_flavour="emulation"
8094 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8095 gcc_target_cpu="arm"
8096 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8097 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8098 aros_arch_libs="-laeabi"
8099 gcc_default_float_abi="hard"
8100 android_tool_dir_prefix="arm-linux-androideabi"
8101 android_tool_prefix="arm-linux-androideabi"
8102 android_ndk_arch="arm"
8103 kernel_tool_prefix="arm-linux-gnueabihf-"
8105 *arm*)
8106 aros_target_cpu="arm"
8107 aros_object_format="armelf_aros"
8108 aros_flavour="emulation"
8109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8110 gcc_target_cpu="arm"
8111 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8112 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8113 aros_arch_libs="-laeabi"
8114 android_tool_dir_prefix="arm-linux-androideabi"
8115 android_tool_prefix="arm-linux-androideabi"
8116 android_ndk_arch="arm"
8117 kernel_tool_prefix="arm-linux-gnueabi-"
8120 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8122 esac
8123 case "$aros_target_variant" in
8124 android)
8126 if test "$android_ndk_arch" = ""; then
8127 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8130 aros_nominal_width=320
8131 aros_nominal_height=480
8132 if test "$aros_android_ndk" = "none"; then
8133 aros_kernel_cflags="-mandroid"
8134 aros_kernel_ldflags="-mandroid"
8135 CFLAGS="-mandroid"
8136 else
8137 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8138 kernel_tool_version=""
8139 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8140 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8141 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8142 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8143 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8145 need_x11=no
8146 host_android_gfx=yes
8147 # Disable implicit PIC mode
8148 aros_target_cflags="$aros_target_cflags -fno-pic"
8149 kernel_tool_prefix="$android_tool_prefix-"
8151 esac
8155 aros_target_arch="pc"
8156 aros_shared_default="no"
8157 target_bootloader="grub2"
8158 case "$target_cpu" in
8159 *i?86*)
8160 aros_target_cpu="i386"
8163 if test "$aros_object_format" = "" ; then
8164 aros_object_format="elf_i386"
8166 aros_flavour="standalone"
8167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8168 aros_kernel_ldflags="-Wl,-melf_i386"
8169 aros_nominal_width=640
8170 aros_nominal_height=480
8171 gcc_target_cpu="i386"
8173 *x86_64*)
8174 aros_target_cpu="x86_64"
8175 aros_serial_debug=1
8176 if test "$aros_object_format" = "" ; then
8177 aros_object_format="elf_x86_64"
8179 aros_flavour="standalone"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8181 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8182 aros_kernel_ldflags=""
8183 aros_nominal_width=640
8184 aros_nominal_height=480
8185 case "$aros_target_variant" in
8186 smp)
8187 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8189 esac
8192 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8194 esac
8197 prep)
8198 aros_target_arch="prep"
8199 aros_shared_default="no"
8200 aros_target_cpu="ppc"
8201 aros_object_format="elf32ppc"
8202 aros_flavour="ppcnative"
8203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8204 aros_kernel_ldflags=""
8205 aros_nominal_width=640
8206 aros_nominal_height=480
8207 gcc_target_cpu="ppc"
8210 freebsd*)
8211 aros_target_arch="freebsd"
8212 aros_target_family="unix"
8213 aros_target_cpu="i386"
8214 aros_flavour="emulation"
8215 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8216 gcc_target_cpu="i386"
8218 aros_target_strip_flags="-x"
8221 darwin*)
8222 aros_target_arch="darwin"
8223 aros_target_family="unix"
8224 aros_flavour="emulation"
8225 case "$target_cpu" in
8226 *i?86*)
8227 aros_ios_platform="iPhoneSimulator"
8228 aros_target_cpu="i386"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8230 aros_kernel_ldflags=""
8231 aros_macosx_version="10.4"
8232 aros_nominal_depth=8
8233 gcc_target_cpu="i386"
8234 aros_object_format="elf_i386"
8235 aros_kernel_ar_flags="-cr"
8236 aros_target_strip_flags="-x"
8237 kernel_tool_flags="-m32"
8239 *x86_64*)
8240 aros_target_cpu="x86_64"
8241 aros_object_format="elf_x86_64"
8242 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8243 aros_macosx_version="10.6"
8244 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8245 aros_kernel_cflags="-m64"
8246 aros_kernel_ldflags="-m64"
8247 aros_target_cflags="-mcmodel=large"
8248 aros_nominal_depth=8
8249 aros_kernel_ar="ar"
8250 aros_kernel_ar_flags="-cr"
8251 aros_kernel_ld="ld"
8252 aros_kernel_as="as"
8253 aros_kernel_ranlib="ranlib"
8254 aros_kernel_nm="nm"
8255 aros_kernel_strip="strip"
8256 kernel_tool_prefix="i686-apple-darwin10-"
8258 *ppc*)
8259 aros_target_cpu="ppc"
8260 aros_object_format="elf32ppc"
8261 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8262 aros_kernel_ldflags=""
8263 aros_macosx_version="10.0"
8264 aros_nominal_depth=8
8265 gcc_target_cpu="ppc"
8266 aros_kernel_ar="ar"
8267 aros_kernel_ar_flags="-cr"
8268 aros_kernel_ld="ld -arch ppc"
8269 aros_kernel_as="as -arch ppc"
8270 aros_kernel_ranlib="ranlib -arch ppc"
8271 aros_kernel_nm="nm -arch ppc"
8272 aros_kernel_strip="strip -arch ppc"
8273 kernel_tool_prefix="powerpc-apple-darwin10-"
8275 *arm*)
8276 aros_ios_platform="iPhoneOS"
8277 aros_target_cpu="arm"
8278 aros_object_format="armelf_aros"
8279 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8280 aros_arch_libs="-laeabi"
8281 aros_nominal_depth=8
8282 gcc_target_cpu="arm"
8283 aros_kernel_ar="ar"
8284 aros_kernel_ar_flags="-cr"
8285 aros_kernel_ld="ld -arch arm"
8286 aros_kernel_ranlib="ranlib -arch arm"
8287 kernel_tool_prefix="arm-apple-darwin10-"
8288 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8291 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8293 esac
8294 case "$aros_target_variant" in
8295 ios)
8296 aros_ios_version="3.0"
8297 aros_nominal_width=320
8298 aros_nominal_height=480
8299 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8300 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8301 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8302 need_x11=no
8303 # This is here because it may depend on iOS or SDK version
8304 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8305 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8306 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8309 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8310 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8312 esac
8315 dragonfly*)
8316 aros_target_arch="dragonfly"
8317 aros_target_family="unix"
8318 aros_flavour="emulation"
8319 case "$target_cpu" in
8320 *i?86*)
8321 aros_target_cpu="i386"
8322 aros_object_format="elf_i386"
8323 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8325 *x86_64*)
8326 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8327 aros_target_cpu="x86_64"
8328 aros_object_format="elf_x86_64"
8329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8332 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8334 esac
8337 netbsd*)
8338 aros_target_arch="netbsd"
8339 aros_target_family="unix"
8340 case "$target_cpu" in
8341 *m68k*)
8342 aros_target_cpu="m68k"
8343 aros_object_format="m68kelf"
8344 aros_flavour="emulcompat"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8346 gcc_target_cpu="mc68000"
8348 *i?86*)
8349 aros_target_cpu="i386"
8350 aros_object_format="elf_i386"
8351 aros_flavour="emulation"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8353 aros_nominal_depth=8
8354 gcc_target_cpu="i386"
8357 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8359 esac
8360 aros_target_genmap="-Wl,-M -Xlinker >"
8361 aros_flavour="emulation"
8362 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8365 openbsd*)
8366 aros_target_arch="openbsd"
8367 aros_target_family="unix"
8368 case "$target_cpu" in
8369 *i?86*)
8370 aros_target_cpu="i386"
8371 aros_object_format="elf_i386"
8372 aros_flavour="emulation"
8373 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8374 gcc_target_cpu="i386"
8377 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8379 esac
8380 aros_target_genmap="-Wl,-M -Xlinker >"
8381 aros_target_nm_flags="-u"
8382 aros_flavour="emulation"
8385 solaris*)
8386 aros_target_arch="solaris"
8387 aros_target_family="unix"
8388 case "$target_cpu" in
8389 *i?86*)
8390 aros_target_cpu="i386"
8391 aros_object_format="elf_i386"
8392 aros_flavour="emulation"
8393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8394 aros_nominal_depth=8
8395 gcc_target_cpu="i386"
8397 *sparc*)
8398 aros_target_cpu="sparc"
8399 aros_object_format="elf_sparc"
8400 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8401 gcc_target_cpu="sparc"
8404 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8406 esac
8407 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8408 aros_flavour="emulation"
8411 morphos*)
8412 aros_target_arch="morphos"
8413 aros_shared_default="no"
8414 aros_target_cpu="ppc"
8415 aros_object_format="elf_ppc"
8416 aros_flavour="nativecompat"
8417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8418 gcc_target_cpu="ppc"
8421 sam440)
8422 aros_target_arch="sam440"
8423 aros_shared_default="no"
8424 aros_target_cpu="ppc"
8425 aros_object_format="elf32ppc"
8426 aros_flavour="ppcnative"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8428 aros_kernel_ldflags=""
8429 aros_nominal_width=1024
8430 aros_nominal_height=768
8431 aros_nominal_depth=24
8432 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8433 gcc_target_cpu="powerpc"
8436 efika)
8437 aros_target_arch="efika"
8438 aros_shared_default="no"
8439 aros_target_cpu="arm"
8440 aros_object_format="armelf_aros"
8441 aros_flavour="standalone"
8442 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8443 aros_kernel_ldflags=""
8444 aros_nominal_width=1024
8445 aros_nominal_height=600
8446 aros_arch_libs="-laeabi"
8447 gcc_default_cpu="armv7-a"
8448 gcc_default_fpu="vfpv3"
8449 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8450 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8451 aros_optimization_cflags="$aros_optimization_cflags -Os"
8452 case "$target_cpu" in
8453 *armhf*)
8454 gcc_default_float_abi="hard"
8455 target_cpu=arm
8456 aros_target_cpu=arm
8458 *arm*)
8459 gcc_default_float_abi="softfp"
8462 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8464 esac
8467 chrp)
8468 aros_target_arch="chrp"
8469 aros_shared_default="no"
8470 aros_target_cpu="ppc"
8471 aros_object_format="elf32ppc"
8472 aros_flavour="ppcnative"
8473 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8474 aros_kernel_ldflags=""
8475 aros_nominal_width=640
8476 aros_nominal_height=480
8477 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8478 gcc_target_cpu="powerpc"
8479 case "$aros_target_variant" in
8480 efika)
8481 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8483 esac
8486 r*pi)
8487 aros_flavour="standalone"
8488 aros_target_arch="raspi"
8489 aros_target_cpu="arm"
8490 aros_object_format="armelf_aros"
8491 aros_shared_default="no"
8492 aros_arch_libs="-laeabi"
8494 gcc_default_cpu="armv6zk"
8495 gcc_default_cpu_tune="arm1176jzf-s"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8498 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8499 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8500 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8501 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8502 case "$aros_target_variant" in
8503 smp)
8504 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8506 esac
8509 stm32f7_discovery)
8510 aros_flavour="standalone"
8511 aros_target_arch="stm32f7_discovery"
8512 aros_target_cpu="arm"
8513 aros_target_cpu_mode="thumb2"
8514 aros_object_format="armelf_aros"
8515 aros_shared_default="no"
8517 # stm32f7 has DSP opcode support
8518 gcc_default_cpu="armv7e-m"
8519 # gcc_default_cpu="armv7-m"
8520 gcc_default_cpu_tune="cortex-m7"
8521 gcc_default_fpu="fpv4-sp-d16"
8522 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8523 # gcc_default_fpu="fpv5-sp-d16"
8524 gcc_default_float_abi="hard"
8526 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8529 amiga*)
8530 aros_target_arch="amiga"
8531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8532 aros_shared_default="no"
8534 case "$target_cpu" in
8535 *m68k*)
8536 # Check whether --enable-amigaos_compliance was given.
8537 if test "${enable_amigaos_compliance+set}" = set; then :
8538 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8541 aros_enable_mmu=no
8542 aros_target_cpu="m68k"
8543 aros_object_format="m68kelf"
8544 aros_flavour="standcompat"
8545 gcc_target_cpu="m68000"
8546 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8547 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8548 aros_optimization_cflags="$aros_optimization_cflags -Os"
8549 aros_config_aflags="$aros_config_aflags"
8550 aros_target_strip_flags="-R.comment --strip-debug"
8551 aros_nominal_width=640
8552 aros_nominal_height=256
8553 aros_nominal_depth=2
8555 *ppc*)
8556 aros_cpu="ppc"
8557 aros_flavour="native"
8558 gcc_target_cpu="ppc"
8561 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8563 esac
8566 mingw*)
8567 aros_target_arch="mingw32"
8568 aros_shared_default="no"
8569 aros_flavour="emulation"
8570 aros_shared_cflags=""
8571 need_crosstools="yes"
8572 need_dlopen="no"
8573 rescomp="windres"
8574 case "$target_cpu" in
8575 *i?86*)
8576 aros_target_cpu="i386"
8577 aros_object_format="elf_i386"
8578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8579 aros_nominal_depth=8
8580 gcc_target_cpu="i386"
8582 kernel_tool_prefix="i386-mingw32-"
8584 *x86_64*)
8585 aros_target_cpu="x86_64"
8586 aros_object_format="elf_x86_64"
8587 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8588 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8589 aros_nominal_depth=8
8590 kernel_tool_prefix="x86_64-w64-mingw32-"
8592 *arm*)
8593 aros_target_cpu="arm"
8594 aros_object_format="armelf_aros"
8595 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8596 aros_arch_libs="-laeabi"
8597 aros_nominal_depth=8
8598 gcc_target_cpu="arm"
8599 gcc_default_float_abi="soft"
8600 kernel_tool_prefix="arm-mingw32ce-"
8601 aros_nominal_width=160
8602 aros_nominal_height=160
8605 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8607 esac
8608 if test $host_os = "cygwin"; then
8609 aros_kernel_cflags="-mno-cygwin"
8612 pp*)
8613 aros_target_arch="pp"
8614 aros_shared_default="no"
8615 case "$target_cpu" in
8616 *m68k*)
8617 aros_target_cpu="m68k"
8618 aros_object_format="m68kelf"
8619 aros_flavour="palmnative"
8620 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8621 aros_nominal_width=160
8622 aros_nominal_height=160
8623 aros_nominal_depth=1
8624 aros_target_ar_flags="cru"
8625 aros_compiler_libs="-lgcc1"
8626 aros_shared_default=no
8627 aros_shared_cflags="-fpic"
8628 aros_shared_aflags=""
8629 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8630 aros_kernel_ldflags="-Wl,-rpath,./lib"
8631 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8632 aros_debug_aflags=""
8633 aros_debug_ldflags="$aros_symbols_debug"
8634 aros_mungwall_debug="0"
8635 aros_modules_debug="0"
8636 gcc_target_cpu="mc68000"
8637 ignore_undefined_symbols="-ius"
8640 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8642 esac
8645 mac*)
8646 aros_target_arch="mac"
8647 aros_shared_default="no"
8648 case "$target_cpu" in
8649 *m68k*)
8650 aros_target_cpu="m68k"
8651 aros_object_format="m68kelf"
8652 aros_flavour="mac68knative"
8653 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8654 aros_nominal_width=512
8655 aros_nominal_height=384
8656 aros_nominal_depth=8
8657 aros_target_ar_flags="cru"
8658 aros_compiler_libs="-lgcc1"
8659 aros_shared_default=no
8660 aros_shared_cflags="-fpic"
8661 aros_shared_aflags=""
8662 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8663 aros_kernel_ldflags="-Wl,-rpath,./lib"
8664 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8665 aros_debug_aflags=""
8666 aros_debug_ldflags="$aros_symbols_debug"
8667 aros_mungwall_debug="0"
8668 aros_modules_debug="0"
8669 gcc_target_cpu="mc68000"
8670 ignore_undefined_symbols="-ius"
8673 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8675 esac
8679 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8681 esac
8683 #-----------------------------------------------------------------------------
8684 crosstools_guess="yes"
8685 aros_target_toolchain="no"
8686 aros_config_sysroot=""
8687 aros_kernel_sysroot=""
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8690 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8692 # Check whether --with-kernel-toolchain-prefix was given.
8693 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8694 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8698 $as_echo "$kernel_tool_prefix" >&6; }
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8701 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8703 # Check whether --with-elf-toolchain-prefix was given.
8704 if test "${with_elf_toolchain_prefix+set}" = set; then :
8705 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8706 crosstools_guess="no"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8710 $as_echo "$elf_tool_prefix" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8713 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8715 # Check whether --with-aros-toolchain was given.
8716 if test "${with_aros_toolchain+set}" = set; then :
8717 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8718 crosstools_guess="no"
8721 if test "$aros_tool_prefix" = "yes" ; then
8722 aros_tool_prefix=$aros_target_cpu-aros-
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8725 $as_echo "$aros_tool_prefix" >&6; }
8727 #-----------------------------------------------------------------------------
8728 # Checking if we should build crosstools..
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8730 $as_echo_n "checking whether to build crosstools... " >&6; }
8731 # Check whether --enable-crosstools was given.
8732 if test "${enable_crosstools+set}" = set; then :
8733 enableval=$enable_crosstools; crosstools="$enableval"
8734 else
8735 crosstools="$crosstools_guess"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8739 $as_echo "$crosstools" >&6; }
8741 if test "${crosstools}" = "yes"; then
8742 if test "${crosstools_guess}" = "no"; then
8743 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8747 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8748 aros_target_toolchain="yes"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8752 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8754 # Check whether --with-aros-toolchain-install was given.
8755 if test "${with_aros_toolchain_install+set}" = set; then :
8756 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8759 if test "x$aros_toolchain_install" = "x"; then
8760 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8761 else
8762 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8763 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8764 if test "$crosstools_guess" = "no" ; then
8765 toolchain_needs_sysroot=yes
8767 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8768 aros_kernel_sysroot = $aros_config_sysroot
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8773 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8776 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8777 if test "$toolchain_needs_sysroot" = "yes" ; then
8778 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8781 $as_echo "$toolchain_needs_sysroot" >&6; }
8783 #-----------------------------------------------------------------------------
8784 if test "$aros_toolchain" = "gnu" ; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8786 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8789 # Check whether --with-binutils-version was given.
8790 if test "${with_binutils_version+set}" = set; then :
8791 withval=$with_binutils_version; use_binutils_version="$withval"
8792 else
8793 use_binutils_version=""
8796 if test "$use_binutils_version" = ""; then
8797 target_binutils_version="$default_binutils_version"
8798 else
8799 target_binutils_version="$use_binutils_version"
8801 if test "$aros_toolchain" = "gnu" ; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8803 $as_echo "$target_binutils_version" >&6; }
8807 # Helper to identify gcc version
8810 #-----------------------------------------------------------------------------
8811 if test "$aros_toolchain" = "gnu" ; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8813 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8816 # Check whether --with-gcc-version was given.
8817 if test "${with_gcc_version+set}" = set; then :
8818 withval=$with_gcc_version; use_gcc_version="$withval"
8819 else
8820 use_gcc_version=""
8823 if test "$use_gcc_version" = ""; then
8824 if test "${crosstools}" = "no"; then
8825 if test "x$aros_toolchain_install" != "x"; then
8827 target_gcc_version=""
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8829 $as_echo_n "checking gcc version... " >&6; }
8830 if ${ax_cv_gcc_version+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8834 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8835 if test "x$ax_cv_gcc_version" = "x"; then :
8837 ax_cv_gcc_version=""
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8843 $as_echo "$ax_cv_gcc_version" >&6; }
8844 target_gcc_version=$ax_cv_gcc_version
8849 if test "$use_gcc_version" = ""; then
8850 target_gcc_version="$default_gcc_version"
8852 else
8853 target_gcc_version="$use_gcc_version"
8855 if test "$aros_toolchain" = "gnu" ; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8857 $as_echo "$target_gcc_version" >&6; }
8859 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8860 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8861 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8863 gcc_fix_bitfields="false"
8864 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8865 gcc_fix_bitfields="true"
8866 else
8867 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8868 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8869 gcc_fix_bitfields="true"
8874 if test "$gcc_fix_bitfields" = "true" ; then
8875 case "$aros_target_cpu" in
8876 *x86_64*)
8877 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8878 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8880 i386)
8881 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8882 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8884 esac
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8889 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8890 # Check whether --enable-objc was given.
8891 if test "${enable_objc+set}" = set; then :
8892 enableval=$enable_objc; objc="$enableval"
8893 else
8894 objc="no"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8898 $as_echo "$objc" >&6; }
8899 if test "x$objc" = "xyes"; then
8900 objc_target="$objc"
8901 else
8902 objc_target="no-objc"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8906 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8907 # Check whether --enable-java was given.
8908 if test "${enable_java+set}" = set; then :
8909 enableval=$enable_java; java="$enableval"
8910 else
8911 java="no"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8915 $as_echo "$java" >&6; }
8916 if test "x$java" != "xno"; then
8917 java_target="$java"
8918 else
8919 java_target="no-java"
8922 spec_obj_format="-m $aros_object_format"
8923 # Now process extra architecture-specific options.
8924 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8925 # as well as floating-point ABI.
8926 case "$aros_target_cpu" in
8927 *x86_64*)
8928 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8930 arm*)
8931 if test "$gcc_default_cpu" = ""; then
8932 gcc_default_cpu="armv6"
8934 if test "$gcc_default_fpu" = ""; then
8935 gcc_default_fpu="vfp"
8937 if test "$gcc_default_float_abi" = ""; then
8938 if test "$target_cpu" = "armhf"; then
8939 gcc_default_float_abi="hard"
8940 else
8941 gcc_default_float_abi="softfp"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8946 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8948 # Check whether --with-cpu was given.
8949 if test "${with_cpu+set}" = set; then :
8950 withval=$with_cpu; aros_gcc_cpu="$withval"
8951 else
8952 aros_gcc_cpu=$gcc_default_cpu
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8956 $as_echo "$aros_gcc_cpu" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8959 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8961 # Check whether --with-fpu was given.
8962 if test "${with_fpu+set}" = set; then :
8963 withval=$with_fpu; aros_gcc_fpu="$withval"
8964 else
8965 aros_gcc_fpu=$gcc_default_fpu
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8969 $as_echo "$aros_gcc_fpu" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8972 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8974 # Check whether --with-float was given.
8975 if test "${with_float+set}" = set; then :
8976 withval=$with_float; aros_gcc_float_abi="$withval"
8977 else
8978 aros_gcc_float_abi=$gcc_default_float_abi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8982 $as_echo "$aros_gcc_float_abi" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8985 $as_echo_n "checking Which ARM mode to use... " >&6; }
8986 if test "$aros_target_cpu_mode" = ""; then
8987 aros_target_cpu_mode="arm32"
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8989 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8992 $as_echo "$aros_target_cpu_mode" >&6; }
8995 case "$aros_target_cpu_mode" in
8996 arm32)
8997 gcc_default_mode="arm"
8998 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9000 arm64)
9001 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9003 thumb)
9004 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9006 thumb1)
9007 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9009 thumb2)
9010 gcc_default_mode="thumb"
9011 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9012 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9015 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9017 esac
9019 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9020 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9022 i386)
9023 aros_isa_flags="-m32 -march=i486"
9024 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9025 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9027 esac
9029 # Some architectures may need custom ELF specs.
9030 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9031 elf_specs_in=config/${aros_object_format}-specs.in
9032 else
9033 elf_specs_in=config/elf-specs.in
9036 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9037 # Since we override specs, we may need to put these defines there
9038 if test "$gcc_target_cpu" != ""; then
9039 gcc_target_cpu="-D__${gcc_target_cpu}__"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9043 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9045 # Check whether --with-portssources was given.
9046 if test "${with_portssources+set}" = set; then :
9047 withval=$with_portssources; with_portssrcdir=$withval
9048 else
9049 with_portssrcdir="default"
9052 if test "$with_portssrcdir" = "default"; then
9053 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9054 else
9055 AROS_PORTSSRCDIR="$with_portssrcdir"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9058 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9061 $as_echo_n "checking which bootloader to use... " >&6; }
9063 # Check whether --with-bootloader was given.
9064 if test "${with_bootloader+set}" = set; then :
9065 withval=$with_bootloader; target_bootloader=$withval
9066 else
9067 target_bootloader=$target_bootloader
9070 if test "$target_bootloader" = "none"; then
9071 aros_target_bootloader=""
9072 else
9073 aros_target_bootloader="$target_bootloader"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9076 $as_echo "$target_bootloader" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9079 $as_echo_n "checking which icon-set to use... " >&6; }
9081 # Check whether --with-iconset was given.
9082 if test "${with_iconset+set}" = set; then :
9083 withval=$with_iconset; target_iconset=$withval
9084 else
9085 target_iconset="default"
9088 if test "$target_iconset" = "default"; then
9089 aros_target_iconset="Gorilla"
9090 target_iconset="default (Gorilla)"
9091 else
9092 aros_target_iconset="$target_iconset"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9095 $as_echo "$target_iconset" >&6; }
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9098 $as_echo_n "checking which GUI Theme to use... " >&6; }
9100 # Check whether --with-theme was given.
9101 if test "${with_theme+set}" = set; then :
9102 withval=$with_theme; target_guitheme=$withval
9103 else
9104 target_guitheme="default"
9107 if test "$target_guitheme" = "default"; then
9108 aros_target_guitheme="Ice"
9109 else
9110 aros_target_guitheme="$target_guitheme"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9113 $as_echo "$aros_target_guitheme" >&6; }
9115 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9116 # for target code)
9117 cross_compiling=no
9119 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9120 cross_compiling=yes
9123 if test "$aros_host_cpu" == "x86_64" ; then
9124 if test "$aros_target_cpu" == "i386" ; then
9125 cross_compiling=no
9129 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9130 if test "$aros_host_arch" != "$aros_target_arch" ; then
9131 cross_compiling=yes
9133 else
9134 if test "$host_cc_elf" = "no" ; then
9135 cross_compiling=yes
9139 if test "$cross_compiling" = "no" ; then
9140 kernel_tool_prefix=""
9141 if test "$host_cc_elf" = "yes" ; then
9142 elf_tool_prefix=""
9146 if test "$kernel_tool_version" != ""; then
9147 kernel_tool_version="-$kernel_tool_version"
9150 #######################################################################
9151 ## Compute what toolchains to use, and their paths ##
9152 #######################################################################
9154 # This takes, as input:
9155 # crosstools {yes,no}
9156 # kernel_tool_version {"",[version]}
9157 # target_tool_version {"",[version]}
9158 # kernel_tool_prefix {none,[some-arch-os-]}
9159 # gnu-toolchain -:
9160 # target_tool_prefix ${aros_target_cpu}-aros-
9161 # aros_tool_prefix ${aros_target_cpu}-aros-
9163 # The output is
9164 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9165 # Where the 'kernel' binaries are located
9166 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9167 # Where the 'target' binaries are located
9168 # (not the symlink farm - that is aros_target_*!)
9170 # The rules are:
9171 # if crosstools then
9172 # if kernel_tools_prefix = "no-kernel-prefix-"
9173 # aros_kernel_* = crosstools cc paths
9174 # aros_kernel_cc = elf cc wrapper around crosstools cc
9175 # else
9176 # VALIDATE(${kernel_tools_prefix}*)
9177 # aros_kernel_* = ${kernel_tools_prefix}*
9178 # if ${kernel_tools_prefix}cc is an AROS gcc
9179 # aros_kernel_cc = ${kernel_tools_prefix}cc
9180 # else
9181 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9182 # fi
9183 # fi
9185 # orig_target_* = aros built crosstools
9186 # orig_target_cc = elf cc wrapper around crosstools cc
9187 # else
9188 # VALIDATE(${kernel_tools_prefix}*)
9190 # orig_target_* = aros_kernel_*
9191 # if aros_kernel_cc is an AROS gcc
9192 # orig_target_cc = aros_kernel_cc
9193 # else
9194 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9195 # fi
9196 # fi
9198 if test "$aros_toolchain" = "gnu" ; then
9199 target_tool_prefix="${aros_target_cpu}-aros-"
9200 elif test "$aros_toolchain" = "llvm" ; then
9201 target_tool_prefix="bin/"
9204 if test "$kernel_tool_prefix" != "" ; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9206 $as_echo_n "checking which kernel tools... " >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9208 $as_echo "$kernel_tool_prefix" >&6; };
9211 if test "$kernel_tool_prefix" = "none" ; then
9212 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9213 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9215 else
9216 # Kernel tools required - find them
9217 # Note that 'normally', aros_kernel_* overrides will be
9218 # empty, unless specified in the per-arch sections above.
9219 if test "x$aros_kernel_cpp" = "x"; then
9220 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9223 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9224 if test "$cross_compiling" = "yes" ; then
9225 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9226 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 case $aros_kernel_cpp in
9233 [\\/]* | ?:[\\/]*)
9234 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9253 esac
9255 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9256 if test -n "$aros_kernel_cpp"; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9258 $as_echo "$aros_kernel_cpp" >&6; }
9259 else
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9265 else
9266 if test "$GCC" = "yes"; then
9267 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9268 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9269 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 case $aros_kernel_cpp in
9276 [\\/]* | ?:[\\/]*)
9277 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in `dirname $aros_gcc_cpp`
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9291 done
9292 done
9293 IFS=$as_save_IFS
9296 esac
9298 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9299 if test -n "$aros_kernel_cpp"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9301 $as_echo "$aros_kernel_cpp" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9309 if test "$aros_kernel_cpp" = ""; then
9310 # Extract the first word of "cpp", so it can be a program name with args.
9311 set dummy cpp; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 case $aros_kernel_cpp in
9318 [\\/]* | ?:[\\/]*)
9319 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9333 done
9334 done
9335 IFS=$as_save_IFS
9338 esac
9340 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9341 if test -n "$aros_kernel_cpp"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9343 $as_echo "$aros_kernel_cpp" >&6; }
9344 else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9352 else
9353 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9354 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356 $as_echo_n "checking for $ac_word... " >&6; }
9357 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 case $aros_kernel_cpp in
9361 [\\/]* | ?:[\\/]*)
9362 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9381 esac
9383 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9384 if test -n "$aros_kernel_cpp"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9386 $as_echo "$aros_kernel_cpp" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9395 req_avail=yes
9396 if test "$aros_kernel_cpp" = ""; then
9397 req_avail=no
9399 if test "$aros_kernel_cpp" = "no"; then
9400 req_avail=no
9402 if test "$req_avail" = "no"; then
9403 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9405 if test "x$aros_kernel_cc" = "x"; then
9406 aros_kernel_cc=${kernel_tool_prefix}${CC}
9409 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9410 if test "$cross_compiling" = "yes" ; then
9411 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9412 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 case $aros_kernel_cc in
9419 [\\/]* | ?:[\\/]*)
9420 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9434 done
9435 done
9436 IFS=$as_save_IFS
9439 esac
9441 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9442 if test -n "$aros_kernel_cc"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9444 $as_echo "$aros_kernel_cc" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9451 else
9452 if test "$GCC" = "yes"; then
9453 aros_gcc_cc=`$CC -print-prog-name=cc`
9454 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9455 set dummy `basename $aros_gcc_cc`; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 case $aros_kernel_cc in
9462 [\\/]* | ?:[\\/]*)
9463 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in `dirname $aros_gcc_cc`
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9477 done
9478 done
9479 IFS=$as_save_IFS
9482 esac
9484 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9485 if test -n "$aros_kernel_cc"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9487 $as_echo "$aros_kernel_cc" >&6; }
9488 else
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9495 if test "$aros_kernel_cc" = ""; then
9496 # Extract the first word of "cc", so it can be a program name with args.
9497 set dummy cc; ac_word=$2
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 $as_echo_n "checking for $ac_word... " >&6; }
9500 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 case $aros_kernel_cc in
9504 [\\/]* | ?:[\\/]*)
9505 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9515 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9519 done
9520 done
9521 IFS=$as_save_IFS
9524 esac
9526 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9527 if test -n "$aros_kernel_cc"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9529 $as_echo "$aros_kernel_cc" >&6; }
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9538 else
9539 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9540 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 case $aros_kernel_cc in
9547 [\\/]* | ?:[\\/]*)
9548 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9562 done
9563 done
9564 IFS=$as_save_IFS
9567 esac
9569 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9570 if test -n "$aros_kernel_cc"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9572 $as_echo "$aros_kernel_cc" >&6; }
9573 else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9581 req_avail=yes
9582 if test "$aros_kernel_cc" = ""; then
9583 req_avail=no
9585 if test "$aros_kernel_cc" = "no"; then
9586 req_avail=no
9588 if test "$req_avail" = "no"; then
9589 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9591 if test "x$aros_kernel_cxx" = "x"; then
9592 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9595 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9596 if test "$cross_compiling" = "yes" ; then
9597 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9598 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 case $aros_kernel_cxx in
9605 [\\/]* | ?:[\\/]*)
9606 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9625 esac
9627 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9628 if test -n "$aros_kernel_cxx"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9630 $as_echo "$aros_kernel_cxx" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9637 else
9638 if test "$GCC" = "yes"; then
9639 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9640 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9641 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 case $aros_kernel_cxx in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in `dirname $aros_gcc_cxx`
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9668 esac
9670 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9671 if test -n "$aros_kernel_cxx"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9673 $as_echo "$aros_kernel_cxx" >&6; }
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9681 if test "$aros_kernel_cxx" = ""; then
9682 # Extract the first word of "cxx", so it can be a program name with args.
9683 set dummy cxx; ac_word=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 case $aros_kernel_cxx in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9705 done
9706 done
9707 IFS=$as_save_IFS
9710 esac
9712 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9713 if test -n "$aros_kernel_cxx"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9715 $as_echo "$aros_kernel_cxx" >&6; }
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9724 else
9725 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9726 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 case $aros_kernel_cxx in
9733 [\\/]* | ?:[\\/]*)
9734 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9753 esac
9755 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9756 if test -n "$aros_kernel_cxx"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9758 $as_echo "$aros_kernel_cxx" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9767 # If it's set, make sure it's really there
9768 if test "x$aros_kernel_cxx" != "x" ; then
9769 req_avail=yes
9770 if test "$aros_kernel_cxx" = ""; then
9771 req_avail=no
9773 if test "$aros_kernel_cxx" = "no"; then
9774 req_avail=no
9776 if test "$req_avail" = "no"; then
9777 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9781 if test "$aros_kernel_ld" = ""; then
9782 if test "$cross_compiling" = "yes" ; then
9783 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9784 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 case $aros_kernel_ld in
9791 [\\/]* | ?:[\\/]*)
9792 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9806 done
9807 done
9808 IFS=$as_save_IFS
9811 esac
9813 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9814 if test -n "$aros_kernel_ld"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9816 $as_echo "$aros_kernel_ld" >&6; }
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9823 else
9824 if test "$GCC" = "yes"; then
9825 aros_gcc_ld=`$CC -print-prog-name=ld`
9826 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9827 set dummy `basename $aros_gcc_ld`; ac_word=$2
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 case $aros_kernel_ld in
9834 [\\/]* | ?:[\\/]*)
9835 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in `dirname $aros_gcc_ld`
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9849 done
9850 done
9851 IFS=$as_save_IFS
9854 esac
9856 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9857 if test -n "$aros_kernel_ld"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9859 $as_echo "$aros_kernel_ld" >&6; }
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9867 if test "$aros_kernel_ld" = ""; then
9868 # Extract the first word of "ld", so it can be a program name with args.
9869 set dummy ld; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 case $aros_kernel_ld in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9891 done
9892 done
9893 IFS=$as_save_IFS
9896 esac
9898 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9899 if test -n "$aros_kernel_ld"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9901 $as_echo "$aros_kernel_ld" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9910 else
9911 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9912 set dummy $aros_kernel_ld; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 case $aros_kernel_ld in
9919 [\\/]* | ?:[\\/]*)
9920 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9934 done
9935 done
9936 IFS=$as_save_IFS
9939 esac
9941 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9942 if test -n "$aros_kernel_ld"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9944 $as_echo "$aros_kernel_ld" >&6; }
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9953 req_avail=yes
9954 if test "$aros_kernel_ld" = ""; then
9955 req_avail=no
9957 if test "$aros_kernel_ld" = "no"; then
9958 req_avail=no
9960 if test "$req_avail" = "no"; then
9961 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9964 if test "$aros_kernel_as" = ""; then
9965 if test "$cross_compiling" = "yes" ; then
9966 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9967 set dummy ${kernel_tool_prefix}as; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_path_aros_kernel_as+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 case $aros_kernel_as in
9974 [\\/]* | ?:[\\/]*)
9975 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9989 done
9990 done
9991 IFS=$as_save_IFS
9994 esac
9996 aros_kernel_as=$ac_cv_path_aros_kernel_as
9997 if test -n "$aros_kernel_as"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9999 $as_echo "$aros_kernel_as" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10006 else
10007 if test "$GCC" = "yes"; then
10008 aros_gcc_as=`$CC -print-prog-name=as`
10009 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10010 set dummy `basename $aros_gcc_as`; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_aros_kernel_as+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 case $aros_kernel_as in
10017 [\\/]* | ?:[\\/]*)
10018 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in `dirname $aros_gcc_as`
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10037 esac
10039 aros_kernel_as=$ac_cv_path_aros_kernel_as
10040 if test -n "$aros_kernel_as"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10042 $as_echo "$aros_kernel_as" >&6; }
10043 else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10050 if test "$aros_kernel_as" = ""; then
10051 # Extract the first word of "as", so it can be a program name with args.
10052 set dummy as; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_path_aros_kernel_as+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 case $aros_kernel_as in
10059 [\\/]* | ?:[\\/]*)
10060 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10079 esac
10081 aros_kernel_as=$ac_cv_path_aros_kernel_as
10082 if test -n "$aros_kernel_as"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10084 $as_echo "$aros_kernel_as" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10093 else
10094 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10095 set dummy $aros_kernel_as; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_aros_kernel_as+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 case $aros_kernel_as in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10122 esac
10124 aros_kernel_as=$ac_cv_path_aros_kernel_as
10125 if test -n "$aros_kernel_as"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10127 $as_echo "$aros_kernel_as" >&6; }
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10136 req_avail=yes
10137 if test "$aros_kernel_as" = ""; then
10138 req_avail=no
10140 if test "$aros_kernel_as" = "no"; then
10141 req_avail=no
10143 if test "$req_avail" = "no"; then
10144 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10147 if test "$aros_kernel_ar" = ""; then
10148 if test "$cross_compiling" = "yes" ; then
10149 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10150 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 case $aros_kernel_ar in
10157 [\\/]* | ?:[\\/]*)
10158 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10177 esac
10179 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10180 if test -n "$aros_kernel_ar"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10182 $as_echo "$aros_kernel_ar" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10189 else
10190 if test "$GCC" = "yes"; then
10191 aros_gcc_ar=`$CC -print-prog-name=ar`
10192 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10193 set dummy `basename $aros_gcc_ar`; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 case $aros_kernel_ar in
10200 [\\/]* | ?:[\\/]*)
10201 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in `dirname $aros_gcc_ar`
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10215 done
10216 done
10217 IFS=$as_save_IFS
10220 esac
10222 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10223 if test -n "$aros_kernel_ar"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10225 $as_echo "$aros_kernel_ar" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10233 if test "$aros_kernel_ar" = ""; then
10234 # Extract the first word of "ar", so it can be a program name with args.
10235 set dummy ar; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 case $aros_kernel_ar in
10242 [\\/]* | ?:[\\/]*)
10243 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10257 done
10258 done
10259 IFS=$as_save_IFS
10262 esac
10264 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10265 if test -n "$aros_kernel_ar"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10267 $as_echo "$aros_kernel_ar" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10276 else
10277 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10278 set dummy $aros_kernel_ar; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 case $aros_kernel_ar in
10285 [\\/]* | ?:[\\/]*)
10286 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10292 IFS=$as_save_IFS
10293 test -z "$as_dir" && as_dir=.
10294 for ac_exec_ext in '' $ac_executable_extensions; do
10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298 break 2
10300 done
10301 done
10302 IFS=$as_save_IFS
10305 esac
10307 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10308 if test -n "$aros_kernel_ar"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10310 $as_echo "$aros_kernel_ar" >&6; }
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10319 req_avail=yes
10320 if test "$aros_kernel_ar" = ""; then
10321 req_avail=no
10323 if test "$aros_kernel_ar" = "no"; then
10324 req_avail=no
10326 if test "$req_avail" = "no"; then
10327 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10330 if test "$aros_kernel_ranlib" = ""; then
10331 if test "$cross_compiling" = "yes" ; then
10332 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10333 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 case $aros_kernel_ranlib in
10340 [\\/]* | ?:[\\/]*)
10341 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 break 2
10355 done
10356 done
10357 IFS=$as_save_IFS
10360 esac
10362 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10363 if test -n "$aros_kernel_ranlib"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10365 $as_echo "$aros_kernel_ranlib" >&6; }
10366 else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10372 else
10373 if test "$GCC" = "yes"; then
10374 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10375 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10376 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 case $aros_kernel_ranlib in
10383 [\\/]* | ?:[\\/]*)
10384 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in `dirname $aros_gcc_ranlib`
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10398 done
10399 done
10400 IFS=$as_save_IFS
10403 esac
10405 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10406 if test -n "$aros_kernel_ranlib"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10408 $as_echo "$aros_kernel_ranlib" >&6; }
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10416 if test "$aros_kernel_ranlib" = ""; then
10417 # Extract the first word of "ranlib", so it can be a program name with args.
10418 set dummy ranlib; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 case $aros_kernel_ranlib in
10425 [\\/]* | ?:[\\/]*)
10426 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10440 done
10441 done
10442 IFS=$as_save_IFS
10445 esac
10447 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10448 if test -n "$aros_kernel_ranlib"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10450 $as_echo "$aros_kernel_ranlib" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10459 else
10460 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10461 set dummy $aros_kernel_ranlib; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 case $aros_kernel_ranlib in
10468 [\\/]* | ?:[\\/]*)
10469 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10483 done
10484 done
10485 IFS=$as_save_IFS
10488 esac
10490 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10491 if test -n "$aros_kernel_ranlib"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10493 $as_echo "$aros_kernel_ranlib" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10502 req_avail=yes
10503 if test "$aros_kernel_ranlib" = ""; then
10504 req_avail=no
10506 if test "$aros_kernel_ranlib" = "no"; then
10507 req_avail=no
10509 if test "$req_avail" = "no"; then
10510 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10513 if test "$aros_kernel_nm" = ""; then
10514 if test "$cross_compiling" = "yes" ; then
10515 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10516 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 case $aros_kernel_nm in
10523 [\\/]* | ?:[\\/]*)
10524 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10538 done
10539 done
10540 IFS=$as_save_IFS
10543 esac
10545 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10546 if test -n "$aros_kernel_nm"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10548 $as_echo "$aros_kernel_nm" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10555 else
10556 if test "$GCC" = "yes"; then
10557 aros_gcc_nm=`$CC -print-prog-name=nm`
10558 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10559 set dummy `basename $aros_gcc_nm`; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 case $aros_kernel_nm in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in `dirname $aros_gcc_nm`
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10581 done
10582 done
10583 IFS=$as_save_IFS
10586 esac
10588 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10589 if test -n "$aros_kernel_nm"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10591 $as_echo "$aros_kernel_nm" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10599 if test "$aros_kernel_nm" = ""; then
10600 # Extract the first word of "nm", so it can be a program name with args.
10601 set dummy nm; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 case $aros_kernel_nm in
10608 [\\/]* | ?:[\\/]*)
10609 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10628 esac
10630 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10631 if test -n "$aros_kernel_nm"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10633 $as_echo "$aros_kernel_nm" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10642 else
10643 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10644 set dummy $aros_kernel_nm; ac_word=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 case $aros_kernel_nm in
10651 [\\/]* | ?:[\\/]*)
10652 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10666 done
10667 done
10668 IFS=$as_save_IFS
10671 esac
10673 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10674 if test -n "$aros_kernel_nm"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10676 $as_echo "$aros_kernel_nm" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10685 req_avail=yes
10686 if test "$aros_kernel_nm" = ""; then
10687 req_avail=no
10689 if test "$aros_kernel_nm" = "no"; then
10690 req_avail=no
10692 if test "$req_avail" = "no"; then
10693 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10696 if test "$aros_kernel_strip" = ""; then
10697 if test "$cross_compiling" = "yes" ; then
10698 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10699 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 case $aros_kernel_strip in
10706 [\\/]* | ?:[\\/]*)
10707 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10721 done
10722 done
10723 IFS=$as_save_IFS
10726 esac
10728 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10729 if test -n "$aros_kernel_strip"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10731 $as_echo "$aros_kernel_strip" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10738 else
10739 if test "$GCC" = "yes"; then
10740 aros_gcc_strip=`$CC -print-prog-name=strip`
10741 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10742 set dummy `basename $aros_gcc_strip`; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 case $aros_kernel_strip in
10749 [\\/]* | ?:[\\/]*)
10750 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in `dirname $aros_gcc_strip`
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10764 done
10765 done
10766 IFS=$as_save_IFS
10769 esac
10771 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10772 if test -n "$aros_kernel_strip"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10774 $as_echo "$aros_kernel_strip" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 if test "$aros_kernel_strip" = ""; then
10783 # Extract the first word of "strip", so it can be a program name with args.
10784 set dummy strip; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $aros_kernel_strip in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10814 if test -n "$aros_kernel_strip"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10816 $as_echo "$aros_kernel_strip" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10825 else
10826 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10827 set dummy $aros_kernel_strip; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 case $aros_kernel_strip in
10834 [\\/]* | ?:[\\/]*)
10835 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10854 esac
10856 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10857 if test -n "$aros_kernel_strip"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10859 $as_echo "$aros_kernel_strip" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10868 req_avail=yes
10869 if test "$aros_kernel_strip" = ""; then
10870 req_avail=no
10872 if test "$aros_kernel_strip" = "no"; then
10873 req_avail=no
10875 if test "$req_avail" = "no"; then
10876 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10879 # Objcopy and objdump are not required for the kernel
10880 # toolchain on many architectures.
10881 # So we'll look for them, but not make them strictly required.
10883 if test "$aros_kernel_objcopy" = ""; then
10884 if test "$cross_compiling" = "yes" ; then
10885 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10886 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 case $aros_kernel_objcopy in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 break 2
10908 done
10909 done
10910 IFS=$as_save_IFS
10913 esac
10915 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10916 if test -n "$aros_kernel_objcopy"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10918 $as_echo "$aros_kernel_objcopy" >&6; }
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10925 else
10926 if test "$GCC" = "yes"; then
10927 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10928 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10929 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 case $aros_kernel_objcopy in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in `dirname $aros_gcc_objcopy`
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10951 done
10952 done
10953 IFS=$as_save_IFS
10956 esac
10958 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10959 if test -n "$aros_kernel_objcopy"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10961 $as_echo "$aros_kernel_objcopy" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10969 if test "$aros_kernel_objcopy" = ""; then
10970 # Extract the first word of "objcopy", so it can be a program name with args.
10971 set dummy objcopy; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 case $aros_kernel_objcopy in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10993 done
10994 done
10995 IFS=$as_save_IFS
10998 esac
11000 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11001 if test -n "$aros_kernel_objcopy"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11003 $as_echo "$aros_kernel_objcopy" >&6; }
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11012 else
11013 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11014 set dummy $aros_kernel_objcopy; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $aros_kernel_objcopy in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11036 done
11037 done
11038 IFS=$as_save_IFS
11041 esac
11043 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11044 if test -n "$aros_kernel_objcopy"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11046 $as_echo "$aros_kernel_objcopy" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11056 if test "$aros_kernel_objdump" = ""; then
11057 if test "$cross_compiling" = "yes" ; then
11058 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11059 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 case $aros_kernel_objdump in
11066 [\\/]* | ?:[\\/]*)
11067 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11081 done
11082 done
11083 IFS=$as_save_IFS
11086 esac
11088 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11089 if test -n "$aros_kernel_objdump"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11091 $as_echo "$aros_kernel_objdump" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11098 else
11099 if test "$GCC" = "yes"; then
11100 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11101 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11102 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 case $aros_kernel_objdump in
11109 [\\/]* | ?:[\\/]*)
11110 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in `dirname $aros_gcc_objdump`
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11124 done
11125 done
11126 IFS=$as_save_IFS
11129 esac
11131 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11132 if test -n "$aros_kernel_objdump"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11134 $as_echo "$aros_kernel_objdump" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11142 if test "$aros_kernel_objdump" = ""; then
11143 # Extract the first word of "objdump", so it can be a program name with args.
11144 set dummy objdump; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 case $aros_kernel_objdump in
11151 [\\/]* | ?:[\\/]*)
11152 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11171 esac
11173 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11174 if test -n "$aros_kernel_objdump"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11176 $as_echo "$aros_kernel_objdump" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11185 else
11186 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11187 set dummy $aros_kernel_objdump; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 case $aros_kernel_objdump in
11194 [\\/]* | ?:[\\/]*)
11195 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11214 esac
11216 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11217 if test -n "$aros_kernel_objdump"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11219 $as_echo "$aros_kernel_objdump" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11228 if test "x${crosstools}" != "xyes" ; then
11229 req_avail=yes
11230 if test "$aros_kernel_objcopy" = ""; then
11231 req_avail=no
11233 if test "$aros_kernel_objcopy" = "no"; then
11234 req_avail=no
11236 if test "$req_avail" = "no"; then
11237 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11239 req_avail=yes
11240 if test "$aros_kernel_objdump" = ""; then
11241 req_avail=no
11243 if test "$aros_kernel_objdump" = "no"; then
11244 req_avail=no
11246 if test "$req_avail" = "no"; then
11247 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11253 $as_echo_n "checking which target tools to use... " >&6; }
11254 if test "$aros_target_toolchain" = "yes"; then
11255 if test "$aros_toolchain" = "llvm" ; then
11256 msg_result="llvm"
11257 else
11258 msg_result=$target_tool_prefix
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11261 $as_echo "$msg_result" >&6; }
11262 # We are building AROS crosstools
11263 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11264 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11265 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11266 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11267 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11268 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11269 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11270 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11271 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11272 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11273 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11274 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11275 else
11276 # Determine whether AROS or ELF tools should be used
11277 if test "$aros_tool_prefix" = "none"; then
11278 aros_tool_prefix="${elf_tool_prefix}"
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11282 $as_echo "$aros_tool_prefix" >&6; }
11283 # We are *not* building AROS crosstools - use the AROS or ELF tools
11285 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11286 if test "$cross_compiling" = "yes" ; then
11287 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11288 set dummy ${target_tool_prefix}cpp; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if ${ac_cv_path_orig_target_cpp+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 case $orig_target_cpp in
11295 [\\/]* | ?:[\\/]*)
11296 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11310 done
11311 done
11312 IFS=$as_save_IFS
11315 esac
11317 orig_target_cpp=$ac_cv_path_orig_target_cpp
11318 if test -n "$orig_target_cpp"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11320 $as_echo "$orig_target_cpp" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11327 else
11328 if test "$GCC" = "yes"; then
11329 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11330 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11331 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if ${ac_cv_path_orig_target_cpp+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 case $orig_target_cpp in
11338 [\\/]* | ?:[\\/]*)
11339 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in `dirname $aros_gcc_cpp`
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11353 done
11354 done
11355 IFS=$as_save_IFS
11358 esac
11360 orig_target_cpp=$ac_cv_path_orig_target_cpp
11361 if test -n "$orig_target_cpp"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11363 $as_echo "$orig_target_cpp" >&6; }
11364 else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11371 if test "$orig_target_cpp" = ""; then
11372 # Extract the first word of "cpp", so it can be a program name with args.
11373 set dummy cpp; 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_orig_target_cpp+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 case $orig_target_cpp in
11380 [\\/]* | ?:[\\/]*)
11381 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
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_orig_target_cpp="$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 orig_target_cpp=$ac_cv_path_orig_target_cpp
11403 if test -n "$orig_target_cpp"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11405 $as_echo "$orig_target_cpp" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11414 else
11415 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11416 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_path_orig_target_cpp+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 case $orig_target_cpp in
11423 [\\/]* | ?:[\\/]*)
11424 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11438 done
11439 done
11440 IFS=$as_save_IFS
11443 esac
11445 orig_target_cpp=$ac_cv_path_orig_target_cpp
11446 if test -n "$orig_target_cpp"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11448 $as_echo "$orig_target_cpp" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11457 req_avail=yes
11458 if test "$orig_target_cpp" = ""; then
11459 req_avail=no
11461 if test "$orig_target_cpp" = "no"; then
11462 req_avail=no
11464 if test "$req_avail" = "no"; then
11465 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11468 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11469 if test "$cross_compiling" = "yes" ; then
11470 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11471 set dummy ${target_tool_prefix}gcc; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_path_orig_target_cc+:} false; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 case $orig_target_cc in
11478 [\\/]* | ?:[\\/]*)
11479 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11493 done
11494 done
11495 IFS=$as_save_IFS
11498 esac
11500 orig_target_cc=$ac_cv_path_orig_target_cc
11501 if test -n "$orig_target_cc"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11503 $as_echo "$orig_target_cc" >&6; }
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11510 else
11511 if test "$GCC" = "yes"; then
11512 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11513 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11514 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_path_orig_target_cc+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $orig_target_cc in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in `dirname $aros_gcc_gcc`
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11541 esac
11543 orig_target_cc=$ac_cv_path_orig_target_cc
11544 if test -n "$orig_target_cc"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11546 $as_echo "$orig_target_cc" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 if test "$orig_target_cc" = ""; then
11555 # Extract the first word of "gcc", so it can be a program name with args.
11556 set dummy gcc; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_path_orig_target_cc+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 case $orig_target_cc in
11563 [\\/]* | ?:[\\/]*)
11564 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11578 done
11579 done
11580 IFS=$as_save_IFS
11583 esac
11585 orig_target_cc=$ac_cv_path_orig_target_cc
11586 if test -n "$orig_target_cc"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11588 $as_echo "$orig_target_cc" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11597 else
11598 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11599 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_orig_target_cc+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 case $orig_target_cc in
11606 [\\/]* | ?:[\\/]*)
11607 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11621 done
11622 done
11623 IFS=$as_save_IFS
11626 esac
11628 orig_target_cc=$ac_cv_path_orig_target_cc
11629 if test -n "$orig_target_cc"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11631 $as_echo "$orig_target_cc" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11640 req_avail=yes
11641 if test "$orig_target_cc" = ""; then
11642 req_avail=no
11644 if test "$orig_target_cc" = "no"; then
11645 req_avail=no
11647 if test "$req_avail" = "no"; then
11648 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11651 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11652 if test "$cross_compiling" = "yes" ; then
11653 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11654 set dummy ${target_tool_prefix}g++; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_path_orig_target_cxx+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 case $orig_target_cxx in
11661 [\\/]* | ?:[\\/]*)
11662 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11676 done
11677 done
11678 IFS=$as_save_IFS
11681 esac
11683 orig_target_cxx=$ac_cv_path_orig_target_cxx
11684 if test -n "$orig_target_cxx"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11686 $as_echo "$orig_target_cxx" >&6; }
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11693 else
11694 if test "$GCC" = "yes"; then
11695 aros_gcc_g++=`$CC -print-prog-name=g++`
11696 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11697 set dummy `basename $aros_gcc_g++`; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_orig_target_cxx+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 case $orig_target_cxx in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in `dirname $aros_gcc_g++`
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11719 done
11720 done
11721 IFS=$as_save_IFS
11724 esac
11726 orig_target_cxx=$ac_cv_path_orig_target_cxx
11727 if test -n "$orig_target_cxx"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11729 $as_echo "$orig_target_cxx" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11737 if test "$orig_target_cxx" = ""; then
11738 # Extract the first word of "g++", so it can be a program name with args.
11739 set dummy g++; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_path_orig_target_cxx+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 case $orig_target_cxx in
11746 [\\/]* | ?:[\\/]*)
11747 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11761 done
11762 done
11763 IFS=$as_save_IFS
11766 esac
11768 orig_target_cxx=$ac_cv_path_orig_target_cxx
11769 if test -n "$orig_target_cxx"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11771 $as_echo "$orig_target_cxx" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11780 else
11781 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11782 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_orig_target_cxx+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 case $orig_target_cxx in
11789 [\\/]* | ?:[\\/]*)
11790 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11804 done
11805 done
11806 IFS=$as_save_IFS
11809 esac
11811 orig_target_cxx=$ac_cv_path_orig_target_cxx
11812 if test -n "$orig_target_cxx"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11814 $as_echo "$orig_target_cxx" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11823 req_avail=yes
11824 if test "$orig_target_cxx" = ""; then
11825 req_avail=no
11827 if test "$orig_target_cxx" = "no"; then
11828 req_avail=no
11830 if test "$req_avail" = "no"; then
11831 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11834 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11835 if test "$cross_compiling" = "yes" ; then
11836 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11837 set dummy ${target_tool_prefix}gcc; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_ld+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 case $orig_target_ld in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11859 done
11860 done
11861 IFS=$as_save_IFS
11864 esac
11866 orig_target_ld=$ac_cv_path_orig_target_ld
11867 if test -n "$orig_target_ld"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11869 $as_echo "$orig_target_ld" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 else
11877 if test "$GCC" = "yes"; then
11878 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11879 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11880 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_ld+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $orig_target_ld in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in `dirname $aros_gcc_gcc`
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11907 esac
11909 orig_target_ld=$ac_cv_path_orig_target_ld
11910 if test -n "$orig_target_ld"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11912 $as_echo "$orig_target_ld" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test "$orig_target_ld" = ""; then
11921 # Extract the first word of "gcc", so it can be a program name with args.
11922 set dummy gcc; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_path_orig_target_ld+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 case $orig_target_ld in
11929 [\\/]* | ?:[\\/]*)
11930 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11946 IFS=$as_save_IFS
11949 esac
11951 orig_target_ld=$ac_cv_path_orig_target_ld
11952 if test -n "$orig_target_ld"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11954 $as_echo "$orig_target_ld" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11963 else
11964 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
11965 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_orig_target_ld+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 case $orig_target_ld in
11972 [\\/]* | ?:[\\/]*)
11973 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11992 esac
11994 orig_target_ld=$ac_cv_path_orig_target_ld
11995 if test -n "$orig_target_ld"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11997 $as_echo "$orig_target_ld" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12006 req_avail=yes
12007 if test "$orig_target_ld" = ""; then
12008 req_avail=no
12010 if test "$orig_target_ld" = "no"; then
12011 req_avail=no
12013 if test "$req_avail" = "no"; then
12014 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12017 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12018 if test "$cross_compiling" = "yes" ; then
12019 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12020 set dummy ${target_tool_prefix}as; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if ${ac_cv_path_orig_target_as+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 case $orig_target_as in
12027 [\\/]* | ?:[\\/]*)
12028 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12042 done
12043 done
12044 IFS=$as_save_IFS
12047 esac
12049 orig_target_as=$ac_cv_path_orig_target_as
12050 if test -n "$orig_target_as"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12052 $as_echo "$orig_target_as" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12059 else
12060 if test "$GCC" = "yes"; then
12061 aros_gcc_as=`$CC -print-prog-name=as`
12062 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12063 set dummy `basename $aros_gcc_as`; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_path_orig_target_as+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 case $orig_target_as in
12070 [\\/]* | ?:[\\/]*)
12071 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in `dirname $aros_gcc_as`
12077 IFS=$as_save_IFS
12078 test -z "$as_dir" && as_dir=.
12079 for ac_exec_ext in '' $ac_executable_extensions; do
12080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12081 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083 break 2
12085 done
12086 done
12087 IFS=$as_save_IFS
12090 esac
12092 orig_target_as=$ac_cv_path_orig_target_as
12093 if test -n "$orig_target_as"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12095 $as_echo "$orig_target_as" >&6; }
12096 else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12103 if test "$orig_target_as" = ""; then
12104 # Extract the first word of "as", so it can be a program name with args.
12105 set dummy as; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_orig_target_as+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 case $orig_target_as in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12129 IFS=$as_save_IFS
12132 esac
12134 orig_target_as=$ac_cv_path_orig_target_as
12135 if test -n "$orig_target_as"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12137 $as_echo "$orig_target_as" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12146 else
12147 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12148 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_path_orig_target_as+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 case $orig_target_as in
12155 [\\/]* | ?:[\\/]*)
12156 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12170 done
12171 done
12172 IFS=$as_save_IFS
12175 esac
12177 orig_target_as=$ac_cv_path_orig_target_as
12178 if test -n "$orig_target_as"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12180 $as_echo "$orig_target_as" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12189 req_avail=yes
12190 if test "$orig_target_as" = ""; then
12191 req_avail=no
12193 if test "$orig_target_as" = "no"; then
12194 req_avail=no
12196 if test "$req_avail" = "no"; then
12197 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12200 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12201 if test "$cross_compiling" = "yes" ; then
12202 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12203 set dummy ${target_tool_prefix}ar; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_orig_target_ar+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 case $orig_target_ar in
12210 [\\/]* | ?:[\\/]*)
12211 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12221 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12225 done
12226 done
12227 IFS=$as_save_IFS
12230 esac
12232 orig_target_ar=$ac_cv_path_orig_target_ar
12233 if test -n "$orig_target_ar"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12235 $as_echo "$orig_target_ar" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12242 else
12243 if test "$GCC" = "yes"; then
12244 aros_gcc_ar=`$CC -print-prog-name=ar`
12245 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12246 set dummy `basename $aros_gcc_ar`; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_path_orig_target_ar+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 case $orig_target_ar in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in `dirname $aros_gcc_ar`
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12268 done
12269 done
12270 IFS=$as_save_IFS
12273 esac
12275 orig_target_ar=$ac_cv_path_orig_target_ar
12276 if test -n "$orig_target_ar"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12278 $as_echo "$orig_target_ar" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12286 if test "$orig_target_ar" = ""; then
12287 # Extract the first word of "ar", so it can be a program name with args.
12288 set dummy ar; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if ${ac_cv_path_orig_target_ar+:} false; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 case $orig_target_ar in
12295 [\\/]* | ?:[\\/]*)
12296 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12310 done
12311 done
12312 IFS=$as_save_IFS
12315 esac
12317 orig_target_ar=$ac_cv_path_orig_target_ar
12318 if test -n "$orig_target_ar"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12320 $as_echo "$orig_target_ar" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12329 else
12330 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12331 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_path_orig_target_ar+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 case $orig_target_ar in
12338 [\\/]* | ?:[\\/]*)
12339 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12353 done
12354 done
12355 IFS=$as_save_IFS
12358 esac
12360 orig_target_ar=$ac_cv_path_orig_target_ar
12361 if test -n "$orig_target_ar"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12363 $as_echo "$orig_target_ar" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12372 req_avail=yes
12373 if test "$orig_target_ar" = ""; then
12374 req_avail=no
12376 if test "$orig_target_ar" = "no"; then
12377 req_avail=no
12379 if test "$req_avail" = "no"; then
12380 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12383 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12384 if test "$cross_compiling" = "yes" ; then
12385 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12386 set dummy ${target_tool_prefix}ar; 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_ranlib+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 case $orig_target_ranlib in
12393 [\\/]* | ?:[\\/]*)
12394 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_orig_target_ranlib
12416 if test -n "$orig_target_ranlib"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12418 $as_echo "$orig_target_ranlib" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12425 else
12426 if test "$GCC" = "yes"; then
12427 aros_gcc_ar=`$CC -print-prog-name=ar`
12428 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12429 set dummy `basename $aros_gcc_ar`; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 case $orig_target_ranlib in
12436 [\\/]* | ?:[\\/]*)
12437 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in `dirname $aros_gcc_ar`
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12451 done
12452 done
12453 IFS=$as_save_IFS
12456 esac
12458 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12459 if test -n "$orig_target_ranlib"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12461 $as_echo "$orig_target_ranlib" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12469 if test "$orig_target_ranlib" = ""; then
12470 # Extract the first word of "ar", so it can be a program name with args.
12471 set dummy ar; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $orig_target_ranlib in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12498 esac
12500 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12501 if test -n "$orig_target_ranlib"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12503 $as_echo "$orig_target_ranlib" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12512 else
12513 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12514 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 case $orig_target_ranlib in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12538 IFS=$as_save_IFS
12541 esac
12543 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12544 if test -n "$orig_target_ranlib"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12546 $as_echo "$orig_target_ranlib" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12555 req_avail=yes
12556 if test "$orig_target_ranlib" = ""; then
12557 req_avail=no
12559 if test "$orig_target_ranlib" = "no"; then
12560 req_avail=no
12562 if test "$req_avail" = "no"; then
12563 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12566 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12567 if test "$cross_compiling" = "yes" ; then
12568 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12569 set dummy ${target_tool_prefix}nm; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if ${ac_cv_path_orig_target_nm+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 case $orig_target_nm in
12576 [\\/]* | ?:[\\/]*)
12577 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12587 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589 break 2
12591 done
12592 done
12593 IFS=$as_save_IFS
12596 esac
12598 orig_target_nm=$ac_cv_path_orig_target_nm
12599 if test -n "$orig_target_nm"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12601 $as_echo "$orig_target_nm" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12608 else
12609 if test "$GCC" = "yes"; then
12610 aros_gcc_nm=`$CC -print-prog-name=nm`
12611 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12612 set dummy `basename $aros_gcc_nm`; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_path_orig_target_nm+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 case $orig_target_nm in
12619 [\\/]* | ?:[\\/]*)
12620 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in `dirname $aros_gcc_nm`
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 break 2
12634 done
12635 done
12636 IFS=$as_save_IFS
12639 esac
12641 orig_target_nm=$ac_cv_path_orig_target_nm
12642 if test -n "$orig_target_nm"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12644 $as_echo "$orig_target_nm" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12652 if test "$orig_target_nm" = ""; then
12653 # Extract the first word of "nm", so it can be a program name with args.
12654 set dummy nm; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_path_orig_target_nm+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 case $orig_target_nm in
12661 [\\/]* | ?:[\\/]*)
12662 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12676 done
12677 done
12678 IFS=$as_save_IFS
12681 esac
12683 orig_target_nm=$ac_cv_path_orig_target_nm
12684 if test -n "$orig_target_nm"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12686 $as_echo "$orig_target_nm" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12695 else
12696 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12697 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_path_orig_target_nm+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 case $orig_target_nm in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12719 done
12720 done
12721 IFS=$as_save_IFS
12724 esac
12726 orig_target_nm=$ac_cv_path_orig_target_nm
12727 if test -n "$orig_target_nm"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12729 $as_echo "$orig_target_nm" >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12738 req_avail=yes
12739 if test "$orig_target_nm" = ""; then
12740 req_avail=no
12742 if test "$orig_target_nm" = "no"; then
12743 req_avail=no
12745 if test "$req_avail" = "no"; then
12746 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12749 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12750 if test "$cross_compiling" = "yes" ; then
12751 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12752 set dummy ${target_tool_prefix}strip; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_orig_target_strip+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 case $orig_target_strip in
12759 [\\/]* | ?:[\\/]*)
12760 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12774 done
12775 done
12776 IFS=$as_save_IFS
12779 esac
12781 orig_target_strip=$ac_cv_path_orig_target_strip
12782 if test -n "$orig_target_strip"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12784 $as_echo "$orig_target_strip" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12791 else
12792 if test "$GCC" = "yes"; then
12793 aros_gcc_strip=`$CC -print-prog-name=strip`
12794 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12795 set dummy `basename $aros_gcc_strip`; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_path_orig_target_strip+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 case $orig_target_strip in
12802 [\\/]* | ?:[\\/]*)
12803 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in `dirname $aros_gcc_strip`
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12822 esac
12824 orig_target_strip=$ac_cv_path_orig_target_strip
12825 if test -n "$orig_target_strip"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12827 $as_echo "$orig_target_strip" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12835 if test "$orig_target_strip" = ""; then
12836 # Extract the first word of "strip", so it can be a program name with args.
12837 set dummy strip; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_orig_target_strip+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 case $orig_target_strip in
12844 [\\/]* | ?:[\\/]*)
12845 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12851 IFS=$as_save_IFS
12852 test -z "$as_dir" && as_dir=.
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857 break 2
12859 done
12860 done
12861 IFS=$as_save_IFS
12864 esac
12866 orig_target_strip=$ac_cv_path_orig_target_strip
12867 if test -n "$orig_target_strip"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12869 $as_echo "$orig_target_strip" >&6; }
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12878 else
12879 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12880 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_orig_target_strip+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 case $orig_target_strip in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12902 done
12903 done
12904 IFS=$as_save_IFS
12907 esac
12909 orig_target_strip=$ac_cv_path_orig_target_strip
12910 if test -n "$orig_target_strip"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12912 $as_echo "$orig_target_strip" >&6; }
12913 else
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12921 req_avail=yes
12922 if test "$orig_target_strip" = ""; then
12923 req_avail=no
12925 if test "$orig_target_strip" = "no"; then
12926 req_avail=no
12928 if test "$req_avail" = "no"; then
12929 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12932 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
12933 if test "$cross_compiling" = "yes" ; then
12934 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12935 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 case $orig_target_objcopy in
12942 [\\/]* | ?:[\\/]*)
12943 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12962 esac
12964 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12965 if test -n "$orig_target_objcopy"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12967 $as_echo "$orig_target_objcopy" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12974 else
12975 if test "$GCC" = "yes"; then
12976 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12977 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12978 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 case $orig_target_objcopy in
12985 [\\/]* | ?:[\\/]*)
12986 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in `dirname $aros_gcc_objcopy`
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 break 2
13000 done
13001 done
13002 IFS=$as_save_IFS
13005 esac
13007 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13008 if test -n "$orig_target_objcopy"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13010 $as_echo "$orig_target_objcopy" >&6; }
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13018 if test "$orig_target_objcopy" = ""; then
13019 # Extract the first word of "objcopy", so it can be a program name with args.
13020 set dummy objcopy; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 case $orig_target_objcopy in
13027 [\\/]* | ?:[\\/]*)
13028 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13038 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13042 done
13043 done
13044 IFS=$as_save_IFS
13047 esac
13049 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13050 if test -n "$orig_target_objcopy"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13052 $as_echo "$orig_target_objcopy" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13061 else
13062 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13063 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 case $orig_target_objcopy in
13070 [\\/]* | ?:[\\/]*)
13071 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13085 done
13086 done
13087 IFS=$as_save_IFS
13090 esac
13092 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13093 if test -n "$orig_target_objcopy"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13095 $as_echo "$orig_target_objcopy" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13104 req_avail=yes
13105 if test "$orig_target_objcopy" = ""; then
13106 req_avail=no
13108 if test "$orig_target_objcopy" = "no"; then
13109 req_avail=no
13111 if test "$req_avail" = "no"; then
13112 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13115 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13116 if test "$cross_compiling" = "yes" ; then
13117 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13118 set dummy ${target_tool_prefix}objdump; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_path_orig_target_objdump+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 case $orig_target_objdump in
13125 [\\/]* | ?:[\\/]*)
13126 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13145 esac
13147 orig_target_objdump=$ac_cv_path_orig_target_objdump
13148 if test -n "$orig_target_objdump"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13150 $as_echo "$orig_target_objdump" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13157 else
13158 if test "$GCC" = "yes"; then
13159 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13160 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13161 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if ${ac_cv_path_orig_target_objdump+:} false; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 case $orig_target_objdump in
13168 [\\/]* | ?:[\\/]*)
13169 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in `dirname $aros_gcc_objdump`
13175 IFS=$as_save_IFS
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 break 2
13183 done
13184 done
13185 IFS=$as_save_IFS
13188 esac
13190 orig_target_objdump=$ac_cv_path_orig_target_objdump
13191 if test -n "$orig_target_objdump"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13193 $as_echo "$orig_target_objdump" >&6; }
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13201 if test "$orig_target_objdump" = ""; then
13202 # Extract the first word of "objdump", so it can be a program name with args.
13203 set dummy objdump; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_orig_target_objdump+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 case $orig_target_objdump in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13225 done
13226 done
13227 IFS=$as_save_IFS
13230 esac
13232 orig_target_objdump=$ac_cv_path_orig_target_objdump
13233 if test -n "$orig_target_objdump"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13235 $as_echo "$orig_target_objdump" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13244 else
13245 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13246 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_path_orig_target_objdump+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 case $orig_target_objdump in
13253 [\\/]* | ?:[\\/]*)
13254 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13268 done
13269 done
13270 IFS=$as_save_IFS
13273 esac
13275 orig_target_objdump=$ac_cv_path_orig_target_objdump
13276 if test -n "$orig_target_objdump"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13278 $as_echo "$orig_target_objdump" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13287 req_avail=yes
13288 if test "$orig_target_objdump" = ""; then
13289 req_avail=no
13291 if test "$orig_target_objdump" = "no"; then
13292 req_avail=no
13294 if test "$req_avail" = "no"; then
13295 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13299 if test "$kernel_tool_prefix" = "none" ; then
13300 # No kernel tools specified
13301 # Assume target tools == kernel tools with ELF wrapper
13302 aros_kernel_cc=$orig_target_cc
13303 aros_kernel_cxx=$orig_target_cxx
13304 aros_kernel_cpp=$orig_target_cpp
13305 aros_kernel_ld=$orig_target_ld
13306 aros_kernel_as=$orig_target_as
13307 aros_kernel_ar=$orig_target_ar
13308 aros_kernel_ranlib=$orig_target_ranlib
13309 aros_kernel_nm=$orig_target_nm
13310 aros_kernel_strip=$orig_target_strip
13311 aros_kernel_objcopy=$orig_target_objcopy
13312 aros_kernel_objdump=$orig_target_objdump
13313 use_kernel_cc_wrapper=yes
13316 # At this point, all aros_kernel_* and aros_target_*
13317 # tools should be set up correctly
13319 CC="$aros_kernel_cc $kernel_tool_flags"
13320 CPP="$aros_kernel_cpp"
13322 #-----------------------------------------------------------------------------
13324 # Find all the tools we need to compile. This could be cross-compiling
13325 # though! If that is the case we use the GNU form of the target and
13326 # simply add this to the front of the binary name. This is rather simple,
13327 # but it should work under most circumstances.
13329 # The default tools are to use the same as the host, but only if the
13330 # host and target CPU are the same. With GCC this is normally enough.
13333 aros_cc_pre=""
13334 aros_shared_ld="$aros_host_ld"
13336 aros_target_mkdep="$aros_host_mkdep"
13338 # The default tools executables to be linked to.
13339 if test "$rescomp" != ""; then
13340 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13341 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 case $aros_kernel_rescomp in
13348 [\\/]* | ?:[\\/]*)
13349 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13368 esac
13370 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13371 if test -n "$aros_kernel_rescomp"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13373 $as_echo "$aros_kernel_rescomp" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13380 req_avail=yes
13381 if test "$aros_kernel_rescomp" = ""; then
13382 req_avail=no
13384 if test "$aros_kernel_rescomp" = "no"; then
13385 req_avail=no
13387 if test "$req_avail" = "no"; then
13388 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13392 # Set up the sources for the symlink farm
13393 if test "$crosstools" = "yes"; then
13394 crosstools_target=tools-crosstools
13397 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13398 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13400 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13401 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13402 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13403 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13404 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13405 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13406 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13408 # aros_cc_pre is a variable that is added to the front of the compiler name
13409 # in the generated aros-gcc shell script. We need this to enable the cache
13410 # to work across cleaned builds. Also, support DISTCC using the correct
13411 # environment variable.
13414 if test "x${DISTCC}" != "x" ; then
13415 if test "x${CCACHE}" != "x" ; then
13416 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13417 else
13418 aros_cc_pre="${DISTCC} "
13420 else
13421 if test "x${CCACHE}" != "x" ; then
13422 aros_cc_pre="${CCACHE} "
13426 aros_target_nostdinc_cflags=-nostdinc
13428 aros_target_nostartup_ldflags=-nostartfiles
13430 aros_target_nix_ldflags=-nix
13432 aros_target_detach_ldflags=-detach
13434 aros_target_nostdlib_ldflags=-nostdlib
13437 # Target tools
13439 if test "$aros_target_toolchain" != "yes"; then
13440 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13441 if test "$GCC" = "yes"; then
13442 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13444 else
13445 # We do not know which c compiler version we are going to build and what we need to know
13446 # here is different for different versions so this will be set later during the
13447 # build of crosstools.
13448 if test "$aros_toolchain" = "gnu" ; then
13449 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13450 elif test "$aros_toolchain" = "llvm" ; then
13451 prefix="$AROS_CROSSTOOLSDIR/bin/"
13453 aros_target_cc_path=@aros_target_cc_path@
13455 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13456 aros_target_cc="${prefix}${toolchain_c_compiler}"
13457 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13458 aros_target_as="${prefix}${toolchain_as}"
13459 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13460 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13461 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13462 aros_target_objdump="${prefix}${toolchain_objdump}"
13463 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13464 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13465 aros_target_strip="${prefix}${toolchain_strip}"
13466 aros_plain_nm="${prefix}${toolchain_nm}"
13467 aros_plain_ar="${prefix}${toolchain_ar}"
13469 # Check whether --enable-includes was given.
13470 if test "${enable_includes+set}" = set; then :
13471 enableval=$enable_includes; aros_target_incl=$enable_includes
13472 else
13473 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13477 if test "$aros_kernel_includes" = ""; then
13478 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13479 aros_kernel_includes="-isystem $aros_target_incl"
13483 if test "$aros_kernel_includes" != "" ; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13485 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13486 if test "$aros_kernel_cc_includes" = "" ; then
13487 # Try to guess where the directory is.
13488 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13489 if test -d $aros_kernel_cc_includes; then
13490 # Check if there is also an include-fixed directory and add it
13491 # to kernel compiler's include path as it may contain some of
13492 # the headers we need.
13493 if test -d "$aros_kernel_cc_includes"-fixed; then
13494 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13496 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13497 case ${host_cpu} in
13498 i[3456]86)
13499 host_cpu_glibc=i386
13502 host_cpu_glibc=${host_cpu}
13504 esac
13505 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13506 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13508 else
13509 # The directory doesn't exist, we need to do some more work.
13510 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13512 # These are the headers we're looking for.
13513 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13514 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13515 zutil.h stdint.h"
13517 dirs=
13518 for h in $headers; do
13519 # Which other headers are needed by each of the above?
13520 deps=$(echo "#include <$h>" | \
13521 $aros_kernel_cc -E -M - 2>/dev/null | \
13522 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13524 # Copy all the needed headers to a directory beneath gendir.
13525 for d in $deps; do
13526 h=$(basename $d)
13527 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13528 sed -n "s,^.*/include\(/.*\),\1,p")
13529 ! test -d $dir && mkdir -p $dir
13530 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13531 done
13532 done
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13536 $as_echo "$aros_kernel_cc_includes" >&6; }
13537 # Adding -nostdinc to kernel includes as they are always used together.
13538 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13541 if test "$crosstools" != "yes"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13543 $as_echo_n "checking for the target compiler's include path... " >&6; }
13544 if test "$aros_target_cc_includes" = "" ; then
13545 #try to guess where the directory is
13546 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13547 if ! test -d $aros_target_cc_includes; then
13548 #the directory doesn't exist, we need to do some more work
13549 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13551 #these are the headers we're looking for
13552 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13553 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13554 zutil.h"
13556 dirs=
13557 for h in $headers; do
13558 #which other headers each of the above headers needs?
13559 deps=$(echo "#include <$h>" | \
13560 $orig_target_cc -E -M - 2>/dev/null | \
13561 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13563 #copy all the needed headers to a directory beneath gendir
13564 for d in $deps; do
13565 h=$(basename $d)
13566 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13567 sed -n "s,^.*/include\(/.*\),\1,p")
13568 ! test -d $dir && mkdir -p $dir
13569 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13570 done
13571 done
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13575 $as_echo "$aros_target_cc_includes" >&6; }
13576 else
13577 # We do not know which c compiler version we are going to build and what we need to know
13578 # here is different for different versions so this will be set later during the
13579 # build of crosstools.
13580 aros_target_cc_includes=@aros_target_cc_includes@
13584 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13585 # On GCC >= 4.0 -iquote should be used
13588 save_cc="$CC"
13589 save_cflags="$CFLAGS"
13590 CFLAGS="-iquote."
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13592 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13593 if test "x-$crosstools" != "x-yes"; then
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13598 main ()
13602 return 0;
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 has_iquote="yes"
13607 else
13608 has_iquote="no"
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 else
13612 # we do know it is supported for the smallest version of ${toolchain_c_compiler} we are going to build
13613 # we assume it's also supported by later versions
13614 has_iquote=yes
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13617 $as_echo "$has_iquote" >&6; }
13618 if test "x-$has_iquote" = "x-yes" ; then
13619 host_cflags_iquote=-iquote
13620 host_cflags_iquote_end=
13621 else
13622 host_cflags_iquote=-I
13623 host_cflags_iquote_end=-I-
13625 kernel_cflags_iquote=$host_cflags_iquote
13626 kernel_cflags_iquote_end=$host_cflags_iquote_end
13627 if test "x-$cross_compiling" = "x-yes"; then
13628 CC="$aros_kernel_cc"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13630 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13631 if test "x-$crosstools" != "x-yes"; then
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13636 main ()
13640 return 0;
13642 _ACEOF
13643 if ac_fn_c_try_compile "$LINENO"; then :
13644 use_no_stack_protector="yes"
13645 else
13646 use_no_stack_protector="no"
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649 else
13650 # we do know it is supported for the smallest version of gcc we are going to build
13651 # we assume it's also supported by later versions
13652 use_no_stack_protector=yes
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13655 $as_echo "$use_no_stack_protector" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13657 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13658 if test "x-$crosstools" != "x-yes"; then
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13663 main ()
13667 return 0;
13669 _ACEOF
13670 if ac_fn_c_try_compile "$LINENO"; then :
13671 has_iquote="yes"
13672 else
13673 has_iquote="no"
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 else
13677 # we do know it is supported for the smallest version of gcc we are going to build
13678 # we assume it's also supported by later versions
13679 has_iquote=yes
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13682 $as_echo "$has_iquote" >&6; }
13683 if test "x-$has_iquote" = "x-yes" ; then
13684 kernel_cflags_iquote=-iquote
13685 kernel_cflags_iquote_end=
13686 else
13687 kernel_cflags_iquote=-I
13688 kernel_cflags_iquote_end=-I-
13691 aros_cflags_iquote=$kernel_cflags_iquote
13692 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13693 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13694 CC="$orig_target_cc"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13696 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13697 if test "x-$crosstools" != "x-yes"; then
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13702 main ()
13706 return 0;
13708 _ACEOF
13709 if ac_fn_c_try_compile "$LINENO"; then :
13710 has_iquote="yes"
13711 else
13712 has_iquote="no"
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 else
13716 # we do know it is supported for the smallest version of gcc we are going to build
13717 # we assume it's also supported by later versions
13718 has_iquote=yes
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13721 $as_echo "$has_iquote" >&6; }
13722 if test "x-$has_iquote" = "x-yes" ; then
13723 aros_cflags_iquote=-iquote
13724 aros_cflags_iquote_end=
13725 else
13726 aros_cflags_iquote=-I
13727 aros_cflags_iquote_end=-I-
13730 if test "x-$use_no_stack_protector" = "x-yes" ; then
13731 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13734 #-----------------------------------------------------------------------------
13736 # Check if we can explicitly choose older version of symbol hashing
13738 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13739 CC="$aros_kernel_cc"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13741 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13746 main ()
13750 return 0;
13752 _ACEOF
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 use_hash_style="yes"
13755 else
13756 use_hash_style="no"
13758 rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13761 $as_echo "$use_hash_style" >&6; }
13762 if test "x-$use_hash_style" = "x-yes" ; then
13763 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13765 CC="$save_cc"
13766 CFLAGS="$save_cflags"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13777 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13779 # Check whether --with-resolution was given.
13780 if test "${with_resolution+set}" = set; then :
13781 withval=$with_resolution; resolution=$withval
13782 else
13783 resolution=none
13786 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13787 if test "$resolution" = "yes" ; then
13788 resolution="none"
13790 if test "$resolution" = "no" ; then
13791 resolution="none"
13793 if test "$resolution" != "none" ; then
13794 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13795 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13796 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13799 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13800 aros_cv_nominal_width=$aros_nominal_width
13801 aros_cv_nominal_height=$aros_nominal_height
13802 aros_cv_nominal_depth=$aros_nominal_depth
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13805 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13807 # Check whether --with-serial-debug was given.
13808 if test "${with_serial_debug+set}" = set; then :
13809 withval=$with_serial_debug; serial_debug=$withval
13810 else
13811 serial_debug=none
13814 if test "$aros_serial_debug" = 0 ; then
13815 serial_debug_forced=""
13816 if test "$serial_debug" = "yes" ; then
13817 serial_debug="1"
13819 if test "$serial_debug" = "no" ; then
13820 serial_debug="none"
13822 else
13823 serial_debug_forced="(forced)"
13824 serial_debug=$aros_serial_debug
13826 if test "$serial_debug" != "none" ; then
13827 aros_serial_debug=$serial_debug
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13829 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13836 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13837 # Check whether --enable-palm_debug_hack was given.
13838 if test "${enable_palm_debug_hack+set}" = set; then :
13839 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13840 else
13841 palm_debug_hack="no"
13844 if test "$palm_debug_hack" = "yes" ; then
13845 aros_palm_debug_hack="1"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13848 $as_echo "$palm_debug_hack" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13851 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13852 # Check whether --enable-usb30_code was given.
13853 if test "${enable_usb30_code+set}" = set; then :
13854 enableval=$enable_usb30_code; usb30_code="yes"
13855 else
13856 usb30_code="no"
13859 if test "$usb30_code" = "yes" ; then
13860 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13861 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13864 $as_echo "$usb30_code" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13867 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13868 # Check whether --enable-nesting_supervisor was given.
13869 if test "${enable_nesting_supervisor+set}" = set; then :
13870 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13871 else
13872 nesting_supervisor="no"
13875 if test "$nesting_supervisor" = "yes" ; then
13876 aros_nesting_supervisor="1"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13879 $as_echo "$nesting_supervisor" >&6; }
13881 if test "$aros_enable_mmu" = "" ; then
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13883 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13884 # Check whether --enable-mmu was given.
13885 if test "${enable_mmu+set}" = set; then :
13886 enableval=$enable_mmu; aros_enable_mmu=$enableval
13887 else
13888 aros_enable_mmu="yes"
13891 if test "$aros_enable_mmu" = "" ; then
13892 aros_enable_mmu="yes"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13895 $as_echo "$aros_enable_mmu" >&6; }
13897 if test "$aros_enable_mmu" = "no" ; then
13898 aros_enable_mmu="0"
13899 else
13900 aros_enable_mmu="1"
13904 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13906 if test "x-$need_dlopen" != "x-no" ; then
13907 save_libs="$LIBS"
13908 LIBS=""
13909 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13910 if test "x$ac_cv_func_dlopen" = xyes; then :
13911 have_dl="yes"
13912 else
13913 have_dl="no"
13916 if test "x-$have_dl" = "x-no" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13919 if ${ac_cv_lib_dl_dlopen+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-ldl $LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char dlopen ();
13935 main ()
13937 return dlopen ();
13939 return 0;
13941 _ACEOF
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_lib_dl_dlopen=yes
13944 else
13945 ac_cv_lib_dl_dlopen=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13954 have_dl="yes"
13955 aros_host_ldflags="$aros_host_ldflags -ldl"
13956 else
13957 have_dl="no"
13961 if test "x-$have_dl" = "x-no" ; then
13962 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13964 LIBS="$save_libs"
13968 # Check whether --enable-x11_hidd was given.
13969 if test "${enable_x11_hidd+set}" = set; then :
13970 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13971 else
13972 x11_hidd="$need_x11"
13975 case "x-$x11_hidd" in
13976 x-yes|x-no|x-auto) ;;
13977 *) x11_hidd="$need_x11" ;;
13978 esac
13980 ENABLE_X11=0
13982 if test "x-$x11_hidd" != "x-no" ; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13985 $as_echo_n "checking for X... " >&6; }
13988 # Check whether --with-x was given.
13989 if test "${with_x+set}" = set; then :
13990 withval=$with_x;
13993 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13994 if test "x$with_x" = xno; then
13995 # The user explicitly disabled X.
13996 have_x=disabled
13997 else
13998 case $x_includes,$x_libraries in #(
13999 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14000 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 # One or both of the vars are not set, and there is no cached value.
14004 ac_x_includes=no ac_x_libraries=no
14005 rm -f -r conftest.dir
14006 if mkdir conftest.dir; then
14007 cd conftest.dir
14008 cat >Imakefile <<'_ACEOF'
14009 incroot:
14010 @echo incroot='${INCROOT}'
14011 usrlibdir:
14012 @echo usrlibdir='${USRLIBDIR}'
14013 libdir:
14014 @echo libdir='${LIBDIR}'
14015 _ACEOF
14016 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14017 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14018 for ac_var in incroot usrlibdir libdir; do
14019 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14020 done
14021 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14022 for ac_extension in a so sl dylib la dll; do
14023 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14024 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14025 ac_im_usrlibdir=$ac_im_libdir; break
14027 done
14028 # Screen out bogus values from the imake configuration. They are
14029 # bogus both because they are the default anyway, and because
14030 # using them would break gcc on systems where it needs fixed includes.
14031 case $ac_im_incroot in
14032 /usr/include) ac_x_includes= ;;
14033 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14034 esac
14035 case $ac_im_usrlibdir in
14036 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14037 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14038 esac
14040 cd ..
14041 rm -f -r conftest.dir
14044 # Standard set of common directories for X headers.
14045 # Check X11 before X11Rn because it is often a symlink to the current release.
14046 ac_x_header_dirs='
14047 /usr/X11/include
14048 /usr/X11R7/include
14049 /usr/X11R6/include
14050 /usr/X11R5/include
14051 /usr/X11R4/include
14053 /usr/include/X11
14054 /usr/include/X11R7
14055 /usr/include/X11R6
14056 /usr/include/X11R5
14057 /usr/include/X11R4
14059 /usr/local/X11/include
14060 /usr/local/X11R7/include
14061 /usr/local/X11R6/include
14062 /usr/local/X11R5/include
14063 /usr/local/X11R4/include
14065 /usr/local/include/X11
14066 /usr/local/include/X11R7
14067 /usr/local/include/X11R6
14068 /usr/local/include/X11R5
14069 /usr/local/include/X11R4
14071 /usr/X386/include
14072 /usr/x386/include
14073 /usr/XFree86/include/X11
14075 /usr/include
14076 /usr/local/include
14077 /usr/unsupported/include
14078 /usr/athena/include
14079 /usr/local/x11r5/include
14080 /usr/lpp/Xamples/include
14082 /usr/openwin/include
14083 /usr/openwin/share/include'
14085 if test "$ac_x_includes" = no; then
14086 # Guess where to find include files, by looking for Xlib.h.
14087 # First, try using that file with no special directory specified.
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <X11/Xlib.h>
14091 _ACEOF
14092 if ac_fn_c_try_cpp "$LINENO"; then :
14093 # We can compile using X headers with no special include directory.
14094 ac_x_includes=
14095 else
14096 for ac_dir in $ac_x_header_dirs; do
14097 if test -r "$ac_dir/X11/Xlib.h"; then
14098 ac_x_includes=$ac_dir
14099 break
14101 done
14103 rm -f conftest.err conftest.i conftest.$ac_ext
14104 fi # $ac_x_includes = no
14106 if test "$ac_x_libraries" = no; then
14107 # Check for the libraries.
14108 # See if we find them without any special options.
14109 # Don't add to $LIBS permanently.
14110 ac_save_LIBS=$LIBS
14111 LIBS="-lX11 $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <X11/Xlib.h>
14116 main ()
14118 XrmInitialize ()
14120 return 0;
14122 _ACEOF
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 LIBS=$ac_save_LIBS
14125 # We can link X programs with no special library path.
14126 ac_x_libraries=
14127 else
14128 LIBS=$ac_save_LIBS
14129 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14131 # Don't even attempt the hair of trying to link an X program!
14132 for ac_extension in a so sl dylib la dll; do
14133 if test -r "$ac_dir/libX11.$ac_extension"; then
14134 ac_x_libraries=$ac_dir
14135 break 2
14137 done
14138 done
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 fi # $ac_x_libraries = no
14144 case $ac_x_includes,$ac_x_libraries in #(
14145 no,* | *,no | *\'*)
14146 # Didn't find X, or a directory has "'" in its name.
14147 ac_cv_have_x="have_x=no";; #(
14149 # Record where we found X for the cache.
14150 ac_cv_have_x="have_x=yes\
14151 ac_x_includes='$ac_x_includes'\
14152 ac_x_libraries='$ac_x_libraries'"
14153 esac
14155 ;; #(
14156 *) have_x=yes;;
14157 esac
14158 eval "$ac_cv_have_x"
14159 fi # $with_x != no
14161 if test "$have_x" != yes; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14163 $as_echo "$have_x" >&6; }
14164 no_x=yes
14165 else
14166 # If each of the values was on the command line, it overrides each guess.
14167 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14168 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14169 # Update the cache value to reflect the command line values.
14170 ac_cv_have_x="have_x=yes\
14171 ac_x_includes='$x_includes'\
14172 ac_x_libraries='$x_libraries'"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14174 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14178 x_cflags=
14179 for path in $x_libraries
14181 x_cflags="$x_cflags -L$path"
14182 done
14184 for path in $x_includes
14186 x_cflags="$x_cflags -I$path"
14187 done
14189 if test "x-$no_x" = "x-yes" ; then
14191 if test "x-$x11_hidd" != "x-auto" ; then
14192 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14195 else
14196 host_x_gfx=yes
14197 ENABLE_X11=1
14199 # Check whether --enable-x11_shm was given.
14200 if test "${enable_x11_shm+set}" = set; then :
14201 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14202 else
14203 x11_hidd_shm="auto"
14206 case "x-$x11_hidd_shm" in
14207 x-yes|x-no|x-auto) ;;
14208 *) x11_hidd_shm="auto" ;;
14209 esac
14211 have_xshm=no
14213 if test "x-$x11_hidd_shm" != "x-no" ; then
14215 for ac_header in sys/ipc.h
14216 do :
14217 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14218 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14219 cat >>confdefs.h <<_ACEOF
14220 #define HAVE_SYS_IPC_H 1
14221 _ACEOF
14225 done
14227 for ac_header in sys/shm.h
14228 do :
14229 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14230 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_SYS_SHM_H 1
14233 _ACEOF
14237 done
14240 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14242 save_cflags="$CFLAGS"
14243 CFLAGS="$CFLAGS $x_cflags"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14245 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14246 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 ac_check_lib_save_LIBS=$LIBS
14250 LIBS="-lXext $LIBS"
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char XShmQueryExtension ();
14262 main ()
14264 return XShmQueryExtension ();
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 ac_cv_lib_Xext_XShmQueryExtension=yes
14271 else
14272 ac_cv_lib_Xext_XShmQueryExtension=no
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 LIBS=$ac_check_lib_save_LIBS
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14279 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14280 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14281 have_xshm=yes
14284 CFLAGS="$save_cflags"
14288 if test "x-$have_xshm" = "x-yes" ; then
14289 DO_XSHM_SUPPORT="1"
14290 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14291 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14292 else
14293 DO_XSHM_SUPPORT="0"
14297 # Check whether --enable-x11_vidmode was given.
14298 if test "${enable_x11_vidmode+set}" = set; then :
14299 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14300 else
14301 x11_hidd_vidmode="auto"
14304 case "x-$x11_hidd_vidmode" in
14305 x-yes|x-no|x-auto) ;;
14306 *) x11_hidd_vidmode="auto" ;;
14307 esac
14309 have_vidmode=no
14311 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14313 save_cflags="$CFLAGS"
14314 CFLAGS="$CFLAGS $x_cflags"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14316 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14317 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_check_lib_save_LIBS=$LIBS
14321 LIBS="-lXxf86vm $LIBS"
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 char XF86VidModeQueryExtension ();
14333 main ()
14335 return XF86VidModeQueryExtension ();
14337 return 0;
14339 _ACEOF
14340 if ac_fn_c_try_link "$LINENO"; then :
14341 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14342 else
14343 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14345 rm -f core conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14350 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14351 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14352 have_vidmode=yes
14355 CFLAGS="$save_cflags"
14358 if test "x-$have_vidmode" = "x-yes" ; then
14359 DO_VIDMODE_SUPPORT="1"
14360 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14361 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14362 else
14363 DO_VIDMODE_SUPPORT="0"
14367 aros_host_x11_includes=$x_includes
14368 aros_host_x11_libdirs=$x_libraries
14372 # Check whether --enable-sdl_hidd was given.
14373 if test "${enable_sdl_hidd+set}" = set; then :
14374 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14375 else
14376 sdl_hidd="auto"
14379 case "x-$sdl_hidd" in
14380 x-yes|x-no|x-auto) ;;
14381 *) sdl_hidd="auto" ;;
14382 esac
14384 if test "x-$sdl_hidd" != "x-no" ; then
14386 SDL_VERSION=1.2.5
14388 # Check whether --with-sdl-prefix was given.
14389 if test "${with_sdl_prefix+set}" = set; then :
14390 withval=$with_sdl_prefix; sdl_prefix="$withval"
14391 else
14392 sdl_prefix=""
14396 # Check whether --with-sdl-exec-prefix was given.
14397 if test "${with_sdl_exec_prefix+set}" = set; then :
14398 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14399 else
14400 sdl_exec_prefix=""
14403 # Check whether --enable-sdltest was given.
14404 if test "${enable_sdltest+set}" = set; then :
14405 enableval=$enable_sdltest;
14406 else
14407 enable_sdltest=yes
14411 if test x$sdl_exec_prefix != x ; then
14412 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14413 if test x${SDL_CONFIG+set} != xset ; then
14414 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14417 if test x$sdl_prefix != x ; then
14418 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14419 if test x${SDL_CONFIG+set} != xset ; then
14420 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14424 as_save_PATH="$PATH"
14425 if test "x$prefix" != xNONE; then
14426 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14428 # Extract the first word of "sdl-config", so it can be a program name with args.
14429 set dummy sdl-config; ac_word=$2
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14431 $as_echo_n "checking for $ac_word... " >&6; }
14432 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 case $SDL_CONFIG in
14436 [\\/]* | ?:[\\/]*)
14437 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14451 done
14452 done
14453 IFS=$as_save_IFS
14455 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14457 esac
14459 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14460 if test -n "$SDL_CONFIG"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14462 $as_echo "$SDL_CONFIG" >&6; }
14463 else
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14469 PATH="$as_save_PATH"
14470 min_sdl_version=$SDL_VERSION
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14472 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14473 no_sdl=""
14474 if test "$SDL_CONFIG" = "no" ; then
14475 no_sdl=yes
14476 else
14477 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14478 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14480 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14482 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14484 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14485 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14486 if test "x$enable_sdltest" = "xyes" ; then
14487 ac_save_CFLAGS="$CFLAGS"
14488 ac_save_CXXFLAGS="$CXXFLAGS"
14489 ac_save_LIBS="$LIBS"
14490 CFLAGS="$CFLAGS $SDL_CFLAGS"
14491 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14492 LIBS="$LIBS $SDL_LIBS"
14493 rm -f conf.sdltest
14494 if test "$cross_compiling" = yes; then :
14495 echo $ac_n "cross compiling; assumed OK... $ac_c"
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14500 #include <stdio.h>
14501 #include <stdlib.h>
14502 #include <string.h>
14503 #include "SDL.h"
14505 char*
14506 my_strdup (char *str)
14508 char *new_str;
14510 if (str)
14512 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14513 strcpy (new_str, str);
14515 else
14516 new_str = NULL;
14518 return new_str;
14521 int main (int argc, char *argv[])
14523 int major, minor, micro;
14524 char *tmp_version;
14526 /* This hangs on some systems (?)
14527 system ("touch conf.sdltest");
14529 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14531 /* HP/UX 9 (%@#!) writes to sscanf strings */
14532 tmp_version = my_strdup("$min_sdl_version");
14533 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14534 printf("%s, bad version string\n", "$min_sdl_version");
14535 exit(1);
14538 if (($sdl_major_version > major) ||
14539 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14540 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14542 return 0;
14544 else
14546 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14547 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14548 printf("*** best to upgrade to the required version.\n");
14549 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14550 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14551 printf("*** config.cache before re-running configure\n");
14552 return 1;
14557 _ACEOF
14558 if ac_fn_c_try_run "$LINENO"; then :
14560 else
14561 no_sdl=yes
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14564 conftest.$ac_objext conftest.beam conftest.$ac_ext
14567 CFLAGS="$ac_save_CFLAGS"
14568 CXXFLAGS="$ac_save_CXXFLAGS"
14569 LIBS="$ac_save_LIBS"
14572 if test "x$no_sdl" = x ; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14574 $as_echo "yes" >&6; }
14575 have_sdl="yes"
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14579 if test "$SDL_CONFIG" = "no" ; then
14580 echo "*** The sdl-config script installed by SDL could not be found"
14581 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14582 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14583 echo "*** full path to sdl-config."
14584 else
14585 if test -f conf.sdltest ; then
14587 else
14588 echo "*** Could not run SDL test program, checking why..."
14589 CFLAGS="$CFLAGS $SDL_CFLAGS"
14590 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14591 LIBS="$LIBS $SDL_LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 #include <stdio.h>
14596 #include "SDL.h"
14598 int main(int argc, char *argv[])
14599 { return 0; }
14600 #undef main
14601 #define main K_and_R_C_main
14604 main ()
14606 return 0;
14608 return 0;
14610 _ACEOF
14611 if ac_fn_c_try_link "$LINENO"; then :
14612 echo "*** The test program compiled, but did not run. This usually means"
14613 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14614 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14615 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14616 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14617 echo "*** is required on your system"
14618 echo "***"
14619 echo "*** If you have an old version installed, it is best to remove it, although"
14620 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14621 else
14622 echo "*** The test program failed to compile or link. See the file config.log for the"
14623 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14624 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14625 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14627 rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14629 CFLAGS="$ac_save_CFLAGS"
14630 CXXFLAGS="$ac_save_CXXFLAGS"
14631 LIBS="$ac_save_LIBS"
14634 SDL_CFLAGS=""
14635 SDL_LIBS=""
14636 have_sdl="no"
14640 rm -f conf.sdltest
14643 if test "x-$have_sdl" != "x-yes" ; then
14645 if test "x-$sdl_hidd" != "x-auto" ; then
14646 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14649 else
14650 host_sdl_gfx=yes
14651 aros_host_sdl_cflags=$SDL_CFLAGS
14652 aros_host_sdl_libs=$SDL_LIBS
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14660 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14661 # Check whether --enable-dbus was given.
14662 if test "${enable_dbus+set}" = set; then :
14663 enableval=$enable_dbus; dbus="yes"
14664 else
14665 dbus="no"
14668 if test "$dbus" = "yes" ; then
14669 ENABLE_DBUS=1
14670 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14671 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14672 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14673 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14674 else
14675 ENABLE_DBUS=0
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14678 $as_echo "$dbus" >&6; }
14680 if test "$use_kernel_cc_wrapper" = "yes" ; then
14681 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14685 # Generic
14698 # Compatability with other Amiga-like operation systems
14701 # Host related
14730 # Target Related
14802 # Hosted Graphics Related
14820 # Native version related
14824 # Palm native version related
14827 # Unix/Hosted version related
14830 # MMU related
14833 # Apple iOS related
14838 # ARM default GCC target related
14845 # Android related
14850 # DBUS related
14857 #X11 related
14860 # Debug related
14866 # Collect-aros stuff: "-ius" to ignore undefined symbols
14869 # C compiler related
14874 #ObjC compiler related
14877 #Java related
14880 # USB3.0 code
14883 case "$aros_flavour" in
14884 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14885 aros_flavour="emulation" ;;
14886 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14887 aros_flavour="emulation" ;;
14888 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14889 aros_flavour="standalone";;
14890 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14891 aros_flavour="standalone";;
14892 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14893 aros_flavour="native" ;;
14894 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14895 aros_flavour="native" ;;
14896 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14897 aros_flavour="linklib" ;;
14898 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14899 aros_flavour="palmnative" ;;
14900 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14901 aros_flavour="mac68knative" ;;
14902 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14903 aros_flavour="ppcnative" ;;
14904 esac
14906 if test ! -d ${aros_inc_dir} ; then
14907 ${MKDIR} ${aros_inc_dir}
14909 if test ! -d ${aros_geninc_dir} ; then
14910 ${MKDIR} ${aros_geninc_dir}
14912 if test ! -d ${aros_hostcfg_dir} ; then
14913 ${MKDIR} ${aros_hostcfg_dir}
14915 if test ! -d ${aros_targetcfg_dir} ; then
14916 ${MKDIR} ${aros_targetcfg_dir}
14918 if test ! -d ${aros_tools_dir} ; then
14919 ${MKDIR} ${aros_tools_dir}
14921 if test ! -d ${aros_scripts_dir} ; then
14922 ${MKDIR} ${aros_scripts_dir}
14925 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14928 # Generic build tools (metamake, etc)
14929 ac_config_commands="$ac_config_commands genmf-executable-support"
14931 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14934 # Binutils
14935 ac_config_commands="$ac_config_commands binutils-support"
14937 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14940 # Bare Elf support script and spec
14941 if test "${use_kernel_cc_wrapper}" = "yes"; then
14942 ac_config_commands="$ac_config_commands elf-compiler-support"
14944 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"
14948 # Host compiler support scripts and spec
14949 if test "${aros_target_toolchain}" = "no"; then
14950 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14952 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"
14956 # Android support
14957 if test "$aros_target_variant" == "android"; then
14958 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14962 # cmake helper
14963 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14966 cat >confcache <<\_ACEOF
14967 # This file is a shell script that caches the results of configure
14968 # tests run on this system so they can be shared between configure
14969 # scripts and configure runs, see configure's option --config-cache.
14970 # It is not useful on other systems. If it contains results you don't
14971 # want to keep, you may remove or edit it.
14973 # config.status only pays attention to the cache file if you give it
14974 # the --recheck option to rerun configure.
14976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14978 # following values.
14980 _ACEOF
14982 # The following way of writing the cache mishandles newlines in values,
14983 # but we know of no workaround that is simple, portable, and efficient.
14984 # So, we kill variables containing newlines.
14985 # Ultrix sh set writes to stderr and can't be redirected directly,
14986 # and sets the high bit in the cache file unless we assign to the vars.
14988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14989 eval ac_val=\$$ac_var
14990 case $ac_val in #(
14991 *${as_nl}*)
14992 case $ac_var in #(
14993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14995 esac
14996 case $ac_var in #(
14997 _ | IFS | as_nl) ;; #(
14998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14999 *) { eval $ac_var=; unset $ac_var;} ;;
15000 esac ;;
15001 esac
15002 done
15004 (set) 2>&1 |
15005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15006 *${as_nl}ac_space=\ *)
15007 # `set' does not quote correctly, so add quotes: double-quote
15008 # substitution turns \\\\ into \\, and sed turns \\ into \.
15009 sed -n \
15010 "s/'/'\\\\''/g;
15011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15012 ;; #(
15014 # `set' quotes correctly as required by POSIX, so do not add quotes.
15015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15017 esac |
15018 sort
15020 sed '
15021 /^ac_cv_env_/b end
15022 t clear
15023 :clear
15024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15025 t end
15026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15027 :end' >>confcache
15028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15029 if test -w "$cache_file"; then
15030 if test "x$cache_file" != "x/dev/null"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15032 $as_echo "$as_me: updating cache $cache_file" >&6;}
15033 if test ! -f "$cache_file" || test -h "$cache_file"; then
15034 cat confcache >"$cache_file"
15035 else
15036 case $cache_file in #(
15037 */* | ?:*)
15038 mv -f confcache "$cache_file"$$ &&
15039 mv -f "$cache_file"$$ "$cache_file" ;; #(
15041 mv -f confcache "$cache_file" ;;
15042 esac
15045 else
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15050 rm -f confcache
15052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15053 # Let make expand exec_prefix.
15054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15056 DEFS=-DHAVE_CONFIG_H
15058 ac_libobjs=
15059 ac_ltlibobjs=
15061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15062 # 1. Remove the extension, and $U if already installed.
15063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15064 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15066 # will be set to the directory where LIBOBJS objects are built.
15067 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15068 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15069 done
15070 LIBOBJS=$ac_libobjs
15072 LTLIBOBJS=$ac_ltlibobjs
15076 : "${CONFIG_STATUS=./config.status}"
15077 ac_write_fail=0
15078 ac_clean_files_save=$ac_clean_files
15079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15081 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15082 as_write_fail=0
15083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15084 #! $SHELL
15085 # Generated by $as_me.
15086 # Run this file to recreate the current configuration.
15087 # Compiler output produced by configure, useful for debugging
15088 # configure, is in config.log if it exists.
15090 debug=false
15091 ac_cs_recheck=false
15092 ac_cs_silent=false
15094 SHELL=\${CONFIG_SHELL-$SHELL}
15095 export SHELL
15096 _ASEOF
15097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15098 ## -------------------- ##
15099 ## M4sh Initialization. ##
15100 ## -------------------- ##
15102 # Be more Bourne compatible
15103 DUALCASE=1; export DUALCASE # for MKS sh
15104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15105 emulate sh
15106 NULLCMD=:
15107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15108 # is contrary to our usage. Disable this feature.
15109 alias -g '${1+"$@"}'='"$@"'
15110 setopt NO_GLOB_SUBST
15111 else
15112 case `(set -o) 2>/dev/null` in #(
15113 *posix*) :
15114 set -o posix ;; #(
15115 *) :
15117 esac
15121 as_nl='
15123 export as_nl
15124 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15125 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15128 # Prefer a ksh shell builtin over an external printf program on Solaris,
15129 # but without wasting forks for bash or zsh.
15130 if test -z "$BASH_VERSION$ZSH_VERSION" \
15131 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15132 as_echo='print -r --'
15133 as_echo_n='print -rn --'
15134 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15135 as_echo='printf %s\n'
15136 as_echo_n='printf %s'
15137 else
15138 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15139 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15140 as_echo_n='/usr/ucb/echo -n'
15141 else
15142 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15143 as_echo_n_body='eval
15144 arg=$1;
15145 case $arg in #(
15146 *"$as_nl"*)
15147 expr "X$arg" : "X\\(.*\\)$as_nl";
15148 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15149 esac;
15150 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15152 export as_echo_n_body
15153 as_echo_n='sh -c $as_echo_n_body as_echo'
15155 export as_echo_body
15156 as_echo='sh -c $as_echo_body as_echo'
15159 # The user is always right.
15160 if test "${PATH_SEPARATOR+set}" != set; then
15161 PATH_SEPARATOR=:
15162 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15163 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15164 PATH_SEPARATOR=';'
15169 # IFS
15170 # We need space, tab and new line, in precisely that order. Quoting is
15171 # there to prevent editors from complaining about space-tab.
15172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15173 # splitting by setting IFS to empty value.)
15174 IFS=" "" $as_nl"
15176 # Find who we are. Look in the path if we contain no directory separator.
15177 as_myself=
15178 case $0 in #((
15179 *[\\/]* ) as_myself=$0 ;;
15180 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15186 done
15187 IFS=$as_save_IFS
15190 esac
15191 # We did not find ourselves, most probably we were run as `sh COMMAND'
15192 # in which case we are not to be found in the path.
15193 if test "x$as_myself" = x; then
15194 as_myself=$0
15196 if test ! -f "$as_myself"; then
15197 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15198 exit 1
15201 # Unset variables that we do not need and which cause bugs (e.g. in
15202 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15203 # suppresses any "Segmentation fault" message there. '((' could
15204 # trigger a bug in pdksh 5.2.14.
15205 for as_var in BASH_ENV ENV MAIL MAILPATH
15206 do eval test x\${$as_var+set} = xset \
15207 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15208 done
15209 PS1='$ '
15210 PS2='> '
15211 PS4='+ '
15213 # NLS nuisances.
15214 LC_ALL=C
15215 export LC_ALL
15216 LANGUAGE=C
15217 export LANGUAGE
15219 # CDPATH.
15220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15223 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15224 # ----------------------------------------
15225 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15226 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15227 # script with STATUS, using 1 if that was 0.
15228 as_fn_error ()
15230 as_status=$1; test $as_status -eq 0 && as_status=1
15231 if test "$4"; then
15232 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15233 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15235 $as_echo "$as_me: error: $2" >&2
15236 as_fn_exit $as_status
15237 } # as_fn_error
15240 # as_fn_set_status STATUS
15241 # -----------------------
15242 # Set $? to STATUS, without forking.
15243 as_fn_set_status ()
15245 return $1
15246 } # as_fn_set_status
15248 # as_fn_exit STATUS
15249 # -----------------
15250 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15251 as_fn_exit ()
15253 set +e
15254 as_fn_set_status $1
15255 exit $1
15256 } # as_fn_exit
15258 # as_fn_unset VAR
15259 # ---------------
15260 # Portably unset VAR.
15261 as_fn_unset ()
15263 { eval $1=; unset $1;}
15265 as_unset=as_fn_unset
15266 # as_fn_append VAR VALUE
15267 # ----------------------
15268 # Append the text in VALUE to the end of the definition contained in VAR. Take
15269 # advantage of any shell optimizations that allow amortized linear growth over
15270 # repeated appends, instead of the typical quadratic growth present in naive
15271 # implementations.
15272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15273 eval 'as_fn_append ()
15275 eval $1+=\$2
15277 else
15278 as_fn_append ()
15280 eval $1=\$$1\$2
15282 fi # as_fn_append
15284 # as_fn_arith ARG...
15285 # ------------------
15286 # Perform arithmetic evaluation on the ARGs, and store the result in the
15287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15288 # must be portable across $(()) and expr.
15289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15290 eval 'as_fn_arith ()
15292 as_val=$(( $* ))
15294 else
15295 as_fn_arith ()
15297 as_val=`expr "$@" || test $? -eq 1`
15299 fi # as_fn_arith
15302 if expr a : '\(a\)' >/dev/null 2>&1 &&
15303 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15304 as_expr=expr
15305 else
15306 as_expr=false
15309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15310 as_basename=basename
15311 else
15312 as_basename=false
15315 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15316 as_dirname=dirname
15317 else
15318 as_dirname=false
15321 as_me=`$as_basename -- "$0" ||
15322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15323 X"$0" : 'X\(//\)$' \| \
15324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15325 $as_echo X/"$0" |
15326 sed '/^.*\/\([^/][^/]*\)\/*$/{
15327 s//\1/
15330 /^X\/\(\/\/\)$/{
15331 s//\1/
15334 /^X\/\(\/\).*/{
15335 s//\1/
15338 s/.*/./; q'`
15340 # Avoid depending upon Character Ranges.
15341 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15342 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15343 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15344 as_cr_digits='0123456789'
15345 as_cr_alnum=$as_cr_Letters$as_cr_digits
15347 ECHO_C= ECHO_N= ECHO_T=
15348 case `echo -n x` in #(((((
15349 -n*)
15350 case `echo 'xy\c'` in
15351 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15352 xy) ECHO_C='\c';;
15353 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15354 ECHO_T=' ';;
15355 esac;;
15357 ECHO_N='-n';;
15358 esac
15360 rm -f conf$$ conf$$.exe conf$$.file
15361 if test -d conf$$.dir; then
15362 rm -f conf$$.dir/conf$$.file
15363 else
15364 rm -f conf$$.dir
15365 mkdir conf$$.dir 2>/dev/null
15367 if (echo >conf$$.file) 2>/dev/null; then
15368 if ln -s conf$$.file conf$$ 2>/dev/null; then
15369 as_ln_s='ln -s'
15370 # ... but there are two gotchas:
15371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15373 # In both cases, we have to default to `cp -pR'.
15374 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15375 as_ln_s='cp -pR'
15376 elif ln conf$$.file conf$$ 2>/dev/null; then
15377 as_ln_s=ln
15378 else
15379 as_ln_s='cp -pR'
15381 else
15382 as_ln_s='cp -pR'
15384 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15385 rmdir conf$$.dir 2>/dev/null
15388 # as_fn_mkdir_p
15389 # -------------
15390 # Create "$as_dir" as a directory, including parents if necessary.
15391 as_fn_mkdir_p ()
15394 case $as_dir in #(
15395 -*) as_dir=./$as_dir;;
15396 esac
15397 test -d "$as_dir" || eval $as_mkdir_p || {
15398 as_dirs=
15399 while :; do
15400 case $as_dir in #(
15401 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15402 *) as_qdir=$as_dir;;
15403 esac
15404 as_dirs="'$as_qdir' $as_dirs"
15405 as_dir=`$as_dirname -- "$as_dir" ||
15406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15407 X"$as_dir" : 'X\(//\)[^/]' \| \
15408 X"$as_dir" : 'X\(//\)$' \| \
15409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15410 $as_echo X"$as_dir" |
15411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15412 s//\1/
15415 /^X\(\/\/\)[^/].*/{
15416 s//\1/
15419 /^X\(\/\/\)$/{
15420 s//\1/
15423 /^X\(\/\).*/{
15424 s//\1/
15427 s/.*/./; q'`
15428 test -d "$as_dir" && break
15429 done
15430 test -z "$as_dirs" || eval "mkdir $as_dirs"
15431 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15434 } # as_fn_mkdir_p
15435 if mkdir -p . 2>/dev/null; then
15436 as_mkdir_p='mkdir -p "$as_dir"'
15437 else
15438 test -d ./-p && rmdir ./-p
15439 as_mkdir_p=false
15443 # as_fn_executable_p FILE
15444 # -----------------------
15445 # Test if FILE is an executable regular file.
15446 as_fn_executable_p ()
15448 test -f "$1" && test -x "$1"
15449 } # as_fn_executable_p
15450 as_test_x='test -x'
15451 as_executable_p=as_fn_executable_p
15453 # Sed expression to map a string onto a valid CPP name.
15454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15456 # Sed expression to map a string onto a valid variable name.
15457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15460 exec 6>&1
15461 ## ----------------------------------- ##
15462 ## Main body of $CONFIG_STATUS script. ##
15463 ## ----------------------------------- ##
15464 _ASEOF
15465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468 # Save the log message, to keep $0 and so on meaningful, and to
15469 # report actual input values of CONFIG_FILES etc. instead of their
15470 # values after options handling.
15471 ac_log="
15472 This file was extended by $as_me, which was
15473 generated by GNU Autoconf 2.69. Invocation command line was
15475 CONFIG_FILES = $CONFIG_FILES
15476 CONFIG_HEADERS = $CONFIG_HEADERS
15477 CONFIG_LINKS = $CONFIG_LINKS
15478 CONFIG_COMMANDS = $CONFIG_COMMANDS
15479 $ $0 $@
15481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15484 _ACEOF
15486 case $ac_config_files in *"
15487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15488 esac
15490 case $ac_config_headers in *"
15491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15492 esac
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 # Files that config.status was made for.
15497 config_files="$ac_config_files"
15498 config_headers="$ac_config_headers"
15499 config_commands="$ac_config_commands"
15501 _ACEOF
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504 ac_cs_usage="\
15505 \`$as_me' instantiates files and other configuration actions
15506 from templates according to the current configuration. Unless the files
15507 and actions are specified as TAGs, all are instantiated by default.
15509 Usage: $0 [OPTION]... [TAG]...
15511 -h, --help print this help, then exit
15512 -V, --version print version number and configuration settings, then exit
15513 --config print configuration, then exit
15514 -q, --quiet, --silent
15515 do not print progress messages
15516 -d, --debug don't remove temporary files
15517 --recheck update $as_me by reconfiguring in the same conditions
15518 --file=FILE[:TEMPLATE]
15519 instantiate the configuration file FILE
15520 --header=FILE[:TEMPLATE]
15521 instantiate the configuration header FILE
15523 Configuration files:
15524 $config_files
15526 Configuration headers:
15527 $config_headers
15529 Configuration commands:
15530 $config_commands
15532 Report bugs to the package provider."
15534 _ACEOF
15535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15537 ac_cs_version="\\
15538 config.status
15539 configured by $0, generated by GNU Autoconf 2.69,
15540 with options \\"\$ac_cs_config\\"
15542 Copyright (C) 2012 Free Software Foundation, Inc.
15543 This config.status script is free software; the Free Software Foundation
15544 gives unlimited permission to copy, distribute and modify it."
15546 ac_pwd='$ac_pwd'
15547 srcdir='$srcdir'
15548 test -n "\$AWK" || AWK=awk
15549 _ACEOF
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 # The default lists apply if the user does not specify any file.
15553 ac_need_defaults=:
15554 while test $# != 0
15556 case $1 in
15557 --*=?*)
15558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15560 ac_shift=:
15562 --*=)
15563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15564 ac_optarg=
15565 ac_shift=:
15568 ac_option=$1
15569 ac_optarg=$2
15570 ac_shift=shift
15572 esac
15574 case $ac_option in
15575 # Handling of the options.
15576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15577 ac_cs_recheck=: ;;
15578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15579 $as_echo "$ac_cs_version"; exit ;;
15580 --config | --confi | --conf | --con | --co | --c )
15581 $as_echo "$ac_cs_config"; exit ;;
15582 --debug | --debu | --deb | --de | --d | -d )
15583 debug=: ;;
15584 --file | --fil | --fi | --f )
15585 $ac_shift
15586 case $ac_optarg in
15587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 '') as_fn_error $? "missing file argument" ;;
15589 esac
15590 as_fn_append CONFIG_FILES " '$ac_optarg'"
15591 ac_need_defaults=false;;
15592 --header | --heade | --head | --hea )
15593 $ac_shift
15594 case $ac_optarg in
15595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15596 esac
15597 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15598 ac_need_defaults=false;;
15599 --he | --h)
15600 # Conflict between --help and --header
15601 as_fn_error $? "ambiguous option: \`$1'
15602 Try \`$0 --help' for more information.";;
15603 --help | --hel | -h )
15604 $as_echo "$ac_cs_usage"; exit ;;
15605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15607 ac_cs_silent=: ;;
15609 # This is an error.
15610 -*) as_fn_error $? "unrecognized option: \`$1'
15611 Try \`$0 --help' for more information." ;;
15613 *) as_fn_append ac_config_targets " $1"
15614 ac_need_defaults=false ;;
15616 esac
15617 shift
15618 done
15620 ac_configure_extra_args=
15622 if $ac_cs_silent; then
15623 exec 6>/dev/null
15624 ac_configure_extra_args="$ac_configure_extra_args --silent"
15627 _ACEOF
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 if \$ac_cs_recheck; then
15630 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15631 shift
15632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15633 CONFIG_SHELL='$SHELL'
15634 export CONFIG_SHELL
15635 exec "\$@"
15638 _ACEOF
15639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15640 exec 5>>config.log
15642 echo
15643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15644 ## Running $as_me. ##
15645 _ASBOX
15646 $as_echo "$ac_log"
15647 } >&5
15649 _ACEOF
15650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15652 # INIT-COMMANDS
15654 aros_tools_dir=${aros_tools_dir}
15657 aros_host_exe_suffix=${aros_host_exe_suffix}
15658 aros_tools_dir=${aros_tools_dir}
15659 aros_target_cpu=${aros_target_cpu}
15660 aros_target_arch=${aros_target_arch}
15661 aros_target_suffix=${aros_target_suffix}
15662 orig_target_nm=${orig_target_nm}
15663 orig_target_as=${orig_target_as}
15664 orig_target_ar=${orig_target_ar}
15665 orig_target_ranlib=${orig_target_ranlib}
15666 orig_target_objdump=${orig_target_objdump}
15667 orig_target_objcopy=${orig_target_objcopy}
15668 orig_target_strip=${orig_target_strip}
15669 aros_kernel_ld=${aros_kernel_ld}
15673 aros_host_exe_suffix=${aros_host_exe_suffix}
15674 aros_tools_dir=${aros_tools_dir}
15675 aros_target_cpu=${aros_target_cpu}
15676 aros_target_arch=${aros_target_arch}
15677 aros_target_suffix=${aros_target_suffix}
15678 aros_kernel_ld=${aros_kernel_ld}
15682 aros_host_exe_suffix=${aros_host_exe_suffix}
15683 aros_tools_dir=${aros_tools_dir}
15684 aros_target_cpu=${aros_target_cpu}
15685 aros_target_arch=${aros_target_arch}
15686 aros_target_suffix=${aros_target_suffix}
15690 _ACEOF
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694 # Handling of arguments.
15695 for ac_config_target in $ac_config_targets
15697 case $ac_config_target in
15698 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15699 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15700 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15701 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15702 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15703 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15704 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15705 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15706 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15707 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15708 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15709 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15710 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15711 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15712 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15713 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15714 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15715 "${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" ;;
15716 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15717 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15718 "${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" ;;
15719 "${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" ;;
15720 "${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" ;;
15721 "${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" ;;
15722 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15724 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15725 esac
15726 done
15729 # If the user did not use the arguments to specify the items to instantiate,
15730 # then the envvar interface is used. Set only those that are not.
15731 # We use the long form for the default assignment because of an extremely
15732 # bizarre bug on SunOS 4.1.3.
15733 if $ac_need_defaults; then
15734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15739 # Have a temporary directory for convenience. Make it in the build tree
15740 # simply because there is no reason against having it here, and in addition,
15741 # creating and moving files from /tmp can sometimes cause problems.
15742 # Hook for its removal unless debugging.
15743 # Note that there is a small window in which the directory will not be cleaned:
15744 # after its creation but before its name has been assigned to `$tmp'.
15745 $debug ||
15747 tmp= ac_tmp=
15748 trap 'exit_status=$?
15749 : "${ac_tmp:=$tmp}"
15750 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15752 trap 'as_fn_exit 1' 1 2 13 15
15754 # Create a (secure) tmp directory for tmp files.
15757 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15758 test -d "$tmp"
15759 } ||
15761 tmp=./conf$$-$RANDOM
15762 (umask 077 && mkdir "$tmp")
15763 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15764 ac_tmp=$tmp
15766 # Set up the scripts for CONFIG_FILES section.
15767 # No need to generate them if there are no CONFIG_FILES.
15768 # This happens for instance with `./config.status config.h'.
15769 if test -n "$CONFIG_FILES"; then
15772 ac_cr=`echo X | tr X '\015'`
15773 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15774 # But we know of no other shell where ac_cr would be empty at this
15775 # point, so we can use a bashism as a fallback.
15776 if test "x$ac_cr" = x; then
15777 eval ac_cr=\$\'\\r\'
15779 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15780 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15781 ac_cs_awk_cr='\\r'
15782 else
15783 ac_cs_awk_cr=$ac_cr
15786 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15787 _ACEOF
15791 echo "cat >conf$$subs.awk <<_ACEOF" &&
15792 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15793 echo "_ACEOF"
15794 } >conf$$subs.sh ||
15795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15796 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15797 ac_delim='%!_!# '
15798 for ac_last_try in false false false false false :; do
15799 . ./conf$$subs.sh ||
15800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15802 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15803 if test $ac_delim_n = $ac_delim_num; then
15804 break
15805 elif $ac_last_try; then
15806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15807 else
15808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15810 done
15811 rm -f conf$$subs.sh
15813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15814 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15815 _ACEOF
15816 sed -n '
15818 s/^/S["/; s/!.*/"]=/
15821 s/^[^!]*!//
15822 :repl
15823 t repl
15824 s/'"$ac_delim"'$//
15825 t delim
15828 s/\(.\{148\}\)..*/\1/
15829 t more1
15830 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15833 b repl
15834 :more1
15835 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15838 s/.\{148\}//
15839 t nl
15840 :delim
15842 s/\(.\{148\}\)..*/\1/
15843 t more2
15844 s/["\\]/\\&/g; s/^/"/; s/$/"/
15847 :more2
15848 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15851 s/.\{148\}//
15852 t delim
15853 ' <conf$$subs.awk | sed '
15854 /^[^""]/{
15856 s/\n//
15858 ' >>$CONFIG_STATUS || ac_write_fail=1
15859 rm -f conf$$subs.awk
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 _ACAWK
15862 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15863 for (key in S) S_is_set[key] = 1
15864 FS = "\a"
15868 line = $ 0
15869 nfields = split(line, field, "@")
15870 substed = 0
15871 len = length(field[1])
15872 for (i = 2; i < nfields; i++) {
15873 key = field[i]
15874 keylen = length(key)
15875 if (S_is_set[key]) {
15876 value = S[key]
15877 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15878 len += length(value) + length(field[++i])
15879 substed = 1
15880 } else
15881 len += 1 + keylen
15884 print line
15887 _ACAWK
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15890 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15891 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15892 else
15894 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15895 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15896 _ACEOF
15898 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15899 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15900 # trailing colons and then remove the whole line if VPATH becomes empty
15901 # (actually we leave an empty line to preserve line numbers).
15902 if test "x$srcdir" = x.; then
15903 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15905 s///
15906 s/^/:/
15907 s/[ ]*$/:/
15908 s/:\$(srcdir):/:/g
15909 s/:\${srcdir}:/:/g
15910 s/:@srcdir@:/:/g
15911 s/^:*//
15912 s/:*$//
15914 s/\(=[ ]*\).*/\1/
15916 s/\n//
15917 s/^[^=]*=[ ]*$//
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 fi # test -n "$CONFIG_FILES"
15924 # Set up the scripts for CONFIG_HEADERS section.
15925 # No need to generate them if there are no CONFIG_HEADERS.
15926 # This happens for instance with `./config.status Makefile'.
15927 if test -n "$CONFIG_HEADERS"; then
15928 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15929 BEGIN {
15930 _ACEOF
15932 # Transform confdefs.h into an awk script `defines.awk', embedded as
15933 # here-document in config.status, that substitutes the proper values into
15934 # config.h.in to produce config.h.
15936 # Create a delimiter string that does not exist in confdefs.h, to ease
15937 # handling of long lines.
15938 ac_delim='%!_!# '
15939 for ac_last_try in false false :; do
15940 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15941 if test -z "$ac_tt"; then
15942 break
15943 elif $ac_last_try; then
15944 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15945 else
15946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15948 done
15950 # For the awk script, D is an array of macro values keyed by name,
15951 # likewise P contains macro parameters if any. Preserve backslash
15952 # newline sequences.
15954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15955 sed -n '
15956 s/.\{148\}/&'"$ac_delim"'/g
15957 t rset
15958 :rset
15959 s/^[ ]*#[ ]*define[ ][ ]*/ /
15960 t def
15962 :def
15963 s/\\$//
15964 t bsnl
15965 s/["\\]/\\&/g
15966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15967 D["\1"]=" \3"/p
15968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15970 :bsnl
15971 s/["\\]/\\&/g
15972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15973 D["\1"]=" \3\\\\\\n"\\/p
15974 t cont
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15976 t cont
15978 :cont
15980 s/.\{148\}/&'"$ac_delim"'/g
15981 t clear
15982 :clear
15983 s/\\$//
15984 t bsnlc
15985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15987 :bsnlc
15988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15989 b cont
15990 ' <confdefs.h | sed '
15991 s/'"$ac_delim"'/"\\\
15992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15996 FS = "\a"
15998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15999 line = \$ 0
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16002 defundef = arg[2]
16003 mac1 = arg[3]
16004 } else {
16005 defundef = substr(arg[1], 2)
16006 mac1 = arg[2]
16008 split(mac1, mac2, "(") #)
16009 macro = mac2[1]
16010 prefix = substr(line, 1, index(line, defundef) - 1)
16011 if (D_is_set[macro]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix "define", macro P[macro] D[macro]
16014 next
16015 } else {
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef == "undef") {
16020 print "/*", prefix defundef, macro, "*/"
16021 next
16025 { print }
16026 _ACAWK
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16030 fi # test -n "$CONFIG_HEADERS"
16033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16034 shift
16035 for ac_tag
16037 case $ac_tag in
16038 :[FHLC]) ac_mode=$ac_tag; continue;;
16039 esac
16040 case $ac_mode$ac_tag in
16041 :[FHL]*:*);;
16042 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH]-) ac_tag=-:-;;
16044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16045 esac
16046 ac_save_IFS=$IFS
16047 IFS=:
16048 set x $ac_tag
16049 IFS=$ac_save_IFS
16050 shift
16051 ac_file=$1
16052 shift
16054 case $ac_mode in
16055 :L) ac_source=$1;;
16056 :[FH])
16057 ac_file_inputs=
16058 for ac_f
16060 case $ac_f in
16061 -) ac_f="$ac_tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16065 test -f "$ac_f" ||
16066 case $ac_f in
16067 [\\/$]*) false;;
16068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16069 esac ||
16070 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16071 esac
16072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs " '$ac_f'"
16074 done
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16081 `' by configure.'
16082 if test x"$ac_file" != x-; then
16083 configure_input="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085 $as_echo "$as_me: creating $ac_file" >&6;}
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\&* | *\|* | *\\* )
16090 ac_sed_conf_input=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input=$configure_input;;
16093 esac
16095 case $ac_tag in
16096 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16098 esac
16100 esac
16102 ac_dir=`$as_dirname -- "$ac_file" ||
16103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16109 s//\1/
16112 /^X\(\/\/\)[^/].*/{
16113 s//\1/
16116 /^X\(\/\/\)$/{
16117 s//\1/
16120 /^X\(\/\).*/{
16121 s//\1/
16124 s/.*/./; q'`
16125 as_dir="$ac_dir"; as_fn_mkdir_p
16126 ac_builddir=.
16128 case "$ac_dir" in
16129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16137 esac ;;
16138 esac
16139 ac_abs_top_builddir=$ac_pwd
16140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16141 # for backward compatibility:
16142 ac_top_builddir=$ac_top_build_prefix
16144 case $srcdir in
16145 .) # We are building in place.
16146 ac_srcdir=.
16147 ac_top_srcdir=$ac_top_builddir_sub
16148 ac_abs_top_srcdir=$ac_pwd ;;
16149 [\\/]* | ?:[\\/]* ) # Absolute name.
16150 ac_srcdir=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir=$srcdir
16152 ac_abs_top_srcdir=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16157 esac
16158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16161 case $ac_mode in
16164 # CONFIG_FILE
16167 _ACEOF
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 # If the template does not know about datarootdir, expand it.
16171 # FIXME: This hack should be removed a few years after 2.60.
16172 ac_datarootdir_hack=; ac_datarootdir_seen=
16173 ac_sed_dataroot='
16174 /datarootdir/ {
16178 /@datadir@/p
16179 /@docdir@/p
16180 /@infodir@/p
16181 /@localedir@/p
16182 /@mandir@/p'
16183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16184 *datarootdir*) ac_datarootdir_seen=yes;;
16185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16188 _ACEOF
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 ac_datarootdir_hack='
16191 s&@datadir@&$datadir&g
16192 s&@docdir@&$docdir&g
16193 s&@infodir@&$infodir&g
16194 s&@localedir@&$localedir&g
16195 s&@mandir@&$mandir&g
16196 s&\\\${datarootdir}&$datarootdir&g' ;;
16197 esac
16198 _ACEOF
16200 # Neutralize VPATH when `$srcdir' = `.'.
16201 # Shell code in configure.ac might set extrasub.
16202 # FIXME: do we really want to maintain this feature?
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204 ac_sed_extra="$ac_vpsub
16205 $extrasub
16206 _ACEOF
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16210 s|@configure_input@|$ac_sed_conf_input|;t t
16211 s&@top_builddir@&$ac_top_builddir_sub&;t t
16212 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16213 s&@srcdir@&$ac_srcdir&;t t
16214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16215 s&@top_srcdir@&$ac_top_srcdir&;t t
16216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16217 s&@builddir@&$ac_builddir&;t t
16218 s&@abs_builddir@&$ac_abs_builddir&;t t
16219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16220 $ac_datarootdir_hack
16222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16223 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16228 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16230 which seems to be undefined. Please make sure it is defined" >&5
16231 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16232 which seems to be undefined. Please make sure it is defined" >&2;}
16234 rm -f "$ac_tmp/stdin"
16235 case $ac_file in
16236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16238 esac \
16239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16243 # CONFIG_HEADER
16245 if test x"$ac_file" != x-; then
16247 $as_echo "/* $configure_input */" \
16248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16249 } >"$ac_tmp/config.h" \
16250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16251 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16253 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16254 else
16255 rm -f "$ac_file"
16256 mv "$ac_tmp/config.h" "$ac_file" \
16257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16259 else
16260 $as_echo "/* $configure_input */" \
16261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16262 || as_fn_error $? "could not create -" "$LINENO" 5
16266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16267 $as_echo "$as_me: executing $ac_file commands" >&6;}
16269 esac
16272 case $ac_file$ac_mode in
16273 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16274 "binutils-support":C)
16275 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16276 mkdir -p $prefix
16277 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16279 chmod a+x ${prefix2}-ld
16281 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16282 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16283 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16284 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16285 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16286 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16287 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16289 "elf-compiler-support":C)
16290 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16291 mkdir -p $prefix
16292 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16294 chmod a+x ${prefix2}-gcc
16296 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16298 "host-compiler-wrapper-support":C)
16299 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16300 mkdir -p $prefix
16301 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16303 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16306 esac
16307 done # for ac_tag
16310 as_fn_exit 0
16311 _ACEOF
16312 ac_clean_files=$ac_clean_files_save
16314 test $ac_write_fail = 0 ||
16315 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16318 # configure is writing to config.log, and then calls config.status.
16319 # config.status does its own redirection, appending to config.log.
16320 # Unfortunately, on DOS this fails, as config.log is still kept open
16321 # by configure, so config.status won't be able to write to it; its
16322 # output is simply discarded. So we exec the FD to /dev/null,
16323 # effectively closing config.log, so it can be properly (re)opened and
16324 # appended to by config.status. When coming back to configure, we
16325 # need to make the FD available again.
16326 if test "$no_create" != yes; then
16327 ac_cs_success=:
16328 ac_config_status_args=
16329 test "$silent" = yes &&
16330 ac_config_status_args="$ac_config_status_args --quiet"
16331 exec 5>/dev/null
16332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16333 exec 5>>config.log
16334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16335 # would make configure fail if this is the last instruction.
16336 $ac_cs_success || as_fn_exit 1
16338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16345 #XXX compatability...
16346 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16348 if test -n "$aros_shared_cflags" ; then
16349 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16350 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg