use base versions of all the tool names when constructing the kernel tool names.
[AROS.git] / configure
blobe4069e6717145e20826faad74d05e444500e6963
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 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_kernel_isa_flags
673 aros_optimization_cflags
674 aros_config_coverage
675 aros_config_lto
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cxxflags
681 aros_debug_cflags
682 aros_debug_cppflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_cppflags
688 aros_kernel_sysroot
689 aros_config_ldflags
690 aros_config_aflags
691 aros_config_cxxflags
692 aros_config_cflags
693 aros_config_cppflags
694 aros_nowarn_flags
695 aros_warn_flags
696 aros_shared_ldflags
697 aros_shared_aflags
698 aros_shared_cflags
699 aros_cxx_libs
700 aros_c_libs
701 spec_obj_format
702 aros_object_format
703 aros_shared_ld
704 aros_shared_default
705 aros_target_nm
706 aros_target_strip
707 aros_target_objcopy
708 aros_target_objdump
709 aros_target_cc_path
710 aros_target_cc_includes
711 aros_target_ld
712 aros_target_as
713 aros_target_cpp
714 aros_target_cxx
715 aros_target_cc
716 aros_plain_ar
717 aros_plain_nm
718 aros_target_ranlib
719 aros_target_ar
720 aros_target_suffix
721 aros_target_variant
722 aros_target_cpu_mode
723 aros_target_cpu
724 aros_target_family
725 aros_target_arch
726 aros_target_bootloader
727 aros_target_iconset
728 aros_target_guitheme
729 aros_target_options
730 target_extra_cfg
731 make_extra_targetcfg
732 make_extra_commands
733 aros_elf_translate
734 aros_tools_dir
735 aros_host_lib_suffix
736 aros_host_exe_suffix
737 aros_host_mkargs
738 aros_host_mkdep
739 aros_host_debug
740 aros_host_ldflags
741 gnu89_inline
742 aros_host_cxxflags
743 aros_host_cflags
744 aros_host_cppflags
745 aros_host_make
746 aros_host_ar
747 aros_host_cxx
748 aros_host_cc
749 aros_host_def_cc
750 aros_host_cpp
751 aros_host_cpu
752 aros_host_arch
753 aros_cc_pre
754 host_extra_cfg
755 ax_cv_flex_version
756 host_stat_h__unused_used
757 aros_amigaos_compliance
758 AROS_PORTSSRCDIR
759 AROS_CROSSTOOLSDIR
760 SRCDIR
761 AROS_BUILDDIR_UNIX
762 AROS_BUILDDIR
763 aros_build_host
764 aros_toolchain_ld
765 aros_target_toolchain
766 aros_flavour_uc
767 aros_flavour
768 aros_cpu
769 aros_arch
770 SDL_LIBS
771 SDL_CFLAGS
772 SDL_CONFIG
773 XMKMF
774 kernel_cflags_iquote_end
775 kernel_cflags_iquote
776 host_cflags_iquote_end
777 host_cflags_iquote
778 aros_toolchain
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
784 aros_kernel_rescomp
785 orig_target_objdump
786 orig_target_objcopy
787 orig_target_strip
788 orig_target_nm
789 orig_target_ranlib
790 orig_target_ar
791 orig_target_as
792 orig_target_ld
793 orig_target_cxx
794 orig_target_cc
795 orig_target_cpp
796 aros_kernel_objdump
797 aros_kernel_objcopy
798 aros_kernel_strip
799 aros_kernel_nm
800 aros_kernel_ranlib
801 aros_kernel_ar
802 aros_kernel_as
803 aros_kernel_ld
804 aros_kernel_cxx
805 aros_kernel_cc
806 aros_kernel_cpp
807 target_gcc_version
809 android_tool
810 CCACHE
811 DISTCC
812 LIBOBJS
813 EGREP
814 GREP
816 TEST
819 libpng_incdir
820 libpng_libextra
821 libpng
822 arosconfig_use_libpngconfig
823 pkgpyexecdir
824 pyexecdir
825 pkgpythondir
826 pythondir
827 PYTHON_PLATFORM
828 PYTHON_EXEC_PREFIX
829 PYTHON_PREFIX
830 PYTHON_VERSION
831 PYTHON
832 PATCH
833 CHMOD
835 PPMTOILBM
836 PNGTOPNM
837 FLEX
838 BISON
841 UNIQ
842 SORT
843 TOUCH
844 MKDIR
845 ECHO
849 aros_host_strip
850 aros_host_ranlib
851 RANLIB_BASE
852 aros_host_plain_ar
853 AR_BASE
854 aros_host_automake
855 aros_host_autoheader
856 aros_host_autoconf
857 aros_host_aclocal
858 aros_host_ld
859 LD_BASE
860 base_lld_name
861 MMAKE
864 ac_ct_CC
865 CFLAGS
867 OBJEXT
868 EXEEXT
869 ac_ct_CXX
870 CPPFLAGS
871 LDFLAGS
872 CXXFLAGS
874 host_os
875 host_vendor
876 host_cpu
877 host
878 build_os
879 build_vendor
880 build_cpu
881 build
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 runstatedir
902 localstatedir
903 sharedstatedir
904 sysconfdir
905 datadir
906 datarootdir
907 libexecdir
908 sbindir
909 bindir
910 program_transform_name
911 prefix
912 exec_prefix
913 PACKAGE_URL
914 PACKAGE_BUGREPORT
915 PACKAGE_STRING
916 PACKAGE_VERSION
917 PACKAGE_TARNAME
918 PACKAGE_NAME
919 PATH_SEPARATOR
920 SHELL'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 with_c_compiler
925 with_cxx_compiler
926 enable_libpng_config
927 with_toolchain
928 enable_lto
929 enable_coverage
930 enable_build_type
931 enable_debug
932 enable_distcc
933 enable_ccache
934 with_kernel_gcc_version
935 with_optimization
936 with_paranoia
937 enable_target_variant
938 with_xcode
939 with_sdk_version
940 with_sdk
941 with_ndk
942 with_ndk_version
943 with_apk_version
944 enable_amigaos_compliance
945 with_kernel_toolchain_prefix
946 with_elf_toolchain_prefix
947 with_aros_toolchain
948 enable_crosstools
949 with_aros_toolchain_install
950 with_binutils_version
951 with_gcc_version
952 enable_objc
953 enable_java
954 with_cpu
955 with_fpu
956 with_float
957 with_portssources
958 with_bootloader
959 with_iconset
960 with_theme
961 enable_includes
962 with_resolution
963 with_serial_debug
964 enable_palm_debug_hack
965 enable_usb30_code
966 enable_nesting_supervisor
967 enable_mmu
968 enable_x11_hidd
969 with_x
970 enable_x11_shm
971 enable_x11_vidmode
972 enable_sdl_hidd
973 with_sdl_prefix
974 with_sdl_exec_prefix
975 enable_sdltest
976 enable_dbus
978 ac_precious_vars='build_alias
979 host_alias
980 target_alias
982 CXXFLAGS
983 LDFLAGS
984 LIBS
985 CPPFLAGS
988 CFLAGS
990 PYTHON
991 XMKMF'
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 runstatedir='${localstatedir}/run'
1031 includedir='${prefix}/include'
1032 oldincludedir='/usr/include'
1033 docdir='${datarootdir}/doc/${PACKAGE}'
1034 infodir='${datarootdir}/info'
1035 htmldir='${docdir}'
1036 dvidir='${docdir}'
1037 pdfdir='${docdir}'
1038 psdir='${docdir}'
1039 libdir='${exec_prefix}/lib'
1040 localedir='${datarootdir}/locale'
1041 mandir='${datarootdir}/man'
1043 ac_prev=
1044 ac_dashdash=
1045 for ac_option
1047 # If the previous option needs an argument, assign it.
1048 if test -n "$ac_prev"; then
1049 eval $ac_prev=\$ac_option
1050 ac_prev=
1051 continue
1054 case $ac_option in
1055 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056 *=) ac_optarg= ;;
1057 *) ac_optarg=yes ;;
1058 esac
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1064 ac_dashdash=yes ;;
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 ac_prev=bindir ;;
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069 bindir=$ac_optarg ;;
1071 -build | --build | --buil | --bui | --bu)
1072 ac_prev=build_alias ;;
1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074 build_alias=$ac_optarg ;;
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081 cache_file=$ac_optarg ;;
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
1086 -datadir | --datadir | --datadi | --datad)
1087 ac_prev=datadir ;;
1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089 datadir=$ac_optarg ;;
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1098 -disable-* | --disable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid feature name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval enable_$ac_useropt=no ;;
1114 -docdir | --docdir | --docdi | --doc | --do)
1115 ac_prev=docdir ;;
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 ac_prev=dvidir ;;
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
1124 -enable-* | --enable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=\$ac_optarg ;;
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1218 no_create=yes ;;
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1283 -runstatedir | --runstatedir | --runstatedi | --runstated \
1284 | --runstate | --runstat | --runsta | --runst | --runs \
1285 | --run | --ru | --r)
1286 ac_prev=runstatedir ;;
1287 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1288 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1289 | --run=* | --ru=* | --r=*)
1290 runstatedir=$ac_optarg ;;
1292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293 ac_prev=sbindir ;;
1294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295 | --sbi=* | --sb=*)
1296 sbindir=$ac_optarg ;;
1298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300 | --sharedst | --shareds | --shared | --share | --shar \
1301 | --sha | --sh)
1302 ac_prev=sharedstatedir ;;
1303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306 | --sha=* | --sh=*)
1307 sharedstatedir=$ac_optarg ;;
1309 -site | --site | --sit)
1310 ac_prev=site ;;
1311 -site=* | --site=* | --sit=*)
1312 site=$ac_optarg ;;
1314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315 ac_prev=srcdir ;;
1316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317 srcdir=$ac_optarg ;;
1319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320 | --syscon | --sysco | --sysc | --sys | --sy)
1321 ac_prev=sysconfdir ;;
1322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324 sysconfdir=$ac_optarg ;;
1326 -target | --target | --targe | --targ | --tar | --ta | --t)
1327 ac_prev=target_alias ;;
1328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329 target_alias=$ac_optarg ;;
1331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 verbose=yes ;;
1334 -version | --version | --versio | --versi | --vers | -V)
1335 ac_init_version=: ;;
1337 -with-* | --with-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341 as_fn_error $? "invalid package name: $ac_useropt"
1342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1346 "with_$ac_useropt"
1347 "*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval with_$ac_useropt=\$ac_optarg ;;
1353 -without-* | --without-*)
1354 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357 as_fn_error $? "invalid package name: $ac_useropt"
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1362 "with_$ac_useropt"
1363 "*) ;;
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1366 esac
1367 eval with_$ac_useropt=no ;;
1369 --x)
1370 # Obsolete; use --with-x.
1371 with_x=yes ;;
1373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374 | --x-incl | --x-inc | --x-in | --x-i)
1375 ac_prev=x_includes ;;
1376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378 x_includes=$ac_optarg ;;
1380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382 ac_prev=x_libraries ;;
1383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385 x_libraries=$ac_optarg ;;
1387 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1388 Try \`$0 --help' for more information"
1391 *=*)
1392 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393 # Reject names that are not valid shell variable names.
1394 case $ac_envvar in #(
1395 '' | [0-9]* | *[!_$as_cr_alnum]* )
1396 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1397 esac
1398 eval $ac_envvar=\$ac_optarg
1399 export $ac_envvar ;;
1402 # FIXME: should be removed in autoconf 3.0.
1403 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1409 esac
1410 done
1412 if test -n "$ac_prev"; then
1413 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414 as_fn_error $? "missing argument to $ac_option"
1417 if test -n "$ac_unrecognized_opts"; then
1418 case $enable_option_checking in
1419 no) ;;
1420 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 esac
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir runstatedir
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1433 case $ac_val in
1434 */ )
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1437 esac
1438 # Be sure to have absolute directory names.
1439 case $ac_val in
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 esac
1443 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 done
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1449 build=$build_alias
1450 host=$host_alias
1451 target=$target_alias
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455 if test "x$build_alias" = x; then
1456 cross_compiling=maybe
1457 elif test "x$build_alias" != "x$host_alias"; then
1458 cross_compiling=yes
1462 ac_tool_prefix=
1463 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465 test "$silent" = yes && exec 6>/dev/null
1468 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di=`ls -di .` &&
1470 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error $? "working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error $? "pwd does not report name of working directory"
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487 s//\1/
1490 /^X\(\/\/\)[^/].*/{
1491 s//\1/
1494 /^X\(\/\/\)$/{
1495 s//\1/
1498 /^X\(\/\).*/{
1499 s//\1/
1502 s/.*/./; q'`
1503 srcdir=$ac_confdir
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 srcdir=..
1507 else
1508 ac_srcdir_defaulted=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 ac_abs_confdir=`(
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1517 pwd)`
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 srcdir=.
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1525 case $srcdir in
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 esac
1528 for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 done
1536 # Report the --help message.
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1541 cat <<_ACEOF
1542 \`configure' configures this package to adapt to many kinds of systems.
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1549 Defaults for the options are specified in brackets.
1551 Configuration:
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking ...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 [PREFIX]
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1573 For better control, use the options below.
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1596 _ACEOF
1598 cat <<\_ACEOF
1600 X features:
1601 --x-includes=DIR X include files are in DIR
1602 --x-libraries=DIR X library files are in DIR
1604 System types:
1605 --build=BUILD configure for building on BUILD [guessed]
1606 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607 _ACEOF
1610 if test -n "$ac_init_help"; then
1612 cat <<\_ACEOF
1614 Optional Features:
1615 --disable-option-checking ignore unrecognized --enable/--with options
1616 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1617 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1618 --disable-libpng-config disable libpng-config test and configuration
1619 --enable-lto=yes|no Enable link time optimizations if the target
1620 compiler supports them (default=no)
1621 --enable-coverage=yes|no
1622 Enable coverage instrumentation if the target
1623 compiler supports it (default=no)
1624 --enable-build-type=TYPE
1625 Select the build type. Available types are:
1626 personal, nightly, snapshot, milestone, release. Do
1627 NOT use this option unless you know what you are
1628 doing! (default=personal)
1629 --enable-debug=list Enable different types of debug. Commas or
1630 whitespaces can be used to separate the items in the
1631 list. Available types of debug are: all, none,
1632 messages, stack, mungwall, modules, symbols. If no
1633 list is provided then "all" is assumed.
1634 (default=none)
1635 --enable-distcc Use distcc as a front end to the compiler
1636 (default=no).
1637 --enable-ccache Use ccache as a front end to the compiler
1638 (default=no).
1639 --enable-target-variant=NAME
1640 Enable a specific target variant (default=none)
1641 --enable-amigaos-compliance=VERSION
1642 Enforce userspace AmigaOS compliance to a specific
1643 KickStart version (default=none).
1644 --disable-crosstools Do not build cross-compiler toolchain
1645 --enable-objc Enable Objectve-C support (default=no)
1646 --enable-java Enable Java support (default=no)
1647 --enable-includes=dir Alternative system include directory
1648 --enable-palm-debug-hack
1649 Enable palm debug output hack in palm native
1650 (default=no)
1651 --enable-usb30-code Enable usb3.0 code (default=no)
1652 --enable-nesting-supervisor
1653 Enable nesting supervisor support in unix
1654 (default=no)
1655 --disable-mmu Disable MMU support (default=enabled)
1656 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1657 --enable-x11-shm use X11 shared memory (default=auto)
1658 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1659 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1660 --disable-sdltest Do not try to compile and run a test SDL program
1661 --enable-dbus Enable DBUS support via dbus.library (default=no)
1663 Optional Packages:
1664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1666 --with-c-compiler=VERSION
1667 Use specified c compiler for building AROS
1668 --with-cxx-compiler=VERSION
1669 Use specified c++ compiler building AROS
1670 --with-toolchain=family Which toolchain family to crosscompile with
1671 (defaults to gnu)
1672 --with-kernel-gcc-version=VERSION
1673 Use gcc-VERSION for building bootstrap
1674 --with-optimization=FLAGS
1675 Use optimization flags FLAGS (e.g
1676 --with-optimization=-O2).
1677 --with-paranoia=(yes|no|FLAGS)
1678 Specific compiler warning FLAGS to enable for
1679 paranoia builds (default=-Wall -Werror)
1680 --with-xcode=PATH Specify XCode path for iOS targets
1681 (default=/Developer).
1682 --with-sdk-version=VERSION
1683 Use iOS SDK version VERSION (default=4.1).
1684 --with-sdk=PATH Specify Android SDK path
1685 (default=$default_android_sdk).
1686 --with-ndk=PATH Specify Android NDK path (default=none).
1687 --with-sdk-version=LEVEL
1688 Use Android SDK for API LEVEL (default=12).
1689 --with-ndk-version=LEVEL
1690 Use Android NDK for API LEVEL (default=9).
1691 --with-apk-version=(release|debug)
1692 Which version of AROSBootstrap.apk to compile.
1693 Release version needs key for signing, debug version
1694 will only run in emulator. (default=release)
1695 --with-kernel-toolchain-prefix=...
1696 Specify crosscompile toolchain prefix for kernel
1697 objects
1698 --with-elf-toolchain-prefix=...
1699 Specify crosscompile toolchain prefix to wrap for
1700 AROS objects
1701 --with-aros-toolchain=PREFIX
1702 Specify prebuilt AROS toolchain. Use yes for default
1703 name
1704 --with-aros-toolchain-install=DIR
1705 Where to install or search for cross tools binaries
1706 --with-binutils-version=VERSION
1707 Use binutils-VERSION for building AROS
1708 --with-gcc-version=VERSION
1709 Compile gcc-VERSION for AROS
1710 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1711 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1712 --with-float=<spec> Specify floating point ABI
1713 (default=$gcc_default_float_abi).
1714 --with-portssources=DIR Where to download sourcecode for external ports
1715 --with-bootloader=NAME Use a specific bootloader
1716 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1717 --with-theme=NAME Use a specific GUI Theme
1718 --with-resolution=XRESxYRESxDEPTH
1719 Default resolution of the initial WorkbenchScreen
1720 --with-serial-debug Enable serial debug output in native (default=no)
1721 --with-x use the X Window System
1722 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1723 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1725 Some influential environment variables:
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1729 nonstandard directory <lib dir>
1730 LIBS libraries to pass to the linker, e.g. -l<library>
1731 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1732 you have headers in a nonstandard directory <include dir>
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 CPP C preprocessor
1736 PYTHON the Python interpreter
1737 XMKMF Path to xmkmf, Makefile generator for X Window System
1739 Use these variables to override the choices made by `configure' or to help
1740 it to find libraries and programs with nonstandard names/locations.
1742 Report bugs to the package provider.
1743 _ACEOF
1744 ac_status=$?
1747 if test "$ac_init_help" = "recursive"; then
1748 # If there are subdirs, report their specific --help.
1749 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1750 test -d "$ac_dir" ||
1751 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 continue
1753 ac_builddir=.
1755 case "$ac_dir" in
1756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1759 # A ".." for each directory in $ac_dir_suffix.
1760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1761 case $ac_top_builddir_sub in
1762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1764 esac ;;
1765 esac
1766 ac_abs_top_builddir=$ac_pwd
1767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1768 # for backward compatibility:
1769 ac_top_builddir=$ac_top_build_prefix
1771 case $srcdir in
1772 .) # We are building in place.
1773 ac_srcdir=.
1774 ac_top_srcdir=$ac_top_builddir_sub
1775 ac_abs_top_srcdir=$ac_pwd ;;
1776 [\\/]* | ?:[\\/]* ) # Absolute name.
1777 ac_srcdir=$srcdir$ac_dir_suffix;
1778 ac_top_srcdir=$srcdir
1779 ac_abs_top_srcdir=$srcdir ;;
1780 *) # Relative name.
1781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1782 ac_top_srcdir=$ac_top_build_prefix$srcdir
1783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1784 esac
1785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1787 cd "$ac_dir" || { ac_status=$?; continue; }
1788 # Check for guested configure.
1789 if test -f "$ac_srcdir/configure.gnu"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1792 elif test -f "$ac_srcdir/configure"; then
1793 echo &&
1794 $SHELL "$ac_srcdir/configure" --help=recursive
1795 else
1796 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 fi || ac_status=$?
1798 cd "$ac_pwd" || { ac_status=$?; break; }
1799 done
1802 test -n "$ac_init_help" && exit $ac_status
1803 if $ac_init_version; then
1804 cat <<\_ACEOF
1805 configure
1806 generated by GNU Autoconf 2.69
1808 Copyright (C) 2012 Free Software Foundation, Inc.
1809 This configure script is free software; the Free Software Foundation
1810 gives unlimited permission to copy, distribute and modify it.
1811 _ACEOF
1812 exit
1815 ## ------------------------ ##
1816 ## Autoconf initialization. ##
1817 ## ------------------------ ##
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_compile LINENO
1858 # --------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext
1864 if { { ac_try="$ac_compile"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.$ac_objext; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_compile
1895 # ac_fn_c_try_cpp LINENO
1896 # ----------------------
1897 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_c_try_cpp ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { { ac_try="$ac_cpp conftest.$ac_ext"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } > conftest.i && {
1917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1930 } # ac_fn_c_try_cpp
1932 # ac_fn_c_try_link LINENO
1933 # -----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_link ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 test -x conftest$ac_exeext
1960 }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_retval=1
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1976 } # ac_fn_c_try_link
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR
1982 # accordingly.
1983 ac_fn_c_check_header_mongrel ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 else
1996 # Is the header compilable?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998 $as_echo_n "checking $2 usability... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_header_compiler=yes
2006 else
2007 ac_header_compiler=no
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011 $as_echo "$ac_header_compiler" >&6; }
2013 # Is the header present?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015 $as_echo_n "checking $2 presence... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021 ac_header_preproc=yes
2022 else
2023 ac_header_preproc=no
2025 rm -f conftest.err conftest.i conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027 $as_echo "$ac_header_preproc" >&6; }
2029 # So? What about this header?
2030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031 yes:no: )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 no:yes:* )
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2041 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2045 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 esac
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054 else
2055 eval "$3=\$ac_header_compiler"
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_header_mongrel
2065 # ac_fn_c_try_run LINENO
2066 # ----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2068 # that executables *can* be run.
2069 ac_fn_c_try_run ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_link"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>&5
2080 ac_status=$?
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2083 { { case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_try") 2>&5
2090 ac_status=$?
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; }; }; then :
2093 ac_retval=0
2094 else
2095 $as_echo "$as_me: program exited with status $ac_status" >&5
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2099 ac_retval=$ac_status
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
2105 } # ac_fn_c_try_run
2107 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2108 # -------------------------------------------------------
2109 # Tests whether HEADER exists and can be compiled using the include files in
2110 # INCLUDES, setting the cache variable VAR accordingly.
2111 ac_fn_c_check_header_compile ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_header_compile
2138 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2139 # ----------------------------------------------------
2140 # Tries to find if the field MEMBER exists in type AGGR, after including
2141 # INCLUDES, setting cache variable VAR accordingly.
2142 ac_fn_c_check_member ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2146 $as_echo_n "checking for $2.$3... " >&6; }
2147 if eval \${$4+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 static $2 ac_aggr;
2157 if (ac_aggr.$3)
2158 return 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 eval "$4=yes"
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2170 main ()
2172 static $2 ac_aggr;
2173 if (sizeof ac_aggr.$3)
2174 return 0;
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$4=yes"
2181 else
2182 eval "$4=no"
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 eval ac_res=\$$4
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_member
2195 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2196 # ---------------------------------------------
2197 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2198 # accordingly.
2199 ac_fn_c_check_decl ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 as_decl_name=`echo $2|sed 's/ *(.*//'`
2203 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2205 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2213 main ()
2215 #ifndef $as_decl_name
2216 #ifdef __cplusplus
2217 (void) $as_decl_use;
2218 #else
2219 (void) $as_decl_name;
2220 #endif
2221 #endif
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$3=yes"
2229 else
2230 eval "$3=no"
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_decl
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 eval "$3=no"
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 if (sizeof ($2))
2261 return 0;
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 if (sizeof (($2)))
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2281 else
2282 eval "$3=yes"
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_check_func LINENO FUNC VAR
2296 # ----------------------------------
2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2298 ac_fn_c_check_func ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \${$3+:} false; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2310 #define $2 innocuous_$2
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $2 (); below.
2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2315 <limits.h> exists even on freestanding compilers. */
2317 #ifdef __STDC__
2318 # include <limits.h>
2319 #else
2320 # include <assert.h>
2321 #endif
2323 #undef $2
2325 /* Override any GCC internal prototype to avoid an error.
2326 Use char because int might match the return type of a GCC
2327 builtin and then its argument prototype would still apply. */
2328 #ifdef __cplusplus
2329 extern "C"
2330 #endif
2331 char $2 ();
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined __stub_$2 || defined __stub___$2
2336 choke me
2337 #endif
2340 main ()
2342 return $2 ();
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_link "$LINENO"; then :
2348 eval "$3=yes"
2349 else
2350 eval "$3=no"
2352 rm -f core conftest.err conftest.$ac_objext \
2353 conftest$ac_exeext conftest.$ac_ext
2355 eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_func
2361 cat >config.log <<_ACEOF
2362 This file contains any messages produced by compilers while
2363 running configure, to aid debugging if configure makes a mistake.
2365 It was created by $as_me, which was
2366 generated by GNU Autoconf 2.69. Invocation command line was
2368 $ $0 $@
2370 _ACEOF
2371 exec 5>>config.log
2373 cat <<_ASUNAME
2374 ## --------- ##
2375 ## Platform. ##
2376 ## --------- ##
2378 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2384 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2387 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2388 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2389 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2390 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2391 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2392 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2393 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2395 _ASUNAME
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 $as_echo "PATH: $as_dir"
2403 done
2404 IFS=$as_save_IFS
2406 } >&5
2408 cat >&5 <<_ACEOF
2411 ## ----------- ##
2412 ## Core tests. ##
2413 ## ----------- ##
2415 _ACEOF
2418 # Keep a trace of the command line.
2419 # Strip out --no-create and --no-recursion so they do not pile up.
2420 # Strip out --silent because we don't want to record it for future runs.
2421 # Also quote any args containing shell meta-characters.
2422 # Make two passes to allow for proper duplicate-argument suppression.
2423 ac_configure_args=
2424 ac_configure_args0=
2425 ac_configure_args1=
2426 ac_must_keep_next=false
2427 for ac_pass in 1 2
2429 for ac_arg
2431 case $ac_arg in
2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434 | -silent | --silent | --silen | --sile | --sil)
2435 continue ;;
2436 *\'*)
2437 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 esac
2439 case $ac_pass in
2440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2442 as_fn_append ac_configure_args1 " '$ac_arg'"
2443 if test $ac_must_keep_next = true; then
2444 ac_must_keep_next=false # Got value, back to normal.
2445 else
2446 case $ac_arg in
2447 *=* | --config-cache | -C | -disable-* | --disable-* \
2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450 | -with-* | --with-* | -without-* | --without-* | --x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 esac
2455 -* ) ac_must_keep_next=true ;;
2456 esac
2458 as_fn_append ac_configure_args " '$ac_arg'"
2460 esac
2461 done
2462 done
2463 { ac_configure_args0=; unset ac_configure_args0;}
2464 { ac_configure_args1=; unset ac_configure_args1;}
2466 # When interrupted or exit'd, cleanup temporary files, and complete
2467 # config.log. We remove comments because anyway the quotes in there
2468 # would cause problems or look ugly.
2469 # WARNING: Use '\'' to represent an apostrophe within the trap.
2470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2471 trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2474 echo
2476 $as_echo "## ---------------- ##
2477 ## Cache variables. ##
2478 ## ---------------- ##"
2479 echo
2480 # The following way of writing the cache mishandles newlines in values,
2482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in #(
2485 *${as_nl}*)
2486 case $ac_var in #(
2487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489 esac
2490 case $ac_var in #(
2491 _ | IFS | as_nl) ;; #(
2492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493 *) { eval $ac_var=; unset $ac_var;} ;;
2494 esac ;;
2495 esac
2496 done
2497 (set) 2>&1 |
2498 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
2500 sed -n \
2501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 ;; #(
2505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2507 esac |
2508 sort
2510 echo
2512 $as_echo "## ----------------- ##
2513 ## Output variables. ##
2514 ## ----------------- ##"
2515 echo
2516 for ac_var in $ac_subst_vars
2518 eval ac_val=\$$ac_var
2519 case $ac_val in
2520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 esac
2522 $as_echo "$ac_var='\''$ac_val'\''"
2523 done | sort
2524 echo
2526 if test -n "$ac_subst_files"; then
2527 $as_echo "## ------------------- ##
2528 ## File substitutions. ##
2529 ## ------------------- ##"
2530 echo
2531 for ac_var in $ac_subst_files
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2542 if test -s confdefs.h; then
2543 $as_echo "## ----------- ##
2544 ## confdefs.h. ##
2545 ## ----------- ##"
2546 echo
2547 cat confdefs.h
2548 echo
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2553 } >&5
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 exit $exit_status
2558 for ac_signal in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560 done
2561 ac_signal=0
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2566 $as_echo "/* confdefs.h */" > confdefs.h
2568 # Predefined preprocessor variables.
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2572 _ACEOF
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 _ACEOF
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 _ACEOF
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2584 _ACEOF
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 _ACEOF
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2592 _ACEOF
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2597 ac_site_file1=NONE
2598 ac_site_file2=NONE
2599 if test -n "$CONFIG_SITE"; then
2600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1=./$CONFIG_SITE;;
2603 */*) ac_site_file1=$CONFIG_SITE;;
2604 *) ac_site_file1=./$CONFIG_SITE;;
2605 esac
2606 elif test "x$prefix" != xNONE; then
2607 ac_site_file1=$prefix/share/config.site
2608 ac_site_file2=$prefix/etc/config.site
2609 else
2610 ac_site_file1=$ac_default_prefix/share/config.site
2611 ac_site_file2=$ac_default_prefix/etc/config.site
2613 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2615 test "x$ac_site_file" = xNONE && continue
2616 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2619 sed 's/^/| /' "$ac_site_file" >&5
2620 . "$ac_site_file" \
2621 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 as_fn_error $? "failed to load site script $ac_site_file
2624 See \`config.log' for more details" "$LINENO" 5; }
2626 done
2628 if test -r "$cache_file"; then
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 $as_echo "$as_me: loading cache $cache_file" >&6;}
2634 case $cache_file in
2635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
2637 esac
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 $as_echo "$as_me: creating cache $cache_file" >&6;}
2642 >$cache_file
2645 as_fn_append ac_header_list " stdlib.h"
2646 as_fn_append ac_header_list " unistd.h"
2647 as_fn_append ac_header_list " sys/param.h"
2648 # Check that the precious variables saved in the cache have kept the same
2649 # value.
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2657 set,)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,set)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2665 ,);;
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x $ac_old_val`
2670 ac_new_val_w=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted=:
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2684 fi;;
2685 esac
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2688 case $ac_new_val in
2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2691 esac
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695 esac
2697 done
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 ac_aux_dir=
2718 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2719 if test -f "$ac_dir/install-sh"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/install-sh -c"
2722 break
2723 elif test -f "$ac_dir/install.sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install.sh -c"
2726 break
2727 elif test -f "$ac_dir/shtool"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/shtool install -c"
2730 break
2732 done
2733 if test -z "$ac_aux_dir"; then
2734 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2737 # These three variables are undocumented and unsupported,
2738 # and are intended to be withdrawn in a future Autoconf release.
2739 # They can cause serious problems if a builder's source tree is in a directory
2740 # whose full name contains unusual characters.
2741 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2742 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2743 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2747 # Check what host we are running on.
2748 # If a target is not suggested, we use this one.
2749 # Note that what we call a target, Autoconf calls a host.
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2771 *-*-*) ;;
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 esac
2774 build=$ac_cv_build
2775 ac_save_IFS=$IFS; IFS='-'
2776 set x $ac_cv_build
2777 shift
2778 build_cpu=$1
2779 build_vendor=$2
2780 shift; shift
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2783 build_os=$*
2784 IFS=$ac_save_IFS
2785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2795 else
2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2803 case $ac_cv_host in
2804 *-*-*) ;;
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 esac
2807 host=$ac_cv_host
2808 ac_save_IFS=$IFS; IFS='-'
2809 set x $ac_cv_host
2810 shift
2811 host_cpu=$1
2812 host_vendor=$2
2813 shift; shift
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2816 host_os=$*
2817 IFS=$ac_save_IFS
2818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2822 # Default versions for the gnu tools we build
2823 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2824 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2825 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2826 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2827 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2828 default_grub2_version="2.02"
2829 target_grub2_version=$default_grub2_version
2831 # The AROS target is slightly different to the normal GNU style
2832 # format. We don't have the middle part, and we reverse the order
2833 # of the $(CPU) and $(OS) bits.
2835 # Don't strip the version of the target yet, it might be
2836 # useful on some systems.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2839 $as_echo_n "checking for AROS style target... " >&6; }
2841 if test "$target" = "NONE" ; then
2842 target=$host_os-$host_cpu
2843 else
2844 if test "$target" = "" ; then
2845 target=$host_os-$host_cpu
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2849 $as_echo "$target" >&6; }
2851 if test "$host_os" = "mingw32" ; then
2852 PWDCMD="pwd -W"
2855 # Don't know where else to put this...
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2857 $as_echo_n "checking building AROS in... " >&6; }
2858 AROS_BUILDDIR=`${PWDCMD-pwd}`
2859 AROS_BUILDDIR_UNIX=${PWD}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2861 $as_echo "$AROS_BUILDDIR" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2864 $as_echo_n "checking AROS source in... " >&6; }
2865 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2866 SRCDIR=${srcpwd}
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2868 $as_echo "$SRCDIR" >&6; }
2870 # Parse the target field into something useful.
2872 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2873 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2876 # Some debug output, to be removed again.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2878 $as_echo_n "checking for target system (debug output)... " >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2880 $as_echo "$target_os" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2882 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2884 $as_echo "$target_cpu" >&6; }
2886 aros_nominal_width=800
2887 aros_nominal_height=600
2888 aros_nominal_depth=4
2891 HOST_WANTS_X11=
2892 HOST_WANTS_GLX=
2893 HOST_WANTS_SDL=
2894 HOST_WANTS_DBUS=
2895 HOST_WANTS_DLOPEN=
2897 default_c_compilers="gcc clang cc"
2899 # Check whether --with-c-compiler was given.
2900 if test "${with_c_compiler+set}" = set; then :
2901 withval=$with_c_compiler; use_c_compiler="$withval"
2902 else
2903 use_c_compiler=""
2906 if test "$use_c_compiler" = ""; then
2907 host_c_compilers="$default_c_compilers"
2908 else
2909 host_c_compilers="$use_c_compiler"
2910 CC=$use_c_compiler
2913 default_cxx_compilers="g++ clang++ c++"
2915 # Check whether --with-cxx-compiler was given.
2916 if test "${with_cxx_compiler+set}" = set; then :
2917 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2918 else
2919 use_cxx_compiler=""
2922 if test "$use_cxx_compiler" = ""; then
2923 host_cxx_compilers="$default_cxx_compilers"
2924 else
2925 host_cxx_compilers="$use_cxx_compiler"
2926 CXX=$use_cxx_compiler
2930 # The first step is to find the host binaries.
2931 # Check for a compiler.
2932 # Due to a bug in autoconf check for c++ compiler first.
2933 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2934 ac_ext=cpp
2935 ac_cpp='$CXXCPP $CPPFLAGS'
2936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2939 if test -z "$CXX"; then
2940 if test -n "$CCC"; then
2941 CXX=$CCC
2942 else
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in ${host_cxx_compilers}
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_CXX+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$CXX"; then
2954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2973 CXX=$ac_cv_prog_CXX
2974 if test -n "$CXX"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2976 $as_echo "$CXX" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2983 test -n "$CXX" && break
2984 done
2986 if test -z "$CXX"; then
2987 ac_ct_CXX=$CXX
2988 for ac_prog in ${host_cxx_compilers}
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$ac_ct_CXX"; then
2998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_ac_ct_CXX="$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3018 if test -n "$ac_ct_CXX"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3020 $as_echo "$ac_ct_CXX" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3027 test -n "$ac_ct_CXX" && break
3028 done
3030 if test "x$ac_ct_CXX" = x; then
3031 CXX="g++"
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 CXX=$ac_ct_CXX
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3047 set X $ac_compile
3048 ac_compiler=$2
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058 ac_status=$?
3059 if test -s conftest.err; then
3060 sed '10a\
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068 done
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3074 main ()
3078 return 0;
3080 _ACEOF
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3085 # of exeext.
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3087 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3093 ac_rmfiles=
3094 for ac_file in $ac_files
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099 esac
3100 done
3101 rm -f $ac_rmfiles
3103 if { { ac_try="$ac_link_default"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3118 # Autoconf.
3119 for ac_file in $ac_files ''
3121 test -f "$ac_file" || continue
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3125 [ab].out )
3126 # We found the default executable, but exeext='' is most
3127 # certainly right.
3128 break;;
3129 *.* )
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131 then :; else
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3138 # actually working.
3139 break;;
3141 break;;
3142 esac
3143 done
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3146 else
3147 ac_file=''
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C++ compiler cannot create executables
3158 See \`config.log' for more details" "$LINENO" 5; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3164 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe'), while it won't with
3187 # `rm'.
3188 for ac_file in conftest.exe conftest conftest.*; do
3189 test -f "$ac_file" || continue
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 break;;
3194 * ) break;;
3195 esac
3196 done
3197 else
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 rm -f conftest conftest$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3207 rm -f conftest.$ac_ext
3208 EXEEXT=$ac_cv_exeext
3209 ac_exeext=$EXEEXT
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3212 #include <stdio.h>
3214 main ()
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3220 return 0;
3222 _ACEOF
3223 ac_clean_files="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try="$ac_link"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3251 cross_compiling=no
3252 else
3253 if test "$cross_compiling" = maybe; then
3254 cross_compiling=yes
3255 else
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot run C++ compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302 break;;
3303 esac
3304 done
3305 else
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3319 ac_objext=$OBJEXT
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3322 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3329 main ()
3331 #ifndef __GNUC__
3332 choke me
3333 #endif
3336 return 0;
3338 _ACEOF
3339 if ac_fn_cxx_try_compile "$LINENO"; then :
3340 ac_compiler_gnu=yes
3341 else
3342 ac_compiler_gnu=no
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3349 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3351 GXX=yes
3352 else
3353 GXX=
3355 ac_test_CXXFLAGS=${CXXFLAGS+set}
3356 ac_save_CXXFLAGS=$CXXFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3358 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3359 if ${ac_cv_prog_cxx_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3363 ac_cxx_werror_flag=yes
3364 ac_cv_prog_cxx_g=no
3365 CXXFLAGS="-g"
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 main ()
3374 return 0;
3376 _ACEOF
3377 if ac_fn_cxx_try_compile "$LINENO"; then :
3378 ac_cv_prog_cxx_g=yes
3379 else
3380 CXXFLAGS=""
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 if ac_fn_cxx_try_compile "$LINENO"; then :
3394 else
3395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3396 CXXFLAGS="-g"
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 if ac_fn_cxx_try_compile "$LINENO"; then :
3409 ac_cv_prog_cxx_g=yes
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3419 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3420 if test "$ac_test_CXXFLAGS" = set; then
3421 CXXFLAGS=$ac_save_CXXFLAGS
3422 elif test $ac_cv_prog_cxx_g = yes; then
3423 if test "$GXX" = yes; then
3424 CXXFLAGS="-g -O2"
3425 else
3426 CXXFLAGS="-g"
3428 else
3429 if test "$GXX" = yes; then
3430 CXXFLAGS="-O2"
3431 else
3432 CXXFLAGS=
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 CXX_BASE=$CXX
3442 # Extract the first word of "$CXX", so it can be a program name with args.
3443 set dummy $CXX; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_path_CXX+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 case $CXX in
3450 [\\/]* | ?:[\\/]*)
3451 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3470 esac
3472 CXX=$ac_cv_path_CXX
3473 if test -n "$CXX"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3475 $as_echo "$CXX" >&6; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in ${host_c_compilers}
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CC" && break
3528 done
3530 if test -z "$CC"; then
3531 ac_ct_CC=$CC
3532 for ac_prog in ${host_c_compilers}
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CC" && break
3572 done
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3588 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "no acceptable C compiler found in \$PATH
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3595 set X $ac_compile
3596 ac_compiler=$2
3597 for ac_option in --version -v -V -qversion; do
3598 { { ac_try="$ac_compiler $ac_option >&5"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3606 ac_status=$?
3607 if test -s conftest.err; then
3608 sed '10a\
3609 ... rest of stderr output deleted ...
3610 10q' conftest.err >conftest.er1
3611 cat conftest.er1 >&5
3613 rm -f conftest.er1 conftest.err
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3616 done
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3629 #ifndef __GNUC__
3630 choke me
3631 #endif
3634 return 0;
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_compiler_gnu=yes
3639 else
3640 ac_compiler_gnu=no
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3649 GCC=yes
3650 else
3651 GCC=
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3662 ac_cv_prog_cc_g=no
3663 CFLAGS="-g"
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_g=yes
3677 else
3678 CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3692 else
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 struct stat;
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3749 char **p;
3750 int i;
3752 return p[i];
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3756 char *s;
3757 va_list v;
3758 va_start (v,p);
3759 s = g (p, va_arg (v,int));
3760 va_end (v);
3761 return s;
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3775 #define FOO(x) 'x'
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3785 main ()
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 return 0;
3791 _ACEOF
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_c89=$ac_arg
3799 rm -f core conftest.err conftest.$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3801 done
3802 rm -f conftest.$ac_ext
3803 CC=$ac_save_CC
3806 # AC_CACHE_VAL
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3811 xno)
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3818 esac
3819 if test "x$ac_cv_prog_cc_c89" != xno; then :
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 CC_BASE=$CC
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3839 CPP=
3841 if test -z "$CPP"; then
3842 if ${ac_cv_prog_CPP+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 # Double quotes because CPP needs to be expanded
3846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864 Syntax error
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3868 else
3869 # Broken: fails on valid input.
3870 continue
3872 rm -f conftest.err conftest.i conftest.$ac_ext
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3888 rm -f conftest.err conftest.i conftest.$ac_ext
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.i conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then :
3894 break
3897 done
3898 ac_cv_prog_CPP=$CPP
3901 CPP=$ac_cv_prog_CPP
3902 else
3903 ac_cv_prog_CPP=$CPP
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906 $as_echo "$CPP" >&6; }
3907 ac_preproc_ok=false
3908 for ac_c_preproc_warn_flag in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if ac_fn_c_try_cpp "$LINENO"; then :
3927 else
3928 # Broken: fails on valid input.
3929 continue
3931 rm -f conftest.err conftest.i conftest.$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941 continue
3942 else
3943 # Passes both tests.
3944 ac_preproc_ok=:
3945 break
3947 rm -f conftest.err conftest.i conftest.$ac_ext
3949 done
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.i conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then :
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details" "$LINENO" 5; }
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 CPP_BASE=$CPP
3968 # Extract the first word of "$CC", so it can be a program name with args.
3969 set dummy $CC; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_path_CC+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 case $CC in
3976 [\\/]* | ?:[\\/]*)
3977 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3991 done
3992 done
3993 IFS=$as_save_IFS
3996 esac
3998 CC=$ac_cv_path_CC
3999 if test -n "$CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 $as_echo "$CC" >&6; }
4002 else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 aros_host_def_cc="$CC"
4009 case $ac_cv_prog_cc_stdc in #(
4010 no) :
4011 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4012 *) :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4015 if ${ac_cv_prog_cc_c99+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 ac_cv_prog_cc_c99=no
4019 ac_save_CC=$CC
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <stdarg.h>
4023 #include <stdbool.h>
4024 #include <stdlib.h>
4025 #include <wchar.h>
4026 #include <stdio.h>
4028 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4029 #define debug(...) fprintf (stderr, __VA_ARGS__)
4030 #define showlist(...) puts (#__VA_ARGS__)
4031 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4032 static void
4033 test_varargs_macros (void)
4035 int x = 1234;
4036 int y = 5678;
4037 debug ("Flag");
4038 debug ("X = %d\n", x);
4039 showlist (The first, second, and third items.);
4040 report (x>y, "x is %d but y is %d", x, y);
4043 // Check long long types.
4044 #define BIG64 18446744073709551615ull
4045 #define BIG32 4294967295ul
4046 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4047 #if !BIG_OK
4048 your preprocessor is broken;
4049 #endif
4050 #if BIG_OK
4051 #else
4052 your preprocessor is broken;
4053 #endif
4054 static long long int bignum = -9223372036854775807LL;
4055 static unsigned long long int ubignum = BIG64;
4057 struct incomplete_array
4059 int datasize;
4060 double data[];
4063 struct named_init {
4064 int number;
4065 const wchar_t *name;
4066 double average;
4069 typedef const char *ccp;
4071 static inline int
4072 test_restrict (ccp restrict text)
4074 // See if C++-style comments work.
4075 // Iterate through items via the restricted pointer.
4076 // Also check for declarations in for loops.
4077 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4078 continue;
4079 return 0;
4082 // Check varargs and va_copy.
4083 static void
4084 test_varargs (const char *format, ...)
4086 va_list args;
4087 va_start (args, format);
4088 va_list args_copy;
4089 va_copy (args_copy, args);
4091 const char *str;
4092 int number;
4093 float fnumber;
4095 while (*format)
4097 switch (*format++)
4099 case 's': // string
4100 str = va_arg (args_copy, const char *);
4101 break;
4102 case 'd': // int
4103 number = va_arg (args_copy, int);
4104 break;
4105 case 'f': // float
4106 fnumber = va_arg (args_copy, double);
4107 break;
4108 default:
4109 break;
4112 va_end (args_copy);
4113 va_end (args);
4117 main ()
4120 // Check bool.
4121 _Bool success = false;
4123 // Check restrict.
4124 if (test_restrict ("String literal") == 0)
4125 success = true;
4126 char *restrict newvar = "Another string";
4128 // Check varargs.
4129 test_varargs ("s, d' f .", "string", 65, 34.234);
4130 test_varargs_macros ();
4132 // Check flexible array members.
4133 struct incomplete_array *ia =
4134 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4135 ia->datasize = 10;
4136 for (int i = 0; i < ia->datasize; ++i)
4137 ia->data[i] = i * 1.234;
4139 // Check named initializers.
4140 struct named_init ni = {
4141 .number = 34,
4142 .name = L"Test wide string",
4143 .average = 543.34343,
4146 ni.number = 58;
4148 int dynamic_array[ni.number];
4149 dynamic_array[ni.number - 1] = 543;
4151 // work around unused variable warnings
4152 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4153 || dynamic_array[ni.number - 1] != 543);
4156 return 0;
4158 _ACEOF
4159 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_c99=$ac_arg
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x$ac_cv_prog_cc_c99" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4172 # AC_CACHE_VAL
4173 case "x$ac_cv_prog_cc_c99" in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4177 xno)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4181 CC="$CC $ac_cv_prog_cc_c99"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4183 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4184 esac
4185 if test "x$ac_cv_prog_cc_c99" != xno; then :
4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4189 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4190 if ${ac_cv_prog_cc_c89+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 ac_cv_prog_cc_c89=no
4194 ac_save_CC=$CC
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <stdarg.h>
4198 #include <stdio.h>
4199 struct stat;
4200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201 struct buf { int x; };
4202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203 static char *e (p, i)
4204 char **p;
4205 int i;
4207 return p[i];
4209 static char *f (char * (*g) (char **, int), char **p, ...)
4211 char *s;
4212 va_list v;
4213 va_start (v,p);
4214 s = g (p, va_arg (v,int));
4215 va_end (v);
4216 return s;
4219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4220 function prototypes and stuff, but not '\xHH' hex character constants.
4221 These don't provoke an error unfortunately, instead are silently treated
4222 as 'x'. The following induces an error, until -std is added to get
4223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4224 array size at least. It's necessary to write '\x00'==0 to get something
4225 that's true only with -std. */
4226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4229 inside strings and character constants. */
4230 #define FOO(x) 'x'
4231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4233 int test (int i, double x);
4234 struct s1 {int (*f) (int a);};
4235 struct s2 {int (*f) (double a);};
4236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4237 int argc;
4238 char **argv;
4240 main ()
4242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4244 return 0;
4246 _ACEOF
4247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250 CC="$ac_save_CC $ac_arg"
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_prog_cc_c89=$ac_arg
4254 rm -f core conftest.err conftest.$ac_objext
4255 test "x$ac_cv_prog_cc_c89" != "xno" && break
4256 done
4257 rm -f conftest.$ac_ext
4258 CC=$ac_save_CC
4261 # AC_CACHE_VAL
4262 case "x$ac_cv_prog_cc_c89" in
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 $as_echo "none needed" >&6; } ;;
4266 xno)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268 $as_echo "unsupported" >&6; } ;;
4270 CC="$CC $ac_cv_prog_cc_c89"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4272 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4273 esac
4274 if test "x$ac_cv_prog_cc_c89" != xno; then :
4275 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4276 else
4277 ac_cv_prog_cc_stdc=no
4282 esac
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4284 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4285 if ${ac_cv_prog_cc_stdc+:} false; then :
4286 $as_echo_n "(cached) " >&6
4289 case $ac_cv_prog_cc_stdc in #(
4290 no) :
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 $as_echo "unsupported" >&6; } ;; #(
4293 '') :
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4295 $as_echo "none needed" >&6; } ;; #(
4296 *) :
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4298 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4299 esac
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4308 # On Suns, sometimes $CPP names a directory.
4309 if test -n "$CPP" && test -d "$CPP"; then
4310 CPP=
4312 if test -z "$CPP"; then
4313 if ${ac_cv_prog_CPP+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 # Double quotes because CPP needs to be expanded
4317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4319 ac_preproc_ok=false
4320 for ac_c_preproc_warn_flag in '' yes
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335 Syntax error
4336 _ACEOF
4337 if ac_fn_c_try_cpp "$LINENO"; then :
4339 else
4340 # Broken: fails on valid input.
4341 continue
4343 rm -f conftest.err conftest.i conftest.$ac_ext
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <ac_nonexistent.h>
4350 _ACEOF
4351 if ac_fn_c_try_cpp "$LINENO"; then :
4352 # Broken: success on invalid input.
4353 continue
4354 else
4355 # Passes both tests.
4356 ac_preproc_ok=:
4357 break
4359 rm -f conftest.err conftest.i conftest.$ac_ext
4361 done
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.i conftest.err conftest.$ac_ext
4364 if $ac_preproc_ok; then :
4365 break
4368 done
4369 ac_cv_prog_CPP=$CPP
4372 CPP=$ac_cv_prog_CPP
4373 else
4374 ac_cv_prog_CPP=$CPP
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4377 $as_echo "$CPP" >&6; }
4378 ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4394 Syntax error
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4398 else
4399 # Broken: fails on valid input.
4400 continue
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <ac_nonexistent.h>
4409 _ACEOF
4410 if ac_fn_c_try_cpp "$LINENO"; then :
4411 # Broken: success on invalid input.
4412 continue
4413 else
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4418 rm -f conftest.err conftest.i conftest.$ac_ext
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.i conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then :
4425 else
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details" "$LINENO" 5; }
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 # detect the compiler version
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4441 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4442 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4443 if test x"$HOST_COMPILER_VERSION" = "x"; then
4444 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4446 if test x"$HOST_COMPILER_VERSION" = "x"; then
4447 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4450 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4451 if test "$IS_SUN_COMPILER" -ne "0"; then
4452 HOST_TOOLCHAIN_PREFIX=
4453 HOST_TOOLCHAIN_SUFFIX=
4454 HOST_TOOLCHAIN_FAMILY=sun
4456 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4457 if test "$IS_LLVM_COMPILER" -ne "0"; then
4458 if test "$CC_BASE" != "gcc"; then
4459 HOST_TOOLCHAIN_PREFIX=llvm-
4460 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4461 HOST_TOOLCHAIN_FAMILY=llvm
4462 else
4463 IS_GNU_COMPILER=1
4466 if test "x$IS_GNU_COMPILER" = "x"; then
4467 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4469 if test "$IS_GNU_COMPILER" -ne "0"; then
4470 HOST_TOOLCHAIN_PREFIX=
4471 HOST_TOOLCHAIN_SUFFIX=
4472 HOST_TOOLCHAIN_FAMILY=gnu
4474 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4475 HOST_TOOLCHAIN_FAMILY=unknown
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4478 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4480 # Check for a compatible awk
4481 for ac_prog in gawk nawk
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_AWK+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$AWK"; then
4491 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_AWK="$ac_prog"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 AWK=$ac_cv_prog_AWK
4511 if test -n "$AWK"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4513 $as_echo "$AWK" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$AWK" && break
4521 done
4523 req_avail=yes
4524 if test "$AWK" = ""; then
4525 req_avail=no
4527 if test "$AWK" = "no"; then
4528 req_avail=no
4530 if test "$req_avail" = "no"; then
4531 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4533 # Extract the first word of "mmake", so it can be a program name with args.
4534 set dummy mmake; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_MMAKE+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$MMAKE"; then
4541 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_MMAKE="mmake "
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 MMAKE=$ac_cv_prog_MMAKE
4561 if test -n "$MMAKE"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4563 $as_echo "$MMAKE" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4571 # Perform some default variable assignments. Note all of these will be
4572 # Regenerated from the script, so there is no need to cache them.
4574 aros_build_host=$host
4575 aros_host_cpp="$CPP"
4576 aros_host_cc="$CC"
4577 aros_host_cxx="$CXX"
4578 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4579 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4580 for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_base_lld_name+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$base_lld_name"; then
4590 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_base_lld_name="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 base_lld_name=$ac_cv_prog_base_lld_name
4610 if test -n "$base_lld_name"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4612 $as_echo "$base_lld_name" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 test -n "$base_lld_name" && break
4620 done
4622 LD_BASE=$base_lld_name
4623 else
4624 # Extract the first word of "$base_ld_name", so it can be a program name with args.
4625 set dummy $base_ld_name; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_LD_BASE+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$LD_BASE"; then
4632 ac_cv_prog_LD_BASE="$LD_BASE" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_LD_BASE=""
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 LD_BASE=$ac_cv_prog_LD_BASE
4652 if test -n "$LD_BASE"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_BASE" >&5
4654 $as_echo "$LD_BASE" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4663 if test "$LD_BASE" = ""; then
4664 ac_tool_ld=ld
4665 else
4666 ac_tool_ld=$LD_BASE
4668 if test "$GCC" = "yes"; then
4669 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4670 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4671 set dummy `basename $aros_gcc_ld`; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_path_aros_host_ld+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 case $aros_host_ld in
4678 [\\/]* | ?:[\\/]*)
4679 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in `dirname $aros_gcc_ld`
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4698 esac
4700 aros_host_ld=$ac_cv_path_aros_host_ld
4701 if test -n "$aros_host_ld"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4703 $as_echo "$aros_host_ld" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4711 if test "$aros_host_ld" = ""; then
4712 for ac_prog in $ac_tool_ld
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_path_aros_host_ld+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 case $aros_host_ld in
4722 [\\/]* | ?:[\\/]*)
4723 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4742 esac
4744 aros_host_ld=$ac_cv_path_aros_host_ld
4745 if test -n "$aros_host_ld"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4747 $as_echo "$aros_host_ld" >&6; }
4748 else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4754 test -n "$aros_host_ld" && break
4755 done
4759 req_avail=yes
4760 if test "$aros_host_ld" = ""; then
4761 req_avail=no
4763 if test "$aros_host_ld" = "no"; then
4764 req_avail=no
4766 if test "$req_avail" = "no"; then
4767 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4769 aros_host_make="make"
4770 aros_host_cflags="$CFLAGS"
4771 aros_host_cxxflags="$CXXFLAGS"
4772 aros_host_cppflags="$CPPFLAGS"
4773 aros_host_ldflags="$LDFLAGS"
4774 aros_host_debug="-g -O0"
4775 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4776 aros_host_mkargs="--no-print-directory"
4777 aros_host_exe_suffix="$EXEEXT"
4778 aros_host_lib_suffix=""
4780 # Ignore all compliance, AROS ROMs = 0
4781 # KickStart v1.0 = 30
4782 # KickStart v1.3 = 34
4783 # KickStart v2.0 = 37
4784 # KickStart v3.0 = 39
4785 # KickStart v3.1 = 40
4786 # AmigaOS v3.5 = 44
4787 aros_amigaos_compliance=0
4789 for ac_prog in aclocal aclocal19 aclocal-1.9
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy $ac_prog; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$aros_host_aclocal"; then
4799 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_aros_host_aclocal="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4819 if test -n "$aros_host_aclocal"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4821 $as_echo "$aros_host_aclocal" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 test -n "$aros_host_aclocal" && break
4829 done
4831 for ac_prog in autoconf autoconf259 autoconf253
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$aros_host_autoconf"; then
4841 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_aros_host_autoconf="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4861 if test -n "$aros_host_autoconf"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4863 $as_echo "$aros_host_autoconf" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$aros_host_autoconf" && break
4871 done
4873 for ac_prog in autoheader autoheader259 autoheader253
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$aros_host_autoheader"; then
4883 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_aros_host_autoheader="$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4903 if test -n "$aros_host_autoheader"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4905 $as_echo "$aros_host_autoheader" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$aros_host_autoheader" && break
4913 done
4915 for ac_prog in automake automake19 automake-1.9
4917 # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy $ac_prog; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_aros_host_automake+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$aros_host_automake"; then
4925 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_aros_host_automake="$ac_prog"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 aros_host_automake=$ac_cv_prog_aros_host_automake
4945 if test -n "$aros_host_automake"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4947 $as_echo "$aros_host_automake" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4954 test -n "$aros_host_automake" && break
4955 done
4958 req_avail=yes
4959 if test "$aros_host_aclocal" = ""; then
4960 req_avail=no
4962 if test "$aros_host_aclocal" = "no"; then
4963 req_avail=no
4965 if test "$req_avail" = "no"; then
4966 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4968 req_avail=yes
4969 if test "$aros_host_automake" = ""; then
4970 req_avail=no
4972 if test "$aros_host_automake" = "no"; then
4973 req_avail=no
4975 if test "$req_avail" = "no"; then
4976 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4979 case "$aros_host_cc" in
4980 *clang*)
4981 aros_host_cc_pipe=""
4983 *gcc*)
4984 aros_host_cc_pipe="-pipe"
4986 icc)
4987 aros_host_cc_pipe=""
4990 aros_host_cc_pipe=""
4992 esac
4994 aros_kernel_cc_includes=""
4995 aros_target_cc_includes=""
4996 host_cc_elf=yes
4998 # ----------------------------------------------------------------------------------------
4999 # Host-specific defaults
5001 # This is the main host configuration section. It is where the host
5002 # can change the values of any variables it needs to change. We do
5003 # not look at anything that compiles to the target yet, we'll get
5004 # to that later.
5006 case "$host_os" in
5007 aros*)
5008 aros_host_arch="aros"
5009 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5010 case "$host_cpu" in
5011 *i?86*)
5012 aros_host_cpu="i386"
5014 *x86_64*)
5015 aros_host_cpu="x86_64"
5017 *powerpc*)
5018 aros_host_cpu="ppc"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5022 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5023 aros_host_cpu="$host_cpu"
5025 esac
5028 linux*)
5029 aros_host_arch="linux"
5030 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5031 android_build_os="linux-x86"
5032 android_tool="android"
5033 default_android_sdk="/opt/android-sdk-linux_x86"
5034 case "$host_cpu" in
5035 *i?86*)
5036 aros_host_cpu="i386"
5038 *x86_64*)
5039 aros_host_cpu="x86_64"
5041 *m68k*)
5042 aros_host_cpu="m68k"
5044 *powerpc*)
5045 aros_host_cpu="ppc"
5047 *arm*)
5048 aros_host_cpu="arm"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5052 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5053 aros_host_cpu="$host_cpu"
5055 esac
5058 freebsd*)
5059 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5060 aros_host_make="gmake"
5061 aros_host_arch="freebsd"
5062 aros_host_cpu="i386"
5064 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
5066 case $host_os in
5067 freebsd[234]*)
5068 aros_object_format="elf_i386"
5072 aros_object_format="elf_i386_fbsd"
5074 esac
5078 darwin*)
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5080 $as_echo_n "checking for macOS SDK files... " >&6; }
5081 LOC=$( xcode-select -p )
5082 if test $? != 0; then :
5083 as_fn_error $? "XCode incorrectly configured!
5084 please run 'xcode-select --install' before
5085 re-running configure" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5088 $as_echo "$LOC" >&6; }
5089 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5090 aros_host_arch="darwin"
5091 host_cc_elf=no
5092 if [ -z ${SED+x} ]; then SED="gsed"; fi
5093 android_build_os="darwin-x86"
5094 android_tool="android"
5095 default_android_sdk="/android-sdk-mac_x86"
5096 case "$host_cpu" in
5097 *i?86*)
5098 aros_host_cpu="i386"
5100 *x86_64*)
5101 aros_host_cpu="x86_64"
5103 *powerpc*)
5104 aros_host_cpu="ppc"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5108 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5109 aros_host_cpu="$host_cpu"
5111 esac
5113 aros_host_ldflags="$aros_host_ldflags -liconv"
5117 dragonfly*)
5118 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5119 aros_host_make="gmake"
5120 aros_host_arch="dragonfly"
5121 case $host_cpu in
5122 *i?86*)
5123 aros_host_cpu="i386"
5125 *amd64*)
5126 aros_host_cpu="x86_64"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5130 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5131 aros_host_cpu="$host_cpu"
5133 esac
5136 netbsd*)
5137 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5138 aros_host_make="gmake"
5139 aros_host_arch="netbsd"
5140 case "$host_cpu" in
5141 *i?86*)
5142 aros_host_cpu="i386"
5144 *m68k*)
5145 aros_host_cpu="m68k"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5149 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5150 aros_host_cpu="$host_cpu"
5152 esac
5153 aros_host_lib_suffix=".0.0"
5156 openbsd*)
5157 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5158 aros_host_make="gmake"
5159 aros_host_arch="openbsd"
5160 case "$host_cpu" in
5161 *i?86*)
5162 aros_host_cpu="i386"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5166 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5167 aros_host_cpu="$host_cpu"
5169 esac
5172 solaris*)
5173 aros_host_arch="solaris"
5174 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5175 case "$host_cpu" in
5176 *i?86*)
5177 aros_host_cpu="i386"
5179 *sparc*)
5180 aros_host_cpu="sparc"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5184 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5185 aros_host_cpu="$host_cpu"
5187 esac
5190 morphos*)
5191 aros_host_arch="morphos"
5192 aros_host_cpu="ppc"
5193 host_cc_elf=no
5196 amiga*)
5197 aros_host_arch="amiga"
5198 host_cc_elf=no
5199 SORT="/gg/bin/sort"
5200 TEST="/gg/bin/test"
5201 UNIQ="/gg/bin/uniq"
5202 FOR="for"
5203 TOUCH="/gg/bin/touch"
5204 case "$host_cpu" in
5205 *m68k*)
5206 aros_host_cpu="m68k"
5208 *powerpc*)
5209 aros_host_cpu="ppc"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5213 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5214 aros_host_cpu="$host_cpu"
5216 esac
5219 cygwin*)
5220 aros_host_arch="cygwin"
5221 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5222 host_cc_elf=no
5223 android_build_os="windows"
5224 android_tool="android.bat"
5225 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5227 case "$host_cpu" in
5228 *i?86*)
5229 aros_host_cpu="i386"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5233 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5234 aros_host_cpu="$host_cpu"
5236 esac
5239 mingw32*)
5240 aros_host_arch="mingw32"
5241 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5242 host_cc_elf=no
5243 android_build_os="windows"
5244 android_tool="android.bat"
5245 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5247 libpng_libextra="-lws2_32"
5249 case "$host_cpu" in
5250 *i?86*)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5253 $as_echo_n "checking for Windows native gcc target... " >&6; }
5254 host_cpu=`gcc -dumpmachine`
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5256 $as_echo "$host_cpu" >&6; }
5259 esac
5261 case "$host_cpu" in
5262 *i?86*)
5263 aros_host_cpu="i386"
5266 mingw32*)
5267 aros_host_cpu="i386"
5270 *x86_64*)
5271 aros_host_cpu="x86_64"
5272 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5277 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5278 aros_host_cpu="$host_cpu"
5280 esac
5283 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5285 esac
5287 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5288 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5289 set dummy $base_ar_name; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_AR_BASE+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$AR_BASE"; then
5296 ac_cv_prog_AR_BASE="$AR_BASE" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_AR_BASE="$base_ar_name "
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5311 IFS=$as_save_IFS
5315 AR_BASE=$ac_cv_prog_AR_BASE
5316 if test -n "$AR_BASE"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_BASE" >&5
5318 $as_echo "$AR_BASE" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5325 aros_host_ar_flags="cr"
5326 aros_host_cmd_ar="$AR_BASE $aros_host_ar_flags"
5327 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5328 set dummy $aros_host_cmd_ar; 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_path_aros_host_plain_ar+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 case $aros_host_plain_ar in
5335 [\\/]* | ?:[\\/]*)
5336 ac_cv_path_aros_host_plain_ar="$aros_host_plain_ar" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_path_aros_host_plain_ar="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5350 done
5351 done
5352 IFS=$as_save_IFS
5354 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar="$aros_host_cmd_ar "
5356 esac
5358 aros_host_plain_ar=$ac_cv_path_aros_host_plain_ar
5359 if test -n "$aros_host_plain_ar"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5361 $as_echo "$aros_host_plain_ar" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5369 req_avail=yes
5370 if test "$aros_host_ar" = ""; then
5371 req_avail=no
5373 if test "$aros_host_ar" = "no"; then
5374 req_avail=no
5376 if test "$req_avail" = "no"; then
5377 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5379 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5380 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5381 set dummy $base_ranlib_name; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_RANLIB_BASE+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$RANLIB_BASE"; then
5388 ac_cv_prog_RANLIB_BASE="$RANLIB_BASE" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_RANLIB_BASE="$base_ranlib_name "
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 RANLIB_BASE=$ac_cv_prog_RANLIB_BASE
5408 if test -n "$RANLIB_BASE"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_BASE" >&5
5410 $as_echo "$RANLIB_BASE" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 # Extract the first word of "$RANLIB_BASE", so it can be a program name with args.
5418 set dummy $RANLIB_BASE; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 case $aros_host_ranlib in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5444 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$RANLIB_BASE "
5446 esac
5448 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5449 if test -n "$aros_host_ranlib"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5451 $as_echo "$aros_host_ranlib" >&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 "$aros_host_ranlib" = ""; then
5460 req_avail=no
5462 if test "$aros_host_ranlib" = "no"; then
5463 req_avail=no
5465 if test "$req_avail" = "no"; then
5466 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "strip", so it can be a program name with args.
5469 set dummy strip; 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_aros_host_strip+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$aros_host_strip"; then
5476 ac_cv_prog_aros_host_strip="$aros_host_strip" # 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_aros_host_strip="strip "
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 aros_host_strip=$ac_cv_prog_aros_host_strip
5496 if test -n "$aros_host_strip"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5498 $as_echo "$aros_host_strip" >&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 "$aros_host_strip" = ""; then
5507 req_avail=no
5509 if test "$aros_host_strip" = "no"; then
5510 req_avail=no
5512 if test "$req_avail" = "no"; then
5513 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5516 # Extract the first word of "rm", so it can be a program name with args.
5517 set dummy rm; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_RM+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$RM"; then
5524 ac_cv_prog_RM="$RM" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_RM="rm -rf"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5543 RM=$ac_cv_prog_RM
5544 if test -n "$RM"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5546 $as_echo "$RM" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5553 req_avail=yes
5554 if test "$RM" = ""; then
5555 req_avail=no
5557 if test "$RM" = "no"; then
5558 req_avail=no
5560 if test "$req_avail" = "no"; then
5561 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5563 # Extract the first word of "cp", so it can be a program name with args.
5564 set dummy cp; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_CP+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$CP"; then
5571 ac_cv_prog_CP="$CP" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_CP="cp "
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 CP=$ac_cv_prog_CP
5591 if test -n "$CP"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5593 $as_echo "$CP" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 req_avail=yes
5601 if test "$CP" = ""; then
5602 req_avail=no
5604 if test "$CP" = "no"; then
5605 req_avail=no
5607 if test "$req_avail" = "no"; then
5608 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5610 # Extract the first word of "mv", so it can be a program name with args.
5611 set dummy mv; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_MV+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$MV"; then
5618 ac_cv_prog_MV="$MV" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_MV="mv "
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5631 done
5632 done
5633 IFS=$as_save_IFS
5637 MV=$ac_cv_prog_MV
5638 if test -n "$MV"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5640 $as_echo "$MV" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 req_avail=yes
5648 if test "$MV" = ""; then
5649 req_avail=no
5651 if test "$MV" = "no"; then
5652 req_avail=no
5654 if test "$req_avail" = "no"; then
5655 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5657 # Extract the first word of "echo", so it can be a program name with args.
5658 set dummy echo; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ECHO+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$ECHO"; then
5665 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ECHO="echo "
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5678 done
5679 done
5680 IFS=$as_save_IFS
5684 ECHO=$ac_cv_prog_ECHO
5685 if test -n "$ECHO"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5687 $as_echo "$ECHO" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5694 req_avail=yes
5695 if test "$ECHO" = ""; then
5696 req_avail=no
5698 if test "$ECHO" = "no"; then
5699 req_avail=no
5701 if test "$req_avail" = "no"; then
5702 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5704 # Extract the first word of "mkdir", so it can be a program name with args.
5705 set dummy mkdir; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_MKDIR+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$MKDIR"; then
5712 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_MKDIR="mkdir -p"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5725 done
5726 done
5727 IFS=$as_save_IFS
5731 MKDIR=$ac_cv_prog_MKDIR
5732 if test -n "$MKDIR"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5734 $as_echo "$MKDIR" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5741 req_avail=yes
5742 if test "$MKDIR" = ""; then
5743 req_avail=no
5745 if test "$MKDIR" = "no"; then
5746 req_avail=no
5748 if test "$req_avail" = "no"; then
5749 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5751 # Extract the first word of "touch", so it can be a program name with args.
5752 set dummy touch; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_TOUCH+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$TOUCH"; then
5759 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_TOUCH="touch "
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5772 done
5773 done
5774 IFS=$as_save_IFS
5778 TOUCH=$ac_cv_prog_TOUCH
5779 if test -n "$TOUCH"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5781 $as_echo "$TOUCH" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5788 req_avail=yes
5789 if test "$TOUCH" = ""; then
5790 req_avail=no
5792 if test "$TOUCH" = "no"; then
5793 req_avail=no
5795 if test "$req_avail" = "no"; then
5796 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5798 # Extract the first word of "sort", so it can be a program name with args.
5799 set dummy sort; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_SORT+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$SORT"; then
5806 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_SORT="sort "
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5819 done
5820 done
5821 IFS=$as_save_IFS
5825 SORT=$ac_cv_prog_SORT
5826 if test -n "$SORT"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5828 $as_echo "$SORT" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 req_avail=yes
5836 if test "$SORT" = ""; then
5837 req_avail=no
5839 if test "$SORT" = "no"; then
5840 req_avail=no
5842 if test "$req_avail" = "no"; then
5843 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5845 # Extract the first word of "uniq", so it can be a program name with args.
5846 set dummy uniq; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_UNIQ+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$UNIQ"; then
5853 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_UNIQ="uniq "
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5866 done
5867 done
5868 IFS=$as_save_IFS
5872 UNIQ=$ac_cv_prog_UNIQ
5873 if test -n "$UNIQ"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5875 $as_echo "$UNIQ" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 req_avail=yes
5883 if test "$UNIQ" = ""; then
5884 req_avail=no
5886 if test "$UNIQ" = "no"; then
5887 req_avail=no
5889 if test "$req_avail" = "no"; then
5890 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5892 # Extract the first word of "true", so it can be a program name with args.
5893 set dummy true; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_NOP+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -n "$NOP"; then
5900 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_NOP="true "
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5913 done
5914 done
5915 IFS=$as_save_IFS
5919 NOP=$ac_cv_prog_NOP
5920 if test -n "$NOP"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5922 $as_echo "$NOP" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5929 req_avail=yes
5930 if test "$NOP" = ""; then
5931 req_avail=no
5933 if test "$NOP" = "no"; then
5934 req_avail=no
5936 if test "$req_avail" = "no"; then
5937 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5939 # Extract the first word of "cat", so it can be a program name with args.
5940 set dummy cat; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if ${ac_cv_prog_CAT+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$CAT"; then
5947 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956 ac_cv_prog_CAT="cat "
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 CAT=$ac_cv_prog_CAT
5967 if test -n "$CAT"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5969 $as_echo "$CAT" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5976 req_avail=yes
5977 if test "$CAT" = ""; then
5978 req_avail=no
5980 if test "$CAT" = "no"; then
5981 req_avail=no
5983 if test "$req_avail" = "no"; then
5984 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5986 # Extract the first word of "bison", so it can be a program name with args.
5987 set dummy bison; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_BISON+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if test -n "$BISON"; then
5994 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_BISON="bison "
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6007 done
6008 done
6009 IFS=$as_save_IFS
6013 BISON=$ac_cv_prog_BISON
6014 if test -n "$BISON"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6016 $as_echo "$BISON" >&6; }
6017 else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6023 req_avail=yes
6024 if test "$BISON" = ""; then
6025 req_avail=no
6027 if test "$BISON" = "no"; then
6028 req_avail=no
6030 if test "$req_avail" = "no"; then
6031 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
6033 # Extract the first word of "flex", so it can be a program name with args.
6034 set dummy flex; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_FLEX+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$FLEX"; then
6041 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_FLEX="flex "
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 FLEX=$ac_cv_prog_FLEX
6061 if test -n "$FLEX"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
6063 $as_echo "$FLEX" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6070 req_avail=yes
6071 if test "$FLEX" = ""; then
6072 req_avail=no
6074 if test "$FLEX" = "no"; then
6075 req_avail=no
6077 if test "$req_avail" = "no"; then
6078 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6081 $as_echo_n "checking version of $FLEX... " >&6; }
6082 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6084 $as_echo "$ax_cv_flex_version" >&6; }
6085 # Extract the first word of "pngtopnm", so it can be a program name with args.
6086 set dummy pngtopnm; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_PNGTOPNM+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$PNGTOPNM"; then
6093 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_PNGTOPNM="pngtopnm "
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6108 IFS=$as_save_IFS
6112 PNGTOPNM=$ac_cv_prog_PNGTOPNM
6113 if test -n "$PNGTOPNM"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6115 $as_echo "$PNGTOPNM" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6122 req_avail=yes
6123 if test "$PNGTOPNM" = ""; then
6124 req_avail=no
6126 if test "$PNGTOPNM" = "no"; then
6127 req_avail=no
6129 if test "$req_avail" = "no"; then
6130 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6132 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6133 set dummy ppmtoilbm; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_prog_PPMTOILBM+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$PPMTOILBM"; then
6140 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_PPMTOILBM="ppmtoilbm "
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 PPMTOILBM=$ac_cv_prog_PPMTOILBM
6160 if test -n "$PPMTOILBM"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6162 $as_echo "$PPMTOILBM" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6169 req_avail=yes
6170 if test "$PPMTOILBM" = ""; then
6171 req_avail=no
6173 if test "$PPMTOILBM" = "no"; then
6174 req_avail=no
6176 if test "$req_avail" = "no"; then
6177 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6179 # Extract the first word of "sed", so it can be a program name with args.
6180 set dummy sed; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_SED+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$SED"; then
6187 ac_cv_prog_SED="$SED" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_SED="sed "
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6200 done
6201 done
6202 IFS=$as_save_IFS
6206 SED=$ac_cv_prog_SED
6207 if test -n "$SED"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6209 $as_echo "$SED" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6216 req_avail=yes
6217 if test "$SED" = ""; then
6218 req_avail=no
6220 if test "$SED" = "no"; then
6221 req_avail=no
6223 if test "$req_avail" = "no"; then
6224 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6226 # Extract the first word of "chmod", so it can be a program name with args.
6227 set dummy chmod; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_CHMOD+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -n "$CHMOD"; then
6234 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_CHMOD="chmod "
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6247 done
6248 done
6249 IFS=$as_save_IFS
6253 CHMOD=$ac_cv_prog_CHMOD
6254 if test -n "$CHMOD"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6256 $as_echo "$CHMOD" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6263 req_avail=yes
6264 if test "$CHMOD" = ""; then
6265 req_avail=no
6267 if test "$CHMOD" = "no"; then
6268 req_avail=no
6270 if test "$req_avail" = "no"; then
6271 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6273 # Extract the first word of "patch", so it can be a program name with args.
6274 set dummy patch; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_PATCH+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$PATCH"; then
6281 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_PATCH="patch "
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6294 done
6295 done
6296 IFS=$as_save_IFS
6300 PATCH=$ac_cv_prog_PATCH
6301 if test -n "$PATCH"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6303 $as_echo "$PATCH" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6310 req_avail=yes
6311 if test "$PATCH" = ""; then
6312 req_avail=no
6314 if test "$PATCH" = "no"; then
6315 req_avail=no
6317 if test "$req_avail" = "no"; then
6318 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6327 if test -n "$PYTHON"; then
6328 # If the user set $PYTHON, use it and don't search something else.
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6330 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6331 prog="import sys
6332 # split strings by '.' and convert to numeric. Append some zeros
6333 # because we need at least 4 digits for the hex conversion.
6334 # map returns an iterator in Python 3.0 and a list in 2.x
6335 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6336 minverhex = 0
6337 # xrange is not present in Python 3.0 and range returns an iterator
6338 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6339 sys.exit(sys.hexversion < minverhex)"
6340 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6341 ($PYTHON -c "$prog") >&5 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; then :
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6352 am_display_PYTHON=$PYTHON
6353 else
6354 # Otherwise, try each interpreter until we find one that satisfies
6355 # VERSION.
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6357 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6358 if ${am_cv_pathless_PYTHON+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6362 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 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
6363 test "$am_cv_pathless_PYTHON" = none && break
6364 prog="import sys
6365 # split strings by '.' and convert to numeric. Append some zeros
6366 # because we need at least 4 digits for the hex conversion.
6367 # map returns an iterator in Python 3.0 and a list in 2.x
6368 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6369 minverhex = 0
6370 # xrange is not present in Python 3.0 and range returns an iterator
6371 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6372 sys.exit(sys.hexversion < minverhex)"
6373 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6374 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; then :
6378 break
6380 done
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6383 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6384 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6385 if test "$am_cv_pathless_PYTHON" = none; then
6386 PYTHON=:
6387 else
6388 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6389 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_path_PYTHON+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 case $PYTHON in
6396 [\\/]* | ?:[\\/]*)
6397 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6411 done
6412 done
6413 IFS=$as_save_IFS
6416 esac
6418 PYTHON=$ac_cv_path_PYTHON
6419 if test -n "$PYTHON"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6421 $as_echo "$PYTHON" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6429 am_display_PYTHON=$am_cv_pathless_PYTHON
6433 if test "$PYTHON" = :; then
6434 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6435 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6439 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6440 if ${am_cv_python_version+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6446 $as_echo "$am_cv_python_version" >&6; }
6447 PYTHON_VERSION=$am_cv_python_version
6451 PYTHON_PREFIX='${prefix}'
6453 PYTHON_EXEC_PREFIX='${exec_prefix}'
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6458 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6459 if ${am_cv_python_platform+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6465 $as_echo "$am_cv_python_platform" >&6; }
6466 PYTHON_PLATFORM=$am_cv_python_platform
6469 # Just factor out some code duplication.
6470 am_python_setup_sysconfig="\
6471 import sys
6472 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6473 # with python 3.x. See automake bug#10227.
6474 try:
6475 import sysconfig
6476 except ImportError:
6477 can_use_sysconfig = 0
6478 else:
6479 can_use_sysconfig = 1
6480 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6481 # <https://github.com/pypa/virtualenv/issues/118>
6482 try:
6483 from platform import python_implementation
6484 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6485 can_use_sysconfig = 0
6486 except ImportError:
6487 pass"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6491 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6492 if ${am_cv_python_pythondir+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test "x$prefix" = xNONE
6496 then
6497 am_py_prefix=$ac_default_prefix
6498 else
6499 am_py_prefix=$prefix
6501 am_cv_python_pythondir=`$PYTHON -c "
6502 $am_python_setup_sysconfig
6503 if can_use_sysconfig:
6504 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6505 else:
6506 from distutils import sysconfig
6507 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6508 sys.stdout.write(sitedir)"`
6509 case $am_cv_python_pythondir in
6510 $am_py_prefix*)
6511 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6512 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6515 case $am_py_prefix in
6516 /usr|/System*) ;;
6518 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6520 esac
6522 esac
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6526 $as_echo "$am_cv_python_pythondir" >&6; }
6527 pythondir=$am_cv_python_pythondir
6531 pkgpythondir=\${pythondir}/$PACKAGE
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6535 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6536 if ${am_cv_python_pyexecdir+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test "x$exec_prefix" = xNONE
6540 then
6541 am_py_exec_prefix=$am_py_prefix
6542 else
6543 am_py_exec_prefix=$exec_prefix
6545 am_cv_python_pyexecdir=`$PYTHON -c "
6546 $am_python_setup_sysconfig
6547 if can_use_sysconfig:
6548 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6549 else:
6550 from distutils import sysconfig
6551 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6552 sys.stdout.write(sitedir)"`
6553 case $am_cv_python_pyexecdir in
6554 $am_py_exec_prefix*)
6555 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6556 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6559 case $am_py_exec_prefix in
6560 /usr|/System*) ;;
6562 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6564 esac
6566 esac
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6570 $as_echo "$am_cv_python_pyexecdir" >&6; }
6571 pyexecdir=$am_cv_python_pyexecdir
6575 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6583 # Check whether --enable-libpng-config was given.
6584 if test "${enable_libpng_config+set}" = set; then :
6585 enableval=$enable_libpng_config;
6588 if test "$enable_libpng_config" != "no"; then
6589 # Extract the first word of "libpng-config", so it can be a program name with args.
6590 set dummy libpng-config; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$arosconfig_use_libpngconfig"; then
6597 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6610 done
6611 done
6612 IFS=$as_save_IFS
6614 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6617 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6618 if test -n "$arosconfig_use_libpngconfig"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6620 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6628 if test "$arosconfig_use_libpngconfig" = "yes"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6630 $as_echo_n "checking libpng-config library... " >&6; }
6631 libpng_incdir="`libpng-config --cflags`"
6632 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6633 libpng="`libpng-config --libs`"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6635 $as_echo "$libpng" >&6; }
6636 else
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6639 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6640 if ${ac_cv_lib_png_png_read_png+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 ac_check_lib_save_LIBS=$LIBS
6644 LIBS="-lpng $LIBS"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6648 /* Override any GCC internal prototype to avoid an error.
6649 Use char because int might match the return type of a GCC
6650 builtin and then its argument prototype would still apply. */
6651 #ifdef __cplusplus
6652 extern "C"
6653 #endif
6654 char png_read_png ();
6656 main ()
6658 return png_read_png ();
6660 return 0;
6662 _ACEOF
6663 if ac_fn_c_try_link "$LINENO"; then :
6664 ac_cv_lib_png_png_read_png=yes
6665 else
6666 ac_cv_lib_png_png_read_png=no
6668 rm -f core conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6673 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6674 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6675 libpng="-lpng"
6676 else
6677 libpng="no"
6680 if test "$libpng_libextra" != ""; then
6681 if test "$libpng" != "no"; then
6682 libpng_libextra="$libpng_libextra $libpng"
6686 req_avail=yes
6687 if test "$libpng" = ""; then
6688 req_avail=no
6690 if test "$libpng" = "no"; then
6691 req_avail=no
6693 if test "$req_avail" = "no"; then
6694 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6700 FOR=for
6702 IF=if
6704 TEST=test
6706 CMP=cmp
6710 # Check for some includes for the X11 HIDD and the kernel
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6713 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6714 if ${ac_cv_path_GREP+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -z "$GREP"; then
6718 ac_path_GREP_found=false
6719 # Loop through the user's path and test for each of PROGNAME-LIST
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_prog in grep ggrep; do
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6728 as_fn_executable_p "$ac_path_GREP" || continue
6729 # Check for GNU ac_path_GREP and select it if it is found.
6730 # Check for GNU $ac_path_GREP
6731 case `"$ac_path_GREP" --version 2>&1` in
6732 *GNU*)
6733 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6735 ac_count=0
6736 $as_echo_n 0123456789 >"conftest.in"
6737 while :
6739 cat "conftest.in" "conftest.in" >"conftest.tmp"
6740 mv "conftest.tmp" "conftest.in"
6741 cp "conftest.in" "conftest.nl"
6742 $as_echo 'GREP' >> "conftest.nl"
6743 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6745 as_fn_arith $ac_count + 1 && ac_count=$as_val
6746 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6747 # Best one so far, save it but keep looking for a better one
6748 ac_cv_path_GREP="$ac_path_GREP"
6749 ac_path_GREP_max=$ac_count
6751 # 10*(2^10) chars as input seems more than enough
6752 test $ac_count -gt 10 && break
6753 done
6754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6755 esac
6757 $ac_path_GREP_found && break 3
6758 done
6759 done
6760 done
6761 IFS=$as_save_IFS
6762 if test -z "$ac_cv_path_GREP"; then
6763 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6765 else
6766 ac_cv_path_GREP=$GREP
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6771 $as_echo "$ac_cv_path_GREP" >&6; }
6772 GREP="$ac_cv_path_GREP"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6776 $as_echo_n "checking for egrep... " >&6; }
6777 if ${ac_cv_path_EGREP+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6781 then ac_cv_path_EGREP="$GREP -E"
6782 else
6783 if test -z "$EGREP"; then
6784 ac_path_EGREP_found=false
6785 # Loop through the user's path and test for each of PROGNAME-LIST
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_prog in egrep; do
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6794 as_fn_executable_p "$ac_path_EGREP" || continue
6795 # Check for GNU ac_path_EGREP and select it if it is found.
6796 # Check for GNU $ac_path_EGREP
6797 case `"$ac_path_EGREP" --version 2>&1` in
6798 *GNU*)
6799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6801 ac_count=0
6802 $as_echo_n 0123456789 >"conftest.in"
6803 while :
6805 cat "conftest.in" "conftest.in" >"conftest.tmp"
6806 mv "conftest.tmp" "conftest.in"
6807 cp "conftest.in" "conftest.nl"
6808 $as_echo 'EGREP' >> "conftest.nl"
6809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6811 as_fn_arith $ac_count + 1 && ac_count=$as_val
6812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6813 # Best one so far, save it but keep looking for a better one
6814 ac_cv_path_EGREP="$ac_path_EGREP"
6815 ac_path_EGREP_max=$ac_count
6817 # 10*(2^10) chars as input seems more than enough
6818 test $ac_count -gt 10 && break
6819 done
6820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6821 esac
6823 $ac_path_EGREP_found && break 3
6824 done
6825 done
6826 done
6827 IFS=$as_save_IFS
6828 if test -z "$ac_cv_path_EGREP"; then
6829 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6831 else
6832 ac_cv_path_EGREP=$EGREP
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6838 $as_echo "$ac_cv_path_EGREP" >&6; }
6839 EGREP="$ac_cv_path_EGREP"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6843 $as_echo_n "checking for ANSI C header files... " >&6; }
6844 if ${ac_cv_header_stdc+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <stdlib.h>
6850 #include <stdarg.h>
6851 #include <string.h>
6852 #include <float.h>
6855 main ()
6859 return 0;
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863 ac_cv_header_stdc=yes
6864 else
6865 ac_cv_header_stdc=no
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 if test $ac_cv_header_stdc = yes; then
6870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 #include <string.h>
6875 _ACEOF
6876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 $EGREP "memchr" >/dev/null 2>&1; then :
6879 else
6880 ac_cv_header_stdc=no
6882 rm -f conftest*
6886 if test $ac_cv_header_stdc = yes; then
6887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #include <stdlib.h>
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "free" >/dev/null 2>&1; then :
6896 else
6897 ac_cv_header_stdc=no
6899 rm -f conftest*
6903 if test $ac_cv_header_stdc = yes; then
6904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905 if test "$cross_compiling" = yes; then :
6907 else
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6910 #include <ctype.h>
6911 #include <stdlib.h>
6912 #if ((' ' & 0x0FF) == 0x020)
6913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6915 #else
6916 # define ISLOWER(c) \
6917 (('a' <= (c) && (c) <= 'i') \
6918 || ('j' <= (c) && (c) <= 'r') \
6919 || ('s' <= (c) && (c) <= 'z'))
6920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6921 #endif
6923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6925 main ()
6927 int i;
6928 for (i = 0; i < 256; i++)
6929 if (XOR (islower (i), ISLOWER (i))
6930 || toupper (i) != TOUPPER (i))
6931 return 2;
6932 return 0;
6934 _ACEOF
6935 if ac_fn_c_try_run "$LINENO"; then :
6937 else
6938 ac_cv_header_stdc=no
6940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6941 conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6947 $as_echo "$ac_cv_header_stdc" >&6; }
6948 if test $ac_cv_header_stdc = yes; then
6950 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6955 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6956 inttypes.h stdint.h unistd.h
6957 do :
6958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6964 _ACEOF
6968 done
6971 for ac_header in sys/ipc.h sys/shm.h \
6972 sys/mmap.h sys/mman.h sysexits.h \
6973 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6975 do :
6976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6977 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6979 cat >>confdefs.h <<_ACEOF
6980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6981 _ACEOF
6985 done
6988 for ac_header in sys/mount.h
6989 do :
6990 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6992 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_SYS_MOUNT_H 1
6995 _ACEOF
6999 done
7001 for ac_header in GL/glx.h
7002 do :
7003 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7004 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_GL_GLX_H 1
7007 _ACEOF
7008 host_feature_glx=yes
7009 else
7010 host_feature_glx=no
7013 done
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
7017 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 #define __unused __attribute__((unused))
7022 #include <sys/stat.h>
7025 main ()
7029 return 0;
7031 _ACEOF
7032 if ac_fn_c_try_compile "$LINENO"; then :
7033 host_stat_h__unused_used=no
7034 else
7035 host_stat_h__unused_used=yes
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
7039 $as_echo "$host_stat_h__unused_used" >&6; }
7041 ac_header_dirent=no
7042 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7043 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7045 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7046 if eval \${$as_ac_Header+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7052 #include <$ac_hdr>
7055 main ()
7057 if ((DIR *) 0)
7058 return 0;
7060 return 0;
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064 eval "$as_ac_Header=yes"
7065 else
7066 eval "$as_ac_Header=no"
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 eval ac_res=\$$as_ac_Header
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7076 _ACEOF
7078 ac_header_dirent=$ac_hdr; break
7081 done
7082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7083 if test $ac_header_dirent = dirent.h; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7085 $as_echo_n "checking for library containing opendir... " >&6; }
7086 if ${ac_cv_search_opendir+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 ac_func_search_save_LIBS=$LIBS
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7093 /* Override any GCC internal prototype to avoid an error.
7094 Use char because int might match the return type of a GCC
7095 builtin and then its argument prototype would still apply. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 char opendir ();
7101 main ()
7103 return opendir ();
7105 return 0;
7107 _ACEOF
7108 for ac_lib in '' dir; do
7109 if test -z "$ac_lib"; then
7110 ac_res="none required"
7111 else
7112 ac_res=-l$ac_lib
7113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 ac_cv_search_opendir=$ac_res
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext
7120 if ${ac_cv_search_opendir+:} false; then :
7121 break
7123 done
7124 if ${ac_cv_search_opendir+:} false; then :
7126 else
7127 ac_cv_search_opendir=no
7129 rm conftest.$ac_ext
7130 LIBS=$ac_func_search_save_LIBS
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7133 $as_echo "$ac_cv_search_opendir" >&6; }
7134 ac_res=$ac_cv_search_opendir
7135 if test "$ac_res" != no; then :
7136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7142 $as_echo_n "checking for library containing opendir... " >&6; }
7143 if ${ac_cv_search_opendir+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 ac_func_search_save_LIBS=$LIBS
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7150 /* Override any GCC internal prototype to avoid an error.
7151 Use char because int might match the return type of a GCC
7152 builtin and then its argument prototype would still apply. */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 char opendir ();
7158 main ()
7160 return opendir ();
7162 return 0;
7164 _ACEOF
7165 for ac_lib in '' x; do
7166 if test -z "$ac_lib"; then
7167 ac_res="none required"
7168 else
7169 ac_res=-l$ac_lib
7170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7172 if ac_fn_c_try_link "$LINENO"; then :
7173 ac_cv_search_opendir=$ac_res
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext
7177 if ${ac_cv_search_opendir+:} false; then :
7178 break
7180 done
7181 if ${ac_cv_search_opendir+:} false; then :
7183 else
7184 ac_cv_search_opendir=no
7186 rm conftest.$ac_ext
7187 LIBS=$ac_func_search_save_LIBS
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7190 $as_echo "$ac_cv_search_opendir" >&6; }
7191 ac_res=$ac_cv_search_opendir
7192 if test "$ac_res" != no; then :
7193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7200 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7201 if ${ac_cv_header_stat_broken+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <sys/types.h>
7207 #include <sys/stat.h>
7209 #if defined S_ISBLK && defined S_IFDIR
7210 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7211 #endif
7213 #if defined S_ISBLK && defined S_IFCHR
7214 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7215 #endif
7217 #if defined S_ISLNK && defined S_IFREG
7218 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7219 #endif
7221 #if defined S_ISSOCK && defined S_IFREG
7222 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7223 #endif
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 ac_cv_header_stat_broken=no
7228 else
7229 ac_cv_header_stat_broken=yes
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7234 $as_echo "$ac_cv_header_stat_broken" >&6; }
7235 if test $ac_cv_header_stat_broken = yes; then
7237 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7242 $as_echo_n "checking for ANSI C header files... " >&6; }
7243 if ${ac_cv_header_stdc+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <stdlib.h>
7249 #include <stdarg.h>
7250 #include <string.h>
7251 #include <float.h>
7254 main ()
7258 return 0;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 ac_cv_header_stdc=yes
7263 else
7264 ac_cv_header_stdc=no
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 if test $ac_cv_header_stdc = yes; then
7269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <string.h>
7274 _ACEOF
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 $EGREP "memchr" >/dev/null 2>&1; then :
7278 else
7279 ac_cv_header_stdc=no
7281 rm -f conftest*
7285 if test $ac_cv_header_stdc = yes; then
7286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <stdlib.h>
7291 _ACEOF
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "free" >/dev/null 2>&1; then :
7295 else
7296 ac_cv_header_stdc=no
7298 rm -f conftest*
7302 if test $ac_cv_header_stdc = yes; then
7303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7304 if test "$cross_compiling" = yes; then :
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <ctype.h>
7310 #include <stdlib.h>
7311 #if ((' ' & 0x0FF) == 0x020)
7312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7314 #else
7315 # define ISLOWER(c) \
7316 (('a' <= (c) && (c) <= 'i') \
7317 || ('j' <= (c) && (c) <= 'r') \
7318 || ('s' <= (c) && (c) <= 'z'))
7319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7320 #endif
7322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7324 main ()
7326 int i;
7327 for (i = 0; i < 256; i++)
7328 if (XOR (islower (i), ISLOWER (i))
7329 || toupper (i) != TOUPPER (i))
7330 return 2;
7331 return 0;
7333 _ACEOF
7334 if ac_fn_c_try_run "$LINENO"; then :
7336 else
7337 ac_cv_header_stdc=no
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340 conftest.$ac_objext conftest.beam conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7346 $as_echo "$ac_cv_header_stdc" >&6; }
7347 if test $ac_cv_header_stdc = yes; then
7349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7354 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7355 if ${ac_cv_header_sys_wait_h+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <sys/types.h>
7361 #include <sys/wait.h>
7362 #ifndef WEXITSTATUS
7363 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7364 #endif
7365 #ifndef WIFEXITED
7366 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7367 #endif
7370 main ()
7372 int s;
7373 wait (&s);
7374 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7376 return 0;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 ac_cv_header_sys_wait_h=yes
7381 else
7382 ac_cv_header_sys_wait_h=no
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7387 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7388 if test $ac_cv_header_sys_wait_h = yes; then
7390 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7395 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7396 if ${ac_cv_header_time+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <sys/types.h>
7402 #include <sys/time.h>
7403 #include <time.h>
7406 main ()
7408 if ((struct tm *) 0)
7409 return 0;
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_header_time=yes
7416 else
7417 ac_cv_header_time=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7422 $as_echo "$ac_cv_header_time" >&6; }
7423 if test $ac_cv_header_time = yes; then
7425 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7429 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7430 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7432 cat >>confdefs.h <<_ACEOF
7433 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7434 _ACEOF
7437 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7442 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7443 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7445 cat >>confdefs.h <<_ACEOF
7446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7447 _ACEOF
7450 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7452 else
7453 case " $LIBOBJS " in
7454 *" fileblocks.$ac_objext "* ) ;;
7455 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7457 esac
7462 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7463 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7465 cat >>confdefs.h <<_ACEOF
7466 #define HAVE_STRUCT_STAT_ST_RDEV 1
7467 _ACEOF
7470 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7476 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7477 if ${ac_cv_struct_tm+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <sys/types.h>
7483 #include <time.h>
7486 main ()
7488 struct tm tm;
7489 int *p = &tm.tm_sec;
7490 return !p;
7492 return 0;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 ac_cv_struct_tm=time.h
7497 else
7498 ac_cv_struct_tm=sys/time.h
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7503 $as_echo "$ac_cv_struct_tm" >&6; }
7504 if test $ac_cv_struct_tm = sys/time.h; then
7506 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7510 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7511 #include <$ac_cv_struct_tm>
7514 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7516 cat >>confdefs.h <<_ACEOF
7517 #define HAVE_STRUCT_TM_TM_ZONE 1
7518 _ACEOF
7523 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7525 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7527 else
7528 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7530 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7531 ac_have_decl=1
7532 else
7533 ac_have_decl=0
7536 cat >>confdefs.h <<_ACEOF
7537 #define HAVE_DECL_TZNAME $ac_have_decl
7538 _ACEOF
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7541 $as_echo_n "checking for tzname... " >&6; }
7542 if ${ac_cv_var_tzname+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <time.h>
7548 #if !HAVE_DECL_TZNAME
7549 extern char *tzname[];
7550 #endif
7553 main ()
7555 return tzname[0][0];
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_var_tzname=yes
7562 else
7563 ac_cv_var_tzname=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7569 $as_echo "$ac_cv_var_tzname" >&6; }
7570 if test $ac_cv_var_tzname = yes; then
7572 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7577 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7578 if test "x$ac_cv_type_off_t" = xyes; then :
7580 else
7582 cat >>confdefs.h <<_ACEOF
7583 #define off_t long int
7584 _ACEOF
7588 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7589 if test "x$ac_cv_type_pid_t" = xyes; then :
7591 else
7593 cat >>confdefs.h <<_ACEOF
7594 #define pid_t int
7595 _ACEOF
7599 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7600 if test "x$ac_cv_type_size_t" = xyes; then :
7602 else
7604 cat >>confdefs.h <<_ACEOF
7605 #define size_t unsigned int
7606 _ACEOF
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7611 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7612 if ${ac_cv_type_uid_t+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 #include <sys/types.h>
7619 _ACEOF
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "uid_t" >/dev/null 2>&1; then :
7622 ac_cv_type_uid_t=yes
7623 else
7624 ac_cv_type_uid_t=no
7626 rm -f conftest*
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7630 $as_echo "$ac_cv_type_uid_t" >&6; }
7631 if test $ac_cv_type_uid_t = no; then
7633 $as_echo "#define uid_t int" >>confdefs.h
7636 $as_echo "#define gid_t int" >>confdefs.h
7641 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7642 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7644 cat >>confdefs.h <<_ACEOF
7645 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7646 _ACEOF
7652 # Look for some functions
7653 for ac_func in getpagesize kqueue statfs statvfs \
7654 clone kse_create rfork_thread thr_create sa_register \
7655 getcontext makecontext setcontext sigaltstack swapcontext
7656 do :
7657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7659 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7660 cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7662 _ACEOF
7665 done
7671 for ac_header in $ac_header_list
7672 do :
7673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7674 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7677 cat >>confdefs.h <<_ACEOF
7678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7679 _ACEOF
7683 done
7692 for ac_func in getpagesize
7693 do :
7694 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7695 if test "x$ac_cv_func_getpagesize" = xyes; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_GETPAGESIZE 1
7698 _ACEOF
7701 done
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7704 $as_echo_n "checking for working mmap... " >&6; }
7705 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test "$cross_compiling" = yes; then :
7709 ac_cv_func_mmap_fixed_mapped=no
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 /* malloc might have been renamed as rpl_malloc. */
7715 #undef malloc
7717 /* Thanks to Mike Haertel and Jim Avera for this test.
7718 Here is a matrix of mmap possibilities:
7719 mmap private not fixed
7720 mmap private fixed at somewhere currently unmapped
7721 mmap private fixed at somewhere already mapped
7722 mmap shared not fixed
7723 mmap shared fixed at somewhere currently unmapped
7724 mmap shared fixed at somewhere already mapped
7725 For private mappings, we should verify that changes cannot be read()
7726 back from the file, nor mmap's back from the file at a different
7727 address. (There have been systems where private was not correctly
7728 implemented like the infamous i386 svr4.0, and systems where the
7729 VM page cache was not coherent with the file system buffer cache
7730 like early versions of FreeBSD and possibly contemporary NetBSD.)
7731 For shared mappings, we should conversely verify that changes get
7732 propagated back to all the places they're supposed to be.
7734 Grep wants private fixed already mapped.
7735 The main things grep needs to know about mmap are:
7736 * does it exist and is it safe to write into the mmap'd area
7737 * how to use it (BSD variants) */
7739 #include <fcntl.h>
7740 #include <sys/mman.h>
7742 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7743 char *malloc ();
7744 #endif
7746 /* This mess was copied from the GNU getpagesize.h. */
7747 #ifndef HAVE_GETPAGESIZE
7748 # ifdef _SC_PAGESIZE
7749 # define getpagesize() sysconf(_SC_PAGESIZE)
7750 # else /* no _SC_PAGESIZE */
7751 # ifdef HAVE_SYS_PARAM_H
7752 # include <sys/param.h>
7753 # ifdef EXEC_PAGESIZE
7754 # define getpagesize() EXEC_PAGESIZE
7755 # else /* no EXEC_PAGESIZE */
7756 # ifdef NBPG
7757 # define getpagesize() NBPG * CLSIZE
7758 # ifndef CLSIZE
7759 # define CLSIZE 1
7760 # endif /* no CLSIZE */
7761 # else /* no NBPG */
7762 # ifdef NBPC
7763 # define getpagesize() NBPC
7764 # else /* no NBPC */
7765 # ifdef PAGESIZE
7766 # define getpagesize() PAGESIZE
7767 # endif /* PAGESIZE */
7768 # endif /* no NBPC */
7769 # endif /* no NBPG */
7770 # endif /* no EXEC_PAGESIZE */
7771 # else /* no HAVE_SYS_PARAM_H */
7772 # define getpagesize() 8192 /* punt totally */
7773 # endif /* no HAVE_SYS_PARAM_H */
7774 # endif /* no _SC_PAGESIZE */
7776 #endif /* no HAVE_GETPAGESIZE */
7779 main ()
7781 char *data, *data2, *data3;
7782 const char *cdata2;
7783 int i, pagesize;
7784 int fd, fd2;
7786 pagesize = getpagesize ();
7788 /* First, make a file with some known garbage in it. */
7789 data = (char *) malloc (pagesize);
7790 if (!data)
7791 return 1;
7792 for (i = 0; i < pagesize; ++i)
7793 *(data + i) = rand ();
7794 umask (0);
7795 fd = creat ("conftest.mmap", 0600);
7796 if (fd < 0)
7797 return 2;
7798 if (write (fd, data, pagesize) != pagesize)
7799 return 3;
7800 close (fd);
7802 /* Next, check that the tail of a page is zero-filled. File must have
7803 non-zero length, otherwise we risk SIGBUS for entire page. */
7804 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7805 if (fd2 < 0)
7806 return 4;
7807 cdata2 = "";
7808 if (write (fd2, cdata2, 1) != 1)
7809 return 5;
7810 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7811 if (data2 == MAP_FAILED)
7812 return 6;
7813 for (i = 0; i < pagesize; ++i)
7814 if (*(data2 + i))
7815 return 7;
7816 close (fd2);
7817 if (munmap (data2, pagesize))
7818 return 8;
7820 /* Next, try to mmap the file at a fixed address which already has
7821 something else allocated at it. If we can, also make sure that
7822 we see the same garbage. */
7823 fd = open ("conftest.mmap", O_RDWR);
7824 if (fd < 0)
7825 return 9;
7826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7828 return 10;
7829 for (i = 0; i < pagesize; ++i)
7830 if (*(data + i) != *(data2 + i))
7831 return 11;
7833 /* Finally, make sure that changes to the mapped area do not
7834 percolate back to the file as seen by read(). (This is a bug on
7835 some variants of i386 svr4.0.) */
7836 for (i = 0; i < pagesize; ++i)
7837 *(data2 + i) = *(data2 + i) + 1;
7838 data3 = (char *) malloc (pagesize);
7839 if (!data3)
7840 return 12;
7841 if (read (fd, data3, pagesize) != pagesize)
7842 return 13;
7843 for (i = 0; i < pagesize; ++i)
7844 if (*(data + i) != *(data3 + i))
7845 return 14;
7846 close (fd);
7847 free (data);
7848 free (data3);
7849 return 0;
7851 _ACEOF
7852 if ac_fn_c_try_run "$LINENO"; then :
7853 ac_cv_func_mmap_fixed_mapped=yes
7854 else
7855 ac_cv_func_mmap_fixed_mapped=no
7857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7858 conftest.$ac_objext conftest.beam conftest.$ac_ext
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7863 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7866 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7869 rm -f conftest.mmap conftest.txt
7872 #-----------------------------------------------------------------------------
7875 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7876 # it switched on by default, and we use the host compiler, so it compiles AROS
7877 # code with this enabled resulting in link failures as we don't have support
7878 # for it.
7880 # We use two methods to disable it. For the host compiler (used to compile
7881 # some hosted modules), we test to see if the compiler supports stack
7882 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7883 # work on all platforms.
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7887 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7888 save_cflags="$CFLAGS"
7889 CFLAGS="$CFLAGS -fno-stack-protector"
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7894 main ()
7898 return 0;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 use_no_stack_protector="yes"
7903 else
7904 use_no_stack_protector="no"
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7908 $as_echo "$use_no_stack_protector" >&6; }
7909 if test "x-$use_no_stack_protector" = "x-yes" ; then
7910 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7912 CFLAGS="$save_cflags"
7914 #-----------------------------------------------------------------------------
7916 # Disable pointer-signedness warnings if the compiler recognises the option
7917 # (this only works for the host compiler at the moment)
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7920 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7921 save_cflags="$CFLAGS"
7922 CFLAGS="$CFLAGS -Wno-pointer-sign"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7927 main ()
7931 return 0;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 use_no_sign_warning="yes"
7936 else
7937 use_no_sign_warning="no"
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7941 $as_echo "$use_no_sign_warning" >&6; }
7942 if test "x-$use_no_sign_warning" = "x-yes" ; then
7943 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7945 CFLAGS="$save_cflags"
7947 #-----------------------------------------------------------------------------
7949 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7952 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7953 save_cflags="$CFLAGS"
7954 CFLAGS="$CFLAGS -fgnu89-inline"
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7959 main ()
7963 return 0;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 use_gnu89_inline="yes"
7968 else
7969 use_gnu89_inline="no"
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7973 $as_echo "$use_gnu89_inline" >&6; }
7974 if test "x-$use_gnu89_inline" = "x-yes" ; then
7975 gnu89_inline="-fgnu89-inline"
7977 CFLAGS="$save_cflags"
7980 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7981 # On GCC >= 4.0 -iquote should be used
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7984 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7985 CFLAGS="$CFLAGS -iquote."
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7990 main ()
7994 return 0;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 has_iquote="yes"
7999 else
8000 has_iquote="no"
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
8004 $as_echo "$has_iquote" >&6; }
8005 if test "x-$has_iquote" = "x-yes" ; then
8006 host_cflags_iquote=-iquote
8007 host_cflags_iquote_end=
8008 else
8009 host_cflags_iquote=-I
8010 host_cflags_iquote_end=-I-
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
8014 $as_echo "$as_me: Performing target configuration..." >&6;}
8017 test_kernel_cc=no
8019 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
8020 export_newline="
8023 aros_elf_translate=
8024 aros_warn_flags=
8025 aros_isa_extra=
8026 aros_isa_flags=
8027 aros_kernel_isaflags=
8028 aros_config_cppflags=
8029 aros_config_cflags=
8030 aros_config_cxxflags=
8031 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
8032 aros_config_ldflags=""
8034 aros_shared_default=yes
8036 aros_shared_cflags="-fPIC"
8037 aros_shared_aflags=""
8038 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8039 aros_kernel_ldflags="-Wl,-rpath,./lib"
8041 aros_kernel_ar_flags="cr"
8042 aros_target_ar_flags="cr"
8043 aros_target_nm_flags="-C -ul"
8044 aros_target_strip_flags="--strip-unneeded -R.comment"
8046 aros_c_libs=
8047 aros_cxx_libs=
8049 aros_target_genmap="-Wl,-Map -Xlinker"
8051 # Native flavour stuff
8052 aros_serial_debug="0"
8054 # Palm native flavour stuff
8055 aros_palm_debug_hack="0"
8057 # Unix flavour stuff
8058 aros_nesting_supervisor="0"
8060 # Collect-aros stuff: "-ius" to ignore undefined symbols
8061 ignore_undefined_symbols=""
8063 # Check for X11 by default
8064 need_x11="auto"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
8067 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
8069 # Check whether --with-toolchain was given.
8070 if test "${with_toolchain+set}" = set; then :
8071 withval=$with_toolchain; aros_toolchain="$withval"
8072 else
8073 aros_toolchain="$default_toolchain_family"
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
8077 $as_echo "$aros_toolchain" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8081 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8082 # Check whether --enable-lto was given.
8083 if test "${enable_lto+set}" = set; then :
8084 enableval=$enable_lto; aros_config_lto="$enableval"
8085 else
8086 aros_config_lto="no"
8089 if test "$aros_config_lto" != "no"; then
8090 aros_config_lto="yes"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8093 $as_echo "$aros_config_lto" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8096 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8097 # Check whether --enable-coverage was given.
8098 if test "${enable_coverage+set}" = set; then :
8099 enableval=$enable_coverage; aros_config_coverage="$enableval"
8100 else
8101 aros_config_coverage="no"
8104 if test "$aros_config_coverage" != "no"; then
8105 aros_config_coverage="yes"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8108 $as_echo "$aros_config_coverage" >&6; }
8110 use_ld_wrapper=yes
8112 case "$aros_toolchain" in
8113 *llvm*)
8114 toolchain_c_compiler="clang"
8115 toolchain_cxx_compiler="clang++"
8116 toolchain_cpp_preprocessor="clang"
8117 toolchain_cpp_opts=" -E"
8118 toolchain_ld="ld.lld"
8119 aros_ld="ld"
8120 toolchain_as="llvm-as"
8121 toolchain_ar="llvm-ar"
8122 toolchain_ranlib="llvm-ranlib"
8123 toolchain_nm="llvm-nm"
8124 toolchain_strip="true"
8125 toolchain_objcopy="llvm-objcopy"
8126 toolchain_objdump="llvm-objdump"
8127 use_libatomic=yes
8128 toolchain_def_opt_lvl="-O2"
8129 toolchain_debug_opt_lvl="-O0"
8130 toolchain_size_opt_lvl="-Os"
8132 *gnu*)
8133 toolchain_c_compiler="gcc"
8134 toolchain_cxx_compiler="g++"
8135 toolchain_cpp_preprocessor="gcc"
8136 toolchain_cpp_opts=" -E"
8137 toolchain_as="as"
8138 aros_ld="ld"
8139 if test "$aros_config_lto" != "yes"; then
8140 toolchain_ld="ld"
8141 toolchain_ar="ar"
8142 toolchain_ranlib="ranlib"
8143 toolchain_nm="nm"
8144 else
8145 toolchain_ld="ld.bfd"
8146 toolchain_ar="gcc-ar"
8147 toolchain_ranlib="gcc-ranlib"
8148 toolchain_nm="gcc-nm"
8150 toolchain_strip="strip"
8151 toolchain_objcopy="objcopy"
8152 toolchain_objdump="objdump"
8153 use_libatomic=yes
8154 toolchain_def_opt_lvl="-O2"
8155 toolchain_debug_opt_lvl="-O0"
8156 toolchain_size_opt_lvl="-Os"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8160 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8161 toolchain_c_compiler="cc"
8162 toolchain_cxx_compiler="c++"
8163 toolchain_cpp_preprocessor="cpp"
8164 toolchain_cpp_opts=
8165 toolchain_ld="ld"
8166 aros_ld="ld"
8167 toolchain_as="as"
8168 toolchain_ar="ar"
8169 toolchain_ranlib="ranlib"
8170 toolchain_nm="nm"
8171 toolchain_strip="strip"
8172 toolchain_objcopy="objcopy"
8173 toolchain_objdump="objdump"
8175 esac
8177 #-----------------------------------------------------------------------------
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8180 $as_echo_n "checking which type of build to do... " >&6; }
8181 # Check whether --enable-build_type was given.
8182 if test "${enable_build_type+set}" = set; then :
8183 enableval=$enable_build_type; build_type=$enableval
8184 else
8185 build_type="personal"
8189 if test "$build_type" = "nightly"; then
8190 build_type_string="NIGHTLY"
8191 elif test "$build_type" = "snapshot"; then
8192 build_type_string="SNAPSHOT"
8193 elif test "$build_type" = "milestone"; then
8194 build_type_string="MILESTONE"
8195 elif test "$build_type" = "release"; then
8196 build_type_string="RELEASE"
8197 else
8198 build_type_string="PERSONAL"
8199 build_type="personal"
8202 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8205 $as_echo "$build_type" >&6; }
8207 #-----------------------------------------------------------------------------
8208 all_debug_types="messages stack modules mungwall symbols"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8211 $as_echo_n "checking which debug types to enable... " >&6; }
8212 # Check whether --enable-debug was given.
8213 if test "${enable_debug+set}" = set; then :
8214 enableval=$enable_debug; debug="$enableval"
8215 else
8216 debug=""
8220 if test "$debug" = "" -o "$debug" = "no"; then
8221 debug="none"
8222 elif test "$debug" = "yes"; then
8223 debug="all"
8226 if test "$debug" = "all" ; then
8227 debug="messages stack modules symbols"
8228 for d in $all_debug_types; do
8229 export aros_${d}_debug="1"
8230 done
8231 else
8232 for d in $all_debug_types; do
8233 export aros_${d}_debug="0"
8234 done
8237 if test "$debug" != "none"; then
8238 debug=`echo $debug | sed s/,/\ /g`
8239 for d in $debug; do
8240 found="0"
8241 for d2 in $all_debug_types; do
8242 if test "$d2" = "$d"; then
8243 found="1"
8244 break
8246 done
8247 if test "$found" = "0"; then
8248 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8250 export aros_${d}_debug="1"
8251 done
8252 aros_debug="yes"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8255 $as_echo "$debug" >&6; }
8257 if test "$aros_messages_debug" = "1"; then
8258 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8259 else
8260 aros_messages_debug=""
8262 if test "$aros_symbols_debug" = "1"; then
8263 aros_symbols_debug="-g"
8264 else
8265 aros_symbols_debug=""
8268 # These are the flags to pass when compiling debugged programs
8269 aros_debug_cppflags="$aros_messages_debug"
8270 aros_debug_cflags="$aros_symbols_debug"
8271 aros_debug_cxxflags=
8272 aros_debug_aflags=""
8273 aros_debug_ldflags="$aros_symbols_debug"
8275 #-----------------------------------------------------------------------------
8276 # Checking for distcc and ccache.
8278 # Always apply the transforms in this particular order. Basically you should
8279 # always run 'ccache distcc compiler' in that order for the best performance.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8282 $as_echo_n "checking whether to enable distcc... " >&6; }
8283 # Check whether --enable-distcc was given.
8284 if test "${enable_distcc+set}" = set; then :
8285 enableval=$enable_distcc; distcc="$enableval"
8286 else
8287 distcc="no"
8290 if test "$distcc" != "" -a "$distcc" != "no"; then
8291 # AC_CHECK_PROG will print out the result in this case
8292 # Extract the first word of "distcc", so it can be a program name with args.
8293 set dummy distcc; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_path_DISTCC+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 case $DISTCC in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8319 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8321 esac
8323 DISTCC=$ac_cv_path_DISTCC
8324 if test -n "$DISTCC"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8326 $as_echo "$DISTCC" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8339 $as_echo_n "checking whether to enable ccache... " >&6; }
8340 # Check whether --enable-ccache was given.
8341 if test "${enable_ccache+set}" = set; then :
8342 enableval=$enable_ccache; ccache="$enableval"
8343 else
8344 ccache="no"
8347 if test "$ccache" != "" -a "$ccache" != "no"; then
8348 # AC_CHECK_PROG will print out the result in this case
8349 # Extract the first word of "ccache", so it can be a program name with args.
8350 set dummy ccache; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_CCACHE+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$CCACHE"; then
8357 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_CCACHE="ccache"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 CCACHE=$ac_cv_prog_CCACHE
8377 if test -n "$CCACHE"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8379 $as_echo "$CCACHE" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 #-----------------------------------------------------------------------------
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8393 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8395 # Check whether --with-kernel-gcc-version was given.
8396 if test "${with_kernel_gcc_version+set}" = set; then :
8397 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8398 else
8399 kernel_tool_version=""
8402 if test "$kernel_tool_version" != "" ; then
8403 msg_result=$kernel_tool_version
8404 else
8405 msg_result="default"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8408 $as_echo "$msg_result" >&6; }
8410 #-----------------------------------------------------------------------------
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8412 $as_echo_n "checking what optimization flags to use... " >&6; }
8414 # Check whether --with-optimization was given.
8415 if test "${with_optimization+set}" = set; then :
8416 withval=$with_optimization; optimization_level="$withval"
8417 else
8418 optimization_level="unknown"
8421 if test "$optimization_level" = "unknown"; then
8422 optimization="default"
8423 if test "$debug" != "none"; then
8424 optimization_level=$toolchain_debug_opt_lvl
8425 else
8426 optimization_level=$toolchain_def_opt_lvl
8428 else
8429 optimization="$optimization_level"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8432 $as_echo "$optimization" >&6; }
8434 paranoia_default=yes
8435 #-----------------------------------------------------------------------------
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8437 $as_echo_n "checking which paranoia flags to use... " >&6; }
8439 # Check whether --with-paranoia was given.
8440 if test "${with_paranoia+set}" = set; then :
8441 withval=$with_paranoia; paranoia_flags="$withval"
8442 else
8443 paranoia_flags="$paranoia_default"
8446 if test "$paranoia_flags" = "no"; then
8447 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8448 msg_result="none"
8449 else
8450 if test "$paranoia_flags" = "yes"; then
8451 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8453 msg_result="$paranoia_flags"
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8456 $as_echo "$msg_result" >&6; }
8457 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8459 #-----------------------------------------------------------------------------
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8461 $as_echo_n "checking what target variant to enable... " >&6; }
8462 # Check whether --enable-target_variant was given.
8463 if test "${enable_target_variant+set}" = set; then :
8464 enableval=$enable_target_variant; target_variant=$enableval
8465 else
8466 target_variant=""
8469 if test "$target_variant" = ""; then
8470 aros_target_variant=""
8471 aros_target_suffix=""
8472 enableval="none"
8473 else
8474 aros_target_variant="$target_variant"
8475 aros_target_suffix="-$target_variant"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8478 $as_echo "$enableval" >&6; }
8480 #-----------------------------------------------------------------------------
8481 # Target-specific defaults. You can override then on a per-target basis.
8483 # Bootloader name. Currently used by PC target.
8484 target_bootloader="none"
8485 PLATFORM_EXECSMP=
8486 ENABLE_EXECSMP=
8488 #-----------------------------------------------------------------------------
8489 # Additional options for some specific targets
8491 case "$aros_target_variant" in
8492 ios)
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8494 $as_echo_n "checking XCode path... " >&6; }
8496 # Check whether --with-xcode was given.
8497 if test "${with_xcode+set}" = set; then :
8498 withval=$with_xcode; aros_xcode_path="$withval"
8499 else
8500 aros_xcode_path="/Developer"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8504 $as_echo "$aros_xcode_path" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8507 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8509 # Check whether --with-sdk-version was given.
8510 if test "${with_sdk_version+set}" = set; then :
8511 withval=$with_sdk_version; aros_sdk_version="$withval"
8512 else
8513 aros_sdk_version="4.1"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8517 $as_echo "$aros_sdk_version" >&6; }
8521 "android")
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8523 $as_echo_n "checking Android SDK path... " >&6; }
8525 # Check whether --with-sdk was given.
8526 if test "${with_sdk+set}" = set; then :
8527 withval=$with_sdk; aros_android_sdk="$withval"
8528 else
8529 aros_android_sdk=$default_android_sdk
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8533 $as_echo "$aros_android_sdk" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8536 $as_echo_n "checking Android NDK path... " >&6; }
8538 # Check whether --with-ndk was given.
8539 if test "${with_ndk+set}" = set; then :
8540 withval=$with_ndk; aros_android_ndk="$withval"
8541 else
8542 aros_android_ndk="none"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8546 $as_echo "$aros_android_ndk" >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8549 $as_echo_n "checking what Android SDK version to use... " >&6; }
8551 # Check whether --with-sdk-version was given.
8552 if test "${with_sdk_version+set}" = set; then :
8553 withval=$with_sdk_version; aros_sdk_version="$withval"
8554 else
8555 aros_sdk_version="12"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8559 $as_echo "$aros_sdk_version" >&6; }
8561 aros_android_level=android-$aros_sdk_version
8562 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8563 echo "Platform $aros_android_level is not installed in your SDK"
8564 echo "Use --with-sdk-version=<API level number> to select another platform version"
8565 echo "You can check what plaform versions are installed in your SDK"
8566 echo "by examining contents of $aros_android_sdk/platforms directory"
8567 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8570 export PATH="$aros_android_sdk/tools:$PATH"
8571 # Extract the first word of "$android_tool", so it can be a program name with args.
8572 set dummy $android_tool; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_path_android_tool+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 case $android_tool in
8579 [\\/]* | ?:[\\/]*)
8580 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8594 done
8595 done
8596 IFS=$as_save_IFS
8599 esac
8601 android_tool=$ac_cv_path_android_tool
8602 if test -n "$android_tool"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8604 $as_echo "$android_tool" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8611 req_avail=yes
8612 if test "$android_tool" = ""; then
8613 req_avail=no
8615 if test "$android_tool" = "no"; then
8616 req_avail=no
8618 if test "$req_avail" = "no"; then
8619 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8622 if test "$aros_android_ndk" != "none"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8624 $as_echo_n "checking what Android NDK version to use... " >&6; }
8626 # Check whether --with-ndk-version was given.
8627 if test "${with_ndk_version+set}" = set; then :
8628 withval=$with_ndk_version; aros_ndk_version="$withval"
8629 else
8630 aros_ndk_version="9"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8634 $as_echo "$aros_ndk_version" >&6; }
8637 # Extract the first word of "ant", so it can be a program name with args.
8638 set dummy ant; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_path_ant+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 case $ant in
8645 [\\/]* | ?:[\\/]*)
8646 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8660 done
8661 done
8662 IFS=$as_save_IFS
8665 esac
8667 ant=$ac_cv_path_ant
8668 if test -n "$ant"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8670 $as_echo "$ant" >&6; }
8671 else
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8677 if test "$ant" = ""; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8679 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8683 $as_echo_n "checking Build debug or release apk... " >&6; }
8685 # Check whether --with-apk-version was given.
8686 if test "${with_apk_version+set}" = set; then :
8687 withval=$with_apk_version; aros_android_antapk=$withval
8688 else
8689 aros_android_antapk=release
8692 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8693 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8696 $as_echo "$aros_android_antapk" >&6; }
8698 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8699 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8700 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8702 if test "$host_os" = "mingw32"; then
8703 android_tool="cmd //c $android_tool"
8706 need_dlopen="no"
8709 esac
8711 #-----------------------------------------------------------------------------
8712 # External toolchains
8713 kernel_tool_prefix="none"
8714 aros_tool_prefix="none"
8715 elf_tool_prefix="${target_cpu}-elf-"
8717 # Base target cpu ISA configuration switch.
8718 case "$target_cpu" in
8719 *aarch64*)
8721 *arm*)
8723 *m68k*)
8724 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8725 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8726 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8727 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8728 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8729 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8730 m68k_020_ext="ISA_MC68020_EXT :=020"
8731 m68k_030_ext="ISA_MC68030_EXT :=030"
8732 m68k_040_ext="ISA_MC68040_EXT :=040"
8733 m68k_060_ext="ISA_MC68060_EXT :=060"
8734 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8735 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8736 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8737 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8738 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8739 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8740 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8741 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8742 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8743 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8744 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8745 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8747 *x86_64* | *i?86*)
8748 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8749 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8751 *powerpc*)
8753 esac
8755 # This is the target configuration switch.
8756 case "$target_os" in
8757 linux*)
8758 HOST_WANTS_X11=yes
8759 HOST_WANTS_GLX=yes
8760 HOST_WANTS_SDL=yes
8761 HOST_WANTS_DBUS=yes
8762 HOST_WANTS_DLOPEN=yes
8763 aros_target_arch="linux"
8764 aros_target_family="unix"
8765 case "$target_cpu" in
8766 *m68k*)
8767 aros_target_cpu="m68k"
8768 aros_object_format="m68kelf"
8769 aros_flavour="emulcompat"
8770 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8771 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8772 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8773 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8774 gcc_target_cpu="mc68000"
8776 *i?86*)
8777 aros_target_cpu="i386"
8778 aros_object_format="elf_i386"
8779 aros_flavour="emulation"
8780 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8781 aros_isa_flags="$""(ISA_X86_FLAGS)"
8782 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8783 aros_kernel_ldflags="-Wl,-melf_i386"
8784 aros_nominal_depth=8
8785 gcc_target_cpu="i386"
8786 pci_hidd_target="hidd-pci-linux"
8787 android_tool_dir_prefix="x86"
8788 android_tool_prefix="i686-android-linux"
8789 android_ndk_arch="x86"
8791 *x86_64*)
8792 aros_target_cpu="x86_64"
8793 aros_object_format="elf_x86_64"
8794 aros_flavour="emulation"
8795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8796 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8797 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8798 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8799 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8800 aros_nominal_depth=8
8801 pci_hidd_target="hidd-pci-linux"
8803 *powerpc*)
8804 aros_target_cpu="ppc"
8805 aros_object_format="elf32ppc"
8806 aros_flavour="emulation"
8807 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8808 aros_nominal_depth=8
8809 gcc_target_cpu="ppc"
8811 # TODO
8812 # Same as powerpc, but I need this for the nightly build to work again.
8813 # Actually, the nightly should be made working with powerpc target.
8814 # That just was too much work for the moment, another week or two.
8815 *ppc*)
8816 aros_target_cpu="ppc"
8817 aros_object_format="elf32ppc"
8818 aros_flavour="emulation"
8819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8820 aros_nominal_depth=8
8821 gcc_target_cpu="ppc"
8823 *aarch64*)
8824 aros_target_cpu="aarch64"
8825 target_cpu="aarch64"
8826 aros_object_format="aarch64elf_aros"
8827 aros_flavour="emulation"
8828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8829 gcc_target_cpu="aarch64"
8830 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8831 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8832 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8833 aros_c_libs="$aros_c_libs -laeabi"
8834 gcc_default_float_abi="hard"
8835 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8837 *armhf*)
8838 aros_target_cpu="arm"
8839 target_cpu="arm"
8840 aros_object_format="armelf_aros"
8841 aros_flavour="emulation"
8842 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8843 gcc_target_cpu="arm"
8844 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8845 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8846 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8847 aros_c_libs="$aros_c_libs -laeabi"
8848 gcc_default_float_abi="hard"
8849 android_tool_dir_prefix="arm-linux-androideabi"
8850 android_tool_prefix="arm-linux-androideabi"
8851 android_ndk_arch="arm"
8852 kernel_tool_prefix="arm-linux-gnueabihf-"
8854 *arm*)
8855 aros_target_cpu="arm"
8856 aros_object_format="armelf_aros"
8857 aros_flavour="emulation"
8858 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8859 gcc_target_cpu="arm"
8860 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8861 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8862 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8863 aros_c_libs="$aros_c_libs -laeabi"
8864 android_tool_dir_prefix="arm-linux-androideabi"
8865 android_tool_prefix="arm-linux-androideabi"
8866 android_ndk_arch="arm"
8867 kernel_tool_prefix="arm-linux-gnueabi-"
8870 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8872 esac
8873 case "$aros_target_variant" in
8874 android)
8876 if test "$android_ndk_arch" = ""; then
8877 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8880 aros_nominal_width=320
8881 aros_nominal_height=480
8882 if test "$aros_android_ndk" = "none"; then
8883 aros_kernel_cflags="-mandroid"
8884 aros_kernel_ldflags="-mandroid"
8885 CFLAGS="-mandroid"
8886 else
8887 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8888 kernel_tool_version=""
8889 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8890 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8891 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8892 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8893 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8895 need_x11=no
8896 # Disable implicit PIC mode
8897 aros_config_cflags="$aros_config_cflags -fno-pic"
8898 kernel_tool_prefix="$android_tool_prefix-"
8900 esac
8904 aros_target_arch="pc"
8905 aros_shared_default="no"
8906 target_bootloader="grub2"
8907 case "$target_cpu" in
8908 *i?86*)
8909 aros_target_cpu="i386"
8912 if test "$aros_object_format" = "" ; then
8913 aros_object_format="elf_i386"
8915 aros_flavour="standalone"
8916 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8917 aros_isa_flags="$""(ISA_X86_FLAGS)"
8918 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8919 aros_kernel_ldflags="-Wl,-melf_i386"
8920 aros_nominal_width=640
8921 aros_nominal_height=480
8922 gcc_target_cpu="i386"
8924 *x86_64*)
8925 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8926 aros_target_cpu="x86_64"
8927 aros_serial_debug=1
8928 if test "$aros_object_format" = "" ; then
8929 aros_object_format="elf_x86_64"
8931 aros_flavour="standalone"
8932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8933 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8934 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8935 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8936 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8937 aros_kernel_ldflags=""
8938 aros_nominal_width=640
8939 aros_nominal_height=480
8940 case "$aros_target_variant" in
8941 smp)
8942 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8944 esac
8947 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8949 esac
8952 prep)
8953 aros_target_arch="prep"
8954 aros_shared_default="no"
8955 aros_target_cpu="ppc"
8956 aros_object_format="elf32ppc"
8957 aros_flavour="ppcnative"
8958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8959 aros_kernel_ldflags=""
8960 aros_nominal_width=640
8961 aros_nominal_height=480
8962 gcc_target_cpu="ppc"
8965 freebsd*)
8966 HOST_WANTS_X11=yes
8967 HOST_WANTS_GLX=yes
8968 HOST_WANTS_SDL=yes
8969 HOST_WANTS_DBUS=yes
8970 HOST_WANTS_DLOPEN=yes
8971 aros_target_arch="freebsd"
8972 aros_target_family="unix"
8973 aros_target_cpu="i386"
8974 aros_flavour="emulation"
8975 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8976 gcc_target_cpu="i386"
8978 aros_target_strip_flags="-x"
8981 darwin*)
8982 HOST_WANTS_X11=yes
8983 HOST_WANTS_GLX=yes
8984 HOST_WANTS_SDL=yes
8985 HOST_WANTS_DBUS=yes
8986 HOST_WANTS_DLOPEN=yes
8987 aros_target_arch="darwin"
8988 aros_target_family="unix"
8989 aros_flavour="emulation"
8990 case "$target_cpu" in
8991 *i?86*)
8992 aros_ios_platform="iPhoneSimulator"
8993 aros_target_cpu="i386"
8994 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8995 aros_isa_flags="$""(ISA_X86_FLAGS)"
8996 aros_kernel_ldflags=""
8997 aros_macosx_version="10.4"
8998 aros_nominal_depth=8
8999 gcc_target_cpu="i386"
9000 aros_object_format="elf_i386"
9001 aros_kernel_ar_flags="-cr"
9002 aros_target_strip_flags="-x"
9003 kernel_tool_flags="-m32"
9005 *x86_64*)
9006 aros_target_cpu="x86_64"
9007 aros_object_format="elf_x86_64"
9008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9009 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9010 aros_macosx_version="10.6"
9011 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9012 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9013 aros_kernel_cflags="-m64"
9014 aros_kernel_ldflags="-m64"
9015 aros_nominal_depth=8
9016 aros_kernel_rs="$toolchain_ar"
9017 aros_kernel_ar_flags="-cr"
9018 aros_kernel_ld="$toolchain_ld"
9019 aros_kernel_as="$toolchain_as"
9020 aros_kernel_ranlib="$toolchain_ranlib"
9021 aros_kernel_nm="$toolchain_nm"
9022 aros_kernel_strip="strip"
9023 kernel_tool_prefix="i686-apple-darwin10-"
9025 *ppc*)
9026 aros_target_cpu="ppc"
9027 aros_object_format="elf32ppc"
9028 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9029 aros_kernel_ldflags=""
9030 aros_macosx_version="10.0"
9031 aros_nominal_depth=8
9032 gcc_target_cpu="ppc"
9033 aros_kernel_rs="$toolchain_ar"
9034 aros_kernel_ar_flags="-cr"
9035 aros_kernel_ld="$toolchain_ld -arch ppc"
9036 aros_kernel_as="$toolchain_as -arch ppc"
9037 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
9038 aros_kernel_nm="$toolchain_nm -arch ppc"
9039 aros_kernel_strip="strip -arch ppc"
9040 kernel_tool_prefix="powerpc-apple-darwin10-"
9042 *arm*)
9043 aros_ios_platform="iPhoneOS"
9044 aros_target_cpu="arm"
9045 aros_object_format="armelf_aros"
9046 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9047 aros_c_libs="$aros_c_libs -laeabi"
9048 aros_nominal_depth=8
9049 gcc_target_cpu="arm"
9050 aros_kernel_rs="$toolchain_ar"
9051 aros_kernel_ar_flags="-cr"
9052 aros_kernel_ld="$toolchain_ld -arch arm"
9053 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
9054 kernel_tool_prefix="arm-apple-darwin10-"
9055 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
9058 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
9060 esac
9061 case "$aros_target_variant" in
9062 ios)
9063 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
9064 aros_ios_version="3.0"
9065 aros_nominal_width=320
9066 aros_nominal_height=480
9067 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
9068 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
9069 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
9070 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
9071 need_x11=no
9072 # This is here because it may depend on iOS or SDK version
9073 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
9074 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
9075 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
9078 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9079 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9081 esac
9084 dragonfly*)
9085 HOST_WANTS_X11=yes
9086 HOST_WANTS_GLX=yes
9087 HOST_WANTS_SDL=yes
9088 HOST_WANTS_DBUS=yes
9089 HOST_WANTS_DLOPEN=yes
9090 aros_target_arch="dragonfly"
9091 aros_target_family="unix"
9092 aros_flavour="emulation"
9093 case "$target_cpu" in
9094 *i?86*)
9095 aros_target_cpu="i386"
9096 aros_object_format="elf_i386"
9097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9098 aros_isa_flags="$""(ISA_X86_FLAGS)"
9100 *x86_64*)
9101 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9102 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9103 aros_target_cpu="x86_64"
9104 aros_object_format="elf_x86_64"
9105 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9106 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9109 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9111 esac
9114 netbsd*)
9115 HOST_WANTS_X11=yes
9116 HOST_WANTS_GLX=yes
9117 HOST_WANTS_SDL=yes
9118 HOST_WANTS_DBUS=yes
9119 HOST_WANTS_DLOPEN=yes
9120 aros_target_arch="netbsd"
9121 aros_target_family="unix"
9122 case "$target_cpu" in
9123 *m68k*)
9124 aros_target_cpu="m68k"
9125 aros_object_format="m68kelf"
9126 aros_flavour="emulcompat"
9127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9128 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9129 gcc_target_cpu="mc68000"
9131 *i?86*)
9132 aros_target_cpu="i386"
9133 aros_object_format="elf_i386"
9134 aros_flavour="emulation"
9135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9136 aros_isa_flags="$""(ISA_X86_FLAGS)"
9137 aros_nominal_depth=8
9138 gcc_target_cpu="i386"
9141 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9143 esac
9144 aros_target_genmap="-Wl,-M -Xlinker >"
9145 aros_flavour="emulation"
9146 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9149 openbsd*)
9150 HOST_WANTS_X11=yes
9151 HOST_WANTS_GLX=yes
9152 HOST_WANTS_SDL=yes
9153 HOST_WANTS_DBUS=yes
9154 HOST_WANTS_DLOPEN=yes
9155 aros_target_arch="openbsd"
9156 aros_target_family="unix"
9157 case "$target_cpu" in
9158 *i?86*)
9159 aros_target_cpu="i386"
9160 aros_object_format="elf_i386"
9161 aros_flavour="emulation"
9162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9163 aros_isa_flags="$""(ISA_X86_FLAGS)"
9164 gcc_target_cpu="i386"
9167 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9169 esac
9170 aros_target_genmap="-Wl,-M -Xlinker >"
9171 aros_target_nm_flags="-u"
9172 aros_flavour="emulation"
9175 solaris*)
9176 aros_target_arch="solaris"
9177 aros_target_family="unix"
9178 case "$target_cpu" in
9179 *i?86*)
9180 aros_target_cpu="i386"
9181 aros_object_format="elf_i386"
9182 aros_flavour="emulation"
9183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9184 aros_isa_flags="$""(ISA_X86_FLAGS)"
9185 aros_nominal_depth=8
9186 gcc_target_cpu="i386"
9188 *sparc*)
9189 aros_target_cpu="sparc"
9190 aros_object_format="elf_sparc"
9191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9192 gcc_target_cpu="sparc"
9195 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9197 esac
9198 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
9199 aros_flavour="emulation"
9202 morphos*)
9203 aros_target_arch="morphos"
9204 aros_shared_default="no"
9205 aros_target_cpu="ppc"
9206 aros_object_format="elf_ppc"
9207 aros_flavour="nativecompat"
9208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9209 gcc_target_cpu="ppc"
9212 sam440)
9213 aros_target_arch="sam440"
9214 aros_shared_default="no"
9215 aros_target_cpu="ppc"
9216 aros_object_format="elf32ppc"
9217 aros_flavour="ppcnative"
9218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9219 aros_kernel_ldflags=""
9220 aros_nominal_width=1024
9221 aros_nominal_height=768
9222 aros_nominal_depth=24
9223 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
9224 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9225 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9226 gcc_target_cpu="powerpc"
9229 efika)
9230 aros_target_arch="efika"
9231 aros_shared_default="no"
9232 aros_target_cpu="arm"
9233 aros_object_format="armelf_aros"
9234 aros_flavour="standalone"
9235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9236 aros_kernel_ldflags=""
9237 aros_nominal_width=1024
9238 aros_nominal_height=600
9239 aros_c_libs="$aros_c_libs -laeabi"
9240 gcc_default_cpu="armv7-a"
9241 gcc_default_fpu="vfpv3"
9242 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
9243 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9244 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9245 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9246 if test "$optimization" = "default"; then
9247 optimization_level=$toolchain_size_opt_lvl
9249 case "$target_cpu" in
9250 *armhf*)
9251 gcc_default_float_abi="hard"
9252 target_cpu=arm
9253 aros_target_cpu=arm
9255 *arm*)
9256 gcc_default_float_abi="softfp"
9259 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9261 esac
9264 chrp)
9265 aros_target_arch="chrp"
9266 aros_shared_default="no"
9267 aros_target_cpu="ppc"
9268 aros_object_format="elf32ppc"
9269 aros_flavour="ppcnative"
9270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9271 aros_kernel_ldflags=""
9272 aros_nominal_width=640
9273 aros_nominal_height=480
9274 aros_isa_flags="$aros_isa_flags -mno-toc"
9275 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9276 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9277 gcc_target_cpu="powerpc"
9278 case "$aros_target_variant" in
9279 efika)
9280 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9281 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9283 esac
9286 r*pi)
9287 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9288 aros_flavour="standalone"
9289 aros_target_arch="raspi"
9291 aros_shared_default="no"
9293 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9295 case "$target_cpu" in
9296 *aarch64*)
9297 aros_target_cpu="aarch64"
9298 gcc_default_cpu="aarch64"
9299 aros_object_format="aarch64elf_aros"
9301 *armhf*)
9302 aros_target_cpu="arm"
9303 gcc_default_cpu="armv6zk"
9304 gcc_default_cpu_tune="arm1176jzf-s"
9305 aros_object_format="armelf_aros"
9306 aros_isa_flags="$aros_isa_flags -marm"
9307 aros_config_cflags="$aros_config_cflags"
9308 aros_config_cxxflags="$aros_config_cxxflags"
9309 aros_config_aflags="$aros_config_aflags -marm"
9310 aros_kernel_cflags="$aros_kernel_cflags -marm"
9311 aros_target_mkdep="$aros_target_mkdep -Darm"
9312 aros_c_libs="$aros_c_libs -laeabi"
9314 *armeb*)
9315 aros_flavour="standcompat"
9316 aros_target_cpu="armeb"
9317 gcc_default_float_abi="hard"
9318 gcc_default_cpu="armv7ve"
9319 gcc_default_cpu_tune="cortex-a7"
9320 aros_object_format="armelfb_aros"
9321 aros_isa_flags="$aros_isa_flags -marm"
9322 aros_config_cflags="$aros_config_cflags"
9323 aros_config_cxxflags="$aros_config_cxxflags"
9324 aros_config_aflags="$aros_config_aflags -marm"
9325 aros_kernel_cflags="$aros_kernel_cflags -marm"
9326 aros_target_mkdep="$aros_target_mkdep -Darm"
9327 aros_c_libs="$aros_c_libs -laeabi"
9329 *arm*)
9330 aros_target_cpu="arm"
9331 gcc_default_cpu="armv6zk"
9332 gcc_default_cpu_tune="arm1176jzf-s"
9333 aros_object_format="armelf_aros"
9334 aros_isa_flags="$aros_isa_flags -marm"
9335 aros_config_cflags="$aros_config_cflags"
9336 aros_config_cxxflags="$aros_config_cxxflags"
9337 aros_config_aflags="$aros_config_aflags -marm"
9338 aros_kernel_cflags="$aros_kernel_cflags -marm"
9339 aros_target_mkdep="$aros_target_mkdep -Darm"
9340 aros_c_libs="$aros_c_libs -laeabi"
9343 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9345 esac
9347 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9348 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9349 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9350 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9352 case "$aros_target_variant" in
9353 smp)
9354 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9356 esac
9359 stm32f7_discovery)
9360 aros_flavour="standalone"
9361 aros_target_arch="stm32f7_discovery"
9362 aros_target_cpu="arm"
9363 aros_target_cpu_mode="thumb2"
9364 aros_object_format="armelf_aros"
9365 aros_shared_default="no"
9367 gcc_default_cpu="armv7e-m"
9368 gcc_default_cpu_tune="cortex-m7"
9369 gcc_default_fpu="fpv5-sp-d16"
9370 gcc_default_float_abi="hard"
9372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9375 amiga*)
9376 aros_elf_translate="$""(ELF2HUNK)"
9377 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9378 aros_target_arch="amiga"
9379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9380 aros_shared_default="no"
9382 case "$target_cpu" in
9383 *m68k*)
9384 # Check whether --enable-amigaos_compliance was given.
9385 if test "${enable_amigaos_compliance+set}" = set; then :
9386 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9389 aros_enable_mmu=no
9390 aros_target_cpu="m68k"
9391 aros_object_format="m68kelf"
9392 aros_flavour="standcompat"
9393 gcc_target_cpu="m68000"
9394 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9395 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9396 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9397 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9398 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9399 if test "$optimization" = "default"; then
9400 optimization_level=$toolchain_size_opt_lvl
9402 aros_config_aflags="$aros_config_aflags"
9403 aros_target_strip_flags="-R.comment --strip-debug"
9404 aros_nominal_width=640
9405 aros_nominal_height=256
9406 aros_nominal_depth=2
9408 *ppc*)
9409 aros_cpu="ppc"
9410 aros_flavour="native"
9411 gcc_target_cpu="ppc"
9414 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9416 esac
9419 mingw*)
9420 aros_target_arch="mingw32"
9421 aros_shared_default="no"
9422 aros_flavour="emulation"
9423 aros_shared_cflags=""
9424 need_crosstools="yes"
9425 need_dlopen="no"
9426 rescomp="windres"
9427 case "$target_cpu" in
9428 *i?86*)
9429 aros_target_cpu="i386"
9430 aros_object_format="elf_i386"
9431 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9432 aros_isa_flags="$""(ISA_X86_FLAGS)"
9433 aros_nominal_depth=8
9434 gcc_target_cpu="i386"
9436 kernel_tool_prefix="i386-mingw32-"
9438 *x86_64*)
9439 aros_target_cpu="x86_64"
9440 aros_object_format="elf_x86_64"
9441 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9442 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9443 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9444 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9445 aros_nominal_depth=8
9446 kernel_tool_prefix="x86_64-w64-mingw32-"
9448 *arm*)
9449 aros_target_cpu="arm"
9450 aros_object_format="armelf_aros"
9451 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9452 aros_c_libs="$aros_c_libs -laeabi"
9453 aros_nominal_depth=8
9454 gcc_target_cpu="arm"
9455 gcc_default_float_abi="soft"
9456 kernel_tool_prefix="arm-mingw32ce-"
9457 aros_nominal_width=160
9458 aros_nominal_height=160
9461 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9463 esac
9464 if test $host_os = "cygwin"; then
9465 aros_kernel_cflags="-mno-cygwin"
9468 pp*)
9469 aros_target_arch="pp"
9470 aros_shared_default="no"
9471 case "$target_cpu" in
9472 *m68k*)
9473 aros_target_cpu="m68k"
9474 aros_object_format="m68kelf"
9475 aros_flavour="palmnative"
9476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9477 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9478 aros_nominal_width=160
9479 aros_nominal_height=160
9480 aros_nominal_depth=1
9481 aros_target_ar_flags="cru"
9482 aros_c_libs="$aros_c_libs -lgcc1"
9483 aros_shared_default=no
9484 aros_shared_cflags="-fpic"
9485 aros_shared_aflags=""
9486 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9487 aros_kernel_ldflags="-Wl,-rpath,./lib"
9488 aros_debug_cppflags="$aros_messages_debug"
9489 aros_debug_cflags="$aros_symbols_debug"
9490 aros_debug_aflags=""
9491 aros_debug_ldflags="$aros_symbols_debug"
9492 aros_mungwall_debug="0"
9493 aros_modules_debug="0"
9494 gcc_target_cpu="mc68000"
9495 ignore_undefined_symbols="-ius"
9498 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9500 esac
9503 mac*)
9504 aros_target_arch="mac"
9505 aros_shared_default="no"
9506 case "$target_cpu" in
9507 *m68k*)
9508 aros_target_cpu="m68k"
9509 aros_object_format="m68kelf"
9510 aros_flavour="mac68knative"
9511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9512 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9513 aros_nominal_width=512
9514 aros_nominal_height=384
9515 aros_nominal_depth=8
9516 aros_target_ar_flags="cru"
9517 aros_c_libs="$aros_c_libs -lgcc1"
9518 aros_shared_default=no
9519 aros_shared_cflags="-fpic"
9520 aros_shared_aflags=""
9521 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9522 aros_kernel_ldflags="-Wl,-rpath,./lib"
9523 aros_debug_cppflags="$aros_messages_debug"
9524 aros_debug_cflags="$aros_symbols_debug"
9525 aros_debug_aflags=""
9526 aros_debug_ldflags="$aros_symbols_debug"
9527 aros_mungwall_debug="0"
9528 aros_modules_debug="0"
9529 gcc_target_cpu="mc68000"
9530 ignore_undefined_symbols="-ius"
9533 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9535 esac
9539 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9541 esac
9543 #-----------------------------------------------------------------------------
9544 crosstools_guess="yes"
9545 aros_target_toolchain="no"
9546 aros_kernel_sysroot=""
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9549 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9551 # Check whether --with-kernel-toolchain-prefix was given.
9552 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9553 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9557 $as_echo "$kernel_tool_prefix" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9560 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9562 # Check whether --with-elf-toolchain-prefix was given.
9563 if test "${with_elf_toolchain_prefix+set}" = set; then :
9564 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9565 crosstools_guess="no"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9569 $as_echo "$elf_tool_prefix" >&6; }
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9572 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9574 # Check whether --with-aros-toolchain was given.
9575 if test "${with_aros_toolchain+set}" = set; then :
9576 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9577 crosstools_guess="no"
9580 if test "$aros_tool_prefix" = "yes" ; then
9581 aros_tool_prefix=$aros_target_cpu-aros-
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9584 $as_echo "$aros_tool_prefix" >&6; }
9586 #-----------------------------------------------------------------------------
9587 # Checking if we should build crosstools..
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9589 $as_echo_n "checking whether to build crosstools... " >&6; }
9590 # Check whether --enable-crosstools was given.
9591 if test "${enable_crosstools+set}" = set; then :
9592 enableval=$enable_crosstools; crosstools="$enableval"
9593 else
9594 crosstools="$crosstools_guess"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9598 $as_echo "$crosstools" >&6; }
9600 if test "${crosstools}" = "yes"; then
9601 if test "${crosstools_guess}" = "no"; then
9602 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9606 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9607 aros_target_toolchain="yes"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9611 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9613 # Check whether --with-aros-toolchain-install was given.
9614 if test "${with_aros_toolchain_install+set}" = set; then :
9615 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9618 if test "x$aros_toolchain_install" = "x"; then
9619 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9620 else
9621 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9622 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9623 if test "$crosstools_guess" = "no" ; then
9624 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9625 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9630 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9632 #-----------------------------------------------------------------------------
9633 if test "$aros_toolchain" = "gnu" ; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9635 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9638 # Check whether --with-binutils-version was given.
9639 if test "${with_binutils_version+set}" = set; then :
9640 withval=$with_binutils_version; use_binutils_version="$withval"
9641 else
9642 use_binutils_version=""
9645 if test "$use_binutils_version" = ""; then
9646 target_binutils_version="$default_binutils_version"
9647 else
9648 target_binutils_version="$use_binutils_version"
9650 if test "$aros_toolchain" = "gnu" ; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9652 $as_echo "$target_binutils_version" >&6; }
9656 # Helper to identify gcc version
9659 #-----------------------------------------------------------------------------
9660 if test "$aros_toolchain" = "gnu" ; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9662 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9665 # Check whether --with-gcc-version was given.
9666 if test "${with_gcc_version+set}" = set; then :
9667 withval=$with_gcc_version; use_gcc_version="$withval"
9668 else
9669 use_gcc_version=""
9672 if test "$use_gcc_version" = ""; then
9673 if test "${crosstools}" = "no"; then
9674 if test "x$aros_toolchain_install" != "x"; then
9676 target_gcc_version=""
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9678 $as_echo_n "checking gcc version... " >&6; }
9679 if ${ax_cv_gcc_version+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9683 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9684 if test "x$ax_cv_gcc_version" = "x"; then :
9686 ax_cv_gcc_version=""
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9692 $as_echo "$ax_cv_gcc_version" >&6; }
9693 target_gcc_version=$ax_cv_gcc_version
9698 if test "$use_gcc_version" = ""; then
9699 target_gcc_version="$default_gcc_version"
9701 else
9702 target_gcc_version="$use_gcc_version"
9704 if test "$aros_toolchain" = "gnu" ; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9706 $as_echo "$target_gcc_version" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9709 $as_echo_n "checking version string style... " >&6; }
9710 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9712 $as_echo "snapshot" >&6; }
9713 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9714 GCC_VERSION_MINOR=-1
9715 GCC_VERSION_PATCH=-1
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9718 $as_echo "release" >&6; }
9719 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9720 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9721 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9724 gcc_fix_bitfields="false"
9725 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9726 gcc_fix_bitfields="true"
9727 else
9728 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9729 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9730 gcc_fix_bitfields="true"
9735 if test "$gcc_fix_bitfields" = "true" ; then
9736 case "$aros_target_cpu" in
9737 *x86_64* | *i?86*)
9738 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9739 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9741 esac
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9746 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9747 # Check whether --enable-objc was given.
9748 if test "${enable_objc+set}" = set; then :
9749 enableval=$enable_objc; objc="$enableval"
9750 else
9751 objc="no"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9755 $as_echo "$objc" >&6; }
9756 if test "x$objc" = "xyes"; then
9757 objc_target="$objc"
9758 else
9759 objc_target="no-objc"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9763 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9764 # Check whether --enable-java was given.
9765 if test "${enable_java+set}" = set; then :
9766 enableval=$enable_java; java="$enableval"
9767 else
9768 java="no"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9772 $as_echo "$java" >&6; }
9773 if test "x$java" != "xno"; then
9774 java_target="$java"
9775 else
9776 java_target="no-java"
9779 spec_obj_format="-m $aros_object_format"
9780 # Now process extra architecture-specific options.
9781 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9782 # as well as floating-point ABI.
9783 case "$aros_target_cpu" in
9784 *m68k*)
9785 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9786 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9787 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9788 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9789 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9790 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9791 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9793 *x86_64*)
9794 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9795 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9797 arm*)
9798 if test "$gcc_default_cpu" = ""; then
9799 gcc_default_cpu="armv6"
9801 if test "$gcc_default_fpu" = ""; then
9802 gcc_default_fpu="vfp"
9804 if test "$gcc_default_endian" = ""; then
9805 if test "$target_cpu" = "armeb"; then
9806 gcc_default_endian="big-endian"
9807 else
9808 gcc_default_endian="little-endian"
9811 if test "$gcc_default_float_abi" = ""; then
9812 if test "$target_cpu" = "armhf"; then
9813 gcc_default_float_abi="hard"
9814 else
9815 gcc_default_float_abi="softfp"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9820 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9822 # Check whether --with-cpu was given.
9823 if test "${with_cpu+set}" = set; then :
9824 withval=$with_cpu; aros_gcc_cpu="$withval"
9825 else
9826 aros_gcc_cpu=$gcc_default_cpu
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9830 $as_echo "$aros_gcc_cpu" >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9833 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9835 # Check whether --with-fpu was given.
9836 if test "${with_fpu+set}" = set; then :
9837 withval=$with_fpu; aros_gcc_fpu="$withval"
9838 else
9839 aros_gcc_fpu=$gcc_default_fpu
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9843 $as_echo "$aros_gcc_fpu" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9846 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9848 # Check whether --with-float was given.
9849 if test "${with_float+set}" = set; then :
9850 withval=$with_float; aros_gcc_float_abi="$withval"
9851 else
9852 aros_gcc_float_abi=$gcc_default_float_abi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9856 $as_echo "$aros_gcc_float_abi" >&6; }
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9859 $as_echo_n "checking Which ARM mode to use... " >&6; }
9860 if test "$aros_target_cpu_mode" = ""; then
9861 aros_target_cpu_mode="arm32"
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9863 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9866 $as_echo "$aros_target_cpu_mode" >&6; }
9869 case "$aros_target_cpu_mode" in
9870 arm32)
9871 gcc_default_mode="arm"
9872 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9874 arm64)
9875 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9877 thumb)
9878 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9880 thumb1)
9881 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9883 thumb2)
9884 gcc_default_mode="thumb"
9885 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9886 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9889 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9891 esac
9893 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9894 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9895 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9897 i386)
9898 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9899 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9901 esac
9903 # Some architectures may need custom ELF specs.
9904 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9905 elf_specs_in=config/${aros_object_format}-specs.in
9906 else
9907 elf_specs_in=config/elf-specs.in
9910 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9911 # Since we override specs, we may need to put these defines there
9912 if test "$gcc_target_cpu" != ""; then
9913 gcc_target_cpu="-D__${gcc_target_cpu}__"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9917 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9919 # Check whether --with-portssources was given.
9920 if test "${with_portssources+set}" = set; then :
9921 withval=$with_portssources; with_portssrcdir=$withval
9922 else
9923 with_portssrcdir="default"
9926 if test "$with_portssrcdir" = "default"; then
9927 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9928 else
9929 AROS_PORTSSRCDIR="$with_portssrcdir"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9932 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9935 $as_echo_n "checking which bootloader to use... " >&6; }
9937 # Check whether --with-bootloader was given.
9938 if test "${with_bootloader+set}" = set; then :
9939 withval=$with_bootloader; target_bootloader=$withval
9940 else
9941 target_bootloader=$target_bootloader
9944 if test "$target_bootloader" = "none"; then
9945 aros_target_bootloader=""
9946 else
9947 aros_target_bootloader="$target_bootloader"
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9950 $as_echo "$target_bootloader" >&6; }
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9953 $as_echo_n "checking which icon-set to use... " >&6; }
9955 # Check whether --with-iconset was given.
9956 if test "${with_iconset+set}" = set; then :
9957 withval=$with_iconset; target_iconset=$withval
9958 else
9959 target_iconset="default"
9962 if test "$target_iconset" = "default"; then
9963 aros_target_iconset="Gorilla"
9964 target_iconset="default (Gorilla)"
9965 else
9966 aros_target_iconset="$target_iconset"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9969 $as_echo "$target_iconset" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9972 $as_echo_n "checking which GUI Theme to use... " >&6; }
9974 # Check whether --with-theme was given.
9975 if test "${with_theme+set}" = set; then :
9976 withval=$with_theme; target_guitheme=$withval
9977 else
9978 target_guitheme="default"
9981 if test "$target_guitheme" = "default"; then
9982 aros_target_guitheme="Ice"
9983 else
9984 aros_target_guitheme="$target_guitheme"
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9987 $as_echo "$aros_target_guitheme" >&6; }
9989 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9990 # for target code)
9991 cross_compiling=no
9993 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9994 cross_compiling=yes
9997 if test "$aros_host_cpu" == "x86_64" ; then
9998 if test "$aros_target_cpu" == "i386" ; then
9999 cross_compiling=no
10003 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10004 if test "$aros_host_arch" != "$aros_target_arch" ; then
10005 cross_compiling=yes
10007 else
10008 cross_compiling=yes
10011 if test "$cross_compiling" = "no" ; then
10012 kernel_tool_prefix=""
10013 if test "$host_cc_elf" = "yes" ; then
10014 elf_tool_prefix=""
10018 if test "$kernel_tool_version" != ""; then
10019 kernel_tool_version="-$kernel_tool_version"
10022 #######################################################################
10023 ## Compute what toolchains to use, and their paths ##
10024 #######################################################################
10026 # This takes, as input:
10027 # crosstools {yes,no}
10028 # kernel_tool_version {"",[version]}
10029 # target_tool_version {"",[version]}
10030 # kernel_tool_prefix {none,[some-arch-os-]}
10031 # gnu-toolchain -:
10032 # target_tool_prefix ${aros_target_cpu}-aros-
10033 # aros_tool_prefix ${aros_target_cpu}-aros-
10035 # The output is
10036 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10037 # Where the 'kernel' binaries are located
10038 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10039 # Where the 'target' binaries are located
10040 # (not the symlink farm - that is aros_target_*!)
10042 # The rules are:
10043 # if crosstools then
10044 # if kernel_tools_prefix = "no-kernel-prefix-"
10045 # aros_kernel_* = crosstools cc paths
10046 # aros_kernel_cc = elf cc wrapper around crosstools cc
10047 # else
10048 # VALIDATE(${kernel_tools_prefix}*)
10049 # aros_kernel_* = ${kernel_tools_prefix}*
10050 # if ${kernel_tools_prefix}cc is an AROS gcc
10051 # aros_kernel_cc = ${kernel_tools_prefix}cc
10052 # else
10053 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
10054 # fi
10055 # fi
10057 # orig_target_* = aros built crosstools
10058 # orig_target_cc = elf cc wrapper around crosstools cc
10059 # else
10060 # VALIDATE(${kernel_tools_prefix}*)
10062 # orig_target_* = aros_kernel_*
10063 # if aros_kernel_cc is an AROS gcc
10064 # orig_target_cc = aros_kernel_cc
10065 # else
10066 # orig_target_cc = aros cc wrapper around aros_kernel_cc
10067 # fi
10068 # fi
10070 if test "$aros_toolchain" = "gnu" ; then
10071 target_tool_prefix="${aros_target_cpu}-aros-"
10072 elif test "$aros_toolchain" = "llvm" ; then
10073 target_tool_prefix="bin/"
10076 if test "$kernel_tool_prefix" != "" ; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
10078 $as_echo_n "checking which kernel tools... " >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10080 $as_echo "$kernel_tool_prefix" >&6; };
10083 if test "$kernel_tool_prefix" = "none" ; then
10084 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10085 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10087 else
10088 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10089 # Kernel tools required - find them
10090 # Note that 'normally', aros_kernel_* overrides will be
10091 # empty, unless specified in the per-arch sections above.
10092 test_kernel_cc=yes
10093 if test "x$aros_kernel_cpp" = "x"; then
10094 aros_kernel_cpp=${kernel_tool_prefix}${CPP_BASE}
10096 if test "${kernel_tool_version}" != ""; then
10097 if test "$aros_kernel_cpp" != ""; then
10098 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10099 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
10100 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10104 if test "$aros_kernel_cpp" = ""; then
10105 if test "$cross_compiling" = "yes" ; then
10106 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10107 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 case $aros_kernel_cpp in
10114 [\\/]* | ?:[\\/]*)
10115 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10129 done
10130 done
10131 IFS=$as_save_IFS
10134 esac
10136 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10137 if test -n "$aros_kernel_cpp"; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10139 $as_echo "$aros_kernel_cpp" >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10146 else
10148 if test "" = ""; then
10149 ac_tool_cpp=cpp
10150 else
10151 ac_tool_cpp=
10153 if test "$GCC" = "yes"; then
10154 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
10155 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10156 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 case $aros_kernel_cpp in
10163 [\\/]* | ?:[\\/]*)
10164 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in `dirname $aros_gcc_cpp`
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10183 esac
10185 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10186 if test -n "$aros_kernel_cpp"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10188 $as_echo "$aros_kernel_cpp" >&6; }
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10196 if test "$aros_kernel_cpp" = ""; then
10197 for ac_prog in $ac_tool_cpp
10199 # Extract the first word of "$ac_prog", so it can be a program name with args.
10200 set dummy $ac_prog; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 case $aros_kernel_cpp in
10207 [\\/]* | ?:[\\/]*)
10208 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 break 2
10222 done
10223 done
10224 IFS=$as_save_IFS
10227 esac
10229 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10230 if test -n "$aros_kernel_cpp"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10232 $as_echo "$aros_kernel_cpp" >&6; }
10233 else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10239 test -n "$aros_kernel_cpp" && break
10240 done
10245 else
10246 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10247 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10248 set dummy $aros_kernel_cpp; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 case $aros_kernel_cpp in
10255 [\\/]* | ?:[\\/]*)
10256 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10266 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10270 done
10271 done
10272 IFS=$as_save_IFS
10275 esac
10277 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10278 if test -n "$aros_kernel_cpp"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10280 $as_echo "$aros_kernel_cpp" >&6; }
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10287 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10290 req_avail=yes
10291 if test "$aros_kernel_cpp" = ""; then
10292 req_avail=no
10294 if test "$aros_kernel_cpp" = "no"; then
10295 req_avail=no
10297 if test "$req_avail" = "no"; then
10298 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10301 if test "x$aros_kernel_cc" = "x"; then
10302 aros_kernel_cc=${kernel_tool_prefix}${CC_BASE}
10304 if test "${kernel_tool_version}" != ""; then
10305 if test "$aros_kernel_cc" != ""; then
10306 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10307 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10308 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10312 if test "$aros_kernel_cc" = ""; then
10313 if test "$cross_compiling" = "yes" ; then
10314 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10315 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 case $aros_kernel_cc in
10322 [\\/]* | ?:[\\/]*)
10323 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10337 done
10338 done
10339 IFS=$as_save_IFS
10342 esac
10344 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10345 if test -n "$aros_kernel_cc"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10347 $as_echo "$aros_kernel_cc" >&6; }
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10354 else
10356 if test "" = ""; then
10357 ac_tool_cc=cc
10358 else
10359 ac_tool_cc=
10361 if test "$GCC" = "yes"; then
10362 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10363 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10364 set dummy `basename $aros_gcc_cc`; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 case $aros_kernel_cc in
10371 [\\/]* | ?:[\\/]*)
10372 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in `dirname $aros_gcc_cc`
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10386 done
10387 done
10388 IFS=$as_save_IFS
10391 esac
10393 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10394 if test -n "$aros_kernel_cc"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10396 $as_echo "$aros_kernel_cc" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10404 if test "$aros_kernel_cc" = ""; then
10405 for ac_prog in $ac_tool_cc
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408 set dummy $ac_prog; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 case $aros_kernel_cc in
10415 [\\/]* | ?:[\\/]*)
10416 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10430 done
10431 done
10432 IFS=$as_save_IFS
10435 esac
10437 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10438 if test -n "$aros_kernel_cc"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10440 $as_echo "$aros_kernel_cc" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10447 test -n "$aros_kernel_cc" && break
10448 done
10453 else
10454 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10455 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10456 set dummy $aros_kernel_cc; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 case $aros_kernel_cc in
10463 [\\/]* | ?:[\\/]*)
10464 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10478 done
10479 done
10480 IFS=$as_save_IFS
10483 esac
10485 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10486 if test -n "$aros_kernel_cc"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10488 $as_echo "$aros_kernel_cc" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10495 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10498 req_avail=yes
10499 if test "$aros_kernel_cc" = ""; then
10500 req_avail=no
10502 if test "$aros_kernel_cc" = "no"; then
10503 req_avail=no
10505 if test "$req_avail" = "no"; then
10506 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10509 if test "x$aros_kernel_cxx" = "x"; then
10510 aros_kernel_cxx=${kernel_tool_prefix}${CXX_BASE}
10512 if test "${kernel_tool_version}" != ""; then
10513 if test "$aros_kernel_cxx" != ""; then
10514 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10515 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10516 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10520 if test "$aros_kernel_cxx" = ""; then
10521 if test "$cross_compiling" = "yes" ; then
10522 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10523 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 case $aros_kernel_cxx in
10530 [\\/]* | ?:[\\/]*)
10531 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10545 done
10546 done
10547 IFS=$as_save_IFS
10550 esac
10552 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10553 if test -n "$aros_kernel_cxx"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10555 $as_echo "$aros_kernel_cxx" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10562 else
10564 if test "" = ""; then
10565 ac_tool_cxx=cxx
10566 else
10567 ac_tool_cxx=
10569 if test "$GCC" = "yes"; then
10570 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10571 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10572 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 case $aros_kernel_cxx in
10579 [\\/]* | ?:[\\/]*)
10580 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in `dirname $aros_gcc_cxx`
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10590 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10594 done
10595 done
10596 IFS=$as_save_IFS
10599 esac
10601 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10602 if test -n "$aros_kernel_cxx"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10604 $as_echo "$aros_kernel_cxx" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10612 if test "$aros_kernel_cxx" = ""; then
10613 for ac_prog in $ac_tool_cxx
10615 # Extract the first word of "$ac_prog", so it can be a program name with args.
10616 set dummy $ac_prog; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 case $aros_kernel_cxx in
10623 [\\/]* | ?:[\\/]*)
10624 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10638 done
10639 done
10640 IFS=$as_save_IFS
10643 esac
10645 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10646 if test -n "$aros_kernel_cxx"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10648 $as_echo "$aros_kernel_cxx" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10655 test -n "$aros_kernel_cxx" && break
10656 done
10661 else
10662 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10663 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10664 set dummy $aros_kernel_cxx; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 case $aros_kernel_cxx in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10682 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10686 done
10687 done
10688 IFS=$as_save_IFS
10691 esac
10693 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10694 if test -n "$aros_kernel_cxx"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10696 $as_echo "$aros_kernel_cxx" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10703 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10706 # If it's set, make sure it's really there
10707 if test "x$aros_kernel_cxx" != "x" ; then
10708 req_avail=yes
10709 if test "$aros_kernel_cxx" = ""; then
10710 req_avail=no
10712 if test "$aros_kernel_cxx" = "no"; then
10713 req_avail=no
10715 if test "$req_avail" = "no"; then
10716 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10719 if test "x$aros_kernel_ld" = "x"; then
10720 aros_kernel_ld=${kernel_tool_prefix}${LD_BASE}
10723 if test "$aros_kernel_ld" = ""; then
10724 if test "$cross_compiling" = "yes" ; then
10725 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10726 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 case $aros_kernel_ld in
10733 [\\/]* | ?:[\\/]*)
10734 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10748 done
10749 done
10750 IFS=$as_save_IFS
10753 esac
10755 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10756 if test -n "$aros_kernel_ld"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10758 $as_echo "$aros_kernel_ld" >&6; }
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10765 else
10767 if test "" = ""; then
10768 ac_tool_ld=ld
10769 else
10770 ac_tool_ld=
10772 if test "$GCC" = "yes"; then
10773 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10774 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10775 set dummy `basename $aros_gcc_ld`; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 case $aros_kernel_ld in
10782 [\\/]* | ?:[\\/]*)
10783 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in `dirname $aros_gcc_ld`
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10802 esac
10804 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10805 if test -n "$aros_kernel_ld"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10807 $as_echo "$aros_kernel_ld" >&6; }
10808 else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10815 if test "$aros_kernel_ld" = ""; then
10816 for ac_prog in $ac_tool_ld
10818 # Extract the first word of "$ac_prog", so it can be a program name with args.
10819 set dummy $ac_prog; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 case $aros_kernel_ld in
10826 [\\/]* | ?:[\\/]*)
10827 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10837 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10841 done
10842 done
10843 IFS=$as_save_IFS
10846 esac
10848 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10849 if test -n "$aros_kernel_ld"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10851 $as_echo "$aros_kernel_ld" >&6; }
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10858 test -n "$aros_kernel_ld" && break
10859 done
10864 else
10865 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10866 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10867 set dummy $aros_kernel_ld; ac_word=$2
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 $as_echo_n "checking for $ac_word... " >&6; }
10870 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 case $aros_kernel_ld in
10874 [\\/]* | ?:[\\/]*)
10875 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10889 done
10890 done
10891 IFS=$as_save_IFS
10894 esac
10896 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10897 if test -n "$aros_kernel_ld"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10899 $as_echo "$aros_kernel_ld" >&6; }
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10906 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10909 req_avail=yes
10910 if test "$aros_kernel_ld" = ""; then
10911 req_avail=no
10913 if test "$aros_kernel_ld" = "no"; then
10914 req_avail=no
10916 if test "$req_avail" = "no"; then
10917 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10919 if test "x$aros_kernel_as" = "x"; then
10920 aros_kernel_as=$aros_host_as
10921 if test "x$aros_kernel_as" = "x"; then
10922 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10926 if test "$aros_kernel_as" = ""; then
10927 if test "$cross_compiling" = "yes" ; then
10928 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10929 set dummy ${kernel_tool_prefix}as; 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_as+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 case $aros_kernel_as in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
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_as="$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_as=$ac_cv_path_aros_kernel_as
10959 if test -n "$aros_kernel_as"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10961 $as_echo "$aros_kernel_as" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10968 else
10970 if test "" = ""; then
10971 ac_tool_as=as
10972 else
10973 ac_tool_as=
10975 if test "$GCC" = "yes"; then
10976 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10977 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10978 set dummy `basename $aros_gcc_as`; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if ${ac_cv_path_aros_kernel_as+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 case $aros_kernel_as in
10985 [\\/]* | ?:[\\/]*)
10986 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in `dirname $aros_gcc_as`
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
11000 done
11001 done
11002 IFS=$as_save_IFS
11005 esac
11007 aros_kernel_as=$ac_cv_path_aros_kernel_as
11008 if test -n "$aros_kernel_as"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11010 $as_echo "$aros_kernel_as" >&6; }
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11018 if test "$aros_kernel_as" = ""; then
11019 for ac_prog in $ac_tool_as
11021 # Extract the first word of "$ac_prog", so it can be a program name with args.
11022 set dummy $ac_prog; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_path_aros_kernel_as+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 case $aros_kernel_as in
11029 [\\/]* | ?:[\\/]*)
11030 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11044 done
11045 done
11046 IFS=$as_save_IFS
11049 esac
11051 aros_kernel_as=$ac_cv_path_aros_kernel_as
11052 if test -n "$aros_kernel_as"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11054 $as_echo "$aros_kernel_as" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11061 test -n "$aros_kernel_as" && break
11062 done
11067 else
11068 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
11069 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
11070 set dummy $aros_kernel_as; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_aros_kernel_as+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 case $aros_kernel_as in
11077 [\\/]* | ?:[\\/]*)
11078 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11092 done
11093 done
11094 IFS=$as_save_IFS
11097 esac
11099 aros_kernel_as=$ac_cv_path_aros_kernel_as
11100 if test -n "$aros_kernel_as"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11102 $as_echo "$aros_kernel_as" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11109 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
11112 req_avail=yes
11113 if test "$aros_kernel_as" = ""; then
11114 req_avail=no
11116 if test "$aros_kernel_as" = "no"; then
11117 req_avail=no
11119 if test "$req_avail" = "no"; then
11120 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11123 if test "x$aros_kernel_ar" = "x"; then
11124 aros_kernel_ar="${kernel_tool_prefix}${AR_BASE} ${aros_kernel_ar_flags}"
11126 if test "${kernel_tool_version}" != ""; then
11127 if test "$aros_kernel_ar" != ""; then
11128 ac_prog_args=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11129 ac_prog_cmd=`expr "X$aros_kernel_ar" : '^\S*'`
11130 aros_kernel_ar="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11134 if test "$aros_kernel_ar" = ""; then
11135 if test "$cross_compiling" = "yes" ; then
11136 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11137 set dummy ${kernel_tool_prefix}ar; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 case $aros_kernel_ar in
11144 [\\/]* | ?:[\\/]*)
11145 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11159 done
11160 done
11161 IFS=$as_save_IFS
11164 esac
11166 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11167 if test -n "$aros_kernel_ar"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11169 $as_echo "$aros_kernel_ar" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11176 else
11178 if test "" = ""; then
11179 ac_tool_ar=ar
11180 else
11181 ac_tool_ar=
11183 if test "$GCC" = "yes"; then
11184 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
11185 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11186 set dummy `basename $aros_gcc_ar`; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 case $aros_kernel_ar in
11193 [\\/]* | ?:[\\/]*)
11194 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in `dirname $aros_gcc_ar`
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11208 done
11209 done
11210 IFS=$as_save_IFS
11213 esac
11215 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11216 if test -n "$aros_kernel_ar"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11218 $as_echo "$aros_kernel_ar" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11226 if test "$aros_kernel_ar" = ""; then
11227 for ac_prog in $ac_tool_ar
11229 # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 case $aros_kernel_ar in
11237 [\\/]* | ?:[\\/]*)
11238 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11252 done
11253 done
11254 IFS=$as_save_IFS
11257 esac
11259 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11260 if test -n "$aros_kernel_ar"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11262 $as_echo "$aros_kernel_ar" >&6; }
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11269 test -n "$aros_kernel_ar" && break
11270 done
11275 else
11276 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11277 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11278 set dummy $aros_kernel_ar; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $aros_kernel_ar in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11302 IFS=$as_save_IFS
11305 esac
11307 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11308 if test -n "$aros_kernel_ar"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11310 $as_echo "$aros_kernel_ar" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11317 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11320 req_avail=yes
11321 if test "$aros_kernel_ar" = ""; then
11322 req_avail=no
11324 if test "$aros_kernel_ar" = "no"; then
11325 req_avail=no
11327 if test "$req_avail" = "no"; then
11328 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11330 if test "x$aros_kernel_ranlib" = "x"; then
11331 aros_kernel_ranlib=${kernel_tool_prefix}${RANLIB_BASE}
11333 if test "${kernel_tool_version}" != ""; then
11334 if test "$aros_kernel_ranlib" != ""; then
11335 ac_prog_args=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11336 ac_prog_cmd=`expr "X$aros_kernel_ranlib" : '^\S*'`
11337 aros_kernel_ranlib="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11341 if test "$aros_kernel_ranlib" = ""; then
11342 if test "$cross_compiling" = "yes" ; then
11343 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11344 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 case $aros_kernel_ranlib in
11351 [\\/]* | ?:[\\/]*)
11352 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11366 done
11367 done
11368 IFS=$as_save_IFS
11371 esac
11373 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11374 if test -n "$aros_kernel_ranlib"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11376 $as_echo "$aros_kernel_ranlib" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11383 else
11385 if test "" = ""; then
11386 ac_tool_ranlib=ranlib
11387 else
11388 ac_tool_ranlib=
11390 if test "$GCC" = "yes"; then
11391 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11392 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11393 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 case $aros_kernel_ranlib in
11400 [\\/]* | ?:[\\/]*)
11401 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in `dirname $aros_gcc_ranlib`
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11415 done
11416 done
11417 IFS=$as_save_IFS
11420 esac
11422 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11423 if test -n "$aros_kernel_ranlib"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11425 $as_echo "$aros_kernel_ranlib" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test "$aros_kernel_ranlib" = ""; then
11434 for ac_prog in $ac_tool_ranlib
11436 # Extract the first word of "$ac_prog", so it can be a program name with args.
11437 set dummy $ac_prog; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $aros_kernel_ranlib in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11467 if test -n "$aros_kernel_ranlib"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11469 $as_echo "$aros_kernel_ranlib" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11476 test -n "$aros_kernel_ranlib" && break
11477 done
11482 else
11483 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11484 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11485 set dummy $aros_kernel_ranlib; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $aros_kernel_ranlib in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11507 done
11508 done
11509 IFS=$as_save_IFS
11512 esac
11514 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11515 if test -n "$aros_kernel_ranlib"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11517 $as_echo "$aros_kernel_ranlib" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11524 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11527 req_avail=yes
11528 if test "$aros_kernel_ranlib" = ""; then
11529 req_avail=no
11531 if test "$aros_kernel_ranlib" = "no"; then
11532 req_avail=no
11534 if test "$req_avail" = "no"; then
11535 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11537 if test "x$aros_kernel_nm" = "x"; then
11538 aros_kernel_nm=$aros_host_nm
11539 if test "x$aros_kernel_nm" = "x"; then
11540 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11544 if test "$aros_kernel_nm" = ""; then
11545 if test "$cross_compiling" = "yes" ; then
11546 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11547 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 case $aros_kernel_nm in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11571 IFS=$as_save_IFS
11574 esac
11576 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11577 if test -n "$aros_kernel_nm"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11579 $as_echo "$aros_kernel_nm" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11586 else
11588 if test "" = ""; then
11589 ac_tool_nm=nm
11590 else
11591 ac_tool_nm=
11593 if test "$GCC" = "yes"; then
11594 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11595 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11596 set dummy `basename $aros_gcc_nm`; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 case $aros_kernel_nm in
11603 [\\/]* | ?:[\\/]*)
11604 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in `dirname $aros_gcc_nm`
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11618 done
11619 done
11620 IFS=$as_save_IFS
11623 esac
11625 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11626 if test -n "$aros_kernel_nm"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11628 $as_echo "$aros_kernel_nm" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11636 if test "$aros_kernel_nm" = ""; then
11637 for ac_prog in $ac_tool_nm
11639 # Extract the first word of "$ac_prog", so it can be a program name with args.
11640 set dummy $ac_prog; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 case $aros_kernel_nm in
11647 [\\/]* | ?:[\\/]*)
11648 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652 for as_dir in $PATH
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 break 2
11662 done
11663 done
11664 IFS=$as_save_IFS
11667 esac
11669 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11670 if test -n "$aros_kernel_nm"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11672 $as_echo "$aros_kernel_nm" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11679 test -n "$aros_kernel_nm" && break
11680 done
11685 else
11686 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11687 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11688 set dummy $aros_kernel_nm; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 case $aros_kernel_nm in
11695 [\\/]* | ?:[\\/]*)
11696 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11710 done
11711 done
11712 IFS=$as_save_IFS
11715 esac
11717 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11718 if test -n "$aros_kernel_nm"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11720 $as_echo "$aros_kernel_nm" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11730 req_avail=yes
11731 if test "$aros_kernel_nm" = ""; then
11732 req_avail=no
11734 if test "$aros_kernel_nm" = "no"; then
11735 req_avail=no
11737 if test "$req_avail" = "no"; then
11738 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11741 if test "$aros_kernel_strip" = ""; then
11742 if test "$cross_compiling" = "yes" ; then
11743 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11744 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $aros_kernel_strip in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11771 esac
11773 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11774 if test -n "$aros_kernel_strip"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11776 $as_echo "$aros_kernel_strip" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11783 else
11785 if test "" = ""; then
11786 ac_tool_strip=strip
11787 else
11788 ac_tool_strip=
11790 if test "$GCC" = "yes"; then
11791 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11792 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11793 set dummy `basename $aros_gcc_strip`; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 case $aros_kernel_strip in
11800 [\\/]* | ?:[\\/]*)
11801 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in `dirname $aros_gcc_strip`
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11820 esac
11822 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11823 if test -n "$aros_kernel_strip"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11825 $as_echo "$aros_kernel_strip" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11833 if test "$aros_kernel_strip" = ""; then
11834 for ac_prog in $ac_tool_strip
11836 # Extract the first word of "$ac_prog", so it can be a program name with args.
11837 set dummy $ac_prog; 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_aros_kernel_strip+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 case $aros_kernel_strip in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # 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_aros_kernel_strip="$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 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11867 if test -n "$aros_kernel_strip"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11869 $as_echo "$aros_kernel_strip" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 test -n "$aros_kernel_strip" && break
11877 done
11882 else
11883 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11884 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11885 set dummy $aros_kernel_strip; ac_word=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 case $aros_kernel_strip in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11903 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11907 done
11908 done
11909 IFS=$as_save_IFS
11912 esac
11914 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11915 if test -n "$aros_kernel_strip"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11917 $as_echo "$aros_kernel_strip" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11924 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11927 req_avail=yes
11928 if test "$aros_kernel_strip" = ""; then
11929 req_avail=no
11931 if test "$aros_kernel_strip" = "no"; then
11932 req_avail=no
11934 if test "$req_avail" = "no"; then
11935 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11938 # Objcopy and objdump are not required for the kernel
11939 # toolchain on many architectures.
11940 # So we'll look for them, but not make them strictly required.
11941 if test "x$aros_kernel_objcopy" = "x"; then
11942 aros_kernel_objcopy=$aros_host_objcopy
11943 if test "x$aros_kernel_objcopy" = "x"; then
11944 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11948 if test "$aros_kernel_objcopy" = ""; then
11949 if test "$cross_compiling" = "yes" ; then
11950 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11951 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 case $aros_kernel_objcopy in
11958 [\\/]* | ?:[\\/]*)
11959 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11973 done
11974 done
11975 IFS=$as_save_IFS
11978 esac
11980 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11981 if test -n "$aros_kernel_objcopy"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11983 $as_echo "$aros_kernel_objcopy" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11990 else
11992 if test "" = ""; then
11993 ac_tool_objcopy=objcopy
11994 else
11995 ac_tool_objcopy=
11997 if test "$GCC" = "yes"; then
11998 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11999 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12000 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 case $aros_kernel_objcopy in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in `dirname $aros_gcc_objcopy`
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12022 done
12023 done
12024 IFS=$as_save_IFS
12027 esac
12029 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12030 if test -n "$aros_kernel_objcopy"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12032 $as_echo "$aros_kernel_objcopy" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12040 if test "$aros_kernel_objcopy" = ""; then
12041 for ac_prog in $ac_tool_objcopy
12043 # Extract the first word of "$ac_prog", so it can be a program name with args.
12044 set dummy $ac_prog; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 case $aros_kernel_objcopy in
12051 [\\/]* | ?:[\\/]*)
12052 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12066 done
12067 done
12068 IFS=$as_save_IFS
12071 esac
12073 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12074 if test -n "$aros_kernel_objcopy"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12076 $as_echo "$aros_kernel_objcopy" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12083 test -n "$aros_kernel_objcopy" && break
12084 done
12089 else
12090 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
12091 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
12092 set dummy $aros_kernel_objcopy; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 case $aros_kernel_objcopy in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12114 done
12115 done
12116 IFS=$as_save_IFS
12119 esac
12121 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12122 if test -n "$aros_kernel_objcopy"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12124 $as_echo "$aros_kernel_objcopy" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12131 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
12134 if test "x$aros_kernel_objdump" = "x"; then
12135 aros_kernel_objdump=$aros_host_objdump
12136 if test "x$aros_kernel_objdump" = "x"; then
12137 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
12141 if test "$aros_kernel_objdump" = ""; then
12142 if test "$cross_compiling" = "yes" ; then
12143 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12144 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $aros_kernel_objdump in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12171 esac
12173 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12174 if test -n "$aros_kernel_objdump"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12176 $as_echo "$aros_kernel_objdump" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12183 else
12185 if test "" = ""; then
12186 ac_tool_objdump=objdump
12187 else
12188 ac_tool_objdump=
12190 if test "$GCC" = "yes"; then
12191 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
12192 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12193 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 case $aros_kernel_objdump in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in `dirname $aros_gcc_objdump`
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12215 done
12216 done
12217 IFS=$as_save_IFS
12220 esac
12222 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12223 if test -n "$aros_kernel_objdump"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12225 $as_echo "$aros_kernel_objdump" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12233 if test "$aros_kernel_objdump" = ""; then
12234 for ac_prog in $ac_tool_objdump
12236 # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 case $aros_kernel_objdump in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12259 done
12260 done
12261 IFS=$as_save_IFS
12264 esac
12266 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12267 if test -n "$aros_kernel_objdump"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12269 $as_echo "$aros_kernel_objdump" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12276 test -n "$aros_kernel_objdump" && break
12277 done
12282 else
12283 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12284 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12285 set dummy $aros_kernel_objdump; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 case $aros_kernel_objdump in
12292 [\\/]* | ?:[\\/]*)
12293 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $PATH
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12307 done
12308 done
12309 IFS=$as_save_IFS
12312 esac
12314 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12315 if test -n "$aros_kernel_objdump"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12317 $as_echo "$aros_kernel_objdump" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12324 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12327 if test "x${crosstools}" != "xyes" ; then
12328 req_avail=yes
12329 if test "$aros_kernel_objcopy" = ""; then
12330 req_avail=no
12332 if test "$aros_kernel_objcopy" = "no"; then
12333 req_avail=no
12335 if test "$req_avail" = "no"; then
12336 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12338 req_avail=yes
12339 if test "$aros_kernel_objdump" = ""; then
12340 req_avail=no
12342 if test "$aros_kernel_objdump" = "no"; then
12343 req_avail=no
12345 if test "$req_avail" = "no"; then
12346 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12353 $as_echo_n "checking which target tools to use... " >&6; }
12354 if test "$aros_target_toolchain" = "yes"; then
12355 if test "$aros_toolchain" = "llvm" ; then
12356 msg_result="llvm"
12357 else
12358 msg_result=$target_tool_prefix
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12361 $as_echo "$msg_result" >&6; }
12362 # We are building AROS crosstools
12363 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12364 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12365 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12366 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12367 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12368 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12369 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12370 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12371 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12372 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12373 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12374 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12375 else
12376 # Determine whether AROS or ELF tools should be used
12377 if test "$aros_tool_prefix" = "none"; then
12378 aros_tool_prefix="${elf_tool_prefix}"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12382 $as_echo "$aros_tool_prefix" >&6; }
12383 # We are *not* building AROS crosstools - use the AROS or ELF tools
12385 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12386 if test "$cross_compiling" = "yes" ; then
12387 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12388 set dummy ${target_tool_prefix}cpp; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if ${ac_cv_path_orig_target_cpp+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 case $orig_target_cpp in
12395 [\\/]* | ?:[\\/]*)
12396 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12415 esac
12417 orig_target_cpp=$ac_cv_path_orig_target_cpp
12418 if test -n "$orig_target_cpp"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12420 $as_echo "$orig_target_cpp" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12427 else
12429 if test "" = ""; then
12430 ac_tool_cpp=cpp
12431 else
12432 ac_tool_cpp=
12434 if test "$GCC" = "yes"; then
12435 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12436 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12437 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_path_orig_target_cpp+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 case $orig_target_cpp in
12444 [\\/]* | ?:[\\/]*)
12445 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in `dirname $aros_gcc_cpp`
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12459 done
12460 done
12461 IFS=$as_save_IFS
12464 esac
12466 orig_target_cpp=$ac_cv_path_orig_target_cpp
12467 if test -n "$orig_target_cpp"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12469 $as_echo "$orig_target_cpp" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12477 if test "$orig_target_cpp" = ""; then
12478 for ac_prog in $ac_tool_cpp
12480 # Extract the first word of "$ac_prog", so it can be a program name with args.
12481 set dummy $ac_prog; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_orig_target_cpp+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 case $orig_target_cpp in
12488 [\\/]* | ?:[\\/]*)
12489 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12503 done
12504 done
12505 IFS=$as_save_IFS
12508 esac
12510 orig_target_cpp=$ac_cv_path_orig_target_cpp
12511 if test -n "$orig_target_cpp"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12513 $as_echo "$orig_target_cpp" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12520 test -n "$orig_target_cpp" && break
12521 done
12526 else
12527 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12528 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}", so it can be a program name with args.
12529 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_path_orig_target_cpp+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 case $orig_target_cpp in
12536 [\\/]* | ?:[\\/]*)
12537 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12551 done
12552 done
12553 IFS=$as_save_IFS
12556 esac
12558 orig_target_cpp=$ac_cv_path_orig_target_cpp
12559 if test -n "$orig_target_cpp"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12561 $as_echo "$orig_target_cpp" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12571 req_avail=yes
12572 if test "$orig_target_cpp" = ""; then
12573 req_avail=no
12575 if test "$orig_target_cpp" = "no"; then
12576 req_avail=no
12578 if test "$req_avail" = "no"; then
12579 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12582 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12583 if test "$cross_compiling" = "yes" ; then
12584 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12585 set dummy ${target_tool_prefix}gcc; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if ${ac_cv_path_orig_target_cc+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 case $orig_target_cc in
12592 [\\/]* | ?:[\\/]*)
12593 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12607 done
12608 done
12609 IFS=$as_save_IFS
12612 esac
12614 orig_target_cc=$ac_cv_path_orig_target_cc
12615 if test -n "$orig_target_cc"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12617 $as_echo "$orig_target_cc" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12624 else
12626 if test "" = ""; then
12627 ac_tool_gcc=gcc
12628 else
12629 ac_tool_gcc=
12631 if test "$GCC" = "yes"; then
12632 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12633 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12634 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_orig_target_cc+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 case $orig_target_cc in
12641 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in `dirname $aros_gcc_gcc`
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12661 esac
12663 orig_target_cc=$ac_cv_path_orig_target_cc
12664 if test -n "$orig_target_cc"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12666 $as_echo "$orig_target_cc" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12674 if test "$orig_target_cc" = ""; then
12675 for ac_prog in $ac_tool_gcc
12677 # Extract the first word of "$ac_prog", so it can be a program name with args.
12678 set dummy $ac_prog; ac_word=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680 $as_echo_n "checking for $ac_word... " >&6; }
12681 if ${ac_cv_path_orig_target_cc+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 case $orig_target_cc in
12685 [\\/]* | ?:[\\/]*)
12686 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12696 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12700 done
12701 done
12702 IFS=$as_save_IFS
12705 esac
12707 orig_target_cc=$ac_cv_path_orig_target_cc
12708 if test -n "$orig_target_cc"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12710 $as_echo "$orig_target_cc" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12717 test -n "$orig_target_cc" && break
12718 done
12723 else
12724 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12725 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12726 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_orig_target_cc+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 case $orig_target_cc in
12733 [\\/]* | ?:[\\/]*)
12734 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12748 done
12749 done
12750 IFS=$as_save_IFS
12753 esac
12755 orig_target_cc=$ac_cv_path_orig_target_cc
12756 if test -n "$orig_target_cc"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12758 $as_echo "$orig_target_cc" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12765 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12768 req_avail=yes
12769 if test "$orig_target_cc" = ""; then
12770 req_avail=no
12772 if test "$orig_target_cc" = "no"; then
12773 req_avail=no
12775 if test "$req_avail" = "no"; then
12776 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12779 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12780 if test "$cross_compiling" = "yes" ; then
12781 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12782 set dummy ${target_tool_prefix}g++; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if ${ac_cv_path_orig_target_cxx+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 case $orig_target_cxx in
12789 [\\/]* | ?:[\\/]*)
12790 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12804 done
12805 done
12806 IFS=$as_save_IFS
12809 esac
12811 orig_target_cxx=$ac_cv_path_orig_target_cxx
12812 if test -n "$orig_target_cxx"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12814 $as_echo "$orig_target_cxx" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12821 else
12823 if test "" = ""; then
12824 ac_tool_g++=g++
12825 else
12826 ac_tool_g++=
12828 if test "$GCC" = "yes"; then
12829 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12830 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12831 set dummy `basename $aros_gcc_g++`; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_orig_target_cxx+:} false; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 case $orig_target_cxx in
12838 [\\/]* | ?:[\\/]*)
12839 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in `dirname $aros_gcc_g++`
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12853 done
12854 done
12855 IFS=$as_save_IFS
12858 esac
12860 orig_target_cxx=$ac_cv_path_orig_target_cxx
12861 if test -n "$orig_target_cxx"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12863 $as_echo "$orig_target_cxx" >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12871 if test "$orig_target_cxx" = ""; then
12872 for ac_prog in $ac_tool_g++
12874 # Extract the first word of "$ac_prog", so it can be a program name with args.
12875 set dummy $ac_prog; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if ${ac_cv_path_orig_target_cxx+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 case $orig_target_cxx in
12882 [\\/]* | ?:[\\/]*)
12883 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 break 2
12897 done
12898 done
12899 IFS=$as_save_IFS
12902 esac
12904 orig_target_cxx=$ac_cv_path_orig_target_cxx
12905 if test -n "$orig_target_cxx"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12907 $as_echo "$orig_target_cxx" >&6; }
12908 else
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12914 test -n "$orig_target_cxx" && break
12915 done
12920 else
12921 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12922 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12923 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_path_orig_target_cxx+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 case $orig_target_cxx in
12930 [\\/]* | ?:[\\/]*)
12931 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12945 done
12946 done
12947 IFS=$as_save_IFS
12950 esac
12952 orig_target_cxx=$ac_cv_path_orig_target_cxx
12953 if test -n "$orig_target_cxx"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12955 $as_echo "$orig_target_cxx" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12962 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12965 req_avail=yes
12966 if test "$orig_target_cxx" = ""; then
12967 req_avail=no
12969 if test "$orig_target_cxx" = "no"; then
12970 req_avail=no
12972 if test "$req_avail" = "no"; then
12973 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12976 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12977 if test "$cross_compiling" = "yes" ; then
12978 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12979 set dummy ${target_tool_prefix}gcc; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_path_orig_target_ld+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 case $orig_target_ld in
12986 [\\/]* | ?:[\\/]*)
12987 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13001 done
13002 done
13003 IFS=$as_save_IFS
13006 esac
13008 orig_target_ld=$ac_cv_path_orig_target_ld
13009 if test -n "$orig_target_ld"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13011 $as_echo "$orig_target_ld" >&6; }
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13018 else
13020 if test "" = ""; then
13021 ac_tool_gcc=gcc
13022 else
13023 ac_tool_gcc=
13025 if test "$GCC" = "yes"; then
13026 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
13027 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
13028 set dummy `basename $aros_gcc_gcc`; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if ${ac_cv_path_orig_target_ld+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 case $orig_target_ld in
13035 [\\/]* | ?:[\\/]*)
13036 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in `dirname $aros_gcc_gcc`
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13046 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13050 done
13051 done
13052 IFS=$as_save_IFS
13055 esac
13057 orig_target_ld=$ac_cv_path_orig_target_ld
13058 if test -n "$orig_target_ld"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13060 $as_echo "$orig_target_ld" >&6; }
13061 else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13068 if test "$orig_target_ld" = ""; then
13069 for ac_prog in $ac_tool_gcc
13071 # Extract the first word of "$ac_prog", so it can be a program name with args.
13072 set dummy $ac_prog; ac_word=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074 $as_echo_n "checking for $ac_word... " >&6; }
13075 if ${ac_cv_path_orig_target_ld+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 case $orig_target_ld in
13079 [\\/]* | ?:[\\/]*)
13080 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13094 done
13095 done
13096 IFS=$as_save_IFS
13099 esac
13101 orig_target_ld=$ac_cv_path_orig_target_ld
13102 if test -n "$orig_target_ld"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13104 $as_echo "$orig_target_ld" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13111 test -n "$orig_target_ld" && break
13112 done
13117 else
13118 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13119 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13120 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if ${ac_cv_path_orig_target_ld+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 case $orig_target_ld in
13127 [\\/]* | ?:[\\/]*)
13128 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13142 done
13143 done
13144 IFS=$as_save_IFS
13147 esac
13149 orig_target_ld=$ac_cv_path_orig_target_ld
13150 if test -n "$orig_target_ld"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13152 $as_echo "$orig_target_ld" >&6; }
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13159 orig_target_ld="$orig_target_ld $ac_tool_optarg"
13162 req_avail=yes
13163 if test "$orig_target_ld" = ""; then
13164 req_avail=no
13166 if test "$orig_target_ld" = "no"; then
13167 req_avail=no
13169 if test "$req_avail" = "no"; then
13170 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13173 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13174 if test "$cross_compiling" = "yes" ; then
13175 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13176 set dummy ${target_tool_prefix}as; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_path_orig_target_as+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 case $orig_target_as in
13183 [\\/]* | ?:[\\/]*)
13184 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13198 done
13199 done
13200 IFS=$as_save_IFS
13203 esac
13205 orig_target_as=$ac_cv_path_orig_target_as
13206 if test -n "$orig_target_as"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13208 $as_echo "$orig_target_as" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13215 else
13217 if test "" = ""; then
13218 ac_tool_as=as
13219 else
13220 ac_tool_as=
13222 if test "$GCC" = "yes"; then
13223 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
13224 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13225 set dummy `basename $aros_gcc_as`; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if ${ac_cv_path_orig_target_as+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 case $orig_target_as in
13232 [\\/]* | ?:[\\/]*)
13233 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in `dirname $aros_gcc_as`
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13243 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13245 break 2
13247 done
13248 done
13249 IFS=$as_save_IFS
13252 esac
13254 orig_target_as=$ac_cv_path_orig_target_as
13255 if test -n "$orig_target_as"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13257 $as_echo "$orig_target_as" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13265 if test "$orig_target_as" = ""; then
13266 for ac_prog in $ac_tool_as
13268 # Extract the first word of "$ac_prog", so it can be a program name with args.
13269 set dummy $ac_prog; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_path_orig_target_as+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 case $orig_target_as in
13276 [\\/]* | ?:[\\/]*)
13277 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13291 done
13292 done
13293 IFS=$as_save_IFS
13296 esac
13298 orig_target_as=$ac_cv_path_orig_target_as
13299 if test -n "$orig_target_as"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13301 $as_echo "$orig_target_as" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13308 test -n "$orig_target_as" && break
13309 done
13314 else
13315 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13316 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13317 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if ${ac_cv_path_orig_target_as+:} false; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 case $orig_target_as in
13324 [\\/]* | ?:[\\/]*)
13325 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13335 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13339 done
13340 done
13341 IFS=$as_save_IFS
13344 esac
13346 orig_target_as=$ac_cv_path_orig_target_as
13347 if test -n "$orig_target_as"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13349 $as_echo "$orig_target_as" >&6; }
13350 else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13356 orig_target_as="$orig_target_as $ac_tool_optarg"
13359 req_avail=yes
13360 if test "$orig_target_as" = ""; then
13361 req_avail=no
13363 if test "$orig_target_as" = "no"; then
13364 req_avail=no
13366 if test "$req_avail" = "no"; then
13367 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13370 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13371 if test "$cross_compiling" = "yes" ; then
13372 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13373 set dummy ${target_tool_prefix}ar; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_orig_target_ar+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 case $orig_target_ar in
13380 [\\/]* | ?:[\\/]*)
13381 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13400 esac
13402 orig_target_ar=$ac_cv_path_orig_target_ar
13403 if test -n "$orig_target_ar"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13405 $as_echo "$orig_target_ar" >&6; }
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13412 else
13414 if test "" = ""; then
13415 ac_tool_ar=ar
13416 else
13417 ac_tool_ar=
13419 if test "$GCC" = "yes"; then
13420 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13421 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13422 set dummy `basename $aros_gcc_ar`; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_path_orig_target_ar+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 case $orig_target_ar in
13429 [\\/]* | ?:[\\/]*)
13430 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in `dirname $aros_gcc_ar`
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13444 done
13445 done
13446 IFS=$as_save_IFS
13449 esac
13451 orig_target_ar=$ac_cv_path_orig_target_ar
13452 if test -n "$orig_target_ar"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13454 $as_echo "$orig_target_ar" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13462 if test "$orig_target_ar" = ""; then
13463 for ac_prog in $ac_tool_ar
13465 # Extract the first word of "$ac_prog", so it can be a program name with args.
13466 set dummy $ac_prog; ac_word=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if ${ac_cv_path_orig_target_ar+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 case $orig_target_ar in
13473 [\\/]* | ?:[\\/]*)
13474 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13488 done
13489 done
13490 IFS=$as_save_IFS
13493 esac
13495 orig_target_ar=$ac_cv_path_orig_target_ar
13496 if test -n "$orig_target_ar"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13498 $as_echo "$orig_target_ar" >&6; }
13499 else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13505 test -n "$orig_target_ar" && break
13506 done
13511 else
13512 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13513 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13514 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_orig_target_ar+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 case $orig_target_ar in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13536 done
13537 done
13538 IFS=$as_save_IFS
13541 esac
13543 orig_target_ar=$ac_cv_path_orig_target_ar
13544 if test -n "$orig_target_ar"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13546 $as_echo "$orig_target_ar" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13553 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13556 req_avail=yes
13557 if test "$orig_target_ar" = ""; then
13558 req_avail=no
13560 if test "$orig_target_ar" = "no"; then
13561 req_avail=no
13563 if test "$req_avail" = "no"; then
13564 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13567 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13568 if test "$cross_compiling" = "yes" ; then
13569 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13570 set dummy ${target_tool_prefix}ar; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 case $orig_target_ranlib in
13577 [\\/]* | ?:[\\/]*)
13578 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13584 IFS=$as_save_IFS
13585 test -z "$as_dir" && as_dir=.
13586 for ac_exec_ext in '' $ac_executable_extensions; do
13587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13588 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 break 2
13592 done
13593 done
13594 IFS=$as_save_IFS
13597 esac
13599 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13600 if test -n "$orig_target_ranlib"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13602 $as_echo "$orig_target_ranlib" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13609 else
13611 if test "" = ""; then
13612 ac_tool_ar=ar
13613 else
13614 ac_tool_ar=
13616 if test "$GCC" = "yes"; then
13617 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13618 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13619 set dummy `basename $aros_gcc_ar`; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 case $orig_target_ranlib in
13626 [\\/]* | ?:[\\/]*)
13627 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in `dirname $aros_gcc_ar`
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13641 done
13642 done
13643 IFS=$as_save_IFS
13646 esac
13648 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13649 if test -n "$orig_target_ranlib"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13651 $as_echo "$orig_target_ranlib" >&6; }
13652 else
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13659 if test "$orig_target_ranlib" = ""; then
13660 for ac_prog in $ac_tool_ar
13662 # Extract the first word of "$ac_prog", so it can be a program name with args.
13663 set dummy $ac_prog; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 case $orig_target_ranlib in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13685 done
13686 done
13687 IFS=$as_save_IFS
13690 esac
13692 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13693 if test -n "$orig_target_ranlib"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13695 $as_echo "$orig_target_ranlib" >&6; }
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13702 test -n "$orig_target_ranlib" && break
13703 done
13708 else
13709 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13710 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13711 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 case $orig_target_ranlib in
13718 [\\/]* | ?:[\\/]*)
13719 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13733 done
13734 done
13735 IFS=$as_save_IFS
13738 esac
13740 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13741 if test -n "$orig_target_ranlib"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13743 $as_echo "$orig_target_ranlib" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13750 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13753 req_avail=yes
13754 if test "$orig_target_ranlib" = ""; then
13755 req_avail=no
13757 if test "$orig_target_ranlib" = "no"; then
13758 req_avail=no
13760 if test "$req_avail" = "no"; then
13761 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13764 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13765 if test "$cross_compiling" = "yes" ; then
13766 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13767 set dummy ${target_tool_prefix}nm; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_path_orig_target_nm+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 case $orig_target_nm in
13774 [\\/]* | ?:[\\/]*)
13775 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 break 2
13789 done
13790 done
13791 IFS=$as_save_IFS
13794 esac
13796 orig_target_nm=$ac_cv_path_orig_target_nm
13797 if test -n "$orig_target_nm"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13799 $as_echo "$orig_target_nm" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13806 else
13808 if test "" = ""; then
13809 ac_tool_nm=nm
13810 else
13811 ac_tool_nm=
13813 if test "$GCC" = "yes"; then
13814 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13815 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13816 set dummy `basename $aros_gcc_nm`; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_orig_target_nm+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 case $orig_target_nm in
13823 [\\/]* | ?:[\\/]*)
13824 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in `dirname $aros_gcc_nm`
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13838 done
13839 done
13840 IFS=$as_save_IFS
13843 esac
13845 orig_target_nm=$ac_cv_path_orig_target_nm
13846 if test -n "$orig_target_nm"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13848 $as_echo "$orig_target_nm" >&6; }
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13856 if test "$orig_target_nm" = ""; then
13857 for ac_prog in $ac_tool_nm
13859 # Extract the first word of "$ac_prog", so it can be a program name with args.
13860 set dummy $ac_prog; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if ${ac_cv_path_orig_target_nm+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 case $orig_target_nm in
13867 [\\/]* | ?:[\\/]*)
13868 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13878 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13882 done
13883 done
13884 IFS=$as_save_IFS
13887 esac
13889 orig_target_nm=$ac_cv_path_orig_target_nm
13890 if test -n "$orig_target_nm"; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13892 $as_echo "$orig_target_nm" >&6; }
13893 else
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13899 test -n "$orig_target_nm" && break
13900 done
13905 else
13906 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13907 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13908 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13910 $as_echo_n "checking for $ac_word... " >&6; }
13911 if ${ac_cv_path_orig_target_nm+:} false; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 case $orig_target_nm in
13915 [\\/]* | ?:[\\/]*)
13916 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13930 done
13931 done
13932 IFS=$as_save_IFS
13935 esac
13937 orig_target_nm=$ac_cv_path_orig_target_nm
13938 if test -n "$orig_target_nm"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13940 $as_echo "$orig_target_nm" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13947 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13950 req_avail=yes
13951 if test "$orig_target_nm" = ""; then
13952 req_avail=no
13954 if test "$orig_target_nm" = "no"; then
13955 req_avail=no
13957 if test "$req_avail" = "no"; then
13958 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13961 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13962 if test "$cross_compiling" = "yes" ; then
13963 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13964 set dummy ${target_tool_prefix}strip; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_path_orig_target_strip+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 case $orig_target_strip in
13971 [\\/]* | ?:[\\/]*)
13972 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13986 done
13987 done
13988 IFS=$as_save_IFS
13991 esac
13993 orig_target_strip=$ac_cv_path_orig_target_strip
13994 if test -n "$orig_target_strip"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13996 $as_echo "$orig_target_strip" >&6; }
13997 else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14003 else
14005 if test "" = ""; then
14006 ac_tool_strip=strip
14007 else
14008 ac_tool_strip=
14010 if test "$GCC" = "yes"; then
14011 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
14012 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
14013 set dummy `basename $aros_gcc_strip`; ac_word=$2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14015 $as_echo_n "checking for $ac_word... " >&6; }
14016 if ${ac_cv_path_orig_target_strip+:} false; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 case $orig_target_strip in
14020 [\\/]* | ?:[\\/]*)
14021 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in `dirname $aros_gcc_strip`
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 break 2
14035 done
14036 done
14037 IFS=$as_save_IFS
14040 esac
14042 orig_target_strip=$ac_cv_path_orig_target_strip
14043 if test -n "$orig_target_strip"; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14045 $as_echo "$orig_target_strip" >&6; }
14046 else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048 $as_echo "no" >&6; }
14053 if test "$orig_target_strip" = ""; then
14054 for ac_prog in $ac_tool_strip
14056 # Extract the first word of "$ac_prog", so it can be a program name with args.
14057 set dummy $ac_prog; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if ${ac_cv_path_orig_target_strip+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 case $orig_target_strip in
14064 [\\/]* | ?:[\\/]*)
14065 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14079 done
14080 done
14081 IFS=$as_save_IFS
14084 esac
14086 orig_target_strip=$ac_cv_path_orig_target_strip
14087 if test -n "$orig_target_strip"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14089 $as_echo "$orig_target_strip" >&6; }
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14096 test -n "$orig_target_strip" && break
14097 done
14102 else
14103 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14104 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14105 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if ${ac_cv_path_orig_target_strip+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 case $orig_target_strip in
14112 [\\/]* | ?:[\\/]*)
14113 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14127 done
14128 done
14129 IFS=$as_save_IFS
14132 esac
14134 orig_target_strip=$ac_cv_path_orig_target_strip
14135 if test -n "$orig_target_strip"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14137 $as_echo "$orig_target_strip" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14144 orig_target_strip="$orig_target_strip $ac_tool_optarg"
14147 req_avail=yes
14148 if test "$orig_target_strip" = ""; then
14149 req_avail=no
14151 if test "$orig_target_strip" = "no"; then
14152 req_avail=no
14154 if test "$req_avail" = "no"; then
14155 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14158 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14159 if test "$cross_compiling" = "yes" ; then
14160 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14161 set dummy ${target_tool_prefix}objcopy; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 case $orig_target_objcopy in
14168 [\\/]* | ?:[\\/]*)
14169 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14179 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14183 done
14184 done
14185 IFS=$as_save_IFS
14188 esac
14190 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14191 if test -n "$orig_target_objcopy"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14193 $as_echo "$orig_target_objcopy" >&6; }
14194 else
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14200 else
14202 if test "" = ""; then
14203 ac_tool_objcopy=objcopy
14204 else
14205 ac_tool_objcopy=
14207 if test "$GCC" = "yes"; then
14208 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
14209 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14210 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212 $as_echo_n "checking for $ac_word... " >&6; }
14213 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 case $orig_target_objcopy in
14217 [\\/]* | ?:[\\/]*)
14218 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in `dirname $aros_gcc_objcopy`
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 break 2
14232 done
14233 done
14234 IFS=$as_save_IFS
14237 esac
14239 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14240 if test -n "$orig_target_objcopy"; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14242 $as_echo "$orig_target_objcopy" >&6; }
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14250 if test "$orig_target_objcopy" = ""; then
14251 for ac_prog in $ac_tool_objcopy
14253 # Extract the first word of "$ac_prog", so it can be a program name with args.
14254 set dummy $ac_prog; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 case $orig_target_objcopy in
14261 [\\/]* | ?:[\\/]*)
14262 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14266 for as_dir in $PATH
14268 IFS=$as_save_IFS
14269 test -z "$as_dir" && as_dir=.
14270 for ac_exec_ext in '' $ac_executable_extensions; do
14271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14272 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14274 break 2
14276 done
14277 done
14278 IFS=$as_save_IFS
14281 esac
14283 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14284 if test -n "$orig_target_objcopy"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14286 $as_echo "$orig_target_objcopy" >&6; }
14287 else
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289 $as_echo "no" >&6; }
14293 test -n "$orig_target_objcopy" && break
14294 done
14299 else
14300 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14301 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14302 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 case $orig_target_objcopy in
14309 [\\/]* | ?:[\\/]*)
14310 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14320 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 break 2
14324 done
14325 done
14326 IFS=$as_save_IFS
14329 esac
14331 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14332 if test -n "$orig_target_objcopy"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14334 $as_echo "$orig_target_objcopy" >&6; }
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14341 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14344 req_avail=yes
14345 if test "$orig_target_objcopy" = ""; then
14346 req_avail=no
14348 if test "$orig_target_objcopy" = "no"; then
14349 req_avail=no
14351 if test "$req_avail" = "no"; then
14352 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14355 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14356 if test "$cross_compiling" = "yes" ; then
14357 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14358 set dummy ${target_tool_prefix}objdump; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_path_orig_target_objdump+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 case $orig_target_objdump in
14365 [\\/]* | ?:[\\/]*)
14366 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14372 IFS=$as_save_IFS
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
14375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14376 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 break 2
14380 done
14381 done
14382 IFS=$as_save_IFS
14385 esac
14387 orig_target_objdump=$ac_cv_path_orig_target_objdump
14388 if test -n "$orig_target_objdump"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14390 $as_echo "$orig_target_objdump" >&6; }
14391 else
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14397 else
14399 if test "" = ""; then
14400 ac_tool_objdump=objdump
14401 else
14402 ac_tool_objdump=
14404 if test "$GCC" = "yes"; then
14405 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14406 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14407 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if ${ac_cv_path_orig_target_objdump+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 case $orig_target_objdump in
14414 [\\/]* | ?:[\\/]*)
14415 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in `dirname $aros_gcc_objdump`
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14429 done
14430 done
14431 IFS=$as_save_IFS
14434 esac
14436 orig_target_objdump=$ac_cv_path_orig_target_objdump
14437 if test -n "$orig_target_objdump"; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14439 $as_echo "$orig_target_objdump" >&6; }
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14447 if test "$orig_target_objdump" = ""; then
14448 for ac_prog in $ac_tool_objdump
14450 # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy $ac_prog; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_path_orig_target_objdump+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 case $orig_target_objdump in
14458 [\\/]* | ?:[\\/]*)
14459 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14463 for as_dir in $PATH
14465 IFS=$as_save_IFS
14466 test -z "$as_dir" && as_dir=.
14467 for ac_exec_ext in '' $ac_executable_extensions; do
14468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14469 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 break 2
14473 done
14474 done
14475 IFS=$as_save_IFS
14478 esac
14480 orig_target_objdump=$ac_cv_path_orig_target_objdump
14481 if test -n "$orig_target_objdump"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14483 $as_echo "$orig_target_objdump" >&6; }
14484 else
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14490 test -n "$orig_target_objdump" && break
14491 done
14496 else
14497 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14498 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14499 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14501 $as_echo_n "checking for $ac_word... " >&6; }
14502 if ${ac_cv_path_orig_target_objdump+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 case $orig_target_objdump in
14506 [\\/]* | ?:[\\/]*)
14507 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14513 IFS=$as_save_IFS
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14517 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14519 break 2
14521 done
14522 done
14523 IFS=$as_save_IFS
14526 esac
14528 orig_target_objdump=$ac_cv_path_orig_target_objdump
14529 if test -n "$orig_target_objdump"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14531 $as_echo "$orig_target_objdump" >&6; }
14532 else
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14538 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14541 req_avail=yes
14542 if test "$orig_target_objdump" = ""; then
14543 req_avail=no
14545 if test "$orig_target_objdump" = "no"; then
14546 req_avail=no
14548 if test "$req_avail" = "no"; then
14549 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14553 if test "$kernel_tool_prefix" = "none" ; then
14554 # No kernel tools specified
14555 # Assume kernel tools == target tools with ELF wrapper
14556 aros_kernel_cc=$orig_target_cc
14557 aros_kernel_cxx=$orig_target_cxx
14558 aros_kernel_cpp="$orig_target_cpp"
14559 aros_kernel_ld=$orig_target_ld
14560 aros_kernel_as=$orig_target_as
14561 aros_kernel_ar=$orig_target_ar
14562 aros_kernel_ranlib=$orig_target_ranlib
14563 aros_kernel_nm=$orig_target_nm
14564 aros_kernel_strip=$orig_target_strip
14565 aros_kernel_objcopy=$orig_target_objcopy
14566 aros_kernel_objdump=$orig_target_objdump
14567 aros_kernel_isa_flags=$aros_isa_flags
14568 use_kernel_cc_wrapper=yes
14571 # At this point, all aros_kernel_* and aros_target_*
14572 # tools should be set up correctly
14574 CC="$aros_kernel_cc $kernel_tool_flags"
14575 CPP="$aros_kernel_cpp"
14577 #-----------------------------------------------------------------------------
14579 # Find all the tools we need to compile. This could be cross-compiling
14580 # though! If that is the case we use the GNU form of the target and
14581 # simply add this to the front of the binary name. This is rather simple,
14582 # but it should work under most circumstances.
14584 # The default tools are to use the same as the host, but only if the
14585 # host and target CPU are the same. With GCC this is normally enough.
14588 aros_cc_pre=""
14589 aros_shared_ld="$aros_host_ld"
14591 aros_target_mkdep="$aros_host_mkdep"
14593 # The default tools executables to be linked to.
14594 if test "$rescomp" != ""; then
14595 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14596 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 $as_echo_n "checking for $ac_word... " >&6; }
14599 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 case $aros_kernel_rescomp in
14603 [\\/]* | ?:[\\/]*)
14604 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14618 done
14619 done
14620 IFS=$as_save_IFS
14623 esac
14625 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14626 if test -n "$aros_kernel_rescomp"; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14628 $as_echo "$aros_kernel_rescomp" >&6; }
14629 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14635 req_avail=yes
14636 if test "$aros_kernel_rescomp" = ""; then
14637 req_avail=no
14639 if test "$aros_kernel_rescomp" = "no"; then
14640 req_avail=no
14642 if test "$req_avail" = "no"; then
14643 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14647 # Set up the sources for the symlink farm
14648 if test "$crosstools" = "yes"; then
14649 crosstools_target=tools-crosstools
14652 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14653 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14655 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14656 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14657 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14658 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14659 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14660 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14661 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14663 # aros_cc_pre is a variable that is added to the front of the compiler name
14664 # in the generated aros-gcc shell script. We need this to enable the cache
14665 # to work across cleaned builds. Also, support DISTCC using the correct
14666 # environment variable.
14669 if test "x${DISTCC}" != "x" ; then
14670 if test "x${CCACHE}" != "x" ; then
14671 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14672 else
14673 aros_cc_pre="${DISTCC} "
14675 else
14676 if test "x${CCACHE}" != "x" ; then
14677 aros_cc_pre="${CCACHE} "
14681 aros_target_nostdinc_cflags=-nostdinc
14683 aros_target_nostartup_ldflags=-nostartfiles
14685 aros_target_nix_ldflags=-nix
14687 aros_target_detach_ldflags=-detach
14689 aros_target_nostdlib_ldflags=-nostdlib
14692 aros_target_cc_path=
14694 # Target tools
14696 if test "$aros_target_toolchain" != "yes"; then
14697 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14698 if test "$GCC" = "yes"; then
14699 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14701 else
14702 # We do not know which c compiler version we are going to build and what we need to know
14703 # here is different for different versions so this will be set later during the
14704 # build of crosstools.
14705 if test "$aros_toolchain" = "gnu" ; then
14706 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14707 elif test "$aros_toolchain" = "llvm" ; then
14708 prefix="$AROS_CROSSTOOLSDIR/bin/"
14710 aros_target_cc_path=@aros_target_cc_path@
14712 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14713 aros_target_cc="${prefix}${toolchain_c_compiler}"
14714 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14715 aros_target_as="${prefix}${toolchain_as}"
14716 if test "${use_ld_wrapper}" = "yes"; then
14717 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14718 else
14719 aros_target_ld="${prefix}${toolchain_ld}"
14721 aros_toolchain_ld="${prefix}${toolchain_ld}"
14723 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14724 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14725 aros_target_objdump="${prefix}${toolchain_objdump}"
14726 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14727 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14728 aros_target_strip="${prefix}${toolchain_strip}"
14729 aros_plain_nm="${prefix}${toolchain_nm}"
14730 aros_plain_ar="${prefix}${toolchain_ar}"
14732 # Check whether --enable-includes was given.
14733 if test "${enable_includes+set}" = set; then :
14734 enableval=$enable_includes; aros_target_incl=$enable_includes
14735 else
14736 aros_target_incl=no
14740 if test "x$aros_target_incl" = "xno"; then
14741 if test "x$test_kernel_cc" != "xno"; then
14742 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14743 else
14744 aros_target_incl=
14748 if test "x$aros_kernel_includes" = "x"; then
14749 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14750 if test "x$aros_target_incl" != "x"; then
14751 aros_kernel_includes="-isystem $aros_target_incl"
14756 if test "x$test_kernel_cc" != "xno"; then
14757 if test "$aros_kernel_includes" != "" ; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14759 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14760 if test "$aros_kernel_cc_includes" = "" ; then
14761 # Try to guess where the directory is.
14762 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14763 if test -d $aros_kernel_cc_includes; then
14764 # Check if there is also an include-fixed directory and add it
14765 # to kernel compiler's include path as it may contain some of
14766 # the headers we need.
14767 if test -d "$aros_kernel_cc_includes"-fixed; then
14768 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14770 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14771 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14772 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14774 else
14775 # The directory doesn't exist, we need to do some more work.
14776 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14778 # These are the headers we're looking for.
14779 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14780 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14781 zutil.h stdint.h"
14783 dirs=
14784 for h in $headers; do
14785 # Which other headers are needed by each of the above?
14786 deps=$(echo "#include <$h>" | \
14787 $aros_kernel_cc -E -M - 2>/dev/null | \
14788 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14790 # Copy all the needed headers to a directory beneath gendir.
14791 for d in $deps; do
14792 h=$(basename $d)
14793 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14794 sed -n "s,^.*/include\(/.*\),\1,p")
14795 ! test -d $dir && mkdir -p $dir
14796 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14797 done
14798 done
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14802 $as_echo "$aros_kernel_cc_includes" >&6; }
14803 # Adding -nostdinc to kernel includes as they are always used together.
14804 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14808 if test "$crosstools" != "yes"; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14810 $as_echo_n "checking for the target compiler's include path... " >&6; }
14811 if test "$aros_target_cc_includes" = "" ; then
14812 #try to guess where the directory is
14813 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14814 if ! test -d $aros_target_cc_includes; then
14815 #the directory doesn't exist, we need to do some more work
14816 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14818 #these are the headers we're looking for
14819 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14820 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14821 zutil.h"
14823 dirs=
14824 for h in $headers; do
14825 #which other headers each of the above headers needs?
14826 deps=$(echo "#include <$h>" | \
14827 $orig_target_cc -E -M - 2>/dev/null | \
14828 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14830 #copy all the needed headers to a directory beneath gendir
14831 for d in $deps; do
14832 h=$(basename $d)
14833 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14834 sed -n "s,^.*/include\(/.*\),\1,p")
14835 ! test -d $dir && mkdir -p $dir
14836 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14837 done
14838 done
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14842 $as_echo "$aros_target_cc_includes" >&6; }
14843 else
14844 # We do not know which c compiler version we are going to build and what we need to know
14845 # here is different for different versions so this will be set later during the
14846 # build of crosstools.
14847 aros_target_cc_includes=@aros_target_cc_includes@
14851 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14852 # On GCC >= 4.0 -iquote should be used
14855 save_cc="$CC"
14856 save_cflags="$CFLAGS"
14857 if test "x$test_kernel_cc" != "xno"; then
14858 CFLAGS="-iquote."
14859 kernel_cflags_iquote=$host_cflags_iquote
14860 kernel_cflags_iquote_end=$host_cflags_iquote_end
14861 if test "x-$cross_compiling" = "x-yes"; then
14862 CC="$aros_kernel_cc"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14864 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14865 if test "x-$crosstools" != "x-yes"; then
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14870 main ()
14874 return 0;
14876 _ACEOF
14877 if ac_fn_c_try_compile "$LINENO"; then :
14878 use_no_stack_protector="yes"
14879 else
14880 use_no_stack_protector="no"
14882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14883 else
14884 # we do know it is supported for the smallest version of gcc we are going to build
14885 # we assume it's also supported by later versions
14886 use_no_stack_protector=yes
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14889 $as_echo "$use_no_stack_protector" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14891 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14892 if test "x-$crosstools" != "x-yes"; then
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14897 main ()
14901 return 0;
14903 _ACEOF
14904 if ac_fn_c_try_compile "$LINENO"; then :
14905 has_iquote="yes"
14906 else
14907 has_iquote="no"
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 else
14911 # we do know it is supported for the smallest version of gcc we are going to build
14912 # we assume it's also supported by later versions
14913 has_iquote=yes
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14916 $as_echo "$has_iquote" >&6; }
14917 if test "x-$has_iquote" = "x-yes" ; then
14918 kernel_cflags_iquote=-iquote
14919 kernel_cflags_iquote_end=
14920 else
14921 kernel_cflags_iquote=-I
14922 kernel_cflags_iquote_end=-I-
14925 if test "x-$use_no_stack_protector" = "x-yes" ; then
14926 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14929 #-----------------------------------------------------------------------------
14931 # Check if we can explicitly choose older version of symbol hashing
14933 CFLAGS="$save_cflags -Wl,--hash-style=sysv"
14934 CC="$aros_kernel_cc"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14936 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14941 main ()
14945 return 0;
14947 _ACEOF
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 use_hash_style="yes"
14950 else
14951 use_hash_style="no"
14953 rm -f core conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14956 $as_echo "$use_hash_style" >&6; }
14957 if test "x-$use_hash_style" = "x-yes" ; then
14958 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14960 else
14961 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14962 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14964 CC="$save_cc"
14965 CFLAGS="$save_cflags"
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14974 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14976 # Check whether --with-resolution was given.
14977 if test "${with_resolution+set}" = set; then :
14978 withval=$with_resolution; resolution=$withval
14979 else
14980 resolution=none
14983 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14984 if test "$resolution" = "yes" ; then
14985 resolution="none"
14987 if test "$resolution" = "no" ; then
14988 resolution="none"
14990 if test "$resolution" != "none" ; then
14991 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14992 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14993 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14996 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14997 aros_cv_nominal_width=$aros_nominal_width
14998 aros_cv_nominal_height=$aros_nominal_height
14999 aros_cv_nominal_depth=$aros_nominal_depth
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
15002 $as_echo_n "checking whether serial debug is enabled... " >&6; }
15004 # Check whether --with-serial-debug was given.
15005 if test "${with_serial_debug+set}" = set; then :
15006 withval=$with_serial_debug; serial_debug=$withval
15007 else
15008 serial_debug=none
15011 if test "$aros_serial_debug" = 0 ; then
15012 serial_debug_forced=""
15013 if test "$serial_debug" = "yes" ; then
15014 serial_debug="1"
15016 if test "$serial_debug" = "no" ; then
15017 serial_debug="none"
15019 else
15020 serial_debug_forced="(forced)"
15021 serial_debug=$aros_serial_debug
15023 if test "$serial_debug" != "none" ; then
15024 aros_serial_debug=$serial_debug
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
15026 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
15027 else
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
15033 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
15034 # Check whether --enable-palm_debug_hack was given.
15035 if test "${enable_palm_debug_hack+set}" = set; then :
15036 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
15037 else
15038 palm_debug_hack="no"
15041 if test "$palm_debug_hack" = "yes" ; then
15042 aros_palm_debug_hack="1"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
15045 $as_echo "$palm_debug_hack" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
15048 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
15049 # Check whether --enable-usb30_code was given.
15050 if test "${enable_usb30_code+set}" = set; then :
15051 enableval=$enable_usb30_code; usb30_code="yes"
15052 else
15053 usb30_code="no"
15056 if test "$usb30_code" = "yes" ; then
15057 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
15058 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
15061 $as_echo "$usb30_code" >&6; }
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
15064 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
15065 # Check whether --enable-nesting_supervisor was given.
15066 if test "${enable_nesting_supervisor+set}" = set; then :
15067 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
15068 else
15069 nesting_supervisor="no"
15072 if test "$nesting_supervisor" = "yes" ; then
15073 aros_nesting_supervisor="1"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
15076 $as_echo "$nesting_supervisor" >&6; }
15078 if test "$aros_enable_mmu" = "" ; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
15080 $as_echo_n "checking whether MMU support is enabled... " >&6; }
15081 # Check whether --enable-mmu was given.
15082 if test "${enable_mmu+set}" = set; then :
15083 enableval=$enable_mmu; aros_enable_mmu=$enableval
15084 else
15085 aros_enable_mmu="yes"
15088 if test "$aros_enable_mmu" = "" ; then
15089 aros_enable_mmu="yes"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
15092 $as_echo "$aros_enable_mmu" >&6; }
15094 if test "$aros_enable_mmu" = "no" ; then
15095 aros_enable_mmu="0"
15096 else
15097 aros_enable_mmu="1"
15101 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15103 if test "x-$need_dlopen" != "x-no" ; then
15104 save_libs="$LIBS"
15105 LIBS=""
15106 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15107 if test "x$ac_cv_func_dlopen" = xyes; then :
15108 have_dl="yes"
15109 else
15110 have_dl="no"
15113 if test "x-$have_dl" = "x-no" ; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15116 if ${ac_cv_lib_dl_dlopen+:} false; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 ac_check_lib_save_LIBS=$LIBS
15120 LIBS="-ldl $LIBS"
15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15124 /* Override any GCC internal prototype to avoid an error.
15125 Use char because int might match the return type of a GCC
15126 builtin and then its argument prototype would still apply. */
15127 #ifdef __cplusplus
15128 extern "C"
15129 #endif
15130 char dlopen ();
15132 main ()
15134 return dlopen ();
15136 return 0;
15138 _ACEOF
15139 if ac_fn_c_try_link "$LINENO"; then :
15140 ac_cv_lib_dl_dlopen=yes
15141 else
15142 ac_cv_lib_dl_dlopen=no
15144 rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15146 LIBS=$ac_check_lib_save_LIBS
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15150 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15151 have_dl="yes"
15152 aros_host_ldflags="$aros_host_ldflags -ldl"
15153 else
15154 have_dl="no"
15158 if test "x-$have_dl" = "x-no" ; then
15159 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
15161 LIBS="$save_libs"
15165 # Check whether --enable-x11_hidd was given.
15166 if test "${enable_x11_hidd+set}" = set; then :
15167 enableval=$enable_x11_hidd; x11_hidd="$enableval"
15168 else
15169 x11_hidd="$need_x11"
15172 case "x-$x11_hidd" in
15173 x-yes|x-no|x-auto) ;;
15174 *) x11_hidd="$need_x11" ;;
15175 esac
15177 ENABLE_X11=0
15179 if test "x-$x11_hidd" != "x-no" ; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15182 $as_echo_n "checking for X... " >&6; }
15185 # Check whether --with-x was given.
15186 if test "${with_x+set}" = set; then :
15187 withval=$with_x;
15190 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15191 if test "x$with_x" = xno; then
15192 # The user explicitly disabled X.
15193 have_x=disabled
15194 else
15195 case $x_includes,$x_libraries in #(
15196 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
15197 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 # One or both of the vars are not set, and there is no cached value.
15201 ac_x_includes=no ac_x_libraries=no
15202 rm -f -r conftest.dir
15203 if mkdir conftest.dir; then
15204 cd conftest.dir
15205 cat >Imakefile <<'_ACEOF'
15206 incroot:
15207 @echo incroot='${INCROOT}'
15208 usrlibdir:
15209 @echo usrlibdir='${USRLIBDIR}'
15210 libdir:
15211 @echo libdir='${LIBDIR}'
15212 _ACEOF
15213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15214 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15215 for ac_var in incroot usrlibdir libdir; do
15216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15217 done
15218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15219 for ac_extension in a so sl dylib la dll; do
15220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15222 ac_im_usrlibdir=$ac_im_libdir; break
15224 done
15225 # Screen out bogus values from the imake configuration. They are
15226 # bogus both because they are the default anyway, and because
15227 # using them would break gcc on systems where it needs fixed includes.
15228 case $ac_im_incroot in
15229 /usr/include) ac_x_includes= ;;
15230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15231 esac
15232 case $ac_im_usrlibdir in
15233 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15235 esac
15237 cd ..
15238 rm -f -r conftest.dir
15241 # Standard set of common directories for X headers.
15242 # Check X11 before X11Rn because it is often a symlink to the current release.
15243 ac_x_header_dirs='
15244 /usr/X11/include
15245 /usr/X11R7/include
15246 /usr/X11R6/include
15247 /usr/X11R5/include
15248 /usr/X11R4/include
15250 /usr/include/X11
15251 /usr/include/X11R7
15252 /usr/include/X11R6
15253 /usr/include/X11R5
15254 /usr/include/X11R4
15256 /usr/local/X11/include
15257 /usr/local/X11R7/include
15258 /usr/local/X11R6/include
15259 /usr/local/X11R5/include
15260 /usr/local/X11R4/include
15262 /usr/local/include/X11
15263 /usr/local/include/X11R7
15264 /usr/local/include/X11R6
15265 /usr/local/include/X11R5
15266 /usr/local/include/X11R4
15268 /usr/X386/include
15269 /usr/x386/include
15270 /usr/XFree86/include/X11
15272 /usr/include
15273 /usr/local/include
15274 /usr/unsupported/include
15275 /usr/athena/include
15276 /usr/local/x11r5/include
15277 /usr/lpp/Xamples/include
15279 /usr/openwin/include
15280 /usr/openwin/share/include'
15282 if test "$ac_x_includes" = no; then
15283 # Guess where to find include files, by looking for Xlib.h.
15284 # First, try using that file with no special directory specified.
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 #include <X11/Xlib.h>
15288 _ACEOF
15289 if ac_fn_c_try_cpp "$LINENO"; then :
15290 # We can compile using X headers with no special include directory.
15291 ac_x_includes=
15292 else
15293 for ac_dir in $ac_x_header_dirs; do
15294 if test -r "$ac_dir/X11/Xlib.h"; then
15295 ac_x_includes=$ac_dir
15296 break
15298 done
15300 rm -f conftest.err conftest.i conftest.$ac_ext
15301 fi # $ac_x_includes = no
15303 if test "$ac_x_libraries" = no; then
15304 # Check for the libraries.
15305 # See if we find them without any special options.
15306 # Don't add to $LIBS permanently.
15307 ac_save_LIBS=$LIBS
15308 LIBS="-lX11 $LIBS"
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include <X11/Xlib.h>
15313 main ()
15315 XrmInitialize ()
15317 return 0;
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 LIBS=$ac_save_LIBS
15322 # We can link X programs with no special library path.
15323 ac_x_libraries=
15324 else
15325 LIBS=$ac_save_LIBS
15326 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15328 # Don't even attempt the hair of trying to link an X program!
15329 for ac_extension in a so sl dylib la dll; do
15330 if test -r "$ac_dir/libX11.$ac_extension"; then
15331 ac_x_libraries=$ac_dir
15332 break 2
15334 done
15335 done
15337 rm -f core conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15339 fi # $ac_x_libraries = no
15341 case $ac_x_includes,$ac_x_libraries in #(
15342 no,* | *,no | *\'*)
15343 # Didn't find X, or a directory has "'" in its name.
15344 ac_cv_have_x="have_x=no";; #(
15346 # Record where we found X for the cache.
15347 ac_cv_have_x="have_x=yes\
15348 ac_x_includes='$ac_x_includes'\
15349 ac_x_libraries='$ac_x_libraries'"
15350 esac
15352 ;; #(
15353 *) have_x=yes;;
15354 esac
15355 eval "$ac_cv_have_x"
15356 fi # $with_x != no
15358 if test "$have_x" != yes; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15360 $as_echo "$have_x" >&6; }
15361 no_x=yes
15362 else
15363 # If each of the values was on the command line, it overrides each guess.
15364 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15365 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15366 # Update the cache value to reflect the command line values.
15367 ac_cv_have_x="have_x=yes\
15368 ac_x_includes='$x_includes'\
15369 ac_x_libraries='$x_libraries'"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15371 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15375 if test -n "$x_includes"; then
15376 X_CFLAGS="$X_CFLAGS -I$x_includes"
15379 if test -n "$x_libraries"; then
15380 X_LIBS="$X_LIBS -L$x_libraries"
15383 if test "x-$no_x" = "x-yes" ; then
15385 if test "x-$x11_hidd" != "x-auto" ; then
15386 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15389 else
15390 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15391 if test "x-$host_feature_glx" != "x-no" ; then
15392 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15394 ENABLE_X11=1
15396 aros_host_x11_cflags="$X_CFLAGS"
15397 aros_host_x11_ldflags="$X_LIBS -lX11"
15399 # Check whether --enable-x11_shm was given.
15400 if test "${enable_x11_shm+set}" = set; then :
15401 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15402 else
15403 x11_hidd_shm="auto"
15406 case "x-$x11_hidd_shm" in
15407 x-yes|x-no|x-auto) ;;
15408 *) x11_hidd_shm="auto" ;;
15409 esac
15411 have_xshm=no
15413 if test "x-$x11_hidd_shm" != "x-no" ; then
15415 for ac_header in sys/ipc.h
15416 do :
15417 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15418 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15419 cat >>confdefs.h <<_ACEOF
15420 #define HAVE_SYS_IPC_H 1
15421 _ACEOF
15425 done
15427 for ac_header in sys/shm.h
15428 do :
15429 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15430 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_SYS_SHM_H 1
15433 _ACEOF
15437 done
15440 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15442 save_cflags="$CFLAGS"
15443 save_ldflags="$LDFLAGS"
15444 CFLAGS="$CFLAGS $X_CFLAGS"
15445 LDFLAGS="$LDFLAGS $X_LIBS"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15447 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15448 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 ac_check_lib_save_LIBS=$LIBS
15452 LIBS="-lXext $LIBS"
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15456 /* Override any GCC internal prototype to avoid an error.
15457 Use char because int might match the return type of a GCC
15458 builtin and then its argument prototype would still apply. */
15459 #ifdef __cplusplus
15460 extern "C"
15461 #endif
15462 char XShmQueryExtension ();
15464 main ()
15466 return XShmQueryExtension ();
15468 return 0;
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"; then :
15472 ac_cv_lib_Xext_XShmQueryExtension=yes
15473 else
15474 ac_cv_lib_Xext_XShmQueryExtension=no
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478 LIBS=$ac_check_lib_save_LIBS
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15481 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15482 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15483 have_xshm=yes
15486 CFLAGS="$save_cflags"
15487 LDFLAGS="$save_ldflags"
15491 if test "x-$have_xshm" = "x-yes" ; then
15492 DO_XSHM_SUPPORT="1"
15493 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15494 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15495 else
15496 DO_XSHM_SUPPORT="0"
15500 # Check whether --enable-x11_vidmode was given.
15501 if test "${enable_x11_vidmode+set}" = set; then :
15502 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15503 else
15504 x11_hidd_vidmode="auto"
15507 case "x-$x11_hidd_vidmode" in
15508 x-yes|x-no|x-auto) ;;
15509 *) x11_hidd_vidmode="auto" ;;
15510 esac
15512 have_vidmode=no
15514 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15516 save_cflags="$CFLAGS"
15517 save_ldflags="$LDFLAGS"
15518 CFLAGS="$CFLAGS $X_CFLAGS"
15519 LDFLAGS="$LDFLAGS $X_LIBS"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15521 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15522 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524 else
15525 ac_check_lib_save_LIBS=$LIBS
15526 LIBS="-lXxf86vm $LIBS"
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 char XF86VidModeQueryExtension ();
15538 main ()
15540 return XF86VidModeQueryExtension ();
15542 return 0;
15544 _ACEOF
15545 if ac_fn_c_try_link "$LINENO"; then :
15546 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15547 else
15548 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15550 rm -f core conftest.err conftest.$ac_objext \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15555 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15556 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15557 have_vidmode=yes
15560 CFLAGS="$save_cflags"
15561 LDFLAGS="$save_ldflags"
15564 if test "x-$have_vidmode" = "x-yes" ; then
15565 DO_VIDMODE_SUPPORT="1"
15566 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15567 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15568 else
15569 DO_VIDMODE_SUPPORT="0"
15574 # Check whether --enable-sdl_hidd was given.
15575 if test "${enable_sdl_hidd+set}" = set; then :
15576 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15577 else
15578 sdl_hidd="auto"
15581 case "x-$sdl_hidd" in
15582 x-yes|x-no|x-auto) ;;
15583 *) sdl_hidd="auto" ;;
15584 esac
15586 if test "x-$sdl_hidd" != "x-no" ; then
15588 SDL_VERSION=1.2.5
15590 # Check whether --with-sdl-prefix was given.
15591 if test "${with_sdl_prefix+set}" = set; then :
15592 withval=$with_sdl_prefix; sdl_prefix="$withval"
15593 else
15594 sdl_prefix=""
15598 # Check whether --with-sdl-exec-prefix was given.
15599 if test "${with_sdl_exec_prefix+set}" = set; then :
15600 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15601 else
15602 sdl_exec_prefix=""
15605 # Check whether --enable-sdltest was given.
15606 if test "${enable_sdltest+set}" = set; then :
15607 enableval=$enable_sdltest;
15608 else
15609 enable_sdltest=yes
15613 if test x$sdl_exec_prefix != x ; then
15614 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15615 if test x${SDL_CONFIG+set} != xset ; then
15616 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15619 if test x$sdl_prefix != x ; then
15620 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15621 if test x${SDL_CONFIG+set} != xset ; then
15622 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15626 as_save_PATH="$PATH"
15627 if test "x$prefix" != xNONE; then
15628 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15630 # Extract the first word of "sdl-config", so it can be a program name with args.
15631 set dummy sdl-config; ac_word=$2
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633 $as_echo_n "checking for $ac_word... " >&6; }
15634 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 case $SDL_CONFIG in
15638 [\\/]* | ?:[\\/]*)
15639 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15643 for as_dir in $PATH
15645 IFS=$as_save_IFS
15646 test -z "$as_dir" && as_dir=.
15647 for ac_exec_ext in '' $ac_executable_extensions; do
15648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15649 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15651 break 2
15653 done
15654 done
15655 IFS=$as_save_IFS
15657 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15659 esac
15661 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15662 if test -n "$SDL_CONFIG"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15664 $as_echo "$SDL_CONFIG" >&6; }
15665 else
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15671 PATH="$as_save_PATH"
15672 min_sdl_version=$SDL_VERSION
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15674 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15675 no_sdl=""
15676 if test "$SDL_CONFIG" = "no" ; then
15677 no_sdl=yes
15678 else
15679 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15680 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15682 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15684 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15686 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15688 if test "x$enable_sdltest" = "xyes" ; then
15689 ac_save_CFLAGS="$CFLAGS"
15690 ac_save_CXXFLAGS="$CXXFLAGS"
15691 ac_save_LIBS="$LIBS"
15692 CFLAGS="$CFLAGS $SDL_CFLAGS"
15693 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15694 LIBS="$LIBS $SDL_LIBS"
15695 rm -f conf.sdltest
15696 if test "$cross_compiling" = yes; then :
15697 echo $ac_n "cross compiling; assumed OK... $ac_c"
15698 else
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15702 #include <stdio.h>
15703 #include <stdlib.h>
15704 #include <string.h>
15705 #include "SDL.h"
15707 char*
15708 my_strdup (char *str)
15710 char *new_str;
15712 if (str)
15714 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15715 strcpy (new_str, str);
15717 else
15718 new_str = NULL;
15720 return new_str;
15723 int main (int argc, char *argv[])
15725 int major, minor, micro;
15726 char *tmp_version;
15728 /* This hangs on some systems (?)
15729 system ("touch conf.sdltest");
15731 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15733 /* HP/UX 9 (%@#!) writes to sscanf strings */
15734 tmp_version = my_strdup("$min_sdl_version");
15735 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15736 printf("%s, bad version string\n", "$min_sdl_version");
15737 exit(1);
15740 if (($sdl_major_version > major) ||
15741 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15742 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15744 return 0;
15746 else
15748 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15749 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15750 printf("*** best to upgrade to the required version.\n");
15751 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15752 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15753 printf("*** config.cache before re-running configure\n");
15754 return 1;
15759 _ACEOF
15760 if ac_fn_c_try_run "$LINENO"; then :
15762 else
15763 no_sdl=yes
15765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15766 conftest.$ac_objext conftest.beam conftest.$ac_ext
15769 CFLAGS="$ac_save_CFLAGS"
15770 CXXFLAGS="$ac_save_CXXFLAGS"
15771 LIBS="$ac_save_LIBS"
15774 if test "x$no_sdl" = x ; then
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776 $as_echo "yes" >&6; }
15777 have_sdl="yes"
15778 else
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15781 if test "$SDL_CONFIG" = "no" ; then
15782 echo "*** The sdl-config script installed by SDL could not be found"
15783 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15784 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15785 echo "*** full path to sdl-config."
15786 else
15787 if test -f conf.sdltest ; then
15789 else
15790 echo "*** Could not run SDL test program, checking why..."
15791 CFLAGS="$CFLAGS $SDL_CFLAGS"
15792 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15793 LIBS="$LIBS $SDL_LIBS"
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15797 #include <stdio.h>
15798 #include "SDL.h"
15800 int main(int argc, char *argv[])
15801 { return 0; }
15802 #undef main
15803 #define main K_and_R_C_main
15806 main ()
15808 return 0;
15810 return 0;
15812 _ACEOF
15813 if ac_fn_c_try_link "$LINENO"; then :
15814 echo "*** The test program compiled, but did not run. This usually means"
15815 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15816 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15817 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15818 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15819 echo "*** is required on your system"
15820 echo "***"
15821 echo "*** If you have an old version installed, it is best to remove it, although"
15822 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15823 else
15824 echo "*** The test program failed to compile or link. See the file config.log for the"
15825 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15826 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15827 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15829 rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 CFLAGS="$ac_save_CFLAGS"
15832 CXXFLAGS="$ac_save_CXXFLAGS"
15833 LIBS="$ac_save_LIBS"
15836 SDL_CFLAGS=""
15837 SDL_LIBS=""
15838 have_sdl="no"
15842 rm -f conf.sdltest
15845 if test "x-$have_sdl" != "x-yes" ; then
15847 if test "x-$sdl_hidd" != "x-auto" ; then
15848 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15851 else
15852 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15853 aros_host_sdl_cflags=$SDL_CFLAGS
15854 aros_host_sdl_libs=$SDL_LIBS
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15862 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15863 # Check whether --enable-dbus was given.
15864 if test "${enable_dbus+set}" = set; then :
15865 enableval=$enable_dbus; dbus="yes"
15866 else
15867 dbus="no"
15870 if test "$dbus" = "yes" ; then
15871 ENABLE_DBUS=1
15872 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15873 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15874 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15875 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15876 else
15877 ENABLE_DBUS=0
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15880 $as_echo "$dbus" >&6; }
15882 if test "$use_kernel_cc_wrapper" = "yes" ; then
15883 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15886 aros_kernel_cppflags=$aros_config_cppflags
15887 aros_optimization_cflags="$optimization_level"
15888 if test "$optimization" = "default"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15890 $as_echo_n "checking default optimization level to use... " >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15892 $as_echo "$optimization_level" >&6; }
15895 if ! test "$gcc_default_cpu" = "" ; then
15896 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15899 if test "$use_libatomic" = "yes" ; then
15900 aros_cxx_libs="$aros_cxx_libs -latomic"
15903 aros_target_options+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15906 # Generic
15920 # Compatability with other Amiga-like operating systems
15923 # Host Related ###########################
15955 # Target Related #########################
16049 # Native version related
16054 # MMU related
16057 # Bootloader related
16060 # Unix/Hosted version related
16063 # ARM default GCC target related
16070 # Palm native version related
16073 # Apple iOS related
16078 # Android related
16084 # Debug related
16090 # Collect-aros stuff: "-ius" to ignore undefined symbols
16093 # C compiler related
16098 #ObjC compiler related
16101 #Java related
16104 # DBUS related
16111 #X11 related
16119 #SDL related
16123 # USB3.0 code
16126 case "$aros_flavour" in
16127 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
16128 aros_flavour="emulation" ;;
16129 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16130 aros_flavour="emulation" ;;
16131 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
16132 aros_flavour="standalone";;
16133 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16134 aros_flavour="standalone";;
16135 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
16136 aros_flavour="native" ;;
16137 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16138 aros_flavour="native" ;;
16139 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
16140 aros_flavour="linklib" ;;
16141 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16142 aros_flavour="palmnative" ;;
16143 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16144 aros_flavour="mac68knative" ;;
16145 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16146 aros_flavour="ppcnative" ;;
16147 esac
16149 if test ! -d ${aros_inc_dir} ; then
16150 ${MKDIR} ${aros_inc_dir}
16152 if test ! -d ${aros_geninc_dir} ; then
16153 ${MKDIR} ${aros_geninc_dir}
16155 if test ! -d ${aros_hostcfg_dir} ; then
16156 ${MKDIR} ${aros_hostcfg_dir}
16158 if test ! -d ${aros_targetcfg_dir} ; then
16159 ${MKDIR} ${aros_targetcfg_dir}
16161 if test ! -d ${aros_tools_dir} ; then
16162 ${MKDIR} ${aros_tools_dir}
16164 if test ! -d ${aros_scripts_dir} ; then
16165 ${MKDIR} ${aros_scripts_dir}
16168 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16171 # Generic build tools (metamake, etc)
16172 ac_config_commands="$ac_config_commands genmf-executable-support"
16174 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
16177 # Binutils
16178 ac_config_commands="$ac_config_commands binutils-support"
16180 if test "${use_ld_wrapper}" = "yes"; then
16181 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
16184 # Bare Elf support script and spec
16185 if test "${use_kernel_cc_wrapper}" = "yes"; then
16186 ac_config_commands="$ac_config_commands elf-compiler-support"
16188 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"
16192 # Host compiler support scripts and spec
16193 if test "${aros_target_toolchain}" = "no"; then
16194 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
16196 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"
16200 # Android support
16201 if test "$aros_target_variant" == "android"; then
16202 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16206 # cmake helper
16207 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16210 cat >confcache <<\_ACEOF
16211 # This file is a shell script that caches the results of configure
16212 # tests run on this system so they can be shared between configure
16213 # scripts and configure runs, see configure's option --config-cache.
16214 # It is not useful on other systems. If it contains results you don't
16215 # want to keep, you may remove or edit it.
16217 # config.status only pays attention to the cache file if you give it
16218 # the --recheck option to rerun configure.
16220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16222 # following values.
16224 _ACEOF
16226 # The following way of writing the cache mishandles newlines in values,
16227 # but we know of no workaround that is simple, portable, and efficient.
16228 # So, we kill variables containing newlines.
16229 # Ultrix sh set writes to stderr and can't be redirected directly,
16230 # and sets the high bit in the cache file unless we assign to the vars.
16232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16233 eval ac_val=\$$ac_var
16234 case $ac_val in #(
16235 *${as_nl}*)
16236 case $ac_var in #(
16237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16239 esac
16240 case $ac_var in #(
16241 _ | IFS | as_nl) ;; #(
16242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16243 *) { eval $ac_var=; unset $ac_var;} ;;
16244 esac ;;
16245 esac
16246 done
16248 (set) 2>&1 |
16249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16250 *${as_nl}ac_space=\ *)
16251 # `set' does not quote correctly, so add quotes: double-quote
16252 # substitution turns \\\\ into \\, and sed turns \\ into \.
16253 sed -n \
16254 "s/'/'\\\\''/g;
16255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16256 ;; #(
16258 # `set' quotes correctly as required by POSIX, so do not add quotes.
16259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16261 esac |
16262 sort
16264 sed '
16265 /^ac_cv_env_/b end
16266 t clear
16267 :clear
16268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16269 t end
16270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16271 :end' >>confcache
16272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16273 if test -w "$cache_file"; then
16274 if test "x$cache_file" != "x/dev/null"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16276 $as_echo "$as_me: updating cache $cache_file" >&6;}
16277 if test ! -f "$cache_file" || test -h "$cache_file"; then
16278 cat confcache >"$cache_file"
16279 else
16280 case $cache_file in #(
16281 */* | ?:*)
16282 mv -f confcache "$cache_file"$$ &&
16283 mv -f "$cache_file"$$ "$cache_file" ;; #(
16285 mv -f confcache "$cache_file" ;;
16286 esac
16289 else
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16294 rm -f confcache
16296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16297 # Let make expand exec_prefix.
16298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16300 DEFS=-DHAVE_CONFIG_H
16302 ac_libobjs=
16303 ac_ltlibobjs=
16305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16306 # 1. Remove the extension, and $U if already installed.
16307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16310 # will be set to the directory where LIBOBJS objects are built.
16311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16313 done
16314 LIBOBJS=$ac_libobjs
16316 LTLIBOBJS=$ac_ltlibobjs
16320 : "${CONFIG_STATUS=./config.status}"
16321 ac_write_fail=0
16322 ac_clean_files_save=$ac_clean_files
16323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16326 as_write_fail=0
16327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16328 #! $SHELL
16329 # Generated by $as_me.
16330 # Run this file to recreate the current configuration.
16331 # Compiler output produced by configure, useful for debugging
16332 # configure, is in config.log if it exists.
16334 debug=false
16335 ac_cs_recheck=false
16336 ac_cs_silent=false
16338 SHELL=\${CONFIG_SHELL-$SHELL}
16339 export SHELL
16340 _ASEOF
16341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16342 ## -------------------- ##
16343 ## M4sh Initialization. ##
16344 ## -------------------- ##
16346 # Be more Bourne compatible
16347 DUALCASE=1; export DUALCASE # for MKS sh
16348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16349 emulate sh
16350 NULLCMD=:
16351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16352 # is contrary to our usage. Disable this feature.
16353 alias -g '${1+"$@"}'='"$@"'
16354 setopt NO_GLOB_SUBST
16355 else
16356 case `(set -o) 2>/dev/null` in #(
16357 *posix*) :
16358 set -o posix ;; #(
16359 *) :
16361 esac
16365 as_nl='
16367 export as_nl
16368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16369 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16372 # Prefer a ksh shell builtin over an external printf program on Solaris,
16373 # but without wasting forks for bash or zsh.
16374 if test -z "$BASH_VERSION$ZSH_VERSION" \
16375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='print -r --'
16377 as_echo_n='print -rn --'
16378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16379 as_echo='printf %s\n'
16380 as_echo_n='printf %s'
16381 else
16382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16384 as_echo_n='/usr/ucb/echo -n'
16385 else
16386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16387 as_echo_n_body='eval
16388 arg=$1;
16389 case $arg in #(
16390 *"$as_nl"*)
16391 expr "X$arg" : "X\\(.*\\)$as_nl";
16392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16393 esac;
16394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16396 export as_echo_n_body
16397 as_echo_n='sh -c $as_echo_n_body as_echo'
16399 export as_echo_body
16400 as_echo='sh -c $as_echo_body as_echo'
16403 # The user is always right.
16404 if test "${PATH_SEPARATOR+set}" != set; then
16405 PATH_SEPARATOR=:
16406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16408 PATH_SEPARATOR=';'
16413 # IFS
16414 # We need space, tab and new line, in precisely that order. Quoting is
16415 # there to prevent editors from complaining about space-tab.
16416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16417 # splitting by setting IFS to empty value.)
16418 IFS=" "" $as_nl"
16420 # Find who we are. Look in the path if we contain no directory separator.
16421 as_myself=
16422 case $0 in #((
16423 *[\\/]* ) as_myself=$0 ;;
16424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16425 for as_dir in $PATH
16427 IFS=$as_save_IFS
16428 test -z "$as_dir" && as_dir=.
16429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16430 done
16431 IFS=$as_save_IFS
16434 esac
16435 # We did not find ourselves, most probably we were run as `sh COMMAND'
16436 # in which case we are not to be found in the path.
16437 if test "x$as_myself" = x; then
16438 as_myself=$0
16440 if test ! -f "$as_myself"; then
16441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16442 exit 1
16445 # Unset variables that we do not need and which cause bugs (e.g. in
16446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16447 # suppresses any "Segmentation fault" message there. '((' could
16448 # trigger a bug in pdksh 5.2.14.
16449 for as_var in BASH_ENV ENV MAIL MAILPATH
16450 do eval test x\${$as_var+set} = xset \
16451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16452 done
16453 PS1='$ '
16454 PS2='> '
16455 PS4='+ '
16457 # NLS nuisances.
16458 LC_ALL=C
16459 export LC_ALL
16460 LANGUAGE=C
16461 export LANGUAGE
16463 # CDPATH.
16464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16468 # ----------------------------------------
16469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16471 # script with STATUS, using 1 if that was 0.
16472 as_fn_error ()
16474 as_status=$1; test $as_status -eq 0 && as_status=1
16475 if test "$4"; then
16476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16479 $as_echo "$as_me: error: $2" >&2
16480 as_fn_exit $as_status
16481 } # as_fn_error
16484 # as_fn_set_status STATUS
16485 # -----------------------
16486 # Set $? to STATUS, without forking.
16487 as_fn_set_status ()
16489 return $1
16490 } # as_fn_set_status
16492 # as_fn_exit STATUS
16493 # -----------------
16494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16495 as_fn_exit ()
16497 set +e
16498 as_fn_set_status $1
16499 exit $1
16500 } # as_fn_exit
16502 # as_fn_unset VAR
16503 # ---------------
16504 # Portably unset VAR.
16505 as_fn_unset ()
16507 { eval $1=; unset $1;}
16509 as_unset=as_fn_unset
16510 # as_fn_append VAR VALUE
16511 # ----------------------
16512 # Append the text in VALUE to the end of the definition contained in VAR. Take
16513 # advantage of any shell optimizations that allow amortized linear growth over
16514 # repeated appends, instead of the typical quadratic growth present in naive
16515 # implementations.
16516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16517 eval 'as_fn_append ()
16519 eval $1+=\$2
16521 else
16522 as_fn_append ()
16524 eval $1=\$$1\$2
16526 fi # as_fn_append
16528 # as_fn_arith ARG...
16529 # ------------------
16530 # Perform arithmetic evaluation on the ARGs, and store the result in the
16531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16532 # must be portable across $(()) and expr.
16533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16534 eval 'as_fn_arith ()
16536 as_val=$(( $* ))
16538 else
16539 as_fn_arith ()
16541 as_val=`expr "$@" || test $? -eq 1`
16543 fi # as_fn_arith
16546 if expr a : '\(a\)' >/dev/null 2>&1 &&
16547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16548 as_expr=expr
16549 else
16550 as_expr=false
16553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16554 as_basename=basename
16555 else
16556 as_basename=false
16559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16560 as_dirname=dirname
16561 else
16562 as_dirname=false
16565 as_me=`$as_basename -- "$0" ||
16566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16567 X"$0" : 'X\(//\)$' \| \
16568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16569 $as_echo X/"$0" |
16570 sed '/^.*\/\([^/][^/]*\)\/*$/{
16571 s//\1/
16574 /^X\/\(\/\/\)$/{
16575 s//\1/
16578 /^X\/\(\/\).*/{
16579 s//\1/
16582 s/.*/./; q'`
16584 # Avoid depending upon Character Ranges.
16585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16588 as_cr_digits='0123456789'
16589 as_cr_alnum=$as_cr_Letters$as_cr_digits
16591 ECHO_C= ECHO_N= ECHO_T=
16592 case `echo -n x` in #(((((
16593 -n*)
16594 case `echo 'xy\c'` in
16595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16596 xy) ECHO_C='\c';;
16597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16598 ECHO_T=' ';;
16599 esac;;
16601 ECHO_N='-n';;
16602 esac
16604 rm -f conf$$ conf$$.exe conf$$.file
16605 if test -d conf$$.dir; then
16606 rm -f conf$$.dir/conf$$.file
16607 else
16608 rm -f conf$$.dir
16609 mkdir conf$$.dir 2>/dev/null
16611 if (echo >conf$$.file) 2>/dev/null; then
16612 if ln -s conf$$.file conf$$ 2>/dev/null; then
16613 as_ln_s='ln -s'
16614 # ... but there are two gotchas:
16615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16617 # In both cases, we have to default to `cp -pR'.
16618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16619 as_ln_s='cp -pR'
16620 elif ln conf$$.file conf$$ 2>/dev/null; then
16621 as_ln_s=ln
16622 else
16623 as_ln_s='cp -pR'
16625 else
16626 as_ln_s='cp -pR'
16628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16629 rmdir conf$$.dir 2>/dev/null
16632 # as_fn_mkdir_p
16633 # -------------
16634 # Create "$as_dir" as a directory, including parents if necessary.
16635 as_fn_mkdir_p ()
16638 case $as_dir in #(
16639 -*) as_dir=./$as_dir;;
16640 esac
16641 test -d "$as_dir" || eval $as_mkdir_p || {
16642 as_dirs=
16643 while :; do
16644 case $as_dir in #(
16645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16646 *) as_qdir=$as_dir;;
16647 esac
16648 as_dirs="'$as_qdir' $as_dirs"
16649 as_dir=`$as_dirname -- "$as_dir" ||
16650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16651 X"$as_dir" : 'X\(//\)[^/]' \| \
16652 X"$as_dir" : 'X\(//\)$' \| \
16653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16654 $as_echo X"$as_dir" |
16655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16656 s//\1/
16659 /^X\(\/\/\)[^/].*/{
16660 s//\1/
16663 /^X\(\/\/\)$/{
16664 s//\1/
16667 /^X\(\/\).*/{
16668 s//\1/
16671 s/.*/./; q'`
16672 test -d "$as_dir" && break
16673 done
16674 test -z "$as_dirs" || eval "mkdir $as_dirs"
16675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16678 } # as_fn_mkdir_p
16679 if mkdir -p . 2>/dev/null; then
16680 as_mkdir_p='mkdir -p "$as_dir"'
16681 else
16682 test -d ./-p && rmdir ./-p
16683 as_mkdir_p=false
16687 # as_fn_executable_p FILE
16688 # -----------------------
16689 # Test if FILE is an executable regular file.
16690 as_fn_executable_p ()
16692 test -f "$1" && test -x "$1"
16693 } # as_fn_executable_p
16694 as_test_x='test -x'
16695 as_executable_p=as_fn_executable_p
16697 # Sed expression to map a string onto a valid CPP name.
16698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16700 # Sed expression to map a string onto a valid variable name.
16701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16704 exec 6>&1
16705 ## ----------------------------------- ##
16706 ## Main body of $CONFIG_STATUS script. ##
16707 ## ----------------------------------- ##
16708 _ASEOF
16709 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16712 # Save the log message, to keep $0 and so on meaningful, and to
16713 # report actual input values of CONFIG_FILES etc. instead of their
16714 # values after options handling.
16715 ac_log="
16716 This file was extended by $as_me, which was
16717 generated by GNU Autoconf 2.69. Invocation command line was
16719 CONFIG_FILES = $CONFIG_FILES
16720 CONFIG_HEADERS = $CONFIG_HEADERS
16721 CONFIG_LINKS = $CONFIG_LINKS
16722 CONFIG_COMMANDS = $CONFIG_COMMANDS
16723 $ $0 $@
16725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16728 _ACEOF
16730 case $ac_config_files in *"
16731 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16732 esac
16734 case $ac_config_headers in *"
16735 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16736 esac
16739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16740 # Files that config.status was made for.
16741 config_files="$ac_config_files"
16742 config_headers="$ac_config_headers"
16743 config_commands="$ac_config_commands"
16745 _ACEOF
16747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16748 ac_cs_usage="\
16749 \`$as_me' instantiates files and other configuration actions
16750 from templates according to the current configuration. Unless the files
16751 and actions are specified as TAGs, all are instantiated by default.
16753 Usage: $0 [OPTION]... [TAG]...
16755 -h, --help print this help, then exit
16756 -V, --version print version number and configuration settings, then exit
16757 --config print configuration, then exit
16758 -q, --quiet, --silent
16759 do not print progress messages
16760 -d, --debug don't remove temporary files
16761 --recheck update $as_me by reconfiguring in the same conditions
16762 --file=FILE[:TEMPLATE]
16763 instantiate the configuration file FILE
16764 --header=FILE[:TEMPLATE]
16765 instantiate the configuration header FILE
16767 Configuration files:
16768 $config_files
16770 Configuration headers:
16771 $config_headers
16773 Configuration commands:
16774 $config_commands
16776 Report bugs to the package provider."
16778 _ACEOF
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16781 ac_cs_version="\\
16782 config.status
16783 configured by $0, generated by GNU Autoconf 2.69,
16784 with options \\"\$ac_cs_config\\"
16786 Copyright (C) 2012 Free Software Foundation, Inc.
16787 This config.status script is free software; the Free Software Foundation
16788 gives unlimited permission to copy, distribute and modify it."
16790 ac_pwd='$ac_pwd'
16791 srcdir='$srcdir'
16792 test -n "\$AWK" || AWK=awk
16793 _ACEOF
16795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16796 # The default lists apply if the user does not specify any file.
16797 ac_need_defaults=:
16798 while test $# != 0
16800 case $1 in
16801 --*=?*)
16802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16804 ac_shift=:
16806 --*=)
16807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16808 ac_optarg=
16809 ac_shift=:
16812 ac_option=$1
16813 ac_optarg=$2
16814 ac_shift=shift
16816 esac
16818 case $ac_option in
16819 # Handling of the options.
16820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16821 ac_cs_recheck=: ;;
16822 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16823 $as_echo "$ac_cs_version"; exit ;;
16824 --config | --confi | --conf | --con | --co | --c )
16825 $as_echo "$ac_cs_config"; exit ;;
16826 --debug | --debu | --deb | --de | --d | -d )
16827 debug=: ;;
16828 --file | --fil | --fi | --f )
16829 $ac_shift
16830 case $ac_optarg in
16831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16832 '') as_fn_error $? "missing file argument" ;;
16833 esac
16834 as_fn_append CONFIG_FILES " '$ac_optarg'"
16835 ac_need_defaults=false;;
16836 --header | --heade | --head | --hea )
16837 $ac_shift
16838 case $ac_optarg in
16839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16840 esac
16841 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16842 ac_need_defaults=false;;
16843 --he | --h)
16844 # Conflict between --help and --header
16845 as_fn_error $? "ambiguous option: \`$1'
16846 Try \`$0 --help' for more information.";;
16847 --help | --hel | -h )
16848 $as_echo "$ac_cs_usage"; exit ;;
16849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16851 ac_cs_silent=: ;;
16853 # This is an error.
16854 -*) as_fn_error $? "unrecognized option: \`$1'
16855 Try \`$0 --help' for more information." ;;
16857 *) as_fn_append ac_config_targets " $1"
16858 ac_need_defaults=false ;;
16860 esac
16861 shift
16862 done
16864 ac_configure_extra_args=
16866 if $ac_cs_silent; then
16867 exec 6>/dev/null
16868 ac_configure_extra_args="$ac_configure_extra_args --silent"
16871 _ACEOF
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 if \$ac_cs_recheck; then
16874 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16875 shift
16876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16877 CONFIG_SHELL='$SHELL'
16878 export CONFIG_SHELL
16879 exec "\$@"
16882 _ACEOF
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16884 exec 5>>config.log
16886 echo
16887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16888 ## Running $as_me. ##
16889 _ASBOX
16890 $as_echo "$ac_log"
16891 } >&5
16893 _ACEOF
16894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896 # INIT-COMMANDS
16899 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16900 aros_tools_dir=${aros_tools_dir}
16904 aros_host_exe_suffix=${aros_host_exe_suffix}
16905 aros_tools_dir=${aros_tools_dir}
16906 aros_target_cpu=${aros_target_cpu}
16907 aros_target_arch=${aros_target_arch}
16908 aros_target_suffix=${aros_target_suffix}
16909 orig_target_nm=${orig_target_nm}
16910 orig_target_as=${orig_target_as}
16911 orig_target_ar=${orig_target_ar}
16912 orig_target_ranlib=${orig_target_ranlib}
16913 orig_target_objdump=${orig_target_objdump}
16914 orig_target_objcopy=${orig_target_objcopy}
16915 orig_target_strip=${orig_target_strip}
16916 aros_kernel_ld=${aros_kernel_ld}
16920 aros_host_exe_suffix=${aros_host_exe_suffix}
16921 aros_tools_dir=${aros_tools_dir}
16922 aros_target_cpu=${aros_target_cpu}
16923 aros_target_arch=${aros_target_arch}
16924 aros_target_suffix=${aros_target_suffix}
16925 aros_kernel_ld=${aros_kernel_ld}
16929 aros_host_exe_suffix=${aros_host_exe_suffix}
16930 aros_tools_dir=${aros_tools_dir}
16931 aros_target_cpu=${aros_target_cpu}
16932 aros_target_arch=${aros_target_arch}
16933 aros_target_suffix=${aros_target_suffix}
16937 _ACEOF
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 # Handling of arguments.
16942 for ac_config_target in $ac_config_targets
16944 case $ac_config_target in
16945 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16946 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16948 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16949 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16950 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16951 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16952 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16953 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16954 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16955 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16956 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16957 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16958 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16959 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16960 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16961 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
16962 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16963 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16964 "${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" ;;
16965 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16966 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16967 "${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" ;;
16968 "${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" ;;
16969 "${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" ;;
16970 "${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" ;;
16971 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16973 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16974 esac
16975 done
16978 # If the user did not use the arguments to specify the items to instantiate,
16979 # then the envvar interface is used. Set only those that are not.
16980 # We use the long form for the default assignment because of an extremely
16981 # bizarre bug on SunOS 4.1.3.
16982 if $ac_need_defaults; then
16983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16988 # Have a temporary directory for convenience. Make it in the build tree
16989 # simply because there is no reason against having it here, and in addition,
16990 # creating and moving files from /tmp can sometimes cause problems.
16991 # Hook for its removal unless debugging.
16992 # Note that there is a small window in which the directory will not be cleaned:
16993 # after its creation but before its name has been assigned to `$tmp'.
16994 $debug ||
16996 tmp= ac_tmp=
16997 trap 'exit_status=$?
16998 : "${ac_tmp:=$tmp}"
16999 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17001 trap 'as_fn_exit 1' 1 2 13 15
17003 # Create a (secure) tmp directory for tmp files.
17006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17007 test -d "$tmp"
17008 } ||
17010 tmp=./conf$$-$RANDOM
17011 (umask 077 && mkdir "$tmp")
17012 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17013 ac_tmp=$tmp
17015 # Set up the scripts for CONFIG_FILES section.
17016 # No need to generate them if there are no CONFIG_FILES.
17017 # This happens for instance with `./config.status config.h'.
17018 if test -n "$CONFIG_FILES"; then
17021 ac_cr=`echo X | tr X '\015'`
17022 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17023 # But we know of no other shell where ac_cr would be empty at this
17024 # point, so we can use a bashism as a fallback.
17025 if test "x$ac_cr" = x; then
17026 eval ac_cr=\$\'\\r\'
17028 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17029 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17030 ac_cs_awk_cr='\\r'
17031 else
17032 ac_cs_awk_cr=$ac_cr
17035 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17036 _ACEOF
17040 echo "cat >conf$$subs.awk <<_ACEOF" &&
17041 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17042 echo "_ACEOF"
17043 } >conf$$subs.sh ||
17044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17045 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17046 ac_delim='%!_!# '
17047 for ac_last_try in false false false false false :; do
17048 . ./conf$$subs.sh ||
17049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17051 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17052 if test $ac_delim_n = $ac_delim_num; then
17053 break
17054 elif $ac_last_try; then
17055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17056 else
17057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17059 done
17060 rm -f conf$$subs.sh
17062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17064 _ACEOF
17065 sed -n '
17067 s/^/S["/; s/!.*/"]=/
17070 s/^[^!]*!//
17071 :repl
17072 t repl
17073 s/'"$ac_delim"'$//
17074 t delim
17077 s/\(.\{148\}\)..*/\1/
17078 t more1
17079 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17082 b repl
17083 :more1
17084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17087 s/.\{148\}//
17088 t nl
17089 :delim
17091 s/\(.\{148\}\)..*/\1/
17092 t more2
17093 s/["\\]/\\&/g; s/^/"/; s/$/"/
17096 :more2
17097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17100 s/.\{148\}//
17101 t delim
17102 ' <conf$$subs.awk | sed '
17103 /^[^""]/{
17105 s/\n//
17107 ' >>$CONFIG_STATUS || ac_write_fail=1
17108 rm -f conf$$subs.awk
17109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17110 _ACAWK
17111 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17112 for (key in S) S_is_set[key] = 1
17113 FS = "\a"
17117 line = $ 0
17118 nfields = split(line, field, "@")
17119 substed = 0
17120 len = length(field[1])
17121 for (i = 2; i < nfields; i++) {
17122 key = field[i]
17123 keylen = length(key)
17124 if (S_is_set[key]) {
17125 value = S[key]
17126 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17127 len += length(value) + length(field[++i])
17128 substed = 1
17129 } else
17130 len += 1 + keylen
17133 print line
17136 _ACAWK
17137 _ACEOF
17138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17140 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17141 else
17143 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17144 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17145 _ACEOF
17147 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17148 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17149 # trailing colons and then remove the whole line if VPATH becomes empty
17150 # (actually we leave an empty line to preserve line numbers).
17151 if test "x$srcdir" = x.; then
17152 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17154 s///
17155 s/^/:/
17156 s/[ ]*$/:/
17157 s/:\$(srcdir):/:/g
17158 s/:\${srcdir}:/:/g
17159 s/:@srcdir@:/:/g
17160 s/^:*//
17161 s/:*$//
17163 s/\(=[ ]*\).*/\1/
17165 s/\n//
17166 s/^[^=]*=[ ]*$//
17170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171 fi # test -n "$CONFIG_FILES"
17173 # Set up the scripts for CONFIG_HEADERS section.
17174 # No need to generate them if there are no CONFIG_HEADERS.
17175 # This happens for instance with `./config.status Makefile'.
17176 if test -n "$CONFIG_HEADERS"; then
17177 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17178 BEGIN {
17179 _ACEOF
17181 # Transform confdefs.h into an awk script `defines.awk', embedded as
17182 # here-document in config.status, that substitutes the proper values into
17183 # config.h.in to produce config.h.
17185 # Create a delimiter string that does not exist in confdefs.h, to ease
17186 # handling of long lines.
17187 ac_delim='%!_!# '
17188 for ac_last_try in false false :; do
17189 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17190 if test -z "$ac_tt"; then
17191 break
17192 elif $ac_last_try; then
17193 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17194 else
17195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17197 done
17199 # For the awk script, D is an array of macro values keyed by name,
17200 # likewise P contains macro parameters if any. Preserve backslash
17201 # newline sequences.
17203 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17204 sed -n '
17205 s/.\{148\}/&'"$ac_delim"'/g
17206 t rset
17207 :rset
17208 s/^[ ]*#[ ]*define[ ][ ]*/ /
17209 t def
17211 :def
17212 s/\\$//
17213 t bsnl
17214 s/["\\]/\\&/g
17215 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17216 D["\1"]=" \3"/p
17217 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17219 :bsnl
17220 s/["\\]/\\&/g
17221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17222 D["\1"]=" \3\\\\\\n"\\/p
17223 t cont
17224 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17225 t cont
17227 :cont
17229 s/.\{148\}/&'"$ac_delim"'/g
17230 t clear
17231 :clear
17232 s/\\$//
17233 t bsnlc
17234 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17236 :bsnlc
17237 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17238 b cont
17239 ' <confdefs.h | sed '
17240 s/'"$ac_delim"'/"\\\
17241 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17244 for (key in D) D_is_set[key] = 1
17245 FS = "\a"
17247 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17248 line = \$ 0
17249 split(line, arg, " ")
17250 if (arg[1] == "#") {
17251 defundef = arg[2]
17252 mac1 = arg[3]
17253 } else {
17254 defundef = substr(arg[1], 2)
17255 mac1 = arg[2]
17257 split(mac1, mac2, "(") #)
17258 macro = mac2[1]
17259 prefix = substr(line, 1, index(line, defundef) - 1)
17260 if (D_is_set[macro]) {
17261 # Preserve the white space surrounding the "#".
17262 print prefix "define", macro P[macro] D[macro]
17263 next
17264 } else {
17265 # Replace #undef with comments. This is necessary, for example,
17266 # in the case of _POSIX_SOURCE, which is predefined and required
17267 # on some systems where configure will not decide to define it.
17268 if (defundef == "undef") {
17269 print "/*", prefix defundef, macro, "*/"
17270 next
17274 { print }
17275 _ACAWK
17276 _ACEOF
17277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17278 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17279 fi # test -n "$CONFIG_HEADERS"
17282 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17283 shift
17284 for ac_tag
17286 case $ac_tag in
17287 :[FHLC]) ac_mode=$ac_tag; continue;;
17288 esac
17289 case $ac_mode$ac_tag in
17290 :[FHL]*:*);;
17291 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17292 :[FH]-) ac_tag=-:-;;
17293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17294 esac
17295 ac_save_IFS=$IFS
17296 IFS=:
17297 set x $ac_tag
17298 IFS=$ac_save_IFS
17299 shift
17300 ac_file=$1
17301 shift
17303 case $ac_mode in
17304 :L) ac_source=$1;;
17305 :[FH])
17306 ac_file_inputs=
17307 for ac_f
17309 case $ac_f in
17310 -) ac_f="$ac_tmp/stdin";;
17311 *) # Look for the file first in the build tree, then in the source tree
17312 # (if the path is not absolute). The absolute path cannot be DOS-style,
17313 # because $ac_f cannot contain `:'.
17314 test -f "$ac_f" ||
17315 case $ac_f in
17316 [\\/$]*) false;;
17317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17318 esac ||
17319 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17320 esac
17321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17322 as_fn_append ac_file_inputs " '$ac_f'"
17323 done
17325 # Let's still pretend it is `configure' which instantiates (i.e., don't
17326 # use $as_me), people would be surprised to read:
17327 # /* config.h. Generated by config.status. */
17328 configure_input='Generated from '`
17329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17330 `' by configure.'
17331 if test x"$ac_file" != x-; then
17332 configure_input="$ac_file. $configure_input"
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17334 $as_echo "$as_me: creating $ac_file" >&6;}
17336 # Neutralize special characters interpreted by sed in replacement strings.
17337 case $configure_input in #(
17338 *\&* | *\|* | *\\* )
17339 ac_sed_conf_input=`$as_echo "$configure_input" |
17340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17341 *) ac_sed_conf_input=$configure_input;;
17342 esac
17344 case $ac_tag in
17345 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17347 esac
17349 esac
17351 ac_dir=`$as_dirname -- "$ac_file" ||
17352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17353 X"$ac_file" : 'X\(//\)[^/]' \| \
17354 X"$ac_file" : 'X\(//\)$' \| \
17355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17356 $as_echo X"$ac_file" |
17357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17358 s//\1/
17361 /^X\(\/\/\)[^/].*/{
17362 s//\1/
17365 /^X\(\/\/\)$/{
17366 s//\1/
17369 /^X\(\/\).*/{
17370 s//\1/
17373 s/.*/./; q'`
17374 as_dir="$ac_dir"; as_fn_mkdir_p
17375 ac_builddir=.
17377 case "$ac_dir" in
17378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17381 # A ".." for each directory in $ac_dir_suffix.
17382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17383 case $ac_top_builddir_sub in
17384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17386 esac ;;
17387 esac
17388 ac_abs_top_builddir=$ac_pwd
17389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17390 # for backward compatibility:
17391 ac_top_builddir=$ac_top_build_prefix
17393 case $srcdir in
17394 .) # We are building in place.
17395 ac_srcdir=.
17396 ac_top_srcdir=$ac_top_builddir_sub
17397 ac_abs_top_srcdir=$ac_pwd ;;
17398 [\\/]* | ?:[\\/]* ) # Absolute name.
17399 ac_srcdir=$srcdir$ac_dir_suffix;
17400 ac_top_srcdir=$srcdir
17401 ac_abs_top_srcdir=$srcdir ;;
17402 *) # Relative name.
17403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17404 ac_top_srcdir=$ac_top_build_prefix$srcdir
17405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17406 esac
17407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17410 case $ac_mode in
17413 # CONFIG_FILE
17416 _ACEOF
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17419 # If the template does not know about datarootdir, expand it.
17420 # FIXME: This hack should be removed a few years after 2.60.
17421 ac_datarootdir_hack=; ac_datarootdir_seen=
17422 ac_sed_dataroot='
17423 /datarootdir/ {
17427 /@datadir@/p
17428 /@docdir@/p
17429 /@infodir@/p
17430 /@localedir@/p
17431 /@mandir@/p'
17432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17433 *datarootdir*) ac_datarootdir_seen=yes;;
17434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17437 _ACEOF
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 ac_datarootdir_hack='
17440 s&@datadir@&$datadir&g
17441 s&@docdir@&$docdir&g
17442 s&@infodir@&$infodir&g
17443 s&@localedir@&$localedir&g
17444 s&@mandir@&$mandir&g
17445 s&\\\${datarootdir}&$datarootdir&g' ;;
17446 esac
17447 _ACEOF
17449 # Neutralize VPATH when `$srcdir' = `.'.
17450 # Shell code in configure.ac might set extrasub.
17451 # FIXME: do we really want to maintain this feature?
17452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17453 ac_sed_extra="$ac_vpsub
17454 $extrasub
17455 _ACEOF
17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17459 s|@configure_input@|$ac_sed_conf_input|;t t
17460 s&@top_builddir@&$ac_top_builddir_sub&;t t
17461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17462 s&@srcdir@&$ac_srcdir&;t t
17463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17464 s&@top_srcdir@&$ac_top_srcdir&;t t
17465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17466 s&@builddir@&$ac_builddir&;t t
17467 s&@abs_builddir@&$ac_abs_builddir&;t t
17468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17469 $ac_datarootdir_hack
17471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17472 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17475 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17477 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17479 which seems to be undefined. Please make sure it is defined" >&5
17480 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17481 which seems to be undefined. Please make sure it is defined" >&2;}
17483 rm -f "$ac_tmp/stdin"
17484 case $ac_file in
17485 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17486 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17487 esac \
17488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17492 # CONFIG_HEADER
17494 if test x"$ac_file" != x-; then
17496 $as_echo "/* $configure_input */" \
17497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17498 } >"$ac_tmp/config.h" \
17499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17500 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17502 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17503 else
17504 rm -f "$ac_file"
17505 mv "$ac_tmp/config.h" "$ac_file" \
17506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17508 else
17509 $as_echo "/* $configure_input */" \
17510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17511 || as_fn_error $? "could not create -" "$LINENO" 5
17515 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17516 $as_echo "$as_me: executing $ac_file commands" >&6;}
17518 esac
17521 case $ac_file$ac_mode in
17522 "genmf-executable-support":C)
17523 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17524 chmod a+x ${aros_tools_dir}/genmf.py
17526 "binutils-support":C)
17527 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17528 mkdir -p $prefix
17529 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17531 chmod a+x ${prefix2}-ld
17533 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17534 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17535 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17536 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17537 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17538 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17539 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17541 "elf-compiler-support":C)
17542 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17543 mkdir -p $prefix
17544 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17546 chmod a+x ${prefix2}-gcc
17548 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17550 "host-compiler-wrapper-support":C)
17551 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17552 mkdir -p $prefix
17553 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17555 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17558 esac
17559 done # for ac_tag
17562 as_fn_exit 0
17563 _ACEOF
17564 ac_clean_files=$ac_clean_files_save
17566 test $ac_write_fail = 0 ||
17567 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17570 # configure is writing to config.log, and then calls config.status.
17571 # config.status does its own redirection, appending to config.log.
17572 # Unfortunately, on DOS this fails, as config.log is still kept open
17573 # by configure, so config.status won't be able to write to it; its
17574 # output is simply discarded. So we exec the FD to /dev/null,
17575 # effectively closing config.log, so it can be properly (re)opened and
17576 # appended to by config.status. When coming back to configure, we
17577 # need to make the FD available again.
17578 if test "$no_create" != yes; then
17579 ac_cs_success=:
17580 ac_config_status_args=
17581 test "$silent" = yes &&
17582 ac_config_status_args="$ac_config_status_args --quiet"
17583 exec 5>/dev/null
17584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17585 exec 5>>config.log
17586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17587 # would make configure fail if this is the last instruction.
17588 $ac_cs_success || as_fn_exit 1
17590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17597 #XXX compatability...
17598 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17600 if test -n "$aros_shared_cflags" ; then
17601 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17602 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg