wip update - use the fetched mesa gallium paths and files.
[AROS.git] / configure
blob7770797e1db887d9e87fcd22c8a3b57ebb3f9faa
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 aros_host_plain_ar
852 aros_host_cmd_ar
853 aros_host_automake
854 aros_host_autoheader
855 aros_host_autoconf
856 aros_host_aclocal
857 aros_host_ld
858 base_lld_name
859 MMAKE
862 ac_ct_CC
863 CFLAGS
865 OBJEXT
866 EXEEXT
867 ac_ct_CXX
868 CPPFLAGS
869 LDFLAGS
870 CXXFLAGS
872 host_os
873 host_vendor
874 host_cpu
875 host
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 runstatedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 with_c_compiler
923 with_cxx_compiler
924 enable_libpng_config
925 with_toolchain
926 enable_lto
927 enable_coverage
928 enable_build_type
929 enable_debug
930 enable_distcc
931 enable_ccache
932 with_kernel_gcc_version
933 with_optimization
934 with_paranoia
935 enable_target_variant
936 with_xcode
937 with_sdk_version
938 with_sdk
939 with_ndk
940 with_ndk_version
941 with_apk_version
942 enable_amigaos_compliance
943 with_kernel_toolchain_prefix
944 with_elf_toolchain_prefix
945 with_aros_toolchain
946 enable_crosstools
947 with_aros_toolchain_install
948 with_binutils_version
949 with_gcc_version
950 enable_objc
951 enable_java
952 with_cpu
953 with_fpu
954 with_float
955 with_portssources
956 with_bootloader
957 with_iconset
958 with_theme
959 enable_includes
960 with_resolution
961 with_serial_debug
962 enable_palm_debug_hack
963 enable_usb30_code
964 enable_nesting_supervisor
965 enable_mmu
966 enable_x11_hidd
967 with_x
968 enable_x11_shm
969 enable_x11_vidmode
970 enable_sdl_hidd
971 with_sdl_prefix
972 with_sdl_exec_prefix
973 enable_sdltest
974 enable_dbus
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
980 CXXFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
986 CFLAGS
988 PYTHON
989 XMKMF'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 runstatedir='${localstatedir}/run'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1052 case $ac_option in
1053 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *=) ac_optarg= ;;
1055 *) ac_optarg=yes ;;
1056 esac
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1062 ac_dashdash=yes ;;
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1281 -runstatedir | --runstatedir | --runstatedi | --runstated \
1282 | --runstate | --runstat | --runsta | --runst | --runs \
1283 | --run | --ru | --r)
1284 ac_prev=runstatedir ;;
1285 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287 | --run=* | --ru=* | --r=*)
1288 runstatedir=$ac_optarg ;;
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 ac_prev=sbindir ;;
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 | --sbi=* | --sb=*)
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1299 | --sha | --sh)
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 | --sha=* | --sh=*)
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1308 ac_prev=site ;;
1309 -site=* | --site=* | --sit=*)
1310 site=$ac_optarg ;;
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 ac_prev=srcdir ;;
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 verbose=yes ;;
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1335 -with-* | --with-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1360 "with_$ac_useropt"
1361 "*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1389 *=*)
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395 esac
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1407 esac
1408 done
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1417 no) ;;
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 esac
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir runstatedir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1431 case $ac_val in
1432 */ )
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1435 esac
1436 # Be sure to have absolute directory names.
1437 case $ac_val in
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440 esac
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1456 cross_compiling=yes
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1492 /^X\(\/\/\)$/{
1493 s//\1/
1496 /^X\(\/\).*/{
1497 s//\1/
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1505 else
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 srcdir=.
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1539 cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1549 Configuration:
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 [PREFIX]
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1594 _ACEOF
1596 cat <<\_ACEOF
1598 X features:
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1602 System types:
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1608 if test -n "$ac_init_help"; then
1610 cat <<\_ACEOF
1612 Optional Features:
1613 --disable-option-checking ignore unrecognized --enable/--with options
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --disable-libpng-config disable libpng-config test and configuration
1617 --enable-lto=yes|no Enable link time optimizations if the target
1618 compiler supports them (default=no)
1619 --enable-coverage=yes|no
1620 Enable coverage instrumentation if the target
1621 compiler supports it (default=no)
1622 --enable-build-type=TYPE
1623 Select the build type. Available types are:
1624 personal, nightly, snapshot, milestone, release. Do
1625 NOT use this option unless you know what you are
1626 doing! (default=personal)
1627 --enable-debug=list Enable different types of debug. Commas or
1628 whitespaces can be used to separate the items in the
1629 list. Available types of debug are: all, none,
1630 messages, stack, mungwall, modules, symbols. If no
1631 list is provided then "all" is assumed.
1632 (default=none)
1633 --enable-distcc Use distcc as a front end to the compiler
1634 (default=no).
1635 --enable-ccache Use ccache as a front end to the compiler
1636 (default=no).
1637 --enable-target-variant=NAME
1638 Enable a specific target variant (default=none)
1639 --enable-amigaos-compliance=VERSION
1640 Enforce userspace AmigaOS compliance to a specific
1641 KickStart version (default=none).
1642 --disable-crosstools Do not build cross-compiler toolchain
1643 --enable-objc Enable Objectve-C support (default=no)
1644 --enable-java Enable Java support (default=no)
1645 --enable-includes=dir Alternative system include directory
1646 --enable-palm-debug-hack
1647 Enable palm debug output hack in palm native
1648 (default=no)
1649 --enable-usb30-code Enable usb3.0 code (default=no)
1650 --enable-nesting-supervisor
1651 Enable nesting supervisor support in unix
1652 (default=no)
1653 --disable-mmu Disable MMU support (default=enabled)
1654 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1655 --enable-x11-shm use X11 shared memory (default=auto)
1656 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1657 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1658 --disable-sdltest Do not try to compile and run a test SDL program
1659 --enable-dbus Enable DBUS support via dbus.library (default=no)
1661 Optional Packages:
1662 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1663 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1664 --with-c-compiler=VERSION
1665 Use specified c compiler for building AROS
1666 --with-cxx-compiler=VERSION
1667 Use specified c++ compiler building AROS
1668 --with-toolchain=family Which toolchain family to crosscompile with
1669 (defaults to gnu)
1670 --with-kernel-gcc-version=VERSION
1671 Use gcc-VERSION for building bootstrap
1672 --with-optimization=FLAGS
1673 Use optimization flags FLAGS (e.g
1674 --with-optimization=-O2).
1675 --with-paranoia=(yes|no|FLAGS)
1676 Specific compiler warning FLAGS to enable for
1677 paranoia builds (default=-Wall -Werror)
1678 --with-xcode=PATH Specify XCode path for iOS targets
1679 (default=/Developer).
1680 --with-sdk-version=VERSION
1681 Use iOS SDK version VERSION (default=4.1).
1682 --with-sdk=PATH Specify Android SDK path
1683 (default=$default_android_sdk).
1684 --with-ndk=PATH Specify Android NDK path (default=none).
1685 --with-sdk-version=LEVEL
1686 Use Android SDK for API LEVEL (default=12).
1687 --with-ndk-version=LEVEL
1688 Use Android NDK for API LEVEL (default=9).
1689 --with-apk-version=(release|debug)
1690 Which version of AROSBootstrap.apk to compile.
1691 Release version needs key for signing, debug version
1692 will only run in emulator. (default=release)
1693 --with-kernel-toolchain-prefix=...
1694 Specify crosscompile toolchain prefix for kernel
1695 objects
1696 --with-elf-toolchain-prefix=...
1697 Specify crosscompile toolchain prefix to wrap for
1698 AROS objects
1699 --with-aros-toolchain=PREFIX
1700 Specify prebuilt AROS toolchain. Use yes for default
1701 name
1702 --with-aros-toolchain-install=DIR
1703 Where to install or search for cross tools binaries
1704 --with-binutils-version=VERSION
1705 Use binutils-VERSION for building AROS
1706 --with-gcc-version=VERSION
1707 Compile gcc-VERSION for AROS
1708 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1709 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1710 --with-float=<spec> Specify floating point ABI
1711 (default=$gcc_default_float_abi).
1712 --with-portssources=DIR Where to download sourcecode for external ports
1713 --with-bootloader=NAME Use a specific bootloader
1714 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1715 --with-theme=NAME Use a specific GUI Theme
1716 --with-resolution=XRESxYRESxDEPTH
1717 Default resolution of the initial WorkbenchScreen
1718 --with-serial-debug Enable serial debug output in native (default=no)
1719 --with-x use the X Window System
1720 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1721 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1723 Some influential environment variables:
1724 CXX C++ compiler command
1725 CXXFLAGS C++ compiler flags
1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1727 nonstandard directory <lib dir>
1728 LIBS libraries to pass to the linker, e.g. -l<library>
1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 you have headers in a nonstandard directory <include dir>
1731 CC C compiler command
1732 CFLAGS C compiler flags
1733 CPP C preprocessor
1734 PYTHON the Python interpreter
1735 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 Use these variables to override the choices made by `configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1741 _ACEOF
1742 ac_status=$?
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1750 continue
1751 ac_builddir=.
1753 case "$ac_dir" in
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 esac ;;
1763 esac
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1769 case $srcdir in
1770 .) # We are building in place.
1771 ac_srcdir=.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1778 *) # Relative name.
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 esac
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1793 else
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 fi || ac_status=$?
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1797 done
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1802 cat <<\_ACEOF
1803 configure
1804 generated by GNU Autoconf 2.69
1806 Copyright (C) 2012 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1809 _ACEOF
1810 exit
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_cpp
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_link
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_header_mongrel
2063 # ac_fn_c_try_run LINENO
2064 # ----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_c_try_run ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_c_try_run
2105 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106 # -------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_c_check_header_compile ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_header_compile
2136 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2137 # ----------------------------------------------------
2138 # Tries to find if the field MEMBER exists in type AGGR, after including
2139 # INCLUDES, setting cache variable VAR accordingly.
2140 ac_fn_c_check_member ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2144 $as_echo_n "checking for $2.$3... " >&6; }
2145 if eval \${$4+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 static $2 ac_aggr;
2155 if (ac_aggr.$3)
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$4=yes"
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static $2 ac_aggr;
2171 if (sizeof ac_aggr.$3)
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 eval "$4=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$4
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_member
2193 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2194 # ---------------------------------------------
2195 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2196 # accordingly.
2197 ac_fn_c_check_decl ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 as_decl_name=`echo $2|sed 's/ *(.*//'`
2201 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2203 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 #ifndef $as_decl_name
2214 #ifdef __cplusplus
2215 (void) $as_decl_use;
2216 #else
2217 (void) $as_decl_name;
2218 #endif
2219 #endif
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_c_check_decl
2239 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2240 # -------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_c_check_type ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=no"
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 if (sizeof ($2))
2259 return 0;
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 if (sizeof (($2)))
2272 return 0;
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2279 else
2280 eval "$3=yes"
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_type
2293 # ac_fn_c_check_func LINENO FUNC VAR
2294 # ----------------------------------
2295 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2296 ac_fn_c_check_func ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2308 #define $2 innocuous_$2
2310 /* System header to define __stub macros and hopefully few prototypes,
2311 which can conflict with char $2 (); below.
2312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2313 <limits.h> exists even on freestanding compilers. */
2315 #ifdef __STDC__
2316 # include <limits.h>
2317 #else
2318 # include <assert.h>
2319 #endif
2321 #undef $2
2323 /* Override any GCC internal prototype to avoid an error.
2324 Use char because int might match the return type of a GCC
2325 builtin and then its argument prototype would still apply. */
2326 #ifdef __cplusplus
2327 extern "C"
2328 #endif
2329 char $2 ();
2330 /* The GNU C library defines this for functions which it implements
2331 to always fail with ENOSYS. Some functions are actually named
2332 something starting with __ and the normal name is an alias. */
2333 #if defined __stub_$2 || defined __stub___$2
2334 choke me
2335 #endif
2338 main ()
2340 return $2 ();
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_link "$LINENO"; then :
2346 eval "$3=yes"
2347 else
2348 eval "$3=no"
2350 rm -f core conftest.err conftest.$ac_objext \
2351 conftest$ac_exeext conftest.$ac_ext
2353 eval ac_res=\$$3
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_func
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by $as_me, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2366 $ $0 $@
2368 _ACEOF
2369 exec 5>>config.log
2371 cat <<_ASUNAME
2372 ## --------- ##
2373 ## Platform. ##
2374 ## --------- ##
2376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2393 _ASUNAME
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2401 done
2402 IFS=$as_save_IFS
2404 } >&5
2406 cat >&5 <<_ACEOF
2409 ## ----------- ##
2410 ## Core tests. ##
2411 ## ----------- ##
2413 _ACEOF
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2421 ac_configure_args=
2422 ac_configure_args0=
2423 ac_configure_args1=
2424 ac_must_keep_next=false
2425 for ac_pass in 1 2
2427 for ac_arg
2429 case $ac_arg in
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2433 continue ;;
2434 *\'*)
2435 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 esac
2437 case $ac_pass in
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2443 else
2444 case $ac_arg in
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 esac
2453 -* ) ac_must_keep_next=true ;;
2454 esac
2456 as_fn_append ac_configure_args " '$ac_arg'"
2458 esac
2459 done
2460 done
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2472 echo
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2477 echo
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in #(
2483 *${as_nl}*)
2484 case $ac_var in #(
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 esac
2488 case $ac_var in #(
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2492 esac ;;
2493 esac
2494 done
2495 (set) 2>&1 |
2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2498 sed -n \
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 ;; #(
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 esac |
2506 sort
2508 echo
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2513 echo
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2528 echo
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 $as_echo "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2542 ## confdefs.h. ##
2543 ## ----------- ##"
2544 echo
2545 cat confdefs.h
2546 echo
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2551 } >&5
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 exit $exit_status
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 done
2559 ac_signal=0
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 _ACEOF
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2590 _ACEOF
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2595 ac_site_file1=NONE
2596 ac_site_file2=NONE
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2603 esac
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2607 else
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2618 . "$ac_site_file" \
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site script $ac_site_file
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 done
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 case $cache_file in
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2635 esac
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2640 >$cache_file
2643 as_fn_append ac_header_list " stdlib.h"
2644 as_fn_append ac_header_list " unistd.h"
2645 as_fn_append ac_header_list " sys/param.h"
2646 # Check that the precious variables saved in the cache have kept the same
2647 # value.
2648 ac_cache_corrupted=false
2649 for ac_var in $ac_precious_vars; do
2650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
2652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
2654 case $ac_old_set,$ac_new_set in
2655 set,)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2657 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,set)
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2661 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2663 ,);;
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
2666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x $ac_old_val`
2668 ac_new_val_w=`echo x $ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2671 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2672 ac_cache_corrupted=:
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2675 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2679 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2681 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 fi;;
2683 esac
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2686 case $ac_new_val in
2687 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2688 *) ac_arg=$ac_var=$ac_new_val ;;
2689 esac
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693 esac
2695 done
2696 if $ac_cache_corrupted; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2700 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2701 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2703 ## -------------------- ##
2704 ## Main body of script. ##
2705 ## -------------------- ##
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 ac_aux_dir=
2716 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2717 if test -f "$ac_dir/install-sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install-sh -c"
2720 break
2721 elif test -f "$ac_dir/install.sh"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/install.sh -c"
2724 break
2725 elif test -f "$ac_dir/shtool"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 break
2730 done
2731 if test -z "$ac_aux_dir"; then
2732 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2735 # These three variables are undocumented and unsupported,
2736 # and are intended to be withdrawn in a future Autoconf release.
2737 # They can cause serious problems if a builder's source tree is in a directory
2738 # whose full name contains unusual characters.
2739 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2740 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2741 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745 # Check what host we are running on.
2746 # If a target is not suggested, we use this one.
2747 # Note that what we call a target, Autoconf calls a host.
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 esac
2772 build=$ac_cv_build
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_build
2775 shift
2776 build_cpu=$1
2777 build_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 build_os=$*
2782 IFS=$ac_save_IFS
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2793 else
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2801 case $ac_cv_host in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 esac
2805 host=$ac_cv_host
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_host
2808 shift
2809 host_cpu=$1
2810 host_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 host_os=$*
2815 IFS=$ac_save_IFS
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820 # Default versions for the gnu tools we build
2821 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2822 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2823 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2824 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2825 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2826 default_grub2_version="2.02"
2827 target_grub2_version=$default_grub2_version
2829 # The AROS target is slightly different to the normal GNU style
2830 # format. We don't have the middle part, and we reverse the order
2831 # of the $(CPU) and $(OS) bits.
2833 # Don't strip the version of the target yet, it might be
2834 # useful on some systems.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2837 $as_echo_n "checking for AROS style target... " >&6; }
2839 if test "$target" = "NONE" ; then
2840 target=$host_os-$host_cpu
2841 else
2842 if test "$target" = "" ; then
2843 target=$host_os-$host_cpu
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2847 $as_echo "$target" >&6; }
2849 if test "$host_os" = "mingw32" ; then
2850 PWDCMD="pwd -W"
2853 # Don't know where else to put this...
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2855 $as_echo_n "checking building AROS in... " >&6; }
2856 AROS_BUILDDIR=`${PWDCMD-pwd}`
2857 AROS_BUILDDIR_UNIX=${PWD}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2859 $as_echo "$AROS_BUILDDIR" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2862 $as_echo_n "checking AROS source in... " >&6; }
2863 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2864 SRCDIR=${srcpwd}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2866 $as_echo "$SRCDIR" >&6; }
2868 # Parse the target field into something useful.
2870 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2871 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2874 # Some debug output, to be removed again.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2876 $as_echo_n "checking for target system (debug output)... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2878 $as_echo "$target_os" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2880 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2882 $as_echo "$target_cpu" >&6; }
2884 aros_nominal_width=800
2885 aros_nominal_height=600
2886 aros_nominal_depth=4
2889 HOST_WANTS_X11=
2890 HOST_WANTS_GLX=
2891 HOST_WANTS_SDL=
2892 HOST_WANTS_DBUS=
2893 HOST_WANTS_DLOPEN=
2895 default_c_compilers="gcc clang cc"
2897 # Check whether --with-c-compiler was given.
2898 if test "${with_c_compiler+set}" = set; then :
2899 withval=$with_c_compiler; use_c_compiler="$withval"
2900 else
2901 use_c_compiler=""
2904 if test "$use_c_compiler" = ""; then
2905 host_c_compilers="$default_c_compilers"
2906 else
2907 host_c_compilers="$use_c_compiler"
2908 CC=$use_c_compiler
2911 default_cxx_compilers="g++ clang++ c++"
2913 # Check whether --with-cxx-compiler was given.
2914 if test "${with_cxx_compiler+set}" = set; then :
2915 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2916 else
2917 use_cxx_compiler=""
2920 if test "$use_cxx_compiler" = ""; then
2921 host_cxx_compilers="$default_cxx_compilers"
2922 else
2923 host_cxx_compilers="$use_cxx_compiler"
2924 CXX=$use_cxx_compiler
2928 # The first step is to find the host binaries.
2929 # Check for a compiler.
2930 # Due to a bug in autoconf check for c++ compiler first.
2931 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2932 ac_ext=cpp
2933 ac_cpp='$CXXCPP $CPPFLAGS'
2934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2937 if test -z "$CXX"; then
2938 if test -n "$CCC"; then
2939 CXX=$CCC
2940 else
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in ${host_cxx_compilers}
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CXX+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$CXX"; then
2952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 CXX=$ac_cv_prog_CXX
2972 if test -n "$CXX"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2974 $as_echo "$CXX" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CXX" && break
2982 done
2984 if test -z "$CXX"; then
2985 ac_ct_CXX=$CXX
2986 for ac_prog in ${host_cxx_compilers}
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_CXX"; then
2996 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CXX="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3016 if test -n "$ac_ct_CXX"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3018 $as_echo "$ac_ct_CXX" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CXX" && break
3026 done
3028 if test "x$ac_ct_CXX" = x; then
3029 CXX="g++"
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 CXX=$ac_ct_CXX
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3045 set X $ac_compile
3046 ac_compiler=$2
3047 for ac_option in --version -v -V -qversion; do
3048 { { ac_try="$ac_compiler $ac_option >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056 ac_status=$?
3057 if test -s conftest.err; then
3058 sed '10a\
3059 ... rest of stderr output deleted ...
3060 10q' conftest.err >conftest.er1
3061 cat conftest.er1 >&5
3063 rm -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3066 done
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3072 main ()
3076 return 0;
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3085 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # The possible output files:
3089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091 ac_rmfiles=
3092 for ac_file in $ac_files
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097 esac
3098 done
3099 rm -f $ac_rmfiles
3101 if { { ac_try="$ac_link_default"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link_default") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3116 # Autoconf.
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123 [ab].out )
3124 # We found the default executable, but exeext='' is most
3125 # certainly right.
3126 break;;
3127 *.* )
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129 then :; else
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3136 # actually working.
3137 break;;
3139 break;;
3140 esac
3141 done
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144 else
3145 ac_file=''
3147 if test -z "$ac_file"; then :
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C++ compiler cannot create executables
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3162 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; then :
3182 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe'), while it won't with
3185 # `rm'.
3186 for ac_file in conftest.exe conftest conftest.*; do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 break;;
3192 * ) break;;
3193 esac
3194 done
3195 else
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest conftest$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210 #include <stdio.h>
3212 main ()
3214 FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3218 return 0;
3220 _ACEOF
3221 ac_clean_files="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227 { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 if { ac_try='./conftest$ac_cv_exeext'
3239 { { case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_try") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; }; then
3249 cross_compiling=no
3250 else
3251 if test "$cross_compiling" = maybe; then
3252 cross_compiling=yes
3253 else
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot run C++ compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3265 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compile") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300 break;;
3301 esac
3302 done
3303 else
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3317 ac_objext=$OBJEXT
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3320 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3327 main ()
3329 #ifndef __GNUC__
3330 choke me
3331 #endif
3334 return 0;
3336 _ACEOF
3337 if ac_fn_cxx_try_compile "$LINENO"; then :
3338 ac_compiler_gnu=yes
3339 else
3340 ac_compiler_gnu=no
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3347 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3349 GXX=yes
3350 else
3351 GXX=
3353 ac_test_CXXFLAGS=${CXXFLAGS+set}
3354 ac_save_CXXFLAGS=$CXXFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3356 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3357 if ${ac_cv_prog_cxx_g+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3361 ac_cxx_werror_flag=yes
3362 ac_cv_prog_cxx_g=no
3363 CXXFLAGS="-g"
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3372 return 0;
3374 _ACEOF
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3376 ac_cv_prog_cxx_g=yes
3377 else
3378 CXXFLAGS=""
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3383 main ()
3387 return 0;
3389 _ACEOF
3390 if ac_fn_cxx_try_compile "$LINENO"; then :
3392 else
3393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394 CXXFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3399 main ()
3403 return 0;
3405 _ACEOF
3406 if ac_fn_cxx_try_compile "$LINENO"; then :
3407 ac_cv_prog_cxx_g=yes
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3417 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3418 if test "$ac_test_CXXFLAGS" = set; then
3419 CXXFLAGS=$ac_save_CXXFLAGS
3420 elif test $ac_cv_prog_cxx_g = yes; then
3421 if test "$GXX" = yes; then
3422 CXXFLAGS="-g -O2"
3423 else
3424 CXXFLAGS="-g"
3426 else
3427 if test "$GXX" = yes; then
3428 CXXFLAGS="-O2"
3429 else
3430 CXXFLAGS=
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 CXX_BASE=$CXX
3440 # Extract the first word of "$CXX", so it can be a program name with args.
3441 set dummy $CXX; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_path_CXX+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 case $CXX in
3448 [\\/]* | ?:[\\/]*)
3449 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3468 esac
3470 CXX=$ac_cv_path_CXX
3471 if test -n "$CXX"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3473 $as_echo "$CXX" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in ${host_c_compilers}
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3511 IFS=$as_save_IFS
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3525 test -n "$CC" && break
3526 done
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in ${host_c_compilers}
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$ac_ct_CC" && break
3570 done
3572 if test "x$ac_ct_CC" = x; then
3573 CC=""
3574 else
3575 case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581 CC=$ac_ct_CC
3586 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "no acceptable C compiler found in \$PATH
3589 See \`config.log' for more details" "$LINENO" 5; }
3591 # Provide some information about the compiler.
3592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3593 set X $ac_compile
3594 ac_compiler=$2
3595 for ac_option in --version -v -V -qversion; do
3596 { { ac_try="$ac_compiler $ac_option >&5"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3604 ac_status=$?
3605 if test -s conftest.err; then
3606 sed '10a\
3607 ... rest of stderr output deleted ...
3608 10q' conftest.err >conftest.er1
3609 cat conftest.er1 >&5
3611 rm -f conftest.er1 conftest.err
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }
3614 done
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if ${ac_cv_c_compiler_gnu+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3627 #ifndef __GNUC__
3628 choke me
3629 #endif
3632 return 0;
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_compiler_gnu=yes
3637 else
3638 ac_compiler_gnu=no
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if ${ac_cv_prog_cc_g+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3666 main ()
3670 return 0;
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_g=yes
3675 else
3676 CFLAGS=""
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3681 main ()
3685 return 0;
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3690 else
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715 $as_echo "$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3720 CFLAGS="-g -O2"
3721 else
3722 CFLAGS="-g"
3724 else
3725 if test "$GCC" = yes; then
3726 CFLAGS="-O2"
3727 else
3728 CFLAGS=
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdio.h>
3742 struct stat;
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747 char **p;
3748 int i;
3750 return p[i];
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3783 main ()
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 return 0;
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_c89=$ac_arg
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 $as_echo "none needed" >&6; } ;;
3809 xno)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811 $as_echo "unsupported" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 CC_BASE=$CC
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3834 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3837 CPP=
3839 if test -z "$CPP"; then
3840 if ${ac_cv_prog_CPP+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 # Double quotes because CPP needs to be expanded
3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3846 ac_preproc_ok=false
3847 for ac_c_preproc_warn_flag in '' yes
3849 # Use a header file that comes with gcc, so configuring glibc
3850 # with a fresh cross-compiler works.
3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 # <limits.h> exists even on freestanding compilers.
3853 # On the NeXT, cc -E runs the code through the compiler's parser,
3854 # not just through cpp. "Syntax error" is here to catch this case.
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #ifdef __STDC__
3858 # include <limits.h>
3859 #else
3860 # include <assert.h>
3861 #endif
3862 Syntax error
3863 _ACEOF
3864 if ac_fn_c_try_cpp "$LINENO"; then :
3866 else
3867 # Broken: fails on valid input.
3868 continue
3870 rm -f conftest.err conftest.i conftest.$ac_ext
3872 # OK, works on sane cases. Now check whether nonexistent headers
3873 # can be detected and how.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <ac_nonexistent.h>
3877 _ACEOF
3878 if ac_fn_c_try_cpp "$LINENO"; then :
3879 # Broken: success on invalid input.
3880 continue
3881 else
3882 # Passes both tests.
3883 ac_preproc_ok=:
3884 break
3886 rm -f conftest.err conftest.i conftest.$ac_ext
3888 done
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.i conftest.err conftest.$ac_ext
3891 if $ac_preproc_ok; then :
3892 break
3895 done
3896 ac_cv_prog_CPP=$CPP
3899 CPP=$ac_cv_prog_CPP
3900 else
3901 ac_cv_prog_CPP=$CPP
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3904 $as_echo "$CPP" >&6; }
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #ifdef __STDC__
3917 # include <limits.h>
3918 #else
3919 # include <assert.h>
3920 #endif
3921 Syntax error
3922 _ACEOF
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3925 else
3926 # Broken: fails on valid input.
3927 continue
3929 rm -f conftest.err conftest.i conftest.$ac_ext
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <ac_nonexistent.h>
3936 _ACEOF
3937 if ac_fn_c_try_cpp "$LINENO"; then :
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 # Passes both tests.
3942 ac_preproc_ok=:
3943 break
3945 rm -f conftest.err conftest.i conftest.$ac_ext
3947 done
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then :
3952 else
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3956 See \`config.log' for more details" "$LINENO" 5; }
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 CPP_BASE=$CPP
3966 # Extract the first word of "$CC", so it can be a program name with args.
3967 set dummy $CC; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if ${ac_cv_path_CC+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 case $CC in
3974 [\\/]* | ?:[\\/]*)
3975 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3989 done
3990 done
3991 IFS=$as_save_IFS
3994 esac
3996 CC=$ac_cv_path_CC
3997 if test -n "$CC"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999 $as_echo "$CC" >&6; }
4000 else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4006 aros_host_def_cc="$CC"
4007 case $ac_cv_prog_cc_stdc in #(
4008 no) :
4009 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4010 *) :
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4012 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4013 if ${ac_cv_prog_cc_c99+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 ac_cv_prog_cc_c99=no
4017 ac_save_CC=$CC
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdarg.h>
4021 #include <stdbool.h>
4022 #include <stdlib.h>
4023 #include <wchar.h>
4024 #include <stdio.h>
4026 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4027 #define debug(...) fprintf (stderr, __VA_ARGS__)
4028 #define showlist(...) puts (#__VA_ARGS__)
4029 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4030 static void
4031 test_varargs_macros (void)
4033 int x = 1234;
4034 int y = 5678;
4035 debug ("Flag");
4036 debug ("X = %d\n", x);
4037 showlist (The first, second, and third items.);
4038 report (x>y, "x is %d but y is %d", x, y);
4041 // Check long long types.
4042 #define BIG64 18446744073709551615ull
4043 #define BIG32 4294967295ul
4044 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4045 #if !BIG_OK
4046 your preprocessor is broken;
4047 #endif
4048 #if BIG_OK
4049 #else
4050 your preprocessor is broken;
4051 #endif
4052 static long long int bignum = -9223372036854775807LL;
4053 static unsigned long long int ubignum = BIG64;
4055 struct incomplete_array
4057 int datasize;
4058 double data[];
4061 struct named_init {
4062 int number;
4063 const wchar_t *name;
4064 double average;
4067 typedef const char *ccp;
4069 static inline int
4070 test_restrict (ccp restrict text)
4072 // See if C++-style comments work.
4073 // Iterate through items via the restricted pointer.
4074 // Also check for declarations in for loops.
4075 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4076 continue;
4077 return 0;
4080 // Check varargs and va_copy.
4081 static void
4082 test_varargs (const char *format, ...)
4084 va_list args;
4085 va_start (args, format);
4086 va_list args_copy;
4087 va_copy (args_copy, args);
4089 const char *str;
4090 int number;
4091 float fnumber;
4093 while (*format)
4095 switch (*format++)
4097 case 's': // string
4098 str = va_arg (args_copy, const char *);
4099 break;
4100 case 'd': // int
4101 number = va_arg (args_copy, int);
4102 break;
4103 case 'f': // float
4104 fnumber = va_arg (args_copy, double);
4105 break;
4106 default:
4107 break;
4110 va_end (args_copy);
4111 va_end (args);
4115 main ()
4118 // Check bool.
4119 _Bool success = false;
4121 // Check restrict.
4122 if (test_restrict ("String literal") == 0)
4123 success = true;
4124 char *restrict newvar = "Another string";
4126 // Check varargs.
4127 test_varargs ("s, d' f .", "string", 65, 34.234);
4128 test_varargs_macros ();
4130 // Check flexible array members.
4131 struct incomplete_array *ia =
4132 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4133 ia->datasize = 10;
4134 for (int i = 0; i < ia->datasize; ++i)
4135 ia->data[i] = i * 1.234;
4137 // Check named initializers.
4138 struct named_init ni = {
4139 .number = 34,
4140 .name = L"Test wide string",
4141 .average = 543.34343,
4144 ni.number = 58;
4146 int dynamic_array[ni.number];
4147 dynamic_array[ni.number - 1] = 543;
4149 // work around unused variable warnings
4150 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4151 || dynamic_array[ni.number - 1] != 543);
4154 return 0;
4156 _ACEOF
4157 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c99=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c99" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c99" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175 xno)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c99"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4181 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4182 esac
4183 if test "x$ac_cv_prog_cc_c99" != xno; then :
4184 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 ac_cv_prog_cc_c89=no
4192 ac_save_CC=$CC
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #include <stdarg.h>
4196 #include <stdio.h>
4197 struct stat;
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4202 char **p;
4203 int i;
4205 return p[i];
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4209 char *s;
4210 va_list v;
4211 va_start (v,p);
4212 s = g (p, va_arg (v,int));
4213 va_end (v);
4214 return s;
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4228 #define FOO(x) 'x'
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 int argc;
4236 char **argv;
4238 main ()
4240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4242 return 0;
4244 _ACEOF
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_c89=$ac_arg
4252 rm -f core conftest.err conftest.$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4254 done
4255 rm -f conftest.$ac_ext
4256 CC=$ac_save_CC
4259 # AC_CACHE_VAL
4260 case "x$ac_cv_prog_cc_c89" in
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4264 xno)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4268 CC="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271 esac
4272 if test "x$ac_cv_prog_cc_c89" != xno; then :
4273 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4274 else
4275 ac_cv_prog_cc_stdc=no
4280 esac
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4282 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4283 if ${ac_cv_prog_cc_stdc+:} false; then :
4284 $as_echo_n "(cached) " >&6
4287 case $ac_cv_prog_cc_stdc in #(
4288 no) :
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4290 $as_echo "unsupported" >&6; } ;; #(
4291 '') :
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4293 $as_echo "none needed" >&6; } ;; #(
4294 *) :
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4296 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4297 esac
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4305 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4306 # On Suns, sometimes $CPP names a directory.
4307 if test -n "$CPP" && test -d "$CPP"; then
4308 CPP=
4310 if test -z "$CPP"; then
4311 if ${ac_cv_prog_CPP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 # Double quotes because CPP needs to be expanded
4315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 ac_preproc_ok=false
4318 for ac_c_preproc_warn_flag in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333 Syntax error
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4337 else
4338 # Broken: fails on valid input.
4339 continue
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350 # Broken: success on invalid input.
4351 continue
4352 else
4353 # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4359 done
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4363 break
4366 done
4367 ac_cv_prog_CPP=$CPP
4370 CPP=$ac_cv_prog_CPP
4371 else
4372 ac_cv_prog_CPP=$CPP
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4375 $as_echo "$CPP" >&6; }
4376 ac_preproc_ok=false
4377 for ac_c_preproc_warn_flag in '' yes
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #ifdef __STDC__
4388 # include <limits.h>
4389 #else
4390 # include <assert.h>
4391 #endif
4392 Syntax error
4393 _ACEOF
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4396 else
4397 # Broken: fails on valid input.
4398 continue
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4402 # OK, works on sane cases. Now check whether nonexistent headers
4403 # can be detected and how.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4409 # Broken: success on invalid input.
4410 continue
4411 else
4412 # Passes both tests.
4413 ac_preproc_ok=:
4414 break
4416 rm -f conftest.err conftest.i conftest.$ac_ext
4418 done
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then :
4423 else
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4427 See \`config.log' for more details" "$LINENO" 5; }
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437 # detect the compiler version
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4439 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4440 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4441 if test x"$HOST_COMPILER_VERSION" = "x"; then
4442 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4444 if test x"$HOST_COMPILER_VERSION" = "x"; then
4445 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4448 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4449 if test "$IS_SUN_COMPILER" -ne "0"; then
4450 HOST_TOOLCHAIN_PREFIX=
4451 HOST_TOOLCHAIN_SUFFIX=
4452 HOST_TOOLCHAIN_FAMILY=sun
4454 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4455 if test "$IS_LLVM_COMPILER" -ne "0"; then
4456 if test "$CC_BASE" != "gcc"; then
4457 HOST_TOOLCHAIN_PREFIX=llvm-
4458 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4459 HOST_TOOLCHAIN_FAMILY=llvm
4460 else
4461 IS_GNU_COMPILER=1
4464 if test "x$IS_GNU_COMPILER" = "x"; then
4465 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4467 if test "$IS_GNU_COMPILER" -ne "0"; then
4468 HOST_TOOLCHAIN_PREFIX=
4469 HOST_TOOLCHAIN_SUFFIX=
4470 HOST_TOOLCHAIN_FAMILY=gnu
4472 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4473 HOST_TOOLCHAIN_FAMILY=unknown
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4476 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4478 # Check for a compatible awk
4479 for ac_prog in gawk nawk
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_AWK+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$AWK"; then
4489 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_AWK="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 AWK=$ac_cv_prog_AWK
4509 if test -n "$AWK"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4511 $as_echo "$AWK" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$AWK" && break
4519 done
4521 req_avail=yes
4522 if test "$AWK" = ""; then
4523 req_avail=no
4525 if test "$AWK" = "no"; then
4526 req_avail=no
4528 if test "$req_avail" = "no"; then
4529 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4531 # Extract the first word of "mmake", so it can be a program name with args.
4532 set dummy mmake; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_MMAKE+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$MMAKE"; then
4539 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_MMAKE="mmake "
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4558 MMAKE=$ac_cv_prog_MMAKE
4559 if test -n "$MMAKE"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4561 $as_echo "$MMAKE" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4569 # Perform some default variable assignments. Note all of these will be
4570 # Regenerated from the script, so there is no need to cache them.
4572 aros_build_host=$host
4573 aros_host_cpp="$CPP"
4574 aros_host_cc="$CC"
4575 aros_host_cxx="$CXX"
4576 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4577 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4578 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}
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_base_lld_name+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$base_lld_name"; then
4588 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_base_lld_name="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 base_lld_name=$ac_cv_prog_base_lld_name
4608 if test -n "$base_lld_name"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4610 $as_echo "$base_lld_name" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$base_lld_name" && break
4618 done
4620 base_ld_name=$base_lld_name
4623 if test "$base_ld_name" = ""; then
4624 ac_tool_ld=ld
4625 else
4626 ac_tool_ld=$base_ld_name
4628 if test "$GCC" = "yes"; then
4629 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4630 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4631 set dummy `basename $aros_gcc_ld`; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_aros_host_ld+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 case $aros_host_ld in
4638 [\\/]* | ?:[\\/]*)
4639 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in `dirname $aros_gcc_ld`
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4658 esac
4660 aros_host_ld=$ac_cv_path_aros_host_ld
4661 if test -n "$aros_host_ld"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4663 $as_echo "$aros_host_ld" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test "$aros_host_ld" = ""; then
4672 for ac_prog in $ac_tool_ld
4674 # Extract the first word of "$ac_prog", so it can be a program name with args.
4675 set dummy $ac_prog; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_path_aros_host_ld+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 case $aros_host_ld in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4702 esac
4704 aros_host_ld=$ac_cv_path_aros_host_ld
4705 if test -n "$aros_host_ld"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4707 $as_echo "$aros_host_ld" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$aros_host_ld" && break
4715 done
4719 req_avail=yes
4720 if test "$aros_host_ld" = ""; then
4721 req_avail=no
4723 if test "$aros_host_ld" = "no"; then
4724 req_avail=no
4726 if test "$req_avail" = "no"; then
4727 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4729 aros_host_make="make"
4730 aros_host_cflags="$CFLAGS"
4731 aros_host_cxxflags="$CXXFLAGS"
4732 aros_host_cppflags="$CPPFLAGS"
4733 aros_host_ldflags="$LDFLAGS"
4734 aros_host_debug="-g -O0"
4735 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4736 aros_host_mkargs="--no-print-directory"
4737 aros_host_exe_suffix="$EXEEXT"
4738 aros_host_lib_suffix=""
4740 # Ignore all compliance, AROS ROMs = 0
4741 # KickStart v1.0 = 30
4742 # KickStart v1.3 = 34
4743 # KickStart v2.0 = 37
4744 # KickStart v3.0 = 39
4745 # KickStart v3.1 = 40
4746 # AmigaOS v3.5 = 44
4747 aros_amigaos_compliance=0
4749 for ac_prog in aclocal aclocal19 aclocal-1.9
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$aros_host_aclocal"; then
4759 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_aros_host_aclocal="$ac_prog"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4779 if test -n "$aros_host_aclocal"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4781 $as_echo "$aros_host_aclocal" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 test -n "$aros_host_aclocal" && break
4789 done
4791 for ac_prog in autoconf autoconf259 autoconf253
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$aros_host_autoconf"; then
4801 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_prog_aros_host_autoconf="$ac_prog"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4814 done
4815 done
4816 IFS=$as_save_IFS
4820 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4821 if test -n "$aros_host_autoconf"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4823 $as_echo "$aros_host_autoconf" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 test -n "$aros_host_autoconf" && break
4831 done
4833 for ac_prog in autoheader autoheader259 autoheader253
4835 # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$aros_host_autoheader"; then
4843 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_aros_host_autoheader="$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4856 done
4857 done
4858 IFS=$as_save_IFS
4862 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4863 if test -n "$aros_host_autoheader"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4865 $as_echo "$aros_host_autoheader" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4872 test -n "$aros_host_autoheader" && break
4873 done
4875 for ac_prog in automake automake19 automake-1.9
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_aros_host_automake+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$aros_host_automake"; then
4885 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_aros_host_automake="$ac_prog"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 aros_host_automake=$ac_cv_prog_aros_host_automake
4905 if test -n "$aros_host_automake"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4907 $as_echo "$aros_host_automake" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4914 test -n "$aros_host_automake" && break
4915 done
4918 req_avail=yes
4919 if test "$aros_host_aclocal" = ""; then
4920 req_avail=no
4922 if test "$aros_host_aclocal" = "no"; then
4923 req_avail=no
4925 if test "$req_avail" = "no"; then
4926 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4928 req_avail=yes
4929 if test "$aros_host_automake" = ""; then
4930 req_avail=no
4932 if test "$aros_host_automake" = "no"; then
4933 req_avail=no
4935 if test "$req_avail" = "no"; then
4936 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4939 case "$aros_host_cc" in
4940 *clang*)
4941 aros_host_cc_pipe=""
4943 *gcc*)
4944 aros_host_cc_pipe="-pipe"
4946 icc)
4947 aros_host_cc_pipe=""
4950 aros_host_cc_pipe=""
4952 esac
4954 aros_kernel_cc_includes=""
4955 aros_target_cc_includes=""
4956 host_cc_elf=yes
4958 # ----------------------------------------------------------------------------------------
4959 # Host-specific defaults
4961 # This is the main host configuration section. It is where the host
4962 # can change the values of any variables it needs to change. We do
4963 # not look at anything that compiles to the target yet, we'll get
4964 # to that later.
4966 case "$host_os" in
4967 aros*)
4968 aros_host_arch="aros"
4969 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4970 case "$host_cpu" in
4971 *i?86*)
4972 aros_host_cpu="i386"
4974 *x86_64*)
4975 aros_host_cpu="x86_64"
4977 *powerpc*)
4978 aros_host_cpu="ppc"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4982 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4983 aros_host_cpu="$host_cpu"
4985 esac
4988 linux*)
4989 aros_host_arch="linux"
4990 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4991 android_build_os="linux-x86"
4992 android_tool="android"
4993 default_android_sdk="/opt/android-sdk-linux_x86"
4994 case "$host_cpu" in
4995 *i?86*)
4996 aros_host_cpu="i386"
4998 *x86_64*)
4999 aros_host_cpu="x86_64"
5001 *m68k*)
5002 aros_host_cpu="m68k"
5004 *powerpc*)
5005 aros_host_cpu="ppc"
5007 *arm*)
5008 aros_host_cpu="arm"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5012 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5013 aros_host_cpu="$host_cpu"
5015 esac
5018 freebsd*)
5019 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5020 aros_host_make="gmake"
5021 aros_host_arch="freebsd"
5022 aros_host_cpu="i386"
5024 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
5026 case $host_os in
5027 freebsd[234]*)
5028 aros_object_format="elf_i386"
5032 aros_object_format="elf_i386_fbsd"
5034 esac
5038 darwin*)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5040 $as_echo_n "checking for macOS SDK files... " >&6; }
5041 LOC=$( xcode-select -p )
5042 if test $? != 0; then :
5043 as_fn_error $? "XCode incorrectly configured!
5044 please run 'xcode-select --install' before
5045 re-running configure" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5048 $as_echo "$LOC" >&6; }
5049 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5050 aros_host_arch="darwin"
5051 host_cc_elf=no
5052 if [ -z ${SED+x} ]; then SED="gsed"; fi
5053 android_build_os="darwin-x86"
5054 android_tool="android"
5055 default_android_sdk="/android-sdk-mac_x86"
5056 case "$host_cpu" in
5057 *i?86*)
5058 aros_host_cpu="i386"
5060 *x86_64*)
5061 aros_host_cpu="x86_64"
5063 *powerpc*)
5064 aros_host_cpu="ppc"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5068 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5069 aros_host_cpu="$host_cpu"
5071 esac
5073 aros_host_ldflags="$aros_host_ldflags -liconv"
5077 dragonfly*)
5078 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5079 aros_host_make="gmake"
5080 aros_host_arch="dragonfly"
5081 case $host_cpu in
5082 *i?86*)
5083 aros_host_cpu="i386"
5085 *amd64*)
5086 aros_host_cpu="x86_64"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5090 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5091 aros_host_cpu="$host_cpu"
5093 esac
5096 netbsd*)
5097 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5098 aros_host_make="gmake"
5099 aros_host_arch="netbsd"
5100 case "$host_cpu" in
5101 *i?86*)
5102 aros_host_cpu="i386"
5104 *m68k*)
5105 aros_host_cpu="m68k"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5109 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5110 aros_host_cpu="$host_cpu"
5112 esac
5113 aros_host_lib_suffix=".0.0"
5116 openbsd*)
5117 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5118 aros_host_make="gmake"
5119 aros_host_arch="openbsd"
5120 case "$host_cpu" in
5121 *i?86*)
5122 aros_host_cpu="i386"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5126 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5127 aros_host_cpu="$host_cpu"
5129 esac
5132 solaris*)
5133 aros_host_arch="solaris"
5134 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5135 case "$host_cpu" in
5136 *i?86*)
5137 aros_host_cpu="i386"
5139 *sparc*)
5140 aros_host_cpu="sparc"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5144 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5145 aros_host_cpu="$host_cpu"
5147 esac
5150 morphos*)
5151 aros_host_arch="morphos"
5152 aros_host_cpu="ppc"
5153 host_cc_elf=no
5156 amiga*)
5157 aros_host_arch="amiga"
5158 host_cc_elf=no
5159 SORT="/gg/bin/sort"
5160 TEST="/gg/bin/test"
5161 UNIQ="/gg/bin/uniq"
5162 FOR="for"
5163 TOUCH="/gg/bin/touch"
5164 case "$host_cpu" in
5165 *m68k*)
5166 aros_host_cpu="m68k"
5168 *powerpc*)
5169 aros_host_cpu="ppc"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5173 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5174 aros_host_cpu="$host_cpu"
5176 esac
5179 cygwin*)
5180 aros_host_arch="cygwin"
5181 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5182 host_cc_elf=no
5183 android_build_os="windows"
5184 android_tool="android.bat"
5185 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5187 case "$host_cpu" in
5188 *i?86*)
5189 aros_host_cpu="i386"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5193 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5194 aros_host_cpu="$host_cpu"
5196 esac
5199 mingw32*)
5200 aros_host_arch="mingw32"
5201 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5202 host_cc_elf=no
5203 android_build_os="windows"
5204 android_tool="android.bat"
5205 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5207 libpng_libextra="-lws2_32"
5209 case "$host_cpu" in
5210 *i?86*)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5213 $as_echo_n "checking for Windows native gcc target... " >&6; }
5214 host_cpu=`gcc -dumpmachine`
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5216 $as_echo "$host_cpu" >&6; }
5219 esac
5221 case "$host_cpu" in
5222 *i?86*)
5223 aros_host_cpu="i386"
5226 mingw32*)
5227 aros_host_cpu="i386"
5230 *x86_64*)
5231 aros_host_cpu="x86_64"
5232 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5237 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5238 aros_host_cpu="$host_cpu"
5240 esac
5243 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5245 esac
5247 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5248 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5249 set dummy $base_ar_name; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$aros_host_cmd_ar"; then
5256 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5276 if test -n "$aros_host_cmd_ar"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5278 $as_echo "$aros_host_cmd_ar" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5285 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5286 set dummy $aros_host_cmd_ar; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_aros_host_plain_ar+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 case $aros_host_plain_ar in
5293 [\\/]* | ?:[\\/]*)
5294 ac_cv_path_aros_host_plain_ar="$aros_host_plain_ar" # Let the user override the test with a path.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_path_aros_host_plain_ar="$as_dir/$ac_word$ac_exec_ext"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5312 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar="$aros_host_cmd_ar "
5314 esac
5316 aros_host_plain_ar=$ac_cv_path_aros_host_plain_ar
5317 if test -n "$aros_host_plain_ar"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5319 $as_echo "$aros_host_plain_ar" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5327 req_avail=yes
5328 if test "$aros_host_ar" = ""; then
5329 req_avail=no
5331 if test "$aros_host_ar" = "no"; then
5332 req_avail=no
5334 if test "$req_avail" = "no"; then
5335 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5338 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5339 set dummy $base_ranlib_name; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 case $aros_host_ranlib in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5365 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5367 esac
5369 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5370 if test -n "$aros_host_ranlib"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5372 $as_echo "$aros_host_ranlib" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 req_avail=yes
5380 if test "$aros_host_ranlib" = ""; then
5381 req_avail=no
5383 if test "$aros_host_ranlib" = "no"; then
5384 req_avail=no
5386 if test "$req_avail" = "no"; then
5387 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5389 # Extract the first word of "strip", so it can be a program name with args.
5390 set dummy strip; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_aros_host_strip+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$aros_host_strip"; then
5397 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_aros_host_strip="strip "
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 aros_host_strip=$ac_cv_prog_aros_host_strip
5417 if test -n "$aros_host_strip"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5419 $as_echo "$aros_host_strip" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5426 req_avail=yes
5427 if test "$aros_host_strip" = ""; then
5428 req_avail=no
5430 if test "$aros_host_strip" = "no"; then
5431 req_avail=no
5433 if test "$req_avail" = "no"; then
5434 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5437 # Extract the first word of "rm", so it can be a program name with args.
5438 set dummy rm; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_RM+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$RM"; then
5445 ac_cv_prog_RM="$RM" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_RM="rm -rf"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5464 RM=$ac_cv_prog_RM
5465 if test -n "$RM"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5467 $as_echo "$RM" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5474 req_avail=yes
5475 if test "$RM" = ""; then
5476 req_avail=no
5478 if test "$RM" = "no"; then
5479 req_avail=no
5481 if test "$req_avail" = "no"; then
5482 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5484 # Extract the first word of "cp", so it can be a program name with args.
5485 set dummy cp; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_CP+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$CP"; then
5492 ac_cv_prog_CP="$CP" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_CP="cp "
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 CP=$ac_cv_prog_CP
5512 if test -n "$CP"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5514 $as_echo "$CP" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 req_avail=yes
5522 if test "$CP" = ""; then
5523 req_avail=no
5525 if test "$CP" = "no"; then
5526 req_avail=no
5528 if test "$req_avail" = "no"; then
5529 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5531 # Extract the first word of "mv", so it can be a program name with args.
5532 set dummy mv; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_MV+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$MV"; then
5539 ac_cv_prog_MV="$MV" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_MV="mv "
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 MV=$ac_cv_prog_MV
5559 if test -n "$MV"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5561 $as_echo "$MV" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5568 req_avail=yes
5569 if test "$MV" = ""; then
5570 req_avail=no
5572 if test "$MV" = "no"; then
5573 req_avail=no
5575 if test "$req_avail" = "no"; then
5576 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5578 # Extract the first word of "echo", so it can be a program name with args.
5579 set dummy echo; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ECHO+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$ECHO"; then
5586 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ECHO="echo "
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 ECHO=$ac_cv_prog_ECHO
5606 if test -n "$ECHO"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5608 $as_echo "$ECHO" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5615 req_avail=yes
5616 if test "$ECHO" = ""; then
5617 req_avail=no
5619 if test "$ECHO" = "no"; then
5620 req_avail=no
5622 if test "$req_avail" = "no"; then
5623 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5625 # Extract the first word of "mkdir", so it can be a program name with args.
5626 set dummy mkdir; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_MKDIR+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$MKDIR"; then
5633 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_MKDIR="mkdir -p"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 MKDIR=$ac_cv_prog_MKDIR
5653 if test -n "$MKDIR"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5655 $as_echo "$MKDIR" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5662 req_avail=yes
5663 if test "$MKDIR" = ""; then
5664 req_avail=no
5666 if test "$MKDIR" = "no"; then
5667 req_avail=no
5669 if test "$req_avail" = "no"; then
5670 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5672 # Extract the first word of "touch", so it can be a program name with args.
5673 set dummy touch; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_TOUCH+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$TOUCH"; then
5680 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_TOUCH="touch "
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5699 TOUCH=$ac_cv_prog_TOUCH
5700 if test -n "$TOUCH"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5702 $as_echo "$TOUCH" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5709 req_avail=yes
5710 if test "$TOUCH" = ""; then
5711 req_avail=no
5713 if test "$TOUCH" = "no"; then
5714 req_avail=no
5716 if test "$req_avail" = "no"; then
5717 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5719 # Extract the first word of "sort", so it can be a program name with args.
5720 set dummy sort; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_SORT+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$SORT"; then
5727 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_SORT="sort "
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5740 done
5741 done
5742 IFS=$as_save_IFS
5746 SORT=$ac_cv_prog_SORT
5747 if test -n "$SORT"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5749 $as_echo "$SORT" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5756 req_avail=yes
5757 if test "$SORT" = ""; then
5758 req_avail=no
5760 if test "$SORT" = "no"; then
5761 req_avail=no
5763 if test "$req_avail" = "no"; then
5764 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5766 # Extract the first word of "uniq", so it can be a program name with args.
5767 set dummy uniq; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_UNIQ+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$UNIQ"; then
5774 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_UNIQ="uniq "
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5787 done
5788 done
5789 IFS=$as_save_IFS
5793 UNIQ=$ac_cv_prog_UNIQ
5794 if test -n "$UNIQ"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5796 $as_echo "$UNIQ" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5803 req_avail=yes
5804 if test "$UNIQ" = ""; then
5805 req_avail=no
5807 if test "$UNIQ" = "no"; then
5808 req_avail=no
5810 if test "$req_avail" = "no"; then
5811 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5813 # Extract the first word of "true", so it can be a program name with args.
5814 set dummy true; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_NOP+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$NOP"; then
5821 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_NOP="true "
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5836 IFS=$as_save_IFS
5840 NOP=$ac_cv_prog_NOP
5841 if test -n "$NOP"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5843 $as_echo "$NOP" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5850 req_avail=yes
5851 if test "$NOP" = ""; then
5852 req_avail=no
5854 if test "$NOP" = "no"; then
5855 req_avail=no
5857 if test "$req_avail" = "no"; then
5858 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5860 # Extract the first word of "cat", so it can be a program name with args.
5861 set dummy cat; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_CAT+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 if test -n "$CAT"; then
5868 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_CAT="cat "
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5881 done
5882 done
5883 IFS=$as_save_IFS
5887 CAT=$ac_cv_prog_CAT
5888 if test -n "$CAT"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5890 $as_echo "$CAT" >&6; }
5891 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5897 req_avail=yes
5898 if test "$CAT" = ""; then
5899 req_avail=no
5901 if test "$CAT" = "no"; then
5902 req_avail=no
5904 if test "$req_avail" = "no"; then
5905 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5907 # Extract the first word of "bison", so it can be a program name with args.
5908 set dummy bison; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_BISON+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$BISON"; then
5915 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_BISON="bison "
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5928 done
5929 done
5930 IFS=$as_save_IFS
5934 BISON=$ac_cv_prog_BISON
5935 if test -n "$BISON"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5937 $as_echo "$BISON" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5944 req_avail=yes
5945 if test "$BISON" = ""; then
5946 req_avail=no
5948 if test "$BISON" = "no"; then
5949 req_avail=no
5951 if test "$req_avail" = "no"; then
5952 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5954 # Extract the first word of "flex", so it can be a program name with args.
5955 set dummy flex; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_FLEX+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$FLEX"; then
5962 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_FLEX="flex "
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 FLEX=$ac_cv_prog_FLEX
5982 if test -n "$FLEX"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5984 $as_echo "$FLEX" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5991 req_avail=yes
5992 if test "$FLEX" = ""; then
5993 req_avail=no
5995 if test "$FLEX" = "no"; then
5996 req_avail=no
5998 if test "$req_avail" = "no"; then
5999 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6002 $as_echo_n "checking version of $FLEX... " >&6; }
6003 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6005 $as_echo "$ax_cv_flex_version" >&6; }
6006 # Extract the first word of "pngtopnm", so it can be a program name with args.
6007 set dummy pngtopnm; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_PNGTOPNM+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$PNGTOPNM"; then
6014 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_PNGTOPNM="pngtopnm "
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6027 done
6028 done
6029 IFS=$as_save_IFS
6033 PNGTOPNM=$ac_cv_prog_PNGTOPNM
6034 if test -n "$PNGTOPNM"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6036 $as_echo "$PNGTOPNM" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6043 req_avail=yes
6044 if test "$PNGTOPNM" = ""; then
6045 req_avail=no
6047 if test "$PNGTOPNM" = "no"; then
6048 req_avail=no
6050 if test "$req_avail" = "no"; then
6051 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6053 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6054 set dummy ppmtoilbm; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_PPMTOILBM+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$PPMTOILBM"; then
6061 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_PPMTOILBM="ppmtoilbm "
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 PPMTOILBM=$ac_cv_prog_PPMTOILBM
6081 if test -n "$PPMTOILBM"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6083 $as_echo "$PPMTOILBM" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6090 req_avail=yes
6091 if test "$PPMTOILBM" = ""; then
6092 req_avail=no
6094 if test "$PPMTOILBM" = "no"; then
6095 req_avail=no
6097 if test "$req_avail" = "no"; then
6098 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6100 # Extract the first word of "sed", so it can be a program name with args.
6101 set dummy sed; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_SED+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$SED"; then
6108 ac_cv_prog_SED="$SED" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_SED="sed "
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6121 done
6122 done
6123 IFS=$as_save_IFS
6127 SED=$ac_cv_prog_SED
6128 if test -n "$SED"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6130 $as_echo "$SED" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6137 req_avail=yes
6138 if test "$SED" = ""; then
6139 req_avail=no
6141 if test "$SED" = "no"; then
6142 req_avail=no
6144 if test "$req_avail" = "no"; then
6145 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6147 # Extract the first word of "chmod", so it can be a program name with args.
6148 set dummy chmod; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_CHMOD+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$CHMOD"; then
6155 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_CHMOD="chmod "
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 CHMOD=$ac_cv_prog_CHMOD
6175 if test -n "$CHMOD"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6177 $as_echo "$CHMOD" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6184 req_avail=yes
6185 if test "$CHMOD" = ""; then
6186 req_avail=no
6188 if test "$CHMOD" = "no"; then
6189 req_avail=no
6191 if test "$req_avail" = "no"; then
6192 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6194 # Extract the first word of "patch", so it can be a program name with args.
6195 set dummy patch; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_PATCH+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$PATCH"; then
6202 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_PATCH="patch "
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 PATCH=$ac_cv_prog_PATCH
6222 if test -n "$PATCH"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6224 $as_echo "$PATCH" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6231 req_avail=yes
6232 if test "$PATCH" = ""; then
6233 req_avail=no
6235 if test "$PATCH" = "no"; then
6236 req_avail=no
6238 if test "$req_avail" = "no"; then
6239 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6248 if test -n "$PYTHON"; then
6249 # If the user set $PYTHON, use it and don't search something else.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6251 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6252 prog="import sys
6253 # split strings by '.' and convert to numeric. Append some zeros
6254 # because we need at least 4 digits for the hex conversion.
6255 # map returns an iterator in Python 3.0 and a list in 2.x
6256 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6257 minverhex = 0
6258 # xrange is not present in Python 3.0 and range returns an iterator
6259 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6260 sys.exit(sys.hexversion < minverhex)"
6261 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6262 ($PYTHON -c "$prog") >&5 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; then :
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6273 am_display_PYTHON=$PYTHON
6274 else
6275 # Otherwise, try each interpreter until we find one that satisfies
6276 # VERSION.
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6278 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6279 if ${am_cv_pathless_PYTHON+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6283 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
6284 test "$am_cv_pathless_PYTHON" = none && break
6285 prog="import sys
6286 # split strings by '.' and convert to numeric. Append some zeros
6287 # because we need at least 4 digits for the hex conversion.
6288 # map returns an iterator in Python 3.0 and a list in 2.x
6289 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6290 minverhex = 0
6291 # xrange is not present in Python 3.0 and range returns an iterator
6292 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6293 sys.exit(sys.hexversion < minverhex)"
6294 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6295 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; then :
6299 break
6301 done
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6304 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6305 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6306 if test "$am_cv_pathless_PYTHON" = none; then
6307 PYTHON=:
6308 else
6309 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6310 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_path_PYTHON+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 case $PYTHON in
6317 [\\/]* | ?:[\\/]*)
6318 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6334 IFS=$as_save_IFS
6337 esac
6339 PYTHON=$ac_cv_path_PYTHON
6340 if test -n "$PYTHON"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6342 $as_echo "$PYTHON" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 am_display_PYTHON=$am_cv_pathless_PYTHON
6354 if test "$PYTHON" = :; then
6355 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6356 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6360 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6361 if ${am_cv_python_version+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6367 $as_echo "$am_cv_python_version" >&6; }
6368 PYTHON_VERSION=$am_cv_python_version
6372 PYTHON_PREFIX='${prefix}'
6374 PYTHON_EXEC_PREFIX='${exec_prefix}'
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6379 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6380 if ${am_cv_python_platform+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6386 $as_echo "$am_cv_python_platform" >&6; }
6387 PYTHON_PLATFORM=$am_cv_python_platform
6390 # Just factor out some code duplication.
6391 am_python_setup_sysconfig="\
6392 import sys
6393 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6394 # with python 3.x. See automake bug#10227.
6395 try:
6396 import sysconfig
6397 except ImportError:
6398 can_use_sysconfig = 0
6399 else:
6400 can_use_sysconfig = 1
6401 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6402 # <https://github.com/pypa/virtualenv/issues/118>
6403 try:
6404 from platform import python_implementation
6405 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6406 can_use_sysconfig = 0
6407 except ImportError:
6408 pass"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6412 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6413 if ${am_cv_python_pythondir+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test "x$prefix" = xNONE
6417 then
6418 am_py_prefix=$ac_default_prefix
6419 else
6420 am_py_prefix=$prefix
6422 am_cv_python_pythondir=`$PYTHON -c "
6423 $am_python_setup_sysconfig
6424 if can_use_sysconfig:
6425 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6426 else:
6427 from distutils import sysconfig
6428 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6429 sys.stdout.write(sitedir)"`
6430 case $am_cv_python_pythondir in
6431 $am_py_prefix*)
6432 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6433 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6436 case $am_py_prefix in
6437 /usr|/System*) ;;
6439 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6441 esac
6443 esac
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6447 $as_echo "$am_cv_python_pythondir" >&6; }
6448 pythondir=$am_cv_python_pythondir
6452 pkgpythondir=\${pythondir}/$PACKAGE
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6456 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6457 if ${am_cv_python_pyexecdir+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test "x$exec_prefix" = xNONE
6461 then
6462 am_py_exec_prefix=$am_py_prefix
6463 else
6464 am_py_exec_prefix=$exec_prefix
6466 am_cv_python_pyexecdir=`$PYTHON -c "
6467 $am_python_setup_sysconfig
6468 if can_use_sysconfig:
6469 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6470 else:
6471 from distutils import sysconfig
6472 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6473 sys.stdout.write(sitedir)"`
6474 case $am_cv_python_pyexecdir in
6475 $am_py_exec_prefix*)
6476 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6477 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6480 case $am_py_exec_prefix in
6481 /usr|/System*) ;;
6483 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6485 esac
6487 esac
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6491 $as_echo "$am_cv_python_pyexecdir" >&6; }
6492 pyexecdir=$am_cv_python_pyexecdir
6496 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6504 # Check whether --enable-libpng-config was given.
6505 if test "${enable_libpng_config+set}" = set; then :
6506 enableval=$enable_libpng_config;
6509 if test "$enable_libpng_config" != "no"; then
6510 # Extract the first word of "libpng-config", so it can be a program name with args.
6511 set dummy libpng-config; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$arosconfig_use_libpngconfig"; then
6518 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6531 done
6532 done
6533 IFS=$as_save_IFS
6535 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6538 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6539 if test -n "$arosconfig_use_libpngconfig"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6541 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test "$arosconfig_use_libpngconfig" = "yes"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6551 $as_echo_n "checking libpng-config library... " >&6; }
6552 libpng_incdir="`libpng-config --cflags`"
6553 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6554 libpng="`libpng-config --libs`"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6556 $as_echo "$libpng" >&6; }
6557 else
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6560 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6561 if ${ac_cv_lib_png_png_read_png+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-lpng $LIBS"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 char png_read_png ();
6577 main ()
6579 return png_read_png ();
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"; then :
6585 ac_cv_lib_png_png_read_png=yes
6586 else
6587 ac_cv_lib_png_png_read_png=no
6589 rm -f core conftest.err conftest.$ac_objext \
6590 conftest$ac_exeext conftest.$ac_ext
6591 LIBS=$ac_check_lib_save_LIBS
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6594 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6595 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6596 libpng="-lpng"
6597 else
6598 libpng="no"
6601 if test "$libpng_libextra" != ""; then
6602 if test "$libpng" != "no"; then
6603 libpng_libextra="$libpng_libextra $libpng"
6607 req_avail=yes
6608 if test "$libpng" = ""; then
6609 req_avail=no
6611 if test "$libpng" = "no"; then
6612 req_avail=no
6614 if test "$req_avail" = "no"; then
6615 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6621 FOR=for
6623 IF=if
6625 TEST=test
6627 CMP=cmp
6631 # Check for some includes for the X11 HIDD and the kernel
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6635 if ${ac_cv_path_GREP+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -z "$GREP"; then
6639 ac_path_GREP_found=false
6640 # Loop through the user's path and test for each of PROGNAME-LIST
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_prog in grep ggrep; do
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6649 as_fn_executable_p "$ac_path_GREP" || continue
6650 # Check for GNU ac_path_GREP and select it if it is found.
6651 # Check for GNU $ac_path_GREP
6652 case `"$ac_path_GREP" --version 2>&1` in
6653 *GNU*)
6654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6656 ac_count=0
6657 $as_echo_n 0123456789 >"conftest.in"
6658 while :
6660 cat "conftest.in" "conftest.in" >"conftest.tmp"
6661 mv "conftest.tmp" "conftest.in"
6662 cp "conftest.in" "conftest.nl"
6663 $as_echo 'GREP' >> "conftest.nl"
6664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6666 as_fn_arith $ac_count + 1 && ac_count=$as_val
6667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6668 # Best one so far, save it but keep looking for a better one
6669 ac_cv_path_GREP="$ac_path_GREP"
6670 ac_path_GREP_max=$ac_count
6672 # 10*(2^10) chars as input seems more than enough
6673 test $ac_count -gt 10 && break
6674 done
6675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6676 esac
6678 $ac_path_GREP_found && break 3
6679 done
6680 done
6681 done
6682 IFS=$as_save_IFS
6683 if test -z "$ac_cv_path_GREP"; then
6684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6686 else
6687 ac_cv_path_GREP=$GREP
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6692 $as_echo "$ac_cv_path_GREP" >&6; }
6693 GREP="$ac_cv_path_GREP"
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6697 $as_echo_n "checking for egrep... " >&6; }
6698 if ${ac_cv_path_EGREP+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6702 then ac_cv_path_EGREP="$GREP -E"
6703 else
6704 if test -z "$EGREP"; then
6705 ac_path_EGREP_found=false
6706 # Loop through the user's path and test for each of PROGNAME-LIST
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_prog in egrep; do
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6715 as_fn_executable_p "$ac_path_EGREP" || continue
6716 # Check for GNU ac_path_EGREP and select it if it is found.
6717 # Check for GNU $ac_path_EGREP
6718 case `"$ac_path_EGREP" --version 2>&1` in
6719 *GNU*)
6720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6722 ac_count=0
6723 $as_echo_n 0123456789 >"conftest.in"
6724 while :
6726 cat "conftest.in" "conftest.in" >"conftest.tmp"
6727 mv "conftest.tmp" "conftest.in"
6728 cp "conftest.in" "conftest.nl"
6729 $as_echo 'EGREP' >> "conftest.nl"
6730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6732 as_fn_arith $ac_count + 1 && ac_count=$as_val
6733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6734 # Best one so far, save it but keep looking for a better one
6735 ac_cv_path_EGREP="$ac_path_EGREP"
6736 ac_path_EGREP_max=$ac_count
6738 # 10*(2^10) chars as input seems more than enough
6739 test $ac_count -gt 10 && break
6740 done
6741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6742 esac
6744 $ac_path_EGREP_found && break 3
6745 done
6746 done
6747 done
6748 IFS=$as_save_IFS
6749 if test -z "$ac_cv_path_EGREP"; then
6750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6752 else
6753 ac_cv_path_EGREP=$EGREP
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6759 $as_echo "$ac_cv_path_EGREP" >&6; }
6760 EGREP="$ac_cv_path_EGREP"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6764 $as_echo_n "checking for ANSI C header files... " >&6; }
6765 if ${ac_cv_header_stdc+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <stdlib.h>
6771 #include <stdarg.h>
6772 #include <string.h>
6773 #include <float.h>
6776 main ()
6780 return 0;
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784 ac_cv_header_stdc=yes
6785 else
6786 ac_cv_header_stdc=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 if test $ac_cv_header_stdc = yes; then
6791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 #include <string.h>
6796 _ACEOF
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798 $EGREP "memchr" >/dev/null 2>&1; then :
6800 else
6801 ac_cv_header_stdc=no
6803 rm -f conftest*
6807 if test $ac_cv_header_stdc = yes; then
6808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 #include <stdlib.h>
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "free" >/dev/null 2>&1; then :
6817 else
6818 ac_cv_header_stdc=no
6820 rm -f conftest*
6824 if test $ac_cv_header_stdc = yes; then
6825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6826 if test "$cross_compiling" = yes; then :
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <ctype.h>
6832 #include <stdlib.h>
6833 #if ((' ' & 0x0FF) == 0x020)
6834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6836 #else
6837 # define ISLOWER(c) \
6838 (('a' <= (c) && (c) <= 'i') \
6839 || ('j' <= (c) && (c) <= 'r') \
6840 || ('s' <= (c) && (c) <= 'z'))
6841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6842 #endif
6844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846 main ()
6848 int i;
6849 for (i = 0; i < 256; i++)
6850 if (XOR (islower (i), ISLOWER (i))
6851 || toupper (i) != TOUPPER (i))
6852 return 2;
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_run "$LINENO"; then :
6858 else
6859 ac_cv_header_stdc=no
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6862 conftest.$ac_objext conftest.beam conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6868 $as_echo "$ac_cv_header_stdc" >&6; }
6869 if test $ac_cv_header_stdc = yes; then
6871 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6877 inttypes.h stdint.h unistd.h
6878 do :
6879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6883 cat >>confdefs.h <<_ACEOF
6884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6885 _ACEOF
6889 done
6892 for ac_header in sys/ipc.h sys/shm.h \
6893 sys/mmap.h sys/mman.h sysexits.h \
6894 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6896 do :
6897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 _ACEOF
6906 done
6909 for ac_header in sys/mount.h
6910 do :
6911 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6913 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE_SYS_MOUNT_H 1
6916 _ACEOF
6920 done
6922 for ac_header in GL/glx.h
6923 do :
6924 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6925 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6926 cat >>confdefs.h <<_ACEOF
6927 #define HAVE_GL_GLX_H 1
6928 _ACEOF
6929 host_feature_glx=yes
6930 else
6931 host_feature_glx=no
6934 done
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6938 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6942 #define __unused __attribute__((unused))
6943 #include <sys/stat.h>
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 host_stat_h__unused_used=no
6955 else
6956 host_stat_h__unused_used=yes
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6960 $as_echo "$host_stat_h__unused_used" >&6; }
6962 ac_header_dirent=no
6963 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6964 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6966 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6967 if eval \${$as_ac_Header+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <$ac_hdr>
6976 main ()
6978 if ((DIR *) 0)
6979 return 0;
6981 return 0;
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 eval "$as_ac_Header=yes"
6986 else
6987 eval "$as_ac_Header=no"
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 eval ac_res=\$$as_ac_Header
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6993 $as_echo "$ac_res" >&6; }
6994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6995 cat >>confdefs.h <<_ACEOF
6996 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6997 _ACEOF
6999 ac_header_dirent=$ac_hdr; break
7002 done
7003 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7004 if test $ac_header_dirent = dirent.h; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7006 $as_echo_n "checking for library containing opendir... " >&6; }
7007 if ${ac_cv_search_opendir+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 ac_func_search_save_LIBS=$LIBS
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 /* Override any GCC internal prototype to avoid an error.
7015 Use char because int might match the return type of a GCC
7016 builtin and then its argument prototype would still apply. */
7017 #ifdef __cplusplus
7018 extern "C"
7019 #endif
7020 char opendir ();
7022 main ()
7024 return opendir ();
7026 return 0;
7028 _ACEOF
7029 for ac_lib in '' dir; do
7030 if test -z "$ac_lib"; then
7031 ac_res="none required"
7032 else
7033 ac_res=-l$ac_lib
7034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 ac_cv_search_opendir=$ac_res
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext
7041 if ${ac_cv_search_opendir+:} false; then :
7042 break
7044 done
7045 if ${ac_cv_search_opendir+:} false; then :
7047 else
7048 ac_cv_search_opendir=no
7050 rm conftest.$ac_ext
7051 LIBS=$ac_func_search_save_LIBS
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7054 $as_echo "$ac_cv_search_opendir" >&6; }
7055 ac_res=$ac_cv_search_opendir
7056 if test "$ac_res" != no; then :
7057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7063 $as_echo_n "checking for library containing opendir... " >&6; }
7064 if ${ac_cv_search_opendir+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 ac_func_search_save_LIBS=$LIBS
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7071 /* Override any GCC internal prototype to avoid an error.
7072 Use char because int might match the return type of a GCC
7073 builtin and then its argument prototype would still apply. */
7074 #ifdef __cplusplus
7075 extern "C"
7076 #endif
7077 char opendir ();
7079 main ()
7081 return opendir ();
7083 return 0;
7085 _ACEOF
7086 for ac_lib in '' x; do
7087 if test -z "$ac_lib"; then
7088 ac_res="none required"
7089 else
7090 ac_res=-l$ac_lib
7091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7093 if ac_fn_c_try_link "$LINENO"; then :
7094 ac_cv_search_opendir=$ac_res
7096 rm -f core conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext
7098 if ${ac_cv_search_opendir+:} false; then :
7099 break
7101 done
7102 if ${ac_cv_search_opendir+:} false; then :
7104 else
7105 ac_cv_search_opendir=no
7107 rm conftest.$ac_ext
7108 LIBS=$ac_func_search_save_LIBS
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7111 $as_echo "$ac_cv_search_opendir" >&6; }
7112 ac_res=$ac_cv_search_opendir
7113 if test "$ac_res" != no; then :
7114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7121 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7122 if ${ac_cv_header_stat_broken+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <sys/types.h>
7128 #include <sys/stat.h>
7130 #if defined S_ISBLK && defined S_IFDIR
7131 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7132 #endif
7134 #if defined S_ISBLK && defined S_IFCHR
7135 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7136 #endif
7138 #if defined S_ISLNK && defined S_IFREG
7139 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7140 #endif
7142 #if defined S_ISSOCK && defined S_IFREG
7143 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7144 #endif
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 ac_cv_header_stat_broken=no
7149 else
7150 ac_cv_header_stat_broken=yes
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7155 $as_echo "$ac_cv_header_stat_broken" >&6; }
7156 if test $ac_cv_header_stat_broken = yes; then
7158 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if ${ac_cv_header_stdc+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <stdlib.h>
7170 #include <stdarg.h>
7171 #include <string.h>
7172 #include <float.h>
7175 main ()
7179 return 0;
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183 ac_cv_header_stdc=yes
7184 else
7185 ac_cv_header_stdc=no
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 if test $ac_cv_header_stdc = yes; then
7190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 #include <string.h>
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "memchr" >/dev/null 2>&1; then :
7199 else
7200 ac_cv_header_stdc=no
7202 rm -f conftest*
7206 if test $ac_cv_header_stdc = yes; then
7207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <stdlib.h>
7212 _ACEOF
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "free" >/dev/null 2>&1; then :
7216 else
7217 ac_cv_header_stdc=no
7219 rm -f conftest*
7223 if test $ac_cv_header_stdc = yes; then
7224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225 if test "$cross_compiling" = yes; then :
7227 else
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <ctype.h>
7231 #include <stdlib.h>
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7235 #else
7236 # define ISLOWER(c) \
7237 (('a' <= (c) && (c) <= 'i') \
7238 || ('j' <= (c) && (c) <= 'r') \
7239 || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7241 #endif
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7245 main ()
7247 int i;
7248 for (i = 0; i < 256; i++)
7249 if (XOR (islower (i), ISLOWER (i))
7250 || toupper (i) != TOUPPER (i))
7251 return 2;
7252 return 0;
7254 _ACEOF
7255 if ac_fn_c_try_run "$LINENO"; then :
7257 else
7258 ac_cv_header_stdc=no
7260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7275 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7276 if ${ac_cv_header_sys_wait_h+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 #include <sys/types.h>
7282 #include <sys/wait.h>
7283 #ifndef WEXITSTATUS
7284 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7285 #endif
7286 #ifndef WIFEXITED
7287 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7288 #endif
7291 main ()
7293 int s;
7294 wait (&s);
7295 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7297 return 0;
7299 _ACEOF
7300 if ac_fn_c_try_compile "$LINENO"; then :
7301 ac_cv_header_sys_wait_h=yes
7302 else
7303 ac_cv_header_sys_wait_h=no
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7308 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7309 if test $ac_cv_header_sys_wait_h = yes; then
7311 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7316 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7317 if ${ac_cv_header_time+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <sys/types.h>
7323 #include <sys/time.h>
7324 #include <time.h>
7327 main ()
7329 if ((struct tm *) 0)
7330 return 0;
7332 return 0;
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 ac_cv_header_time=yes
7337 else
7338 ac_cv_header_time=no
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7343 $as_echo "$ac_cv_header_time" >&6; }
7344 if test $ac_cv_header_time = yes; then
7346 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7350 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7351 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7353 cat >>confdefs.h <<_ACEOF
7354 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7355 _ACEOF
7358 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7363 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7364 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7366 cat >>confdefs.h <<_ACEOF
7367 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7368 _ACEOF
7371 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7373 else
7374 case " $LIBOBJS " in
7375 *" fileblocks.$ac_objext "* ) ;;
7376 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7378 esac
7383 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7384 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7386 cat >>confdefs.h <<_ACEOF
7387 #define HAVE_STRUCT_STAT_ST_RDEV 1
7388 _ACEOF
7391 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7397 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7398 if ${ac_cv_struct_tm+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <sys/types.h>
7404 #include <time.h>
7407 main ()
7409 struct tm tm;
7410 int *p = &tm.tm_sec;
7411 return !p;
7413 return 0;
7415 _ACEOF
7416 if ac_fn_c_try_compile "$LINENO"; then :
7417 ac_cv_struct_tm=time.h
7418 else
7419 ac_cv_struct_tm=sys/time.h
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7424 $as_echo "$ac_cv_struct_tm" >&6; }
7425 if test $ac_cv_struct_tm = sys/time.h; then
7427 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7431 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7432 #include <$ac_cv_struct_tm>
7435 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7437 cat >>confdefs.h <<_ACEOF
7438 #define HAVE_STRUCT_TM_TM_ZONE 1
7439 _ACEOF
7444 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7446 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7448 else
7449 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7451 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7452 ac_have_decl=1
7453 else
7454 ac_have_decl=0
7457 cat >>confdefs.h <<_ACEOF
7458 #define HAVE_DECL_TZNAME $ac_have_decl
7459 _ACEOF
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7462 $as_echo_n "checking for tzname... " >&6; }
7463 if ${ac_cv_var_tzname+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <time.h>
7469 #if !HAVE_DECL_TZNAME
7470 extern char *tzname[];
7471 #endif
7474 main ()
7476 return tzname[0][0];
7478 return 0;
7480 _ACEOF
7481 if ac_fn_c_try_link "$LINENO"; then :
7482 ac_cv_var_tzname=yes
7483 else
7484 ac_cv_var_tzname=no
7486 rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7490 $as_echo "$ac_cv_var_tzname" >&6; }
7491 if test $ac_cv_var_tzname = yes; then
7493 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7498 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7499 if test "x$ac_cv_type_off_t" = xyes; then :
7501 else
7503 cat >>confdefs.h <<_ACEOF
7504 #define off_t long int
7505 _ACEOF
7509 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7510 if test "x$ac_cv_type_pid_t" = xyes; then :
7512 else
7514 cat >>confdefs.h <<_ACEOF
7515 #define pid_t int
7516 _ACEOF
7520 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7521 if test "x$ac_cv_type_size_t" = xyes; then :
7523 else
7525 cat >>confdefs.h <<_ACEOF
7526 #define size_t unsigned int
7527 _ACEOF
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7532 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7533 if ${ac_cv_type_uid_t+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <sys/types.h>
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "uid_t" >/dev/null 2>&1; then :
7543 ac_cv_type_uid_t=yes
7544 else
7545 ac_cv_type_uid_t=no
7547 rm -f conftest*
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7551 $as_echo "$ac_cv_type_uid_t" >&6; }
7552 if test $ac_cv_type_uid_t = no; then
7554 $as_echo "#define uid_t int" >>confdefs.h
7557 $as_echo "#define gid_t int" >>confdefs.h
7562 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7563 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7565 cat >>confdefs.h <<_ACEOF
7566 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7567 _ACEOF
7573 # Look for some functions
7574 for ac_func in getpagesize kqueue statfs statvfs \
7575 clone kse_create rfork_thread thr_create sa_register \
7576 getcontext makecontext setcontext sigaltstack swapcontext
7577 do :
7578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7581 cat >>confdefs.h <<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7583 _ACEOF
7586 done
7592 for ac_header in $ac_header_list
7593 do :
7594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7598 cat >>confdefs.h <<_ACEOF
7599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 _ACEOF
7604 done
7613 for ac_func in getpagesize
7614 do :
7615 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7616 if test "x$ac_cv_func_getpagesize" = xyes; then :
7617 cat >>confdefs.h <<_ACEOF
7618 #define HAVE_GETPAGESIZE 1
7619 _ACEOF
7622 done
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7625 $as_echo_n "checking for working mmap... " >&6; }
7626 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test "$cross_compiling" = yes; then :
7630 ac_cv_func_mmap_fixed_mapped=no
7631 else
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 /* malloc might have been renamed as rpl_malloc. */
7636 #undef malloc
7638 /* Thanks to Mike Haertel and Jim Avera for this test.
7639 Here is a matrix of mmap possibilities:
7640 mmap private not fixed
7641 mmap private fixed at somewhere currently unmapped
7642 mmap private fixed at somewhere already mapped
7643 mmap shared not fixed
7644 mmap shared fixed at somewhere currently unmapped
7645 mmap shared fixed at somewhere already mapped
7646 For private mappings, we should verify that changes cannot be read()
7647 back from the file, nor mmap's back from the file at a different
7648 address. (There have been systems where private was not correctly
7649 implemented like the infamous i386 svr4.0, and systems where the
7650 VM page cache was not coherent with the file system buffer cache
7651 like early versions of FreeBSD and possibly contemporary NetBSD.)
7652 For shared mappings, we should conversely verify that changes get
7653 propagated back to all the places they're supposed to be.
7655 Grep wants private fixed already mapped.
7656 The main things grep needs to know about mmap are:
7657 * does it exist and is it safe to write into the mmap'd area
7658 * how to use it (BSD variants) */
7660 #include <fcntl.h>
7661 #include <sys/mman.h>
7663 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7664 char *malloc ();
7665 #endif
7667 /* This mess was copied from the GNU getpagesize.h. */
7668 #ifndef HAVE_GETPAGESIZE
7669 # ifdef _SC_PAGESIZE
7670 # define getpagesize() sysconf(_SC_PAGESIZE)
7671 # else /* no _SC_PAGESIZE */
7672 # ifdef HAVE_SYS_PARAM_H
7673 # include <sys/param.h>
7674 # ifdef EXEC_PAGESIZE
7675 # define getpagesize() EXEC_PAGESIZE
7676 # else /* no EXEC_PAGESIZE */
7677 # ifdef NBPG
7678 # define getpagesize() NBPG * CLSIZE
7679 # ifndef CLSIZE
7680 # define CLSIZE 1
7681 # endif /* no CLSIZE */
7682 # else /* no NBPG */
7683 # ifdef NBPC
7684 # define getpagesize() NBPC
7685 # else /* no NBPC */
7686 # ifdef PAGESIZE
7687 # define getpagesize() PAGESIZE
7688 # endif /* PAGESIZE */
7689 # endif /* no NBPC */
7690 # endif /* no NBPG */
7691 # endif /* no EXEC_PAGESIZE */
7692 # else /* no HAVE_SYS_PARAM_H */
7693 # define getpagesize() 8192 /* punt totally */
7694 # endif /* no HAVE_SYS_PARAM_H */
7695 # endif /* no _SC_PAGESIZE */
7697 #endif /* no HAVE_GETPAGESIZE */
7700 main ()
7702 char *data, *data2, *data3;
7703 const char *cdata2;
7704 int i, pagesize;
7705 int fd, fd2;
7707 pagesize = getpagesize ();
7709 /* First, make a file with some known garbage in it. */
7710 data = (char *) malloc (pagesize);
7711 if (!data)
7712 return 1;
7713 for (i = 0; i < pagesize; ++i)
7714 *(data + i) = rand ();
7715 umask (0);
7716 fd = creat ("conftest.mmap", 0600);
7717 if (fd < 0)
7718 return 2;
7719 if (write (fd, data, pagesize) != pagesize)
7720 return 3;
7721 close (fd);
7723 /* Next, check that the tail of a page is zero-filled. File must have
7724 non-zero length, otherwise we risk SIGBUS for entire page. */
7725 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7726 if (fd2 < 0)
7727 return 4;
7728 cdata2 = "";
7729 if (write (fd2, cdata2, 1) != 1)
7730 return 5;
7731 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7732 if (data2 == MAP_FAILED)
7733 return 6;
7734 for (i = 0; i < pagesize; ++i)
7735 if (*(data2 + i))
7736 return 7;
7737 close (fd2);
7738 if (munmap (data2, pagesize))
7739 return 8;
7741 /* Next, try to mmap the file at a fixed address which already has
7742 something else allocated at it. If we can, also make sure that
7743 we see the same garbage. */
7744 fd = open ("conftest.mmap", O_RDWR);
7745 if (fd < 0)
7746 return 9;
7747 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7748 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7749 return 10;
7750 for (i = 0; i < pagesize; ++i)
7751 if (*(data + i) != *(data2 + i))
7752 return 11;
7754 /* Finally, make sure that changes to the mapped area do not
7755 percolate back to the file as seen by read(). (This is a bug on
7756 some variants of i386 svr4.0.) */
7757 for (i = 0; i < pagesize; ++i)
7758 *(data2 + i) = *(data2 + i) + 1;
7759 data3 = (char *) malloc (pagesize);
7760 if (!data3)
7761 return 12;
7762 if (read (fd, data3, pagesize) != pagesize)
7763 return 13;
7764 for (i = 0; i < pagesize; ++i)
7765 if (*(data + i) != *(data3 + i))
7766 return 14;
7767 close (fd);
7768 free (data);
7769 free (data3);
7770 return 0;
7772 _ACEOF
7773 if ac_fn_c_try_run "$LINENO"; then :
7774 ac_cv_func_mmap_fixed_mapped=yes
7775 else
7776 ac_cv_func_mmap_fixed_mapped=no
7778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7779 conftest.$ac_objext conftest.beam conftest.$ac_ext
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7784 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7785 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7787 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7790 rm -f conftest.mmap conftest.txt
7793 #-----------------------------------------------------------------------------
7796 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7797 # it switched on by default, and we use the host compiler, so it compiles AROS
7798 # code with this enabled resulting in link failures as we don't have support
7799 # for it.
7801 # We use two methods to disable it. For the host compiler (used to compile
7802 # some hosted modules), we test to see if the compiler supports stack
7803 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7804 # work on all platforms.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7808 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7809 save_cflags="$CFLAGS"
7810 CFLAGS="$CFLAGS -fno-stack-protector"
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7815 main ()
7819 return 0;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 use_no_stack_protector="yes"
7824 else
7825 use_no_stack_protector="no"
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7829 $as_echo "$use_no_stack_protector" >&6; }
7830 if test "x-$use_no_stack_protector" = "x-yes" ; then
7831 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7833 CFLAGS="$save_cflags"
7835 #-----------------------------------------------------------------------------
7837 # Disable pointer-signedness warnings if the compiler recognises the option
7838 # (this only works for the host compiler at the moment)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7841 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7842 save_cflags="$CFLAGS"
7843 CFLAGS="$CFLAGS -Wno-pointer-sign"
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7848 main ()
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 use_no_sign_warning="yes"
7857 else
7858 use_no_sign_warning="no"
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7862 $as_echo "$use_no_sign_warning" >&6; }
7863 if test "x-$use_no_sign_warning" = "x-yes" ; then
7864 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7866 CFLAGS="$save_cflags"
7868 #-----------------------------------------------------------------------------
7870 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7873 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7874 save_cflags="$CFLAGS"
7875 CFLAGS="$CFLAGS -fgnu89-inline"
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 main ()
7884 return 0;
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 use_gnu89_inline="yes"
7889 else
7890 use_gnu89_inline="no"
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7894 $as_echo "$use_gnu89_inline" >&6; }
7895 if test "x-$use_gnu89_inline" = "x-yes" ; then
7896 gnu89_inline="-fgnu89-inline"
7898 CFLAGS="$save_cflags"
7901 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7902 # On GCC >= 4.0 -iquote should be used
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7905 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7906 CFLAGS="$CFLAGS -iquote."
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 has_iquote="yes"
7920 else
7921 has_iquote="no"
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7925 $as_echo "$has_iquote" >&6; }
7926 if test "x-$has_iquote" = "x-yes" ; then
7927 host_cflags_iquote=-iquote
7928 host_cflags_iquote_end=
7929 else
7930 host_cflags_iquote=-I
7931 host_cflags_iquote_end=-I-
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7935 $as_echo "$as_me: Performing target configuration..." >&6;}
7938 test_kernel_cc=no
7940 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7941 export_newline="
7944 aros_elf_translate=
7945 aros_warn_flags=
7946 aros_isa_extra=
7947 aros_isa_flags=
7948 aros_kernel_isaflags=
7949 aros_config_cppflags=
7950 aros_config_cflags=
7951 aros_config_cxxflags=
7952 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7953 aros_config_ldflags=""
7955 aros_shared_default=yes
7957 aros_shared_cflags="-fPIC"
7958 aros_shared_aflags=""
7959 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7960 aros_kernel_ldflags="-Wl,-rpath,./lib"
7962 aros_kernel_ar_flags="cr"
7963 aros_target_ar_flags="cr"
7964 aros_target_nm_flags="-C -ul"
7965 aros_target_strip_flags="--strip-unneeded -R.comment"
7967 aros_c_libs=
7968 aros_cxx_libs=
7970 aros_target_genmap="-Wl,-Map -Xlinker"
7972 # Native flavour stuff
7973 aros_serial_debug="0"
7975 # Palm native flavour stuff
7976 aros_palm_debug_hack="0"
7978 # Unix flavour stuff
7979 aros_nesting_supervisor="0"
7981 # Collect-aros stuff: "-ius" to ignore undefined symbols
7982 ignore_undefined_symbols=""
7984 # Check for X11 by default
7985 need_x11="auto"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7988 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7990 # Check whether --with-toolchain was given.
7991 if test "${with_toolchain+set}" = set; then :
7992 withval=$with_toolchain; aros_toolchain="$withval"
7993 else
7994 aros_toolchain="$default_toolchain_family"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7998 $as_echo "$aros_toolchain" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8002 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8003 # Check whether --enable-lto was given.
8004 if test "${enable_lto+set}" = set; then :
8005 enableval=$enable_lto; aros_config_lto="$enableval"
8006 else
8007 aros_config_lto="no"
8010 if test "$aros_config_lto" != "no"; then
8011 aros_config_lto="yes"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8014 $as_echo "$aros_config_lto" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8017 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8018 # Check whether --enable-coverage was given.
8019 if test "${enable_coverage+set}" = set; then :
8020 enableval=$enable_coverage; aros_config_coverage="$enableval"
8021 else
8022 aros_config_coverage="no"
8025 if test "$aros_config_coverage" != "no"; then
8026 aros_config_coverage="yes"
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8029 $as_echo "$aros_config_coverage" >&6; }
8031 use_ld_wrapper=yes
8033 case "$aros_toolchain" in
8034 *llvm*)
8035 toolchain_c_compiler="clang"
8036 toolchain_cxx_compiler="clang++"
8037 toolchain_cpp_preprocessor="clang"
8038 toolchain_cpp_opts=" -E"
8039 toolchain_ld="ld.lld"
8040 aros_ld="ld"
8041 toolchain_as="llvm-as"
8042 toolchain_ar="llvm-ar"
8043 toolchain_ranlib="llvm-ranlib"
8044 toolchain_nm="llvm-nm"
8045 toolchain_strip="true"
8046 toolchain_objcopy="llvm-objcopy"
8047 toolchain_objdump="llvm-objdump"
8048 use_libatomic=yes
8049 toolchain_def_opt_lvl="-O2"
8050 toolchain_debug_opt_lvl="-O0"
8051 toolchain_size_opt_lvl="-Os"
8053 *gnu*)
8054 toolchain_c_compiler="gcc"
8055 toolchain_cxx_compiler="g++"
8056 toolchain_cpp_preprocessor="gcc"
8057 toolchain_cpp_opts=" -E"
8058 toolchain_as="as"
8059 aros_ld="ld"
8060 if test "$aros_config_lto" != "yes"; then
8061 toolchain_ld="ld"
8062 toolchain_ar="ar"
8063 toolchain_ranlib="ranlib"
8064 toolchain_nm="nm"
8065 else
8066 toolchain_ld="ld.bfd"
8067 toolchain_ar="gcc-ar"
8068 toolchain_ranlib="gcc-ranlib"
8069 toolchain_nm="gcc-nm"
8071 toolchain_strip="strip"
8072 toolchain_objcopy="objcopy"
8073 toolchain_objdump="objdump"
8074 use_libatomic=yes
8075 toolchain_def_opt_lvl="-O2"
8076 toolchain_debug_opt_lvl="-O0"
8077 toolchain_size_opt_lvl="-Os"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8081 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8082 toolchain_c_compiler="cc"
8083 toolchain_cxx_compiler="c++"
8084 toolchain_cpp_preprocessor="cpp"
8085 toolchain_cpp_opts=
8086 toolchain_ld="ld"
8087 aros_ld="ld"
8088 toolchain_as="as"
8089 toolchain_ar="ar"
8090 toolchain_ranlib="ranlib"
8091 toolchain_nm="nm"
8092 toolchain_strip="strip"
8093 toolchain_objcopy="objcopy"
8094 toolchain_objdump="objdump"
8096 esac
8098 #-----------------------------------------------------------------------------
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8101 $as_echo_n "checking which type of build to do... " >&6; }
8102 # Check whether --enable-build_type was given.
8103 if test "${enable_build_type+set}" = set; then :
8104 enableval=$enable_build_type; build_type=$enableval
8105 else
8106 build_type="personal"
8110 if test "$build_type" = "nightly"; then
8111 build_type_string="NIGHTLY"
8112 elif test "$build_type" = "snapshot"; then
8113 build_type_string="SNAPSHOT"
8114 elif test "$build_type" = "milestone"; then
8115 build_type_string="MILESTONE"
8116 elif test "$build_type" = "release"; then
8117 build_type_string="RELEASE"
8118 else
8119 build_type_string="PERSONAL"
8120 build_type="personal"
8123 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8126 $as_echo "$build_type" >&6; }
8128 #-----------------------------------------------------------------------------
8129 all_debug_types="messages stack modules mungwall symbols"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8132 $as_echo_n "checking which debug types to enable... " >&6; }
8133 # Check whether --enable-debug was given.
8134 if test "${enable_debug+set}" = set; then :
8135 enableval=$enable_debug; debug="$enableval"
8136 else
8137 debug=""
8141 if test "$debug" = "" -o "$debug" = "no"; then
8142 debug="none"
8143 elif test "$debug" = "yes"; then
8144 debug="all"
8147 if test "$debug" = "all" ; then
8148 debug="messages stack modules symbols"
8149 for d in $all_debug_types; do
8150 export aros_${d}_debug="1"
8151 done
8152 else
8153 for d in $all_debug_types; do
8154 export aros_${d}_debug="0"
8155 done
8158 if test "$debug" != "none"; then
8159 debug=`echo $debug | sed s/,/\ /g`
8160 for d in $debug; do
8161 found="0"
8162 for d2 in $all_debug_types; do
8163 if test "$d2" = "$d"; then
8164 found="1"
8165 break
8167 done
8168 if test "$found" = "0"; then
8169 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8171 export aros_${d}_debug="1"
8172 done
8173 aros_debug="yes"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8176 $as_echo "$debug" >&6; }
8178 if test "$aros_messages_debug" = "1"; then
8179 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8180 else
8181 aros_messages_debug=""
8183 if test "$aros_symbols_debug" = "1"; then
8184 aros_symbols_debug="-g"
8185 else
8186 aros_symbols_debug=""
8189 # These are the flags to pass when compiling debugged programs
8190 aros_debug_cppflags="$aros_messages_debug"
8191 aros_debug_cflags="$aros_symbols_debug"
8192 aros_debug_cxxflags=
8193 aros_debug_aflags=""
8194 aros_debug_ldflags="$aros_symbols_debug"
8196 #-----------------------------------------------------------------------------
8197 # Checking for distcc and ccache.
8199 # Always apply the transforms in this particular order. Basically you should
8200 # always run 'ccache distcc compiler' in that order for the best performance.
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8203 $as_echo_n "checking whether to enable distcc... " >&6; }
8204 # Check whether --enable-distcc was given.
8205 if test "${enable_distcc+set}" = set; then :
8206 enableval=$enable_distcc; distcc="$enableval"
8207 else
8208 distcc="no"
8211 if test "$distcc" != "" -a "$distcc" != "no"; then
8212 # AC_CHECK_PROG will print out the result in this case
8213 # Extract the first word of "distcc", so it can be a program name with args.
8214 set dummy distcc; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_path_DISTCC+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 case $DISTCC in
8221 [\\/]* | ?:[\\/]*)
8222 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8240 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8242 esac
8244 DISTCC=$ac_cv_path_DISTCC
8245 if test -n "$DISTCC"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8247 $as_echo "$DISTCC" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8260 $as_echo_n "checking whether to enable ccache... " >&6; }
8261 # Check whether --enable-ccache was given.
8262 if test "${enable_ccache+set}" = set; then :
8263 enableval=$enable_ccache; ccache="$enableval"
8264 else
8265 ccache="no"
8268 if test "$ccache" != "" -a "$ccache" != "no"; then
8269 # AC_CHECK_PROG will print out the result in this case
8270 # Extract the first word of "ccache", so it can be a program name with args.
8271 set dummy ccache; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_CCACHE+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$CCACHE"; then
8278 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_CCACHE="ccache"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8291 done
8292 done
8293 IFS=$as_save_IFS
8297 CCACHE=$ac_cv_prog_CCACHE
8298 if test -n "$CCACHE"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8300 $as_echo "$CCACHE" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8312 #-----------------------------------------------------------------------------
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8314 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8316 # Check whether --with-kernel-gcc-version was given.
8317 if test "${with_kernel_gcc_version+set}" = set; then :
8318 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8319 else
8320 kernel_tool_version=""
8323 if test "$kernel_tool_version" != "" ; then
8324 msg_result=$kernel_tool_version
8325 else
8326 msg_result="default"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8329 $as_echo "$msg_result" >&6; }
8331 #-----------------------------------------------------------------------------
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8333 $as_echo_n "checking what optimization flags to use... " >&6; }
8335 # Check whether --with-optimization was given.
8336 if test "${with_optimization+set}" = set; then :
8337 withval=$with_optimization; optimization_level="$withval"
8338 else
8339 optimization_level="unknown"
8342 if test "$optimization_level" = "unknown"; then
8343 optimization="default"
8344 if test "$debug" != "none"; then
8345 optimization_level=$toolchain_debug_opt_lvl
8346 else
8347 optimization_level=$toolchain_def_opt_lvl
8349 else
8350 optimization="$optimization_level"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8353 $as_echo "$optimization" >&6; }
8355 paranoia_default=yes
8356 #-----------------------------------------------------------------------------
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8358 $as_echo_n "checking which paranoia flags to use... " >&6; }
8360 # Check whether --with-paranoia was given.
8361 if test "${with_paranoia+set}" = set; then :
8362 withval=$with_paranoia; paranoia_flags="$withval"
8363 else
8364 paranoia_flags="$paranoia_default"
8367 if test "$paranoia_flags" = "no"; then
8368 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8369 msg_result="none"
8370 else
8371 if test "$paranoia_flags" = "yes"; then
8372 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8374 msg_result="$paranoia_flags"
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8377 $as_echo "$msg_result" >&6; }
8378 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8380 #-----------------------------------------------------------------------------
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8382 $as_echo_n "checking what target variant to enable... " >&6; }
8383 # Check whether --enable-target_variant was given.
8384 if test "${enable_target_variant+set}" = set; then :
8385 enableval=$enable_target_variant; target_variant=$enableval
8386 else
8387 target_variant=""
8390 if test "$target_variant" = ""; then
8391 aros_target_variant=""
8392 aros_target_suffix=""
8393 enableval="none"
8394 else
8395 aros_target_variant="$target_variant"
8396 aros_target_suffix="-$target_variant"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8399 $as_echo "$enableval" >&6; }
8401 #-----------------------------------------------------------------------------
8402 # Target-specific defaults. You can override then on a per-target basis.
8404 # Bootloader name. Currently used by PC target.
8405 target_bootloader="none"
8406 PLATFORM_EXECSMP=
8407 ENABLE_EXECSMP=
8409 #-----------------------------------------------------------------------------
8410 # Additional options for some specific targets
8412 case "$aros_target_variant" in
8413 ios)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8415 $as_echo_n "checking XCode path... " >&6; }
8417 # Check whether --with-xcode was given.
8418 if test "${with_xcode+set}" = set; then :
8419 withval=$with_xcode; aros_xcode_path="$withval"
8420 else
8421 aros_xcode_path="/Developer"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8425 $as_echo "$aros_xcode_path" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8428 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8430 # Check whether --with-sdk-version was given.
8431 if test "${with_sdk_version+set}" = set; then :
8432 withval=$with_sdk_version; aros_sdk_version="$withval"
8433 else
8434 aros_sdk_version="4.1"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8438 $as_echo "$aros_sdk_version" >&6; }
8442 "android")
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8444 $as_echo_n "checking Android SDK path... " >&6; }
8446 # Check whether --with-sdk was given.
8447 if test "${with_sdk+set}" = set; then :
8448 withval=$with_sdk; aros_android_sdk="$withval"
8449 else
8450 aros_android_sdk=$default_android_sdk
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8454 $as_echo "$aros_android_sdk" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8457 $as_echo_n "checking Android NDK path... " >&6; }
8459 # Check whether --with-ndk was given.
8460 if test "${with_ndk+set}" = set; then :
8461 withval=$with_ndk; aros_android_ndk="$withval"
8462 else
8463 aros_android_ndk="none"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8467 $as_echo "$aros_android_ndk" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8470 $as_echo_n "checking what Android SDK version to use... " >&6; }
8472 # Check whether --with-sdk-version was given.
8473 if test "${with_sdk_version+set}" = set; then :
8474 withval=$with_sdk_version; aros_sdk_version="$withval"
8475 else
8476 aros_sdk_version="12"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8480 $as_echo "$aros_sdk_version" >&6; }
8482 aros_android_level=android-$aros_sdk_version
8483 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8484 echo "Platform $aros_android_level is not installed in your SDK"
8485 echo "Use --with-sdk-version=<API level number> to select another platform version"
8486 echo "You can check what plaform versions are installed in your SDK"
8487 echo "by examining contents of $aros_android_sdk/platforms directory"
8488 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8491 export PATH="$aros_android_sdk/tools:$PATH"
8492 # Extract the first word of "$android_tool", so it can be a program name with args.
8493 set dummy $android_tool; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_path_android_tool+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 case $android_tool in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8517 IFS=$as_save_IFS
8520 esac
8522 android_tool=$ac_cv_path_android_tool
8523 if test -n "$android_tool"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8525 $as_echo "$android_tool" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8532 req_avail=yes
8533 if test "$android_tool" = ""; then
8534 req_avail=no
8536 if test "$android_tool" = "no"; then
8537 req_avail=no
8539 if test "$req_avail" = "no"; then
8540 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8543 if test "$aros_android_ndk" != "none"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8545 $as_echo_n "checking what Android NDK version to use... " >&6; }
8547 # Check whether --with-ndk-version was given.
8548 if test "${with_ndk_version+set}" = set; then :
8549 withval=$with_ndk_version; aros_ndk_version="$withval"
8550 else
8551 aros_ndk_version="9"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8555 $as_echo "$aros_ndk_version" >&6; }
8558 # Extract the first word of "ant", so it can be a program name with args.
8559 set dummy ant; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_path_ant+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 case $ant in
8566 [\\/]* | ?:[\\/]*)
8567 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8581 done
8582 done
8583 IFS=$as_save_IFS
8586 esac
8588 ant=$ac_cv_path_ant
8589 if test -n "$ant"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8591 $as_echo "$ant" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8598 if test "$ant" = ""; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8600 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8604 $as_echo_n "checking Build debug or release apk... " >&6; }
8606 # Check whether --with-apk-version was given.
8607 if test "${with_apk_version+set}" = set; then :
8608 withval=$with_apk_version; aros_android_antapk=$withval
8609 else
8610 aros_android_antapk=release
8613 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8614 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8617 $as_echo "$aros_android_antapk" >&6; }
8619 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8620 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8621 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8623 if test "$host_os" = "mingw32"; then
8624 android_tool="cmd //c $android_tool"
8627 need_dlopen="no"
8630 esac
8632 #-----------------------------------------------------------------------------
8633 # External toolchains
8634 kernel_tool_prefix="none"
8635 aros_tool_prefix="none"
8636 elf_tool_prefix="${target_cpu}-elf-"
8638 # Base target cpu ISA configuration switch.
8639 case "$target_cpu" in
8640 *aarch64*)
8642 *arm*)
8644 *m68k*)
8645 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8646 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8647 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8648 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8649 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8650 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8651 m68k_020_ext="ISA_MC68020_EXT :=020"
8652 m68k_030_ext="ISA_MC68030_EXT :=030"
8653 m68k_040_ext="ISA_MC68040_EXT :=040"
8654 m68k_060_ext="ISA_MC68060_EXT :=060"
8655 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8656 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8657 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8658 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8659 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8660 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8661 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8662 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8663 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8664 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8665 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8666 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8668 *x86_64* | *i?86*)
8669 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8670 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8672 *powerpc*)
8674 esac
8676 # This is the target configuration switch.
8677 case "$target_os" in
8678 linux*)
8679 HOST_WANTS_X11=yes
8680 HOST_WANTS_GLX=yes
8681 HOST_WANTS_SDL=yes
8682 HOST_WANTS_DBUS=yes
8683 HOST_WANTS_DLOPEN=yes
8684 aros_target_arch="linux"
8685 aros_target_family="unix"
8686 case "$target_cpu" in
8687 *m68k*)
8688 aros_target_cpu="m68k"
8689 aros_object_format="m68kelf"
8690 aros_flavour="emulcompat"
8691 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8692 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8693 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8694 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8695 gcc_target_cpu="mc68000"
8697 *i?86*)
8698 aros_target_cpu="i386"
8699 aros_object_format="elf_i386"
8700 aros_flavour="emulation"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8702 aros_isa_flags="$""(ISA_X86_FLAGS)"
8703 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8704 aros_kernel_ldflags="-Wl,-melf_i386"
8705 aros_nominal_depth=8
8706 gcc_target_cpu="i386"
8707 pci_hidd_target="hidd-pci-linux"
8708 android_tool_dir_prefix="x86"
8709 android_tool_prefix="i686-android-linux"
8710 android_ndk_arch="x86"
8712 *x86_64*)
8713 aros_target_cpu="x86_64"
8714 aros_object_format="elf_x86_64"
8715 aros_flavour="emulation"
8716 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8717 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8718 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8719 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8720 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8721 aros_nominal_depth=8
8722 pci_hidd_target="hidd-pci-linux"
8724 *powerpc*)
8725 aros_target_cpu="ppc"
8726 aros_object_format="elf32ppc"
8727 aros_flavour="emulation"
8728 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8729 aros_nominal_depth=8
8730 gcc_target_cpu="ppc"
8732 # TODO
8733 # Same as powerpc, but I need this for the nightly build to work again.
8734 # Actually, the nightly should be made working with powerpc target.
8735 # That just was too much work for the moment, another week or two.
8736 *ppc*)
8737 aros_target_cpu="ppc"
8738 aros_object_format="elf32ppc"
8739 aros_flavour="emulation"
8740 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8741 aros_nominal_depth=8
8742 gcc_target_cpu="ppc"
8744 *aarch64*)
8745 aros_target_cpu="aarch64"
8746 target_cpu="aarch64"
8747 aros_object_format="aarch64elf_aros"
8748 aros_flavour="emulation"
8749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8750 gcc_target_cpu="aarch64"
8751 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8752 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8753 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8754 aros_c_libs="$aros_c_libs -laeabi"
8755 gcc_default_float_abi="hard"
8756 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8758 *armhf*)
8759 aros_target_cpu="arm"
8760 target_cpu="arm"
8761 aros_object_format="armelf_aros"
8762 aros_flavour="emulation"
8763 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8764 gcc_target_cpu="arm"
8765 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8766 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8767 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8768 aros_c_libs="$aros_c_libs -laeabi"
8769 gcc_default_float_abi="hard"
8770 android_tool_dir_prefix="arm-linux-androideabi"
8771 android_tool_prefix="arm-linux-androideabi"
8772 android_ndk_arch="arm"
8773 kernel_tool_prefix="arm-linux-gnueabihf-"
8775 *arm*)
8776 aros_target_cpu="arm"
8777 aros_object_format="armelf_aros"
8778 aros_flavour="emulation"
8779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8780 gcc_target_cpu="arm"
8781 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8782 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8783 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8784 aros_c_libs="$aros_c_libs -laeabi"
8785 android_tool_dir_prefix="arm-linux-androideabi"
8786 android_tool_prefix="arm-linux-androideabi"
8787 android_ndk_arch="arm"
8788 kernel_tool_prefix="arm-linux-gnueabi-"
8791 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8793 esac
8794 case "$aros_target_variant" in
8795 android)
8797 if test "$android_ndk_arch" = ""; then
8798 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8801 aros_nominal_width=320
8802 aros_nominal_height=480
8803 if test "$aros_android_ndk" = "none"; then
8804 aros_kernel_cflags="-mandroid"
8805 aros_kernel_ldflags="-mandroid"
8806 CFLAGS="-mandroid"
8807 else
8808 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8809 kernel_tool_version=""
8810 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8811 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8812 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8813 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8814 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8816 need_x11=no
8817 # Disable implicit PIC mode
8818 aros_config_cflags="$aros_config_cflags -fno-pic"
8819 kernel_tool_prefix="$android_tool_prefix-"
8821 esac
8825 aros_target_arch="pc"
8826 aros_shared_default="no"
8827 target_bootloader="grub2"
8828 case "$target_cpu" in
8829 *i?86*)
8830 aros_target_cpu="i386"
8833 if test "$aros_object_format" = "" ; then
8834 aros_object_format="elf_i386"
8836 aros_flavour="standalone"
8837 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8838 aros_isa_flags="$""(ISA_X86_FLAGS)"
8839 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8840 aros_kernel_ldflags="-Wl,-melf_i386"
8841 aros_nominal_width=640
8842 aros_nominal_height=480
8843 gcc_target_cpu="i386"
8845 *x86_64*)
8846 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8847 aros_target_cpu="x86_64"
8848 aros_serial_debug=1
8849 if test "$aros_object_format" = "" ; then
8850 aros_object_format="elf_x86_64"
8852 aros_flavour="standalone"
8853 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8854 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8855 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8856 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8857 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8858 aros_kernel_ldflags=""
8859 aros_nominal_width=640
8860 aros_nominal_height=480
8861 case "$aros_target_variant" in
8862 smp)
8863 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8865 esac
8868 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8870 esac
8873 prep)
8874 aros_target_arch="prep"
8875 aros_shared_default="no"
8876 aros_target_cpu="ppc"
8877 aros_object_format="elf32ppc"
8878 aros_flavour="ppcnative"
8879 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8880 aros_kernel_ldflags=""
8881 aros_nominal_width=640
8882 aros_nominal_height=480
8883 gcc_target_cpu="ppc"
8886 freebsd*)
8887 HOST_WANTS_X11=yes
8888 HOST_WANTS_GLX=yes
8889 HOST_WANTS_SDL=yes
8890 HOST_WANTS_DBUS=yes
8891 HOST_WANTS_DLOPEN=yes
8892 aros_target_arch="freebsd"
8893 aros_target_family="unix"
8894 aros_target_cpu="i386"
8895 aros_flavour="emulation"
8896 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8897 gcc_target_cpu="i386"
8899 aros_target_strip_flags="-x"
8902 darwin*)
8903 HOST_WANTS_X11=yes
8904 HOST_WANTS_GLX=yes
8905 HOST_WANTS_SDL=yes
8906 HOST_WANTS_DBUS=yes
8907 HOST_WANTS_DLOPEN=yes
8908 aros_target_arch="darwin"
8909 aros_target_family="unix"
8910 aros_flavour="emulation"
8911 case "$target_cpu" in
8912 *i?86*)
8913 aros_ios_platform="iPhoneSimulator"
8914 aros_target_cpu="i386"
8915 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8916 aros_isa_flags="$""(ISA_X86_FLAGS)"
8917 aros_kernel_ldflags=""
8918 aros_macosx_version="10.4"
8919 aros_nominal_depth=8
8920 gcc_target_cpu="i386"
8921 aros_object_format="elf_i386"
8922 aros_kernel_ar_flags="-cr"
8923 aros_target_strip_flags="-x"
8924 kernel_tool_flags="-m32"
8926 *x86_64*)
8927 aros_target_cpu="x86_64"
8928 aros_object_format="elf_x86_64"
8929 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8930 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8931 aros_macosx_version="10.6"
8932 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8933 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8934 aros_kernel_cflags="-m64"
8935 aros_kernel_ldflags="-m64"
8936 aros_nominal_depth=8
8937 aros_kernel_rs="$toolchain_ar"
8938 aros_kernel_ar_flags="-cr"
8939 aros_kernel_ld="$toolchain_ld"
8940 aros_kernel_as="$toolchain_as"
8941 aros_kernel_ranlib="$toolchain_ranlib"
8942 aros_kernel_nm="$toolchain_nm"
8943 aros_kernel_strip="strip"
8944 kernel_tool_prefix="i686-apple-darwin10-"
8946 *ppc*)
8947 aros_target_cpu="ppc"
8948 aros_object_format="elf32ppc"
8949 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8950 aros_kernel_ldflags=""
8951 aros_macosx_version="10.0"
8952 aros_nominal_depth=8
8953 gcc_target_cpu="ppc"
8954 aros_kernel_rs="$toolchain_ar"
8955 aros_kernel_ar_flags="-cr"
8956 aros_kernel_ld="$toolchain_ld -arch ppc"
8957 aros_kernel_as="$toolchain_as -arch ppc"
8958 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
8959 aros_kernel_nm="$toolchain_nm -arch ppc"
8960 aros_kernel_strip="strip -arch ppc"
8961 kernel_tool_prefix="powerpc-apple-darwin10-"
8963 *arm*)
8964 aros_ios_platform="iPhoneOS"
8965 aros_target_cpu="arm"
8966 aros_object_format="armelf_aros"
8967 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8968 aros_c_libs="$aros_c_libs -laeabi"
8969 aros_nominal_depth=8
8970 gcc_target_cpu="arm"
8971 aros_kernel_rs="$toolchain_ar"
8972 aros_kernel_ar_flags="-cr"
8973 aros_kernel_ld="$toolchain_ld -arch arm"
8974 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
8975 kernel_tool_prefix="arm-apple-darwin10-"
8976 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8979 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8981 esac
8982 case "$aros_target_variant" in
8983 ios)
8984 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8985 aros_ios_version="3.0"
8986 aros_nominal_width=320
8987 aros_nominal_height=480
8988 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8989 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"
8990 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8991 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8992 need_x11=no
8993 # This is here because it may depend on iOS or SDK version
8994 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8995 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8996 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8999 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9000 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9002 esac
9005 dragonfly*)
9006 HOST_WANTS_X11=yes
9007 HOST_WANTS_GLX=yes
9008 HOST_WANTS_SDL=yes
9009 HOST_WANTS_DBUS=yes
9010 HOST_WANTS_DLOPEN=yes
9011 aros_target_arch="dragonfly"
9012 aros_target_family="unix"
9013 aros_flavour="emulation"
9014 case "$target_cpu" in
9015 *i?86*)
9016 aros_target_cpu="i386"
9017 aros_object_format="elf_i386"
9018 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9019 aros_isa_flags="$""(ISA_X86_FLAGS)"
9021 *x86_64*)
9022 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9023 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9024 aros_target_cpu="x86_64"
9025 aros_object_format="elf_x86_64"
9026 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9027 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9030 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9032 esac
9035 netbsd*)
9036 HOST_WANTS_X11=yes
9037 HOST_WANTS_GLX=yes
9038 HOST_WANTS_SDL=yes
9039 HOST_WANTS_DBUS=yes
9040 HOST_WANTS_DLOPEN=yes
9041 aros_target_arch="netbsd"
9042 aros_target_family="unix"
9043 case "$target_cpu" in
9044 *m68k*)
9045 aros_target_cpu="m68k"
9046 aros_object_format="m68kelf"
9047 aros_flavour="emulcompat"
9048 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9049 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9050 gcc_target_cpu="mc68000"
9052 *i?86*)
9053 aros_target_cpu="i386"
9054 aros_object_format="elf_i386"
9055 aros_flavour="emulation"
9056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9057 aros_isa_flags="$""(ISA_X86_FLAGS)"
9058 aros_nominal_depth=8
9059 gcc_target_cpu="i386"
9062 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9064 esac
9065 aros_target_genmap="-Wl,-M -Xlinker >"
9066 aros_flavour="emulation"
9067 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9070 openbsd*)
9071 HOST_WANTS_X11=yes
9072 HOST_WANTS_GLX=yes
9073 HOST_WANTS_SDL=yes
9074 HOST_WANTS_DBUS=yes
9075 HOST_WANTS_DLOPEN=yes
9076 aros_target_arch="openbsd"
9077 aros_target_family="unix"
9078 case "$target_cpu" in
9079 *i?86*)
9080 aros_target_cpu="i386"
9081 aros_object_format="elf_i386"
9082 aros_flavour="emulation"
9083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9084 aros_isa_flags="$""(ISA_X86_FLAGS)"
9085 gcc_target_cpu="i386"
9088 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9090 esac
9091 aros_target_genmap="-Wl,-M -Xlinker >"
9092 aros_target_nm_flags="-u"
9093 aros_flavour="emulation"
9096 solaris*)
9097 aros_target_arch="solaris"
9098 aros_target_family="unix"
9099 case "$target_cpu" in
9100 *i?86*)
9101 aros_target_cpu="i386"
9102 aros_object_format="elf_i386"
9103 aros_flavour="emulation"
9104 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9105 aros_isa_flags="$""(ISA_X86_FLAGS)"
9106 aros_nominal_depth=8
9107 gcc_target_cpu="i386"
9109 *sparc*)
9110 aros_target_cpu="sparc"
9111 aros_object_format="elf_sparc"
9112 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9113 gcc_target_cpu="sparc"
9116 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9118 esac
9119 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
9120 aros_flavour="emulation"
9123 morphos*)
9124 aros_target_arch="morphos"
9125 aros_shared_default="no"
9126 aros_target_cpu="ppc"
9127 aros_object_format="elf_ppc"
9128 aros_flavour="nativecompat"
9129 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9130 gcc_target_cpu="ppc"
9133 sam440)
9134 aros_target_arch="sam440"
9135 aros_shared_default="no"
9136 aros_target_cpu="ppc"
9137 aros_object_format="elf32ppc"
9138 aros_flavour="ppcnative"
9139 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9140 aros_kernel_ldflags=""
9141 aros_nominal_width=1024
9142 aros_nominal_height=768
9143 aros_nominal_depth=24
9144 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
9145 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9146 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9147 gcc_target_cpu="powerpc"
9150 efika)
9151 aros_target_arch="efika"
9152 aros_shared_default="no"
9153 aros_target_cpu="arm"
9154 aros_object_format="armelf_aros"
9155 aros_flavour="standalone"
9156 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9157 aros_kernel_ldflags=""
9158 aros_nominal_width=1024
9159 aros_nominal_height=600
9160 aros_c_libs="$aros_c_libs -laeabi"
9161 gcc_default_cpu="armv7-a"
9162 gcc_default_fpu="vfpv3"
9163 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
9164 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9165 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9166 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9167 if test "$optimization" = "default"; then
9168 optimization_level=$toolchain_size_opt_lvl
9170 case "$target_cpu" in
9171 *armhf*)
9172 gcc_default_float_abi="hard"
9173 target_cpu=arm
9174 aros_target_cpu=arm
9176 *arm*)
9177 gcc_default_float_abi="softfp"
9180 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9182 esac
9185 chrp)
9186 aros_target_arch="chrp"
9187 aros_shared_default="no"
9188 aros_target_cpu="ppc"
9189 aros_object_format="elf32ppc"
9190 aros_flavour="ppcnative"
9191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9192 aros_kernel_ldflags=""
9193 aros_nominal_width=640
9194 aros_nominal_height=480
9195 aros_isa_flags="$aros_isa_flags -mno-toc"
9196 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9197 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9198 gcc_target_cpu="powerpc"
9199 case "$aros_target_variant" in
9200 efika)
9201 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9202 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9204 esac
9207 r*pi)
9208 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9209 aros_flavour="standalone"
9210 aros_target_arch="raspi"
9212 aros_shared_default="no"
9214 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9216 case "$target_cpu" in
9217 *aarch64*)
9218 aros_target_cpu="aarch64"
9219 gcc_default_cpu="aarch64"
9220 aros_object_format="aarch64elf_aros"
9222 *armhf*)
9223 aros_target_cpu="arm"
9224 gcc_default_cpu="armv6zk"
9225 gcc_default_cpu_tune="arm1176jzf-s"
9226 aros_object_format="armelf_aros"
9227 aros_isa_flags="$aros_isa_flags -marm"
9228 aros_config_cflags="$aros_config_cflags"
9229 aros_config_cxxflags="$aros_config_cxxflags"
9230 aros_config_aflags="$aros_config_aflags -marm"
9231 aros_kernel_cflags="$aros_kernel_cflags -marm"
9232 aros_target_mkdep="$aros_target_mkdep -Darm"
9233 aros_c_libs="$aros_c_libs -laeabi"
9235 *armeb*)
9236 aros_flavour="standcompat"
9237 aros_target_cpu="armeb"
9238 gcc_default_float_abi="hard"
9239 gcc_default_cpu="armv7ve"
9240 gcc_default_cpu_tune="cortex-a7"
9241 aros_object_format="armelfb_aros"
9242 aros_isa_flags="$aros_isa_flags -marm"
9243 aros_config_cflags="$aros_config_cflags"
9244 aros_config_cxxflags="$aros_config_cxxflags"
9245 aros_config_aflags="$aros_config_aflags -marm"
9246 aros_kernel_cflags="$aros_kernel_cflags -marm"
9247 aros_target_mkdep="$aros_target_mkdep -Darm"
9248 aros_c_libs="$aros_c_libs -laeabi"
9250 *arm*)
9251 aros_target_cpu="arm"
9252 gcc_default_cpu="armv6zk"
9253 gcc_default_cpu_tune="arm1176jzf-s"
9254 aros_object_format="armelf_aros"
9255 aros_isa_flags="$aros_isa_flags -marm"
9256 aros_config_cflags="$aros_config_cflags"
9257 aros_config_cxxflags="$aros_config_cxxflags"
9258 aros_config_aflags="$aros_config_aflags -marm"
9259 aros_kernel_cflags="$aros_kernel_cflags -marm"
9260 aros_target_mkdep="$aros_target_mkdep -Darm"
9261 aros_c_libs="$aros_c_libs -laeabi"
9264 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9266 esac
9268 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9269 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9270 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9271 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9273 case "$aros_target_variant" in
9274 smp)
9275 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9277 esac
9280 stm32f7_discovery)
9281 aros_flavour="standalone"
9282 aros_target_arch="stm32f7_discovery"
9283 aros_target_cpu="arm"
9284 aros_target_cpu_mode="thumb2"
9285 aros_object_format="armelf_aros"
9286 aros_shared_default="no"
9288 gcc_default_cpu="armv7e-m"
9289 gcc_default_cpu_tune="cortex-m7"
9290 gcc_default_fpu="fpv5-sp-d16"
9291 gcc_default_float_abi="hard"
9293 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9296 amiga*)
9297 aros_elf_translate="$""(ELF2HUNK)"
9298 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9299 aros_target_arch="amiga"
9300 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9301 aros_shared_default="no"
9303 case "$target_cpu" in
9304 *m68k*)
9305 # Check whether --enable-amigaos_compliance was given.
9306 if test "${enable_amigaos_compliance+set}" = set; then :
9307 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9310 aros_enable_mmu=no
9311 aros_target_cpu="m68k"
9312 aros_object_format="m68kelf"
9313 aros_flavour="standcompat"
9314 gcc_target_cpu="m68000"
9315 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9316 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9317 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9318 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9319 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9320 if test "$optimization" = "default"; then
9321 optimization_level=$toolchain_size_opt_lvl
9323 aros_config_aflags="$aros_config_aflags"
9324 aros_target_strip_flags="-R.comment --strip-debug"
9325 aros_nominal_width=640
9326 aros_nominal_height=256
9327 aros_nominal_depth=2
9329 *ppc*)
9330 aros_cpu="ppc"
9331 aros_flavour="native"
9332 gcc_target_cpu="ppc"
9335 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9337 esac
9340 mingw*)
9341 aros_target_arch="mingw32"
9342 aros_shared_default="no"
9343 aros_flavour="emulation"
9344 aros_shared_cflags=""
9345 need_crosstools="yes"
9346 need_dlopen="no"
9347 rescomp="windres"
9348 case "$target_cpu" in
9349 *i?86*)
9350 aros_target_cpu="i386"
9351 aros_object_format="elf_i386"
9352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9353 aros_isa_flags="$""(ISA_X86_FLAGS)"
9354 aros_nominal_depth=8
9355 gcc_target_cpu="i386"
9357 kernel_tool_prefix="i386-mingw32-"
9359 *x86_64*)
9360 aros_target_cpu="x86_64"
9361 aros_object_format="elf_x86_64"
9362 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9363 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9364 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9365 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9366 aros_nominal_depth=8
9367 kernel_tool_prefix="x86_64-w64-mingw32-"
9369 *arm*)
9370 aros_target_cpu="arm"
9371 aros_object_format="armelf_aros"
9372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9373 aros_c_libs="$aros_c_libs -laeabi"
9374 aros_nominal_depth=8
9375 gcc_target_cpu="arm"
9376 gcc_default_float_abi="soft"
9377 kernel_tool_prefix="arm-mingw32ce-"
9378 aros_nominal_width=160
9379 aros_nominal_height=160
9382 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9384 esac
9385 if test $host_os = "cygwin"; then
9386 aros_kernel_cflags="-mno-cygwin"
9389 pp*)
9390 aros_target_arch="pp"
9391 aros_shared_default="no"
9392 case "$target_cpu" in
9393 *m68k*)
9394 aros_target_cpu="m68k"
9395 aros_object_format="m68kelf"
9396 aros_flavour="palmnative"
9397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9398 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9399 aros_nominal_width=160
9400 aros_nominal_height=160
9401 aros_nominal_depth=1
9402 aros_target_ar_flags="cru"
9403 aros_c_libs="$aros_c_libs -lgcc1"
9404 aros_shared_default=no
9405 aros_shared_cflags="-fpic"
9406 aros_shared_aflags=""
9407 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9408 aros_kernel_ldflags="-Wl,-rpath,./lib"
9409 aros_debug_cppflags="$aros_messages_debug"
9410 aros_debug_cflags="$aros_symbols_debug"
9411 aros_debug_aflags=""
9412 aros_debug_ldflags="$aros_symbols_debug"
9413 aros_mungwall_debug="0"
9414 aros_modules_debug="0"
9415 gcc_target_cpu="mc68000"
9416 ignore_undefined_symbols="-ius"
9419 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9421 esac
9424 mac*)
9425 aros_target_arch="mac"
9426 aros_shared_default="no"
9427 case "$target_cpu" in
9428 *m68k*)
9429 aros_target_cpu="m68k"
9430 aros_object_format="m68kelf"
9431 aros_flavour="mac68knative"
9432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9433 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9434 aros_nominal_width=512
9435 aros_nominal_height=384
9436 aros_nominal_depth=8
9437 aros_target_ar_flags="cru"
9438 aros_c_libs="$aros_c_libs -lgcc1"
9439 aros_shared_default=no
9440 aros_shared_cflags="-fpic"
9441 aros_shared_aflags=""
9442 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9443 aros_kernel_ldflags="-Wl,-rpath,./lib"
9444 aros_debug_cppflags="$aros_messages_debug"
9445 aros_debug_cflags="$aros_symbols_debug"
9446 aros_debug_aflags=""
9447 aros_debug_ldflags="$aros_symbols_debug"
9448 aros_mungwall_debug="0"
9449 aros_modules_debug="0"
9450 gcc_target_cpu="mc68000"
9451 ignore_undefined_symbols="-ius"
9454 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9456 esac
9460 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9462 esac
9464 #-----------------------------------------------------------------------------
9465 crosstools_guess="yes"
9466 aros_target_toolchain="no"
9467 aros_kernel_sysroot=""
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9470 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9472 # Check whether --with-kernel-toolchain-prefix was given.
9473 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9474 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9478 $as_echo "$kernel_tool_prefix" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9481 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9483 # Check whether --with-elf-toolchain-prefix was given.
9484 if test "${with_elf_toolchain_prefix+set}" = set; then :
9485 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9486 crosstools_guess="no"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9490 $as_echo "$elf_tool_prefix" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9493 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9495 # Check whether --with-aros-toolchain was given.
9496 if test "${with_aros_toolchain+set}" = set; then :
9497 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9498 crosstools_guess="no"
9501 if test "$aros_tool_prefix" = "yes" ; then
9502 aros_tool_prefix=$aros_target_cpu-aros-
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9505 $as_echo "$aros_tool_prefix" >&6; }
9507 #-----------------------------------------------------------------------------
9508 # Checking if we should build crosstools..
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9510 $as_echo_n "checking whether to build crosstools... " >&6; }
9511 # Check whether --enable-crosstools was given.
9512 if test "${enable_crosstools+set}" = set; then :
9513 enableval=$enable_crosstools; crosstools="$enableval"
9514 else
9515 crosstools="$crosstools_guess"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9519 $as_echo "$crosstools" >&6; }
9521 if test "${crosstools}" = "yes"; then
9522 if test "${crosstools_guess}" = "no"; then
9523 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9527 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9528 aros_target_toolchain="yes"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9532 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9534 # Check whether --with-aros-toolchain-install was given.
9535 if test "${with_aros_toolchain_install+set}" = set; then :
9536 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9539 if test "x$aros_toolchain_install" = "x"; then
9540 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9541 else
9542 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9543 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9544 if test "$crosstools_guess" = "no" ; then
9545 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9546 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9551 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9553 #-----------------------------------------------------------------------------
9554 if test "$aros_toolchain" = "gnu" ; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9556 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9559 # Check whether --with-binutils-version was given.
9560 if test "${with_binutils_version+set}" = set; then :
9561 withval=$with_binutils_version; use_binutils_version="$withval"
9562 else
9563 use_binutils_version=""
9566 if test "$use_binutils_version" = ""; then
9567 target_binutils_version="$default_binutils_version"
9568 else
9569 target_binutils_version="$use_binutils_version"
9571 if test "$aros_toolchain" = "gnu" ; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9573 $as_echo "$target_binutils_version" >&6; }
9577 # Helper to identify gcc version
9580 #-----------------------------------------------------------------------------
9581 if test "$aros_toolchain" = "gnu" ; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9583 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9586 # Check whether --with-gcc-version was given.
9587 if test "${with_gcc_version+set}" = set; then :
9588 withval=$with_gcc_version; use_gcc_version="$withval"
9589 else
9590 use_gcc_version=""
9593 if test "$use_gcc_version" = ""; then
9594 if test "${crosstools}" = "no"; then
9595 if test "x$aros_toolchain_install" != "x"; then
9597 target_gcc_version=""
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9599 $as_echo_n "checking gcc version... " >&6; }
9600 if ${ax_cv_gcc_version+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9604 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9605 if test "x$ax_cv_gcc_version" = "x"; then :
9607 ax_cv_gcc_version=""
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9613 $as_echo "$ax_cv_gcc_version" >&6; }
9614 target_gcc_version=$ax_cv_gcc_version
9619 if test "$use_gcc_version" = ""; then
9620 target_gcc_version="$default_gcc_version"
9622 else
9623 target_gcc_version="$use_gcc_version"
9625 if test "$aros_toolchain" = "gnu" ; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9627 $as_echo "$target_gcc_version" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9630 $as_echo_n "checking version string style... " >&6; }
9631 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9633 $as_echo "snapshot" >&6; }
9634 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9635 GCC_VERSION_MINOR=-1
9636 GCC_VERSION_PATCH=-1
9637 else
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9639 $as_echo "release" >&6; }
9640 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9641 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9642 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9645 gcc_fix_bitfields="false"
9646 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9647 gcc_fix_bitfields="true"
9648 else
9649 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9650 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9651 gcc_fix_bitfields="true"
9656 if test "$gcc_fix_bitfields" = "true" ; then
9657 case "$aros_target_cpu" in
9658 *x86_64* | *i?86*)
9659 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9660 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9662 esac
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9667 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9668 # Check whether --enable-objc was given.
9669 if test "${enable_objc+set}" = set; then :
9670 enableval=$enable_objc; objc="$enableval"
9671 else
9672 objc="no"
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9676 $as_echo "$objc" >&6; }
9677 if test "x$objc" = "xyes"; then
9678 objc_target="$objc"
9679 else
9680 objc_target="no-objc"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9684 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9685 # Check whether --enable-java was given.
9686 if test "${enable_java+set}" = set; then :
9687 enableval=$enable_java; java="$enableval"
9688 else
9689 java="no"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9693 $as_echo "$java" >&6; }
9694 if test "x$java" != "xno"; then
9695 java_target="$java"
9696 else
9697 java_target="no-java"
9700 spec_obj_format="-m $aros_object_format"
9701 # Now process extra architecture-specific options.
9702 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9703 # as well as floating-point ABI.
9704 case "$aros_target_cpu" in
9705 *m68k*)
9706 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9707 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9708 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"
9709 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"
9710 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"
9711 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"
9712 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"
9714 *x86_64*)
9715 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9716 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9718 arm*)
9719 if test "$gcc_default_cpu" = ""; then
9720 gcc_default_cpu="armv6"
9722 if test "$gcc_default_fpu" = ""; then
9723 gcc_default_fpu="vfp"
9725 if test "$gcc_default_endian" = ""; then
9726 if test "$target_cpu" = "armeb"; then
9727 gcc_default_endian="big-endian"
9728 else
9729 gcc_default_endian="little-endian"
9732 if test "$gcc_default_float_abi" = ""; then
9733 if test "$target_cpu" = "armhf"; then
9734 gcc_default_float_abi="hard"
9735 else
9736 gcc_default_float_abi="softfp"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9741 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9743 # Check whether --with-cpu was given.
9744 if test "${with_cpu+set}" = set; then :
9745 withval=$with_cpu; aros_gcc_cpu="$withval"
9746 else
9747 aros_gcc_cpu=$gcc_default_cpu
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9751 $as_echo "$aros_gcc_cpu" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9754 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9756 # Check whether --with-fpu was given.
9757 if test "${with_fpu+set}" = set; then :
9758 withval=$with_fpu; aros_gcc_fpu="$withval"
9759 else
9760 aros_gcc_fpu=$gcc_default_fpu
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9764 $as_echo "$aros_gcc_fpu" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9767 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9769 # Check whether --with-float was given.
9770 if test "${with_float+set}" = set; then :
9771 withval=$with_float; aros_gcc_float_abi="$withval"
9772 else
9773 aros_gcc_float_abi=$gcc_default_float_abi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9777 $as_echo "$aros_gcc_float_abi" >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9780 $as_echo_n "checking Which ARM mode to use... " >&6; }
9781 if test "$aros_target_cpu_mode" = ""; then
9782 aros_target_cpu_mode="arm32"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9784 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9787 $as_echo "$aros_target_cpu_mode" >&6; }
9790 case "$aros_target_cpu_mode" in
9791 arm32)
9792 gcc_default_mode="arm"
9793 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"
9795 arm64)
9796 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9798 thumb)
9799 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9801 thumb1)
9802 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9804 thumb2)
9805 gcc_default_mode="thumb"
9806 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9807 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"
9810 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9812 esac
9814 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9815 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9816 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9818 i386)
9819 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9820 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9822 esac
9824 # Some architectures may need custom ELF specs.
9825 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9826 elf_specs_in=config/${aros_object_format}-specs.in
9827 else
9828 elf_specs_in=config/elf-specs.in
9831 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9832 # Since we override specs, we may need to put these defines there
9833 if test "$gcc_target_cpu" != ""; then
9834 gcc_target_cpu="-D__${gcc_target_cpu}__"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9838 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9840 # Check whether --with-portssources was given.
9841 if test "${with_portssources+set}" = set; then :
9842 withval=$with_portssources; with_portssrcdir=$withval
9843 else
9844 with_portssrcdir="default"
9847 if test "$with_portssrcdir" = "default"; then
9848 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9849 else
9850 AROS_PORTSSRCDIR="$with_portssrcdir"
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9853 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9856 $as_echo_n "checking which bootloader to use... " >&6; }
9858 # Check whether --with-bootloader was given.
9859 if test "${with_bootloader+set}" = set; then :
9860 withval=$with_bootloader; target_bootloader=$withval
9861 else
9862 target_bootloader=$target_bootloader
9865 if test "$target_bootloader" = "none"; then
9866 aros_target_bootloader=""
9867 else
9868 aros_target_bootloader="$target_bootloader"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9871 $as_echo "$target_bootloader" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9874 $as_echo_n "checking which icon-set to use... " >&6; }
9876 # Check whether --with-iconset was given.
9877 if test "${with_iconset+set}" = set; then :
9878 withval=$with_iconset; target_iconset=$withval
9879 else
9880 target_iconset="default"
9883 if test "$target_iconset" = "default"; then
9884 aros_target_iconset="Gorilla"
9885 target_iconset="default (Gorilla)"
9886 else
9887 aros_target_iconset="$target_iconset"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9890 $as_echo "$target_iconset" >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9893 $as_echo_n "checking which GUI Theme to use... " >&6; }
9895 # Check whether --with-theme was given.
9896 if test "${with_theme+set}" = set; then :
9897 withval=$with_theme; target_guitheme=$withval
9898 else
9899 target_guitheme="default"
9902 if test "$target_guitheme" = "default"; then
9903 aros_target_guitheme="Ice"
9904 else
9905 aros_target_guitheme="$target_guitheme"
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9908 $as_echo "$aros_target_guitheme" >&6; }
9910 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9911 # for target code)
9912 cross_compiling=no
9914 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9915 cross_compiling=yes
9918 if test "$aros_host_cpu" == "x86_64" ; then
9919 if test "$aros_target_cpu" == "i386" ; then
9920 cross_compiling=no
9924 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9925 if test "$aros_host_arch" != "$aros_target_arch" ; then
9926 cross_compiling=yes
9928 else
9929 cross_compiling=yes
9932 if test "$cross_compiling" = "no" ; then
9933 kernel_tool_prefix=""
9934 if test "$host_cc_elf" = "yes" ; then
9935 elf_tool_prefix=""
9939 if test "$kernel_tool_version" != ""; then
9940 kernel_tool_version="-$kernel_tool_version"
9943 #######################################################################
9944 ## Compute what toolchains to use, and their paths ##
9945 #######################################################################
9947 # This takes, as input:
9948 # crosstools {yes,no}
9949 # kernel_tool_version {"",[version]}
9950 # target_tool_version {"",[version]}
9951 # kernel_tool_prefix {none,[some-arch-os-]}
9952 # gnu-toolchain -:
9953 # target_tool_prefix ${aros_target_cpu}-aros-
9954 # aros_tool_prefix ${aros_target_cpu}-aros-
9956 # The output is
9957 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9958 # Where the 'kernel' binaries are located
9959 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9960 # Where the 'target' binaries are located
9961 # (not the symlink farm - that is aros_target_*!)
9963 # The rules are:
9964 # if crosstools then
9965 # if kernel_tools_prefix = "no-kernel-prefix-"
9966 # aros_kernel_* = crosstools cc paths
9967 # aros_kernel_cc = elf cc wrapper around crosstools cc
9968 # else
9969 # VALIDATE(${kernel_tools_prefix}*)
9970 # aros_kernel_* = ${kernel_tools_prefix}*
9971 # if ${kernel_tools_prefix}cc is an AROS gcc
9972 # aros_kernel_cc = ${kernel_tools_prefix}cc
9973 # else
9974 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9975 # fi
9976 # fi
9978 # orig_target_* = aros built crosstools
9979 # orig_target_cc = elf cc wrapper around crosstools cc
9980 # else
9981 # VALIDATE(${kernel_tools_prefix}*)
9983 # orig_target_* = aros_kernel_*
9984 # if aros_kernel_cc is an AROS gcc
9985 # orig_target_cc = aros_kernel_cc
9986 # else
9987 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9988 # fi
9989 # fi
9991 if test "$aros_toolchain" = "gnu" ; then
9992 target_tool_prefix="${aros_target_cpu}-aros-"
9993 elif test "$aros_toolchain" = "llvm" ; then
9994 target_tool_prefix="bin/"
9997 if test "$kernel_tool_prefix" != "" ; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9999 $as_echo_n "checking which kernel tools... " >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10001 $as_echo "$kernel_tool_prefix" >&6; };
10004 if test "$kernel_tool_prefix" = "none" ; then
10005 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10006 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10008 else
10009 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10010 # Kernel tools required - find them
10011 # Note that 'normally', aros_kernel_* overrides will be
10012 # empty, unless specified in the per-arch sections above.
10013 test_kernel_cc=yes
10014 if test "x$aros_kernel_cpp" = "x"; then
10015 aros_kernel_cpp=${kernel_tool_prefix}${CPP_BASE}
10017 if test "${kernel_tool_version}" != ""; then
10018 if test "$aros_kernel_cpp" != ""; then
10019 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10020 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
10021 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10025 if test "$aros_kernel_cpp" = ""; then
10026 if test "$cross_compiling" = "yes" ; then
10027 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10028 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 case $aros_kernel_cpp in
10035 [\\/]* | ?:[\\/]*)
10036 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10048 break 2
10050 done
10051 done
10052 IFS=$as_save_IFS
10055 esac
10057 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10058 if test -n "$aros_kernel_cpp"; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10060 $as_echo "$aros_kernel_cpp" >&6; }
10061 else
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063 $as_echo "no" >&6; }
10067 else
10069 if test "" = ""; then
10070 ac_tool_cpp=cpp
10071 else
10072 ac_tool_cpp=
10074 if test "$GCC" = "yes"; then
10075 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
10076 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10077 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 case $aros_kernel_cpp in
10084 [\\/]* | ?:[\\/]*)
10085 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in `dirname $aros_gcc_cpp`
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10099 done
10100 done
10101 IFS=$as_save_IFS
10104 esac
10106 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10107 if test -n "$aros_kernel_cpp"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10109 $as_echo "$aros_kernel_cpp" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10117 if test "$aros_kernel_cpp" = ""; then
10118 for ac_prog in $ac_tool_cpp
10120 # Extract the first word of "$ac_prog", so it can be a program name with args.
10121 set dummy $ac_prog; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 case $aros_kernel_cpp in
10128 [\\/]* | ?:[\\/]*)
10129 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10148 esac
10150 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10151 if test -n "$aros_kernel_cpp"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10153 $as_echo "$aros_kernel_cpp" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 test -n "$aros_kernel_cpp" && break
10161 done
10166 else
10167 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10168 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10169 set dummy $aros_kernel_cpp; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 case $aros_kernel_cpp in
10176 [\\/]* | ?:[\\/]*)
10177 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10191 done
10192 done
10193 IFS=$as_save_IFS
10196 esac
10198 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10199 if test -n "$aros_kernel_cpp"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10201 $as_echo "$aros_kernel_cpp" >&6; }
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10208 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10211 req_avail=yes
10212 if test "$aros_kernel_cpp" = ""; then
10213 req_avail=no
10215 if test "$aros_kernel_cpp" = "no"; then
10216 req_avail=no
10218 if test "$req_avail" = "no"; then
10219 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10222 if test "x$aros_kernel_cc" = "x"; then
10223 aros_kernel_cc=${kernel_tool_prefix}${CC_BASE}
10225 if test "${kernel_tool_version}" != ""; then
10226 if test "$aros_kernel_cc" != ""; then
10227 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10228 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10229 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10233 if test "$aros_kernel_cc" = ""; then
10234 if test "$cross_compiling" = "yes" ; then
10235 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10236 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 case $aros_kernel_cc in
10243 [\\/]* | ?:[\\/]*)
10244 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10254 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10258 done
10259 done
10260 IFS=$as_save_IFS
10263 esac
10265 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10266 if test -n "$aros_kernel_cc"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10268 $as_echo "$aros_kernel_cc" >&6; }
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10275 else
10277 if test "" = ""; then
10278 ac_tool_cc=cc
10279 else
10280 ac_tool_cc=
10282 if test "$GCC" = "yes"; then
10283 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10284 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10285 set dummy `basename $aros_gcc_cc`; ac_word=$2
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287 $as_echo_n "checking for $ac_word... " >&6; }
10288 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 case $aros_kernel_cc in
10292 [\\/]* | ?:[\\/]*)
10293 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in `dirname $aros_gcc_cc`
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10307 done
10308 done
10309 IFS=$as_save_IFS
10312 esac
10314 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10315 if test -n "$aros_kernel_cc"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10317 $as_echo "$aros_kernel_cc" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10325 if test "$aros_kernel_cc" = ""; then
10326 for ac_prog in $ac_tool_cc
10328 # Extract the first word of "$ac_prog", so it can be a program name with args.
10329 set dummy $ac_prog; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 case $aros_kernel_cc in
10336 [\\/]* | ?:[\\/]*)
10337 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10356 esac
10358 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10359 if test -n "$aros_kernel_cc"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10361 $as_echo "$aros_kernel_cc" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 test -n "$aros_kernel_cc" && break
10369 done
10374 else
10375 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10376 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10377 set dummy $aros_kernel_cc; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 case $aros_kernel_cc in
10384 [\\/]* | ?:[\\/]*)
10385 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10399 done
10400 done
10401 IFS=$as_save_IFS
10404 esac
10406 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10407 if test -n "$aros_kernel_cc"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10409 $as_echo "$aros_kernel_cc" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10419 req_avail=yes
10420 if test "$aros_kernel_cc" = ""; then
10421 req_avail=no
10423 if test "$aros_kernel_cc" = "no"; then
10424 req_avail=no
10426 if test "$req_avail" = "no"; then
10427 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10430 if test "x$aros_kernel_cxx" = "x"; then
10431 aros_kernel_cxx=${kernel_tool_prefix}${CXX_BASE}
10433 if test "${kernel_tool_version}" != ""; then
10434 if test "$aros_kernel_cxx" != ""; then
10435 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10436 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10437 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10441 if test "$aros_kernel_cxx" = ""; then
10442 if test "$cross_compiling" = "yes" ; then
10443 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10444 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 case $aros_kernel_cxx in
10451 [\\/]* | ?:[\\/]*)
10452 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10466 done
10467 done
10468 IFS=$as_save_IFS
10471 esac
10473 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10474 if test -n "$aros_kernel_cxx"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10476 $as_echo "$aros_kernel_cxx" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10483 else
10485 if test "" = ""; then
10486 ac_tool_cxx=cxx
10487 else
10488 ac_tool_cxx=
10490 if test "$GCC" = "yes"; then
10491 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10492 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10493 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 case $aros_kernel_cxx in
10500 [\\/]* | ?:[\\/]*)
10501 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in `dirname $aros_gcc_cxx`
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10520 esac
10522 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10523 if test -n "$aros_kernel_cxx"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10525 $as_echo "$aros_kernel_cxx" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10533 if test "$aros_kernel_cxx" = ""; then
10534 for ac_prog in $ac_tool_cxx
10536 # Extract the first word of "$ac_prog", so it can be a program name with args.
10537 set dummy $ac_prog; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 case $aros_kernel_cxx in
10544 [\\/]* | ?:[\\/]*)
10545 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10559 done
10560 done
10561 IFS=$as_save_IFS
10564 esac
10566 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10567 if test -n "$aros_kernel_cxx"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10569 $as_echo "$aros_kernel_cxx" >&6; }
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10576 test -n "$aros_kernel_cxx" && break
10577 done
10582 else
10583 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10584 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10585 set dummy $aros_kernel_cxx; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 case $aros_kernel_cxx in
10592 [\\/]* | ?:[\\/]*)
10593 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10603 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10607 done
10608 done
10609 IFS=$as_save_IFS
10612 esac
10614 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10615 if test -n "$aros_kernel_cxx"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10617 $as_echo "$aros_kernel_cxx" >&6; }
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10624 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10627 # If it's set, make sure it's really there
10628 if test "x$aros_kernel_cxx" != "x" ; then
10629 req_avail=yes
10630 if test "$aros_kernel_cxx" = ""; then
10631 req_avail=no
10633 if test "$aros_kernel_cxx" = "no"; then
10634 req_avail=no
10636 if test "$req_avail" = "no"; then
10637 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10640 if test "x$aros_kernel_ld" = "x"; then
10641 aros_kernel_ld=$aros_host_ld
10644 if test "$aros_kernel_ld" = ""; then
10645 if test "$cross_compiling" = "yes" ; then
10646 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10647 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 case $aros_kernel_ld in
10654 [\\/]* | ?:[\\/]*)
10655 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10674 esac
10676 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10677 if test -n "$aros_kernel_ld"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10679 $as_echo "$aros_kernel_ld" >&6; }
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10686 else
10688 if test "" = ""; then
10689 ac_tool_ld=ld
10690 else
10691 ac_tool_ld=
10693 if test "$GCC" = "yes"; then
10694 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10695 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10696 set dummy `basename $aros_gcc_ld`; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 case $aros_kernel_ld in
10703 [\\/]* | ?:[\\/]*)
10704 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in `dirname $aros_gcc_ld`
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10718 done
10719 done
10720 IFS=$as_save_IFS
10723 esac
10725 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10726 if test -n "$aros_kernel_ld"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10728 $as_echo "$aros_kernel_ld" >&6; }
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10736 if test "$aros_kernel_ld" = ""; then
10737 for ac_prog in $ac_tool_ld
10739 # Extract the first word of "$ac_prog", so it can be a program name with args.
10740 set dummy $ac_prog; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 case $aros_kernel_ld in
10747 [\\/]* | ?:[\\/]*)
10748 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10762 done
10763 done
10764 IFS=$as_save_IFS
10767 esac
10769 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10770 if test -n "$aros_kernel_ld"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10772 $as_echo "$aros_kernel_ld" >&6; }
10773 else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10779 test -n "$aros_kernel_ld" && break
10780 done
10785 else
10786 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10787 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10788 set dummy $aros_kernel_ld; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 case $aros_kernel_ld in
10795 [\\/]* | ?:[\\/]*)
10796 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10810 done
10811 done
10812 IFS=$as_save_IFS
10815 esac
10817 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10818 if test -n "$aros_kernel_ld"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10820 $as_echo "$aros_kernel_ld" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10827 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10830 req_avail=yes
10831 if test "$aros_kernel_ld" = ""; then
10832 req_avail=no
10834 if test "$aros_kernel_ld" = "no"; then
10835 req_avail=no
10837 if test "$req_avail" = "no"; then
10838 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10840 if test "x$aros_kernel_as" = "x"; then
10841 aros_kernel_as=$aros_host_as
10842 if test "x$aros_kernel_as" = "x"; then
10843 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10847 if test "$aros_kernel_as" = ""; then
10848 if test "$cross_compiling" = "yes" ; then
10849 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10850 set dummy ${kernel_tool_prefix}as; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if ${ac_cv_path_aros_kernel_as+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 case $aros_kernel_as in
10857 [\\/]* | ?:[\\/]*)
10858 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 break 2
10872 done
10873 done
10874 IFS=$as_save_IFS
10877 esac
10879 aros_kernel_as=$ac_cv_path_aros_kernel_as
10880 if test -n "$aros_kernel_as"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10882 $as_echo "$aros_kernel_as" >&6; }
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10889 else
10891 if test "" = ""; then
10892 ac_tool_as=as
10893 else
10894 ac_tool_as=
10896 if test "$GCC" = "yes"; then
10897 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10898 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10899 set dummy `basename $aros_gcc_as`; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if ${ac_cv_path_aros_kernel_as+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 case $aros_kernel_as in
10906 [\\/]* | ?:[\\/]*)
10907 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in `dirname $aros_gcc_as`
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10921 done
10922 done
10923 IFS=$as_save_IFS
10926 esac
10928 aros_kernel_as=$ac_cv_path_aros_kernel_as
10929 if test -n "$aros_kernel_as"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10931 $as_echo "$aros_kernel_as" >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10939 if test "$aros_kernel_as" = ""; then
10940 for ac_prog in $ac_tool_as
10942 # Extract the first word of "$ac_prog", so it can be a program name with args.
10943 set dummy $ac_prog; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if ${ac_cv_path_aros_kernel_as+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 case $aros_kernel_as in
10950 [\\/]* | ?:[\\/]*)
10951 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10965 done
10966 done
10967 IFS=$as_save_IFS
10970 esac
10972 aros_kernel_as=$ac_cv_path_aros_kernel_as
10973 if test -n "$aros_kernel_as"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10975 $as_echo "$aros_kernel_as" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10982 test -n "$aros_kernel_as" && break
10983 done
10988 else
10989 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10990 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10991 set dummy $aros_kernel_as; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_path_aros_kernel_as+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 case $aros_kernel_as in
10998 [\\/]* | ?:[\\/]*)
10999 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11018 esac
11020 aros_kernel_as=$ac_cv_path_aros_kernel_as
11021 if test -n "$aros_kernel_as"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11023 $as_echo "$aros_kernel_as" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11030 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
11033 req_avail=yes
11034 if test "$aros_kernel_as" = ""; then
11035 req_avail=no
11037 if test "$aros_kernel_as" = "no"; then
11038 req_avail=no
11040 if test "$req_avail" = "no"; then
11041 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11043 if test "x$aros_kernel_ar" = "x"; then
11044 aros_kernel_ar=$aros_host_plain_ar
11047 if test "$aros_kernel_ar" = ""; then
11048 if test "$cross_compiling" = "yes" ; then
11049 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11050 set dummy ${kernel_tool_prefix}ar; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 case $aros_kernel_ar in
11057 [\\/]* | ?:[\\/]*)
11058 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11068 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11072 done
11073 done
11074 IFS=$as_save_IFS
11077 esac
11079 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11080 if test -n "$aros_kernel_ar"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11082 $as_echo "$aros_kernel_ar" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11089 else
11091 if test "" = ""; then
11092 ac_tool_ar=ar
11093 else
11094 ac_tool_ar=
11096 if test "$GCC" = "yes"; then
11097 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
11098 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11099 set dummy `basename $aros_gcc_ar`; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 case $aros_kernel_ar in
11106 [\\/]* | ?:[\\/]*)
11107 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in `dirname $aros_gcc_ar`
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11126 esac
11128 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11129 if test -n "$aros_kernel_ar"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11131 $as_echo "$aros_kernel_ar" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11139 if test "$aros_kernel_ar" = ""; then
11140 for ac_prog in $ac_tool_ar
11142 # Extract the first word of "$ac_prog", so it can be a program name with args.
11143 set dummy $ac_prog; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 case $aros_kernel_ar in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11165 done
11166 done
11167 IFS=$as_save_IFS
11170 esac
11172 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11173 if test -n "$aros_kernel_ar"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11175 $as_echo "$aros_kernel_ar" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11182 test -n "$aros_kernel_ar" && break
11183 done
11188 else
11189 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11190 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11191 set dummy $aros_kernel_ar; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 case $aros_kernel_ar in
11198 [\\/]* | ?:[\\/]*)
11199 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11213 done
11214 done
11215 IFS=$as_save_IFS
11218 esac
11220 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11221 if test -n "$aros_kernel_ar"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11223 $as_echo "$aros_kernel_ar" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11230 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11233 req_avail=yes
11234 if test "$aros_kernel_ar" = ""; then
11235 req_avail=no
11237 if test "$aros_kernel_ar" = "no"; then
11238 req_avail=no
11240 if test "$req_avail" = "no"; then
11241 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11243 if test "x$aros_kernel_ranlib" = "x"; then
11244 aros_kernel_ranlib=$aros_host_ranlib
11247 if test "$aros_kernel_ranlib" = ""; then
11248 if test "$cross_compiling" = "yes" ; then
11249 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11250 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 case $aros_kernel_ranlib in
11257 [\\/]* | ?:[\\/]*)
11258 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11268 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11272 done
11273 done
11274 IFS=$as_save_IFS
11277 esac
11279 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11280 if test -n "$aros_kernel_ranlib"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11282 $as_echo "$aros_kernel_ranlib" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11289 else
11291 if test "" = ""; then
11292 ac_tool_ranlib=ranlib
11293 else
11294 ac_tool_ranlib=
11296 if test "$GCC" = "yes"; then
11297 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11298 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11299 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 case $aros_kernel_ranlib in
11306 [\\/]* | ?:[\\/]*)
11307 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in `dirname $aros_gcc_ranlib`
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11321 done
11322 done
11323 IFS=$as_save_IFS
11326 esac
11328 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11329 if test -n "$aros_kernel_ranlib"; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11331 $as_echo "$aros_kernel_ranlib" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11339 if test "$aros_kernel_ranlib" = ""; then
11340 for ac_prog in $ac_tool_ranlib
11342 # Extract the first word of "$ac_prog", so it can be a program name with args.
11343 set dummy $ac_prog; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 case $aros_kernel_ranlib in
11350 [\\/]* | ?:[\\/]*)
11351 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11365 done
11366 done
11367 IFS=$as_save_IFS
11370 esac
11372 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11373 if test -n "$aros_kernel_ranlib"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11375 $as_echo "$aros_kernel_ranlib" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11382 test -n "$aros_kernel_ranlib" && break
11383 done
11388 else
11389 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11390 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11391 set dummy $aros_kernel_ranlib; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 case $aros_kernel_ranlib in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11418 esac
11420 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11421 if test -n "$aros_kernel_ranlib"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11423 $as_echo "$aros_kernel_ranlib" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11430 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11433 req_avail=yes
11434 if test "$aros_kernel_ranlib" = ""; then
11435 req_avail=no
11437 if test "$aros_kernel_ranlib" = "no"; then
11438 req_avail=no
11440 if test "$req_avail" = "no"; then
11441 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11443 if test "x$aros_kernel_nm" = "x"; then
11444 aros_kernel_nm=$aros_host_nm
11445 if test "x$aros_kernel_nm" = "x"; then
11446 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11450 if test "$aros_kernel_nm" = ""; then
11451 if test "$cross_compiling" = "yes" ; then
11452 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11453 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 case $aros_kernel_nm in
11460 [\\/]* | ?:[\\/]*)
11461 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11480 esac
11482 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11483 if test -n "$aros_kernel_nm"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11485 $as_echo "$aros_kernel_nm" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11492 else
11494 if test "" = ""; then
11495 ac_tool_nm=nm
11496 else
11497 ac_tool_nm=
11499 if test "$GCC" = "yes"; then
11500 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11501 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11502 set dummy `basename $aros_gcc_nm`; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 case $aros_kernel_nm in
11509 [\\/]* | ?:[\\/]*)
11510 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in `dirname $aros_gcc_nm`
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11524 done
11525 done
11526 IFS=$as_save_IFS
11529 esac
11531 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11532 if test -n "$aros_kernel_nm"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11534 $as_echo "$aros_kernel_nm" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11542 if test "$aros_kernel_nm" = ""; then
11543 for ac_prog in $ac_tool_nm
11545 # Extract the first word of "$ac_prog", so it can be a program name with args.
11546 set dummy $ac_prog; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $aros_kernel_nm in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11576 if test -n "$aros_kernel_nm"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11578 $as_echo "$aros_kernel_nm" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11585 test -n "$aros_kernel_nm" && break
11586 done
11591 else
11592 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11593 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11594 set dummy $aros_kernel_nm; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 case $aros_kernel_nm in
11601 [\\/]* | ?:[\\/]*)
11602 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11616 done
11617 done
11618 IFS=$as_save_IFS
11621 esac
11623 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11624 if test -n "$aros_kernel_nm"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11626 $as_echo "$aros_kernel_nm" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11633 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11636 req_avail=yes
11637 if test "$aros_kernel_nm" = ""; then
11638 req_avail=no
11640 if test "$aros_kernel_nm" = "no"; then
11641 req_avail=no
11643 if test "$req_avail" = "no"; then
11644 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11647 if test "$aros_kernel_strip" = ""; then
11648 if test "$cross_compiling" = "yes" ; then
11649 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11650 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 case $aros_kernel_strip in
11657 [\\/]* | ?:[\\/]*)
11658 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11672 done
11673 done
11674 IFS=$as_save_IFS
11677 esac
11679 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11680 if test -n "$aros_kernel_strip"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11682 $as_echo "$aros_kernel_strip" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11689 else
11691 if test "" = ""; then
11692 ac_tool_strip=strip
11693 else
11694 ac_tool_strip=
11696 if test "$GCC" = "yes"; then
11697 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11698 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11699 set dummy `basename $aros_gcc_strip`; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 case $aros_kernel_strip in
11706 [\\/]* | ?:[\\/]*)
11707 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in `dirname $aros_gcc_strip`
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11717 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11721 done
11722 done
11723 IFS=$as_save_IFS
11726 esac
11728 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11729 if test -n "$aros_kernel_strip"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11731 $as_echo "$aros_kernel_strip" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test "$aros_kernel_strip" = ""; then
11740 for ac_prog in $ac_tool_strip
11742 # Extract the first word of "$ac_prog", so it can be a program name with args.
11743 set dummy $ac_prog; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 case $aros_kernel_strip in
11750 [\\/]* | ?:[\\/]*)
11751 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11765 done
11766 done
11767 IFS=$as_save_IFS
11770 esac
11772 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11773 if test -n "$aros_kernel_strip"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11775 $as_echo "$aros_kernel_strip" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11782 test -n "$aros_kernel_strip" && break
11783 done
11788 else
11789 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11790 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11791 set dummy $aros_kernel_strip; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 case $aros_kernel_strip in
11798 [\\/]* | ?:[\\/]*)
11799 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11809 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 break 2
11813 done
11814 done
11815 IFS=$as_save_IFS
11818 esac
11820 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11821 if test -n "$aros_kernel_strip"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11823 $as_echo "$aros_kernel_strip" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11830 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11833 req_avail=yes
11834 if test "$aros_kernel_strip" = ""; then
11835 req_avail=no
11837 if test "$aros_kernel_strip" = "no"; then
11838 req_avail=no
11840 if test "$req_avail" = "no"; then
11841 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11844 # Objcopy and objdump are not required for the kernel
11845 # toolchain on many architectures.
11846 # So we'll look for them, but not make them strictly required.
11847 if test "x$aros_kernel_objcopy" = "x"; then
11848 aros_kernel_objcopy=$aros_host_objcopy
11849 if test "x$aros_kernel_objcopy" = "x"; then
11850 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11854 if test "$aros_kernel_objcopy" = ""; then
11855 if test "$cross_compiling" = "yes" ; then
11856 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11857 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 case $aros_kernel_objcopy in
11864 [\\/]* | ?:[\\/]*)
11865 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11879 done
11880 done
11881 IFS=$as_save_IFS
11884 esac
11886 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11887 if test -n "$aros_kernel_objcopy"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11889 $as_echo "$aros_kernel_objcopy" >&6; }
11890 else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11896 else
11898 if test "" = ""; then
11899 ac_tool_objcopy=objcopy
11900 else
11901 ac_tool_objcopy=
11903 if test "$GCC" = "yes"; then
11904 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11905 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11906 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $aros_kernel_objcopy in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in `dirname $aros_gcc_objcopy`
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11933 esac
11935 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11936 if test -n "$aros_kernel_objcopy"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11938 $as_echo "$aros_kernel_objcopy" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11946 if test "$aros_kernel_objcopy" = ""; then
11947 for ac_prog in $ac_tool_objcopy
11949 # Extract the first word of "$ac_prog", so it can be a program name with args.
11950 set dummy $ac_prog; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 case $aros_kernel_objcopy in
11957 [\\/]* | ?:[\\/]*)
11958 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11972 done
11973 done
11974 IFS=$as_save_IFS
11977 esac
11979 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11980 if test -n "$aros_kernel_objcopy"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11982 $as_echo "$aros_kernel_objcopy" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11989 test -n "$aros_kernel_objcopy" && break
11990 done
11995 else
11996 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11997 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11998 set dummy $aros_kernel_objcopy; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 case $aros_kernel_objcopy in
12005 [\\/]* | ?:[\\/]*)
12006 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 break 2
12020 done
12021 done
12022 IFS=$as_save_IFS
12025 esac
12027 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
12028 if test -n "$aros_kernel_objcopy"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12030 $as_echo "$aros_kernel_objcopy" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12037 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
12040 if test "x$aros_kernel_objdump" = "x"; then
12041 aros_kernel_objdump=$aros_host_objdump
12042 if test "x$aros_kernel_objdump" = "x"; then
12043 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
12047 if test "$aros_kernel_objdump" = ""; then
12048 if test "$cross_compiling" = "yes" ; then
12049 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12050 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $aros_kernel_objdump in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12072 done
12073 done
12074 IFS=$as_save_IFS
12077 esac
12079 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12080 if test -n "$aros_kernel_objdump"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12082 $as_echo "$aros_kernel_objdump" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12089 else
12091 if test "" = ""; then
12092 ac_tool_objdump=objdump
12093 else
12094 ac_tool_objdump=
12096 if test "$GCC" = "yes"; then
12097 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
12098 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12099 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 case $aros_kernel_objdump in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in `dirname $aros_gcc_objdump`
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12126 esac
12128 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12129 if test -n "$aros_kernel_objdump"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12131 $as_echo "$aros_kernel_objdump" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 if test "$aros_kernel_objdump" = ""; then
12140 for ac_prog in $ac_tool_objdump
12142 # Extract the first word of "$ac_prog", so it can be a program name with args.
12143 set dummy $ac_prog; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 case $aros_kernel_objdump in
12150 [\\/]* | ?:[\\/]*)
12151 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12170 esac
12172 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12173 if test -n "$aros_kernel_objdump"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12175 $as_echo "$aros_kernel_objdump" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12182 test -n "$aros_kernel_objdump" && break
12183 done
12188 else
12189 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12190 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12191 set dummy $aros_kernel_objdump; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 case $aros_kernel_objdump in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12218 esac
12220 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12221 if test -n "$aros_kernel_objdump"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12223 $as_echo "$aros_kernel_objdump" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12230 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12233 if test "x${crosstools}" != "xyes" ; then
12234 req_avail=yes
12235 if test "$aros_kernel_objcopy" = ""; then
12236 req_avail=no
12238 if test "$aros_kernel_objcopy" = "no"; then
12239 req_avail=no
12241 if test "$req_avail" = "no"; then
12242 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12244 req_avail=yes
12245 if test "$aros_kernel_objdump" = ""; then
12246 req_avail=no
12248 if test "$aros_kernel_objdump" = "no"; then
12249 req_avail=no
12251 if test "$req_avail" = "no"; then
12252 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12259 $as_echo_n "checking which target tools to use... " >&6; }
12260 if test "$aros_target_toolchain" = "yes"; then
12261 if test "$aros_toolchain" = "llvm" ; then
12262 msg_result="llvm"
12263 else
12264 msg_result=$target_tool_prefix
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12267 $as_echo "$msg_result" >&6; }
12268 # We are building AROS crosstools
12269 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12270 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12271 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12272 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12273 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12274 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12275 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12276 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12277 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12278 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12279 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12280 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12281 else
12282 # Determine whether AROS or ELF tools should be used
12283 if test "$aros_tool_prefix" = "none"; then
12284 aros_tool_prefix="${elf_tool_prefix}"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12288 $as_echo "$aros_tool_prefix" >&6; }
12289 # We are *not* building AROS crosstools - use the AROS or ELF tools
12291 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12292 if test "$cross_compiling" = "yes" ; then
12293 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12294 set dummy ${target_tool_prefix}cpp; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_orig_target_cpp+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $orig_target_cpp in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12316 done
12317 done
12318 IFS=$as_save_IFS
12321 esac
12323 orig_target_cpp=$ac_cv_path_orig_target_cpp
12324 if test -n "$orig_target_cpp"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12326 $as_echo "$orig_target_cpp" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 else
12335 if test "" = ""; then
12336 ac_tool_cpp=cpp
12337 else
12338 ac_tool_cpp=
12340 if test "$GCC" = "yes"; then
12341 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12342 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12343 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_path_orig_target_cpp+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 case $orig_target_cpp in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in `dirname $aros_gcc_cpp`
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12370 esac
12372 orig_target_cpp=$ac_cv_path_orig_target_cpp
12373 if test -n "$orig_target_cpp"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12375 $as_echo "$orig_target_cpp" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12383 if test "$orig_target_cpp" = ""; then
12384 for ac_prog in $ac_tool_cpp
12386 # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy $ac_prog; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_path_orig_target_cpp+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 case $orig_target_cpp in
12394 [\\/]* | ?:[\\/]*)
12395 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12405 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12409 done
12410 done
12411 IFS=$as_save_IFS
12414 esac
12416 orig_target_cpp=$ac_cv_path_orig_target_cpp
12417 if test -n "$orig_target_cpp"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12419 $as_echo "$orig_target_cpp" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12426 test -n "$orig_target_cpp" && break
12427 done
12432 else
12433 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12434 # 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.
12435 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_path_orig_target_cpp+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 case $orig_target_cpp in
12442 [\\/]* | ?:[\\/]*)
12443 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12457 done
12458 done
12459 IFS=$as_save_IFS
12462 esac
12464 orig_target_cpp=$ac_cv_path_orig_target_cpp
12465 if test -n "$orig_target_cpp"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12467 $as_echo "$orig_target_cpp" >&6; }
12468 else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12474 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12477 req_avail=yes
12478 if test "$orig_target_cpp" = ""; then
12479 req_avail=no
12481 if test "$orig_target_cpp" = "no"; then
12482 req_avail=no
12484 if test "$req_avail" = "no"; then
12485 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12488 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12489 if test "$cross_compiling" = "yes" ; then
12490 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12491 set dummy ${target_tool_prefix}gcc; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_path_orig_target_cc+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $orig_target_cc in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12518 esac
12520 orig_target_cc=$ac_cv_path_orig_target_cc
12521 if test -n "$orig_target_cc"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12523 $as_echo "$orig_target_cc" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12530 else
12532 if test "" = ""; then
12533 ac_tool_gcc=gcc
12534 else
12535 ac_tool_gcc=
12537 if test "$GCC" = "yes"; then
12538 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12539 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12540 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_orig_target_cc+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 case $orig_target_cc in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in `dirname $aros_gcc_gcc`
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12567 esac
12569 orig_target_cc=$ac_cv_path_orig_target_cc
12570 if test -n "$orig_target_cc"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12572 $as_echo "$orig_target_cc" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12580 if test "$orig_target_cc" = ""; then
12581 for ac_prog in $ac_tool_gcc
12583 # Extract the first word of "$ac_prog", so it can be a program name with args.
12584 set dummy $ac_prog; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_cc+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $orig_target_cc in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 orig_target_cc=$ac_cv_path_orig_target_cc
12614 if test -n "$orig_target_cc"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12616 $as_echo "$orig_target_cc" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12623 test -n "$orig_target_cc" && break
12624 done
12629 else
12630 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12631 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12632 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_orig_target_cc+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 case $orig_target_cc in
12639 [\\/]* | ?:[\\/]*)
12640 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12654 done
12655 done
12656 IFS=$as_save_IFS
12659 esac
12661 orig_target_cc=$ac_cv_path_orig_target_cc
12662 if test -n "$orig_target_cc"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12664 $as_echo "$orig_target_cc" >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12671 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12674 req_avail=yes
12675 if test "$orig_target_cc" = ""; then
12676 req_avail=no
12678 if test "$orig_target_cc" = "no"; then
12679 req_avail=no
12681 if test "$req_avail" = "no"; then
12682 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12685 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12686 if test "$cross_compiling" = "yes" ; then
12687 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12688 set dummy ${target_tool_prefix}g++; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if ${ac_cv_path_orig_target_cxx+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 case $orig_target_cxx in
12695 [\\/]* | ?:[\\/]*)
12696 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12706 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708 break 2
12710 done
12711 done
12712 IFS=$as_save_IFS
12715 esac
12717 orig_target_cxx=$ac_cv_path_orig_target_cxx
12718 if test -n "$orig_target_cxx"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12720 $as_echo "$orig_target_cxx" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12727 else
12729 if test "" = ""; then
12730 ac_tool_g++=g++
12731 else
12732 ac_tool_g++=
12734 if test "$GCC" = "yes"; then
12735 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12736 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12737 set dummy `basename $aros_gcc_g++`; ac_word=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if ${ac_cv_path_orig_target_cxx+:} false; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 case $orig_target_cxx in
12744 [\\/]* | ?:[\\/]*)
12745 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in `dirname $aros_gcc_g++`
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12759 done
12760 done
12761 IFS=$as_save_IFS
12764 esac
12766 orig_target_cxx=$ac_cv_path_orig_target_cxx
12767 if test -n "$orig_target_cxx"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12769 $as_echo "$orig_target_cxx" >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12777 if test "$orig_target_cxx" = ""; then
12778 for ac_prog in $ac_tool_g++
12780 # Extract the first word of "$ac_prog", so it can be a program name with args.
12781 set dummy $ac_prog; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_path_orig_target_cxx+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 case $orig_target_cxx in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12803 done
12804 done
12805 IFS=$as_save_IFS
12808 esac
12810 orig_target_cxx=$ac_cv_path_orig_target_cxx
12811 if test -n "$orig_target_cxx"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12813 $as_echo "$orig_target_cxx" >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12820 test -n "$orig_target_cxx" && break
12821 done
12826 else
12827 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12828 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12829 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_orig_target_cxx+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 case $orig_target_cxx in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12856 esac
12858 orig_target_cxx=$ac_cv_path_orig_target_cxx
12859 if test -n "$orig_target_cxx"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12861 $as_echo "$orig_target_cxx" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12871 req_avail=yes
12872 if test "$orig_target_cxx" = ""; then
12873 req_avail=no
12875 if test "$orig_target_cxx" = "no"; then
12876 req_avail=no
12878 if test "$req_avail" = "no"; then
12879 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12882 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12883 if test "$cross_compiling" = "yes" ; then
12884 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12885 set dummy ${target_tool_prefix}gcc; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_path_orig_target_ld+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 case $orig_target_ld in
12892 [\\/]* | ?:[\\/]*)
12893 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12903 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12907 done
12908 done
12909 IFS=$as_save_IFS
12912 esac
12914 orig_target_ld=$ac_cv_path_orig_target_ld
12915 if test -n "$orig_target_ld"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12917 $as_echo "$orig_target_ld" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12924 else
12926 if test "" = ""; then
12927 ac_tool_gcc=gcc
12928 else
12929 ac_tool_gcc=
12931 if test "$GCC" = "yes"; then
12932 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12933 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12934 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_path_orig_target_ld+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 case $orig_target_ld in
12941 [\\/]* | ?:[\\/]*)
12942 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in `dirname $aros_gcc_gcc`
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12956 done
12957 done
12958 IFS=$as_save_IFS
12961 esac
12963 orig_target_ld=$ac_cv_path_orig_target_ld
12964 if test -n "$orig_target_ld"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12966 $as_echo "$orig_target_ld" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12974 if test "$orig_target_ld" = ""; then
12975 for ac_prog in $ac_tool_gcc
12977 # Extract the first word of "$ac_prog", so it can be a program name with args.
12978 set dummy $ac_prog; ac_word=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_path_orig_target_ld+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 case $orig_target_ld in
12985 [\\/]* | ?:[\\/]*)
12986 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 break 2
13000 done
13001 done
13002 IFS=$as_save_IFS
13005 esac
13007 orig_target_ld=$ac_cv_path_orig_target_ld
13008 if test -n "$orig_target_ld"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13010 $as_echo "$orig_target_ld" >&6; }
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13017 test -n "$orig_target_ld" && break
13018 done
13023 else
13024 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13025 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13026 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_path_orig_target_ld+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 case $orig_target_ld in
13033 [\\/]* | ?:[\\/]*)
13034 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13048 done
13049 done
13050 IFS=$as_save_IFS
13053 esac
13055 orig_target_ld=$ac_cv_path_orig_target_ld
13056 if test -n "$orig_target_ld"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13058 $as_echo "$orig_target_ld" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13065 orig_target_ld="$orig_target_ld $ac_tool_optarg"
13068 req_avail=yes
13069 if test "$orig_target_ld" = ""; then
13070 req_avail=no
13072 if test "$orig_target_ld" = "no"; then
13073 req_avail=no
13075 if test "$req_avail" = "no"; then
13076 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13079 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13080 if test "$cross_compiling" = "yes" ; then
13081 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13082 set dummy ${target_tool_prefix}as; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if ${ac_cv_path_orig_target_as+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 case $orig_target_as in
13089 [\\/]* | ?:[\\/]*)
13090 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 break 2
13104 done
13105 done
13106 IFS=$as_save_IFS
13109 esac
13111 orig_target_as=$ac_cv_path_orig_target_as
13112 if test -n "$orig_target_as"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13114 $as_echo "$orig_target_as" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13121 else
13123 if test "" = ""; then
13124 ac_tool_as=as
13125 else
13126 ac_tool_as=
13128 if test "$GCC" = "yes"; then
13129 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
13130 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13131 set dummy `basename $aros_gcc_as`; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_path_orig_target_as+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 case $orig_target_as in
13138 [\\/]* | ?:[\\/]*)
13139 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in `dirname $aros_gcc_as`
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 for ac_exec_ext in '' $ac_executable_extensions; do
13148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13149 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151 break 2
13153 done
13154 done
13155 IFS=$as_save_IFS
13158 esac
13160 orig_target_as=$ac_cv_path_orig_target_as
13161 if test -n "$orig_target_as"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13163 $as_echo "$orig_target_as" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13171 if test "$orig_target_as" = ""; then
13172 for ac_prog in $ac_tool_as
13174 # Extract the first word of "$ac_prog", so it can be a program name with args.
13175 set dummy $ac_prog; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_path_orig_target_as+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 case $orig_target_as in
13182 [\\/]* | ?:[\\/]*)
13183 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13197 done
13198 done
13199 IFS=$as_save_IFS
13202 esac
13204 orig_target_as=$ac_cv_path_orig_target_as
13205 if test -n "$orig_target_as"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13207 $as_echo "$orig_target_as" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13214 test -n "$orig_target_as" && break
13215 done
13220 else
13221 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13222 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13223 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_path_orig_target_as+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 case $orig_target_as in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13247 IFS=$as_save_IFS
13250 esac
13252 orig_target_as=$ac_cv_path_orig_target_as
13253 if test -n "$orig_target_as"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13255 $as_echo "$orig_target_as" >&6; }
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13262 orig_target_as="$orig_target_as $ac_tool_optarg"
13265 req_avail=yes
13266 if test "$orig_target_as" = ""; then
13267 req_avail=no
13269 if test "$orig_target_as" = "no"; then
13270 req_avail=no
13272 if test "$req_avail" = "no"; then
13273 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13276 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13277 if test "$cross_compiling" = "yes" ; then
13278 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13279 set dummy ${target_tool_prefix}ar; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if ${ac_cv_path_orig_target_ar+:} false; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 case $orig_target_ar in
13286 [\\/]* | ?:[\\/]*)
13287 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13293 IFS=$as_save_IFS
13294 test -z "$as_dir" && as_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13297 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299 break 2
13301 done
13302 done
13303 IFS=$as_save_IFS
13306 esac
13308 orig_target_ar=$ac_cv_path_orig_target_ar
13309 if test -n "$orig_target_ar"; then
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13311 $as_echo "$orig_target_ar" >&6; }
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13318 else
13320 if test "" = ""; then
13321 ac_tool_ar=ar
13322 else
13323 ac_tool_ar=
13325 if test "$GCC" = "yes"; then
13326 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13327 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13328 set dummy `basename $aros_gcc_ar`; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_path_orig_target_ar+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 case $orig_target_ar in
13335 [\\/]* | ?:[\\/]*)
13336 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in `dirname $aros_gcc_ar`
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
13345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13346 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13350 done
13351 done
13352 IFS=$as_save_IFS
13355 esac
13357 orig_target_ar=$ac_cv_path_orig_target_ar
13358 if test -n "$orig_target_ar"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13360 $as_echo "$orig_target_ar" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 if test "$orig_target_ar" = ""; then
13369 for ac_prog in $ac_tool_ar
13371 # Extract the first word of "$ac_prog", so it can be a program name with args.
13372 set dummy $ac_prog; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if ${ac_cv_path_orig_target_ar+:} false; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 case $orig_target_ar in
13379 [\\/]* | ?:[\\/]*)
13380 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13399 esac
13401 orig_target_ar=$ac_cv_path_orig_target_ar
13402 if test -n "$orig_target_ar"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13404 $as_echo "$orig_target_ar" >&6; }
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13411 test -n "$orig_target_ar" && break
13412 done
13417 else
13418 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13419 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13420 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if ${ac_cv_path_orig_target_ar+:} false; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 case $orig_target_ar in
13427 [\\/]* | ?:[\\/]*)
13428 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13442 done
13443 done
13444 IFS=$as_save_IFS
13447 esac
13449 orig_target_ar=$ac_cv_path_orig_target_ar
13450 if test -n "$orig_target_ar"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13452 $as_echo "$orig_target_ar" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13459 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13462 req_avail=yes
13463 if test "$orig_target_ar" = ""; then
13464 req_avail=no
13466 if test "$orig_target_ar" = "no"; then
13467 req_avail=no
13469 if test "$req_avail" = "no"; then
13470 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13473 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13474 if test "$cross_compiling" = "yes" ; then
13475 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13476 set dummy ${target_tool_prefix}ar; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 case $orig_target_ranlib in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13498 done
13499 done
13500 IFS=$as_save_IFS
13503 esac
13505 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13506 if test -n "$orig_target_ranlib"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13508 $as_echo "$orig_target_ranlib" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13515 else
13517 if test "" = ""; then
13518 ac_tool_ar=ar
13519 else
13520 ac_tool_ar=
13522 if test "$GCC" = "yes"; then
13523 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13524 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13525 set dummy `basename $aros_gcc_ar`; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 case $orig_target_ranlib in
13532 [\\/]* | ?:[\\/]*)
13533 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in `dirname $aros_gcc_ar`
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13547 done
13548 done
13549 IFS=$as_save_IFS
13552 esac
13554 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13555 if test -n "$orig_target_ranlib"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13557 $as_echo "$orig_target_ranlib" >&6; }
13558 else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13565 if test "$orig_target_ranlib" = ""; then
13566 for ac_prog in $ac_tool_ar
13568 # Extract the first word of "$ac_prog", so it can be a program name with args.
13569 set dummy $ac_prog; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 case $orig_target_ranlib in
13576 [\\/]* | ?:[\\/]*)
13577 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13583 IFS=$as_save_IFS
13584 test -z "$as_dir" && as_dir=.
13585 for ac_exec_ext in '' $ac_executable_extensions; do
13586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 break 2
13591 done
13592 done
13593 IFS=$as_save_IFS
13596 esac
13598 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13599 if test -n "$orig_target_ranlib"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13601 $as_echo "$orig_target_ranlib" >&6; }
13602 else
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604 $as_echo "no" >&6; }
13608 test -n "$orig_target_ranlib" && break
13609 done
13614 else
13615 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13616 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13617 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 case $orig_target_ranlib in
13624 [\\/]* | ?:[\\/]*)
13625 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13639 done
13640 done
13641 IFS=$as_save_IFS
13644 esac
13646 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13647 if test -n "$orig_target_ranlib"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13649 $as_echo "$orig_target_ranlib" >&6; }
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13656 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13659 req_avail=yes
13660 if test "$orig_target_ranlib" = ""; then
13661 req_avail=no
13663 if test "$orig_target_ranlib" = "no"; then
13664 req_avail=no
13666 if test "$req_avail" = "no"; then
13667 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13670 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13671 if test "$cross_compiling" = "yes" ; then
13672 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13673 set dummy ${target_tool_prefix}nm; ac_word=$2
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13675 $as_echo_n "checking for $ac_word... " >&6; }
13676 if ${ac_cv_path_orig_target_nm+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 case $orig_target_nm in
13680 [\\/]* | ?:[\\/]*)
13681 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13691 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13695 done
13696 done
13697 IFS=$as_save_IFS
13700 esac
13702 orig_target_nm=$ac_cv_path_orig_target_nm
13703 if test -n "$orig_target_nm"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13705 $as_echo "$orig_target_nm" >&6; }
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13712 else
13714 if test "" = ""; then
13715 ac_tool_nm=nm
13716 else
13717 ac_tool_nm=
13719 if test "$GCC" = "yes"; then
13720 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13721 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13722 set dummy `basename $aros_gcc_nm`; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_path_orig_target_nm+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 case $orig_target_nm in
13729 [\\/]* | ?:[\\/]*)
13730 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in `dirname $aros_gcc_nm`
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13744 done
13745 done
13746 IFS=$as_save_IFS
13749 esac
13751 orig_target_nm=$ac_cv_path_orig_target_nm
13752 if test -n "$orig_target_nm"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13754 $as_echo "$orig_target_nm" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13762 if test "$orig_target_nm" = ""; then
13763 for ac_prog in $ac_tool_nm
13765 # Extract the first word of "$ac_prog", so it can be a program name with args.
13766 set dummy $ac_prog; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13768 $as_echo_n "checking for $ac_word... " >&6; }
13769 if ${ac_cv_path_orig_target_nm+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 case $orig_target_nm in
13773 [\\/]* | ?:[\\/]*)
13774 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13780 IFS=$as_save_IFS
13781 test -z "$as_dir" && as_dir=.
13782 for ac_exec_ext in '' $ac_executable_extensions; do
13783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13784 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786 break 2
13788 done
13789 done
13790 IFS=$as_save_IFS
13793 esac
13795 orig_target_nm=$ac_cv_path_orig_target_nm
13796 if test -n "$orig_target_nm"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13798 $as_echo "$orig_target_nm" >&6; }
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13805 test -n "$orig_target_nm" && break
13806 done
13811 else
13812 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13813 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13814 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_path_orig_target_nm+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 case $orig_target_nm in
13821 [\\/]* | ?:[\\/]*)
13822 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $PATH
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 break 2
13836 done
13837 done
13838 IFS=$as_save_IFS
13841 esac
13843 orig_target_nm=$ac_cv_path_orig_target_nm
13844 if test -n "$orig_target_nm"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13846 $as_echo "$orig_target_nm" >&6; }
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13853 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13856 req_avail=yes
13857 if test "$orig_target_nm" = ""; then
13858 req_avail=no
13860 if test "$orig_target_nm" = "no"; then
13861 req_avail=no
13863 if test "$req_avail" = "no"; then
13864 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13867 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13868 if test "$cross_compiling" = "yes" ; then
13869 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13870 set dummy ${target_tool_prefix}strip; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if ${ac_cv_path_orig_target_strip+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 case $orig_target_strip in
13877 [\\/]* | ?:[\\/]*)
13878 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882 for as_dir in $PATH
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
13887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13888 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 break 2
13892 done
13893 done
13894 IFS=$as_save_IFS
13897 esac
13899 orig_target_strip=$ac_cv_path_orig_target_strip
13900 if test -n "$orig_target_strip"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13902 $as_echo "$orig_target_strip" >&6; }
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13909 else
13911 if test "" = ""; then
13912 ac_tool_strip=strip
13913 else
13914 ac_tool_strip=
13916 if test "$GCC" = "yes"; then
13917 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13918 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13919 set dummy `basename $aros_gcc_strip`; ac_word=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if ${ac_cv_path_orig_target_strip+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 case $orig_target_strip in
13926 [\\/]* | ?:[\\/]*)
13927 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in `dirname $aros_gcc_strip`
13933 IFS=$as_save_IFS
13934 test -z "$as_dir" && as_dir=.
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939 break 2
13941 done
13942 done
13943 IFS=$as_save_IFS
13946 esac
13948 orig_target_strip=$ac_cv_path_orig_target_strip
13949 if test -n "$orig_target_strip"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13951 $as_echo "$orig_target_strip" >&6; }
13952 else
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13959 if test "$orig_target_strip" = ""; then
13960 for ac_prog in $ac_tool_strip
13962 # Extract the first word of "$ac_prog", so it can be a program name with args.
13963 set dummy $ac_prog; ac_word=$2
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 $as_echo_n "checking for $ac_word... " >&6; }
13966 if ${ac_cv_path_orig_target_strip+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 case $orig_target_strip in
13970 [\\/]* | ?:[\\/]*)
13971 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13985 done
13986 done
13987 IFS=$as_save_IFS
13990 esac
13992 orig_target_strip=$ac_cv_path_orig_target_strip
13993 if test -n "$orig_target_strip"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13995 $as_echo "$orig_target_strip" >&6; }
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
14002 test -n "$orig_target_strip" && break
14003 done
14008 else
14009 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14010 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14011 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_path_orig_target_strip+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 case $orig_target_strip in
14018 [\\/]* | ?:[\\/]*)
14019 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14029 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14033 done
14034 done
14035 IFS=$as_save_IFS
14038 esac
14040 orig_target_strip=$ac_cv_path_orig_target_strip
14041 if test -n "$orig_target_strip"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14043 $as_echo "$orig_target_strip" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14050 orig_target_strip="$orig_target_strip $ac_tool_optarg"
14053 req_avail=yes
14054 if test "$orig_target_strip" = ""; then
14055 req_avail=no
14057 if test "$orig_target_strip" = "no"; then
14058 req_avail=no
14060 if test "$req_avail" = "no"; then
14061 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14064 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14065 if test "$cross_compiling" = "yes" ; then
14066 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14067 set dummy ${target_tool_prefix}objcopy; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 case $orig_target_objcopy in
14074 [\\/]* | ?:[\\/]*)
14075 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14081 IFS=$as_save_IFS
14082 test -z "$as_dir" && as_dir=.
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14085 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087 break 2
14089 done
14090 done
14091 IFS=$as_save_IFS
14094 esac
14096 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14097 if test -n "$orig_target_objcopy"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14099 $as_echo "$orig_target_objcopy" >&6; }
14100 else
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14106 else
14108 if test "" = ""; then
14109 ac_tool_objcopy=objcopy
14110 else
14111 ac_tool_objcopy=
14113 if test "$GCC" = "yes"; then
14114 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
14115 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14116 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 case $orig_target_objcopy in
14123 [\\/]* | ?:[\\/]*)
14124 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in `dirname $aros_gcc_objcopy`
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14138 done
14139 done
14140 IFS=$as_save_IFS
14143 esac
14145 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14146 if test -n "$orig_target_objcopy"; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14148 $as_echo "$orig_target_objcopy" >&6; }
14149 else
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14156 if test "$orig_target_objcopy" = ""; then
14157 for ac_prog in $ac_tool_objcopy
14159 # Extract the first word of "$ac_prog", so it can be a program name with args.
14160 set dummy $ac_prog; ac_word=$2
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14162 $as_echo_n "checking for $ac_word... " >&6; }
14163 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14164 $as_echo_n "(cached) " >&6
14165 else
14166 case $orig_target_objcopy in
14167 [\\/]* | ?:[\\/]*)
14168 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14178 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14182 done
14183 done
14184 IFS=$as_save_IFS
14187 esac
14189 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14190 if test -n "$orig_target_objcopy"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14192 $as_echo "$orig_target_objcopy" >&6; }
14193 else
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14199 test -n "$orig_target_objcopy" && break
14200 done
14205 else
14206 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14207 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14208 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210 $as_echo_n "checking for $ac_word... " >&6; }
14211 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 case $orig_target_objcopy in
14215 [\\/]* | ?:[\\/]*)
14216 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220 for as_dir in $PATH
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
14224 for ac_exec_ext in '' $ac_executable_extensions; do
14225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14226 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14228 break 2
14230 done
14231 done
14232 IFS=$as_save_IFS
14235 esac
14237 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14238 if test -n "$orig_target_objcopy"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14240 $as_echo "$orig_target_objcopy" >&6; }
14241 else
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14243 $as_echo "no" >&6; }
14247 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14250 req_avail=yes
14251 if test "$orig_target_objcopy" = ""; then
14252 req_avail=no
14254 if test "$orig_target_objcopy" = "no"; then
14255 req_avail=no
14257 if test "$req_avail" = "no"; then
14258 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14261 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14262 if test "$cross_compiling" = "yes" ; then
14263 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14264 set dummy ${target_tool_prefix}objdump; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_path_orig_target_objdump+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 case $orig_target_objdump in
14271 [\\/]* | ?:[\\/]*)
14272 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 break 2
14286 done
14287 done
14288 IFS=$as_save_IFS
14291 esac
14293 orig_target_objdump=$ac_cv_path_orig_target_objdump
14294 if test -n "$orig_target_objdump"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14296 $as_echo "$orig_target_objdump" >&6; }
14297 else
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14303 else
14305 if test "" = ""; then
14306 ac_tool_objdump=objdump
14307 else
14308 ac_tool_objdump=
14310 if test "$GCC" = "yes"; then
14311 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14312 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14313 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_orig_target_objdump+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 case $orig_target_objdump in
14320 [\\/]* | ?:[\\/]*)
14321 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in `dirname $aros_gcc_objdump`
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14335 done
14336 done
14337 IFS=$as_save_IFS
14340 esac
14342 orig_target_objdump=$ac_cv_path_orig_target_objdump
14343 if test -n "$orig_target_objdump"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14345 $as_echo "$orig_target_objdump" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14353 if test "$orig_target_objdump" = ""; then
14354 for ac_prog in $ac_tool_objdump
14356 # Extract the first word of "$ac_prog", so it can be a program name with args.
14357 set dummy $ac_prog; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359 $as_echo_n "checking for $ac_word... " >&6; }
14360 if ${ac_cv_path_orig_target_objdump+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 case $orig_target_objdump in
14364 [\\/]* | ?:[\\/]*)
14365 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14379 done
14380 done
14381 IFS=$as_save_IFS
14384 esac
14386 orig_target_objdump=$ac_cv_path_orig_target_objdump
14387 if test -n "$orig_target_objdump"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14389 $as_echo "$orig_target_objdump" >&6; }
14390 else
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14396 test -n "$orig_target_objdump" && break
14397 done
14402 else
14403 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14404 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14405 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 $as_echo_n "checking for $ac_word... " >&6; }
14408 if ${ac_cv_path_orig_target_objdump+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 case $orig_target_objdump in
14412 [\\/]* | ?:[\\/]*)
14413 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14423 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14427 done
14428 done
14429 IFS=$as_save_IFS
14432 esac
14434 orig_target_objdump=$ac_cv_path_orig_target_objdump
14435 if test -n "$orig_target_objdump"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14437 $as_echo "$orig_target_objdump" >&6; }
14438 else
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14444 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14447 req_avail=yes
14448 if test "$orig_target_objdump" = ""; then
14449 req_avail=no
14451 if test "$orig_target_objdump" = "no"; then
14452 req_avail=no
14454 if test "$req_avail" = "no"; then
14455 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14459 if test "$kernel_tool_prefix" = "none" ; then
14460 # No kernel tools specified
14461 # Assume kernel tools == target tools with ELF wrapper
14462 aros_kernel_cc=$orig_target_cc
14463 aros_kernel_cxx=$orig_target_cxx
14464 aros_kernel_cpp="$orig_target_cpp"
14465 aros_kernel_ld=$orig_target_ld
14466 aros_kernel_as=$orig_target_as
14467 aros_kernel_ar=$orig_target_ar
14468 aros_kernel_ranlib=$orig_target_ranlib
14469 aros_kernel_nm=$orig_target_nm
14470 aros_kernel_strip=$orig_target_strip
14471 aros_kernel_objcopy=$orig_target_objcopy
14472 aros_kernel_objdump=$orig_target_objdump
14473 aros_kernel_isa_flags=$aros_isa_flags
14474 use_kernel_cc_wrapper=yes
14477 # At this point, all aros_kernel_* and aros_target_*
14478 # tools should be set up correctly
14480 CC="$aros_kernel_cc $kernel_tool_flags"
14481 CPP="$aros_kernel_cpp"
14483 #-----------------------------------------------------------------------------
14485 # Find all the tools we need to compile. This could be cross-compiling
14486 # though! If that is the case we use the GNU form of the target and
14487 # simply add this to the front of the binary name. This is rather simple,
14488 # but it should work under most circumstances.
14490 # The default tools are to use the same as the host, but only if the
14491 # host and target CPU are the same. With GCC this is normally enough.
14494 aros_cc_pre=""
14495 aros_shared_ld="$aros_host_ld"
14497 aros_target_mkdep="$aros_host_mkdep"
14499 # The default tools executables to be linked to.
14500 if test "$rescomp" != ""; then
14501 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14502 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14504 $as_echo_n "checking for $ac_word... " >&6; }
14505 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 case $aros_kernel_rescomp in
14509 [\\/]* | ?:[\\/]*)
14510 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14514 for as_dir in $PATH
14516 IFS=$as_save_IFS
14517 test -z "$as_dir" && as_dir=.
14518 for ac_exec_ext in '' $ac_executable_extensions; do
14519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14520 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14522 break 2
14524 done
14525 done
14526 IFS=$as_save_IFS
14529 esac
14531 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14532 if test -n "$aros_kernel_rescomp"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14534 $as_echo "$aros_kernel_rescomp" >&6; }
14535 else
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537 $as_echo "no" >&6; }
14541 req_avail=yes
14542 if test "$aros_kernel_rescomp" = ""; then
14543 req_avail=no
14545 if test "$aros_kernel_rescomp" = "no"; then
14546 req_avail=no
14548 if test "$req_avail" = "no"; then
14549 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14553 # Set up the sources for the symlink farm
14554 if test "$crosstools" = "yes"; then
14555 crosstools_target=tools-crosstools
14558 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14559 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14561 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14562 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14563 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14564 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14565 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14566 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14567 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14569 # aros_cc_pre is a variable that is added to the front of the compiler name
14570 # in the generated aros-gcc shell script. We need this to enable the cache
14571 # to work across cleaned builds. Also, support DISTCC using the correct
14572 # environment variable.
14575 if test "x${DISTCC}" != "x" ; then
14576 if test "x${CCACHE}" != "x" ; then
14577 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14578 else
14579 aros_cc_pre="${DISTCC} "
14581 else
14582 if test "x${CCACHE}" != "x" ; then
14583 aros_cc_pre="${CCACHE} "
14587 aros_target_nostdinc_cflags=-nostdinc
14589 aros_target_nostartup_ldflags=-nostartfiles
14591 aros_target_nix_ldflags=-nix
14593 aros_target_detach_ldflags=-detach
14595 aros_target_nostdlib_ldflags=-nostdlib
14598 aros_target_cc_path=
14600 # Target tools
14602 if test "$aros_target_toolchain" != "yes"; then
14603 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14604 if test "$GCC" = "yes"; then
14605 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14607 else
14608 # We do not know which c compiler version we are going to build and what we need to know
14609 # here is different for different versions so this will be set later during the
14610 # build of crosstools.
14611 if test "$aros_toolchain" = "gnu" ; then
14612 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14613 elif test "$aros_toolchain" = "llvm" ; then
14614 prefix="$AROS_CROSSTOOLSDIR/bin/"
14616 aros_target_cc_path=@aros_target_cc_path@
14618 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14619 aros_target_cc="${prefix}${toolchain_c_compiler}"
14620 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14621 aros_target_as="${prefix}${toolchain_as}"
14622 if test "${use_ld_wrapper}" = "yes"; then
14623 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14624 else
14625 aros_target_ld="${prefix}${toolchain_ld}"
14627 aros_toolchain_ld="${prefix}${toolchain_ld}"
14629 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14630 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14631 aros_target_objdump="${prefix}${toolchain_objdump}"
14632 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14633 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14634 aros_target_strip="${prefix}${toolchain_strip}"
14635 aros_plain_nm="${prefix}${toolchain_nm}"
14636 aros_plain_ar="${prefix}${toolchain_ar}"
14638 # Check whether --enable-includes was given.
14639 if test "${enable_includes+set}" = set; then :
14640 enableval=$enable_includes; aros_target_incl=$enable_includes
14641 else
14642 aros_target_incl=no
14646 if test "x$aros_target_incl" = "xno"; then
14647 if test "x$test_kernel_cc" != "xno"; then
14648 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14649 else
14650 aros_target_incl=
14654 if test "x$aros_kernel_includes" = "x"; then
14655 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14656 if test "x$aros_target_incl" != "x"; then
14657 aros_kernel_includes="-isystem $aros_target_incl"
14662 if test "x$test_kernel_cc" != "xno"; then
14663 if test "$aros_kernel_includes" != "" ; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14665 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14666 if test "$aros_kernel_cc_includes" = "" ; then
14667 # Try to guess where the directory is.
14668 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14669 if test -d $aros_kernel_cc_includes; then
14670 # Check if there is also an include-fixed directory and add it
14671 # to kernel compiler's include path as it may contain some of
14672 # the headers we need.
14673 if test -d "$aros_kernel_cc_includes"-fixed; then
14674 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14676 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14677 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14678 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14680 else
14681 # The directory doesn't exist, we need to do some more work.
14682 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14684 # These are the headers we're looking for.
14685 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14686 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14687 zutil.h stdint.h"
14689 dirs=
14690 for h in $headers; do
14691 # Which other headers are needed by each of the above?
14692 deps=$(echo "#include <$h>" | \
14693 $aros_kernel_cc -E -M - 2>/dev/null | \
14694 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14696 # Copy all the needed headers to a directory beneath gendir.
14697 for d in $deps; do
14698 h=$(basename $d)
14699 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14700 sed -n "s,^.*/include\(/.*\),\1,p")
14701 ! test -d $dir && mkdir -p $dir
14702 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14703 done
14704 done
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14708 $as_echo "$aros_kernel_cc_includes" >&6; }
14709 # Adding -nostdinc to kernel includes as they are always used together.
14710 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14714 if test "$crosstools" != "yes"; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14716 $as_echo_n "checking for the target compiler's include path... " >&6; }
14717 if test "$aros_target_cc_includes" = "" ; then
14718 #try to guess where the directory is
14719 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14720 if ! test -d $aros_target_cc_includes; then
14721 #the directory doesn't exist, we need to do some more work
14722 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14724 #these are the headers we're looking for
14725 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14726 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14727 zutil.h"
14729 dirs=
14730 for h in $headers; do
14731 #which other headers each of the above headers needs?
14732 deps=$(echo "#include <$h>" | \
14733 $orig_target_cc -E -M - 2>/dev/null | \
14734 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14736 #copy all the needed headers to a directory beneath gendir
14737 for d in $deps; do
14738 h=$(basename $d)
14739 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14740 sed -n "s,^.*/include\(/.*\),\1,p")
14741 ! test -d $dir && mkdir -p $dir
14742 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14743 done
14744 done
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14748 $as_echo "$aros_target_cc_includes" >&6; }
14749 else
14750 # We do not know which c compiler version we are going to build and what we need to know
14751 # here is different for different versions so this will be set later during the
14752 # build of crosstools.
14753 aros_target_cc_includes=@aros_target_cc_includes@
14757 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14758 # On GCC >= 4.0 -iquote should be used
14761 save_cc="$CC"
14762 save_cflags="$CFLAGS"
14763 if test "x$test_kernel_cc" != "xno"; then
14764 CFLAGS="-iquote."
14765 kernel_cflags_iquote=$host_cflags_iquote
14766 kernel_cflags_iquote_end=$host_cflags_iquote_end
14767 if test "x-$cross_compiling" = "x-yes"; then
14768 CC="$aros_kernel_cc"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14770 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14771 if test "x-$crosstools" != "x-yes"; then
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14776 main ()
14780 return 0;
14782 _ACEOF
14783 if ac_fn_c_try_compile "$LINENO"; then :
14784 use_no_stack_protector="yes"
14785 else
14786 use_no_stack_protector="no"
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 else
14790 # we do know it is supported for the smallest version of gcc we are going to build
14791 # we assume it's also supported by later versions
14792 use_no_stack_protector=yes
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14795 $as_echo "$use_no_stack_protector" >&6; }
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14797 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14798 if test "x-$crosstools" != "x-yes"; then
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14803 main ()
14807 return 0;
14809 _ACEOF
14810 if ac_fn_c_try_compile "$LINENO"; then :
14811 has_iquote="yes"
14812 else
14813 has_iquote="no"
14815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816 else
14817 # we do know it is supported for the smallest version of gcc we are going to build
14818 # we assume it's also supported by later versions
14819 has_iquote=yes
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14822 $as_echo "$has_iquote" >&6; }
14823 if test "x-$has_iquote" = "x-yes" ; then
14824 kernel_cflags_iquote=-iquote
14825 kernel_cflags_iquote_end=
14826 else
14827 kernel_cflags_iquote=-I
14828 kernel_cflags_iquote_end=-I-
14831 if test "x-$use_no_stack_protector" = "x-yes" ; then
14832 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14835 #-----------------------------------------------------------------------------
14837 # Check if we can explicitly choose older version of symbol hashing
14839 CFLAGS="$save_cflags -Wl,--hash-style=sysv"
14840 CC="$aros_kernel_cc"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14842 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14847 main ()
14851 return 0;
14853 _ACEOF
14854 if ac_fn_c_try_link "$LINENO"; then :
14855 use_hash_style="yes"
14856 else
14857 use_hash_style="no"
14859 rm -f core conftest.err conftest.$ac_objext \
14860 conftest$ac_exeext conftest.$ac_ext
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14862 $as_echo "$use_hash_style" >&6; }
14863 if test "x-$use_hash_style" = "x-yes" ; then
14864 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14866 else
14867 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14868 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14870 CC="$save_cc"
14871 CFLAGS="$save_cflags"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14880 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14882 # Check whether --with-resolution was given.
14883 if test "${with_resolution+set}" = set; then :
14884 withval=$with_resolution; resolution=$withval
14885 else
14886 resolution=none
14889 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14890 if test "$resolution" = "yes" ; then
14891 resolution="none"
14893 if test "$resolution" = "no" ; then
14894 resolution="none"
14896 if test "$resolution" != "none" ; then
14897 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14898 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14899 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14902 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14903 aros_cv_nominal_width=$aros_nominal_width
14904 aros_cv_nominal_height=$aros_nominal_height
14905 aros_cv_nominal_depth=$aros_nominal_depth
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14908 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14910 # Check whether --with-serial-debug was given.
14911 if test "${with_serial_debug+set}" = set; then :
14912 withval=$with_serial_debug; serial_debug=$withval
14913 else
14914 serial_debug=none
14917 if test "$aros_serial_debug" = 0 ; then
14918 serial_debug_forced=""
14919 if test "$serial_debug" = "yes" ; then
14920 serial_debug="1"
14922 if test "$serial_debug" = "no" ; then
14923 serial_debug="none"
14925 else
14926 serial_debug_forced="(forced)"
14927 serial_debug=$aros_serial_debug
14929 if test "$serial_debug" != "none" ; then
14930 aros_serial_debug=$serial_debug
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14932 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14939 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14940 # Check whether --enable-palm_debug_hack was given.
14941 if test "${enable_palm_debug_hack+set}" = set; then :
14942 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14943 else
14944 palm_debug_hack="no"
14947 if test "$palm_debug_hack" = "yes" ; then
14948 aros_palm_debug_hack="1"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14951 $as_echo "$palm_debug_hack" >&6; }
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14954 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14955 # Check whether --enable-usb30_code was given.
14956 if test "${enable_usb30_code+set}" = set; then :
14957 enableval=$enable_usb30_code; usb30_code="yes"
14958 else
14959 usb30_code="no"
14962 if test "$usb30_code" = "yes" ; then
14963 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14964 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14967 $as_echo "$usb30_code" >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14970 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14971 # Check whether --enable-nesting_supervisor was given.
14972 if test "${enable_nesting_supervisor+set}" = set; then :
14973 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14974 else
14975 nesting_supervisor="no"
14978 if test "$nesting_supervisor" = "yes" ; then
14979 aros_nesting_supervisor="1"
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14982 $as_echo "$nesting_supervisor" >&6; }
14984 if test "$aros_enable_mmu" = "" ; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14986 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14987 # Check whether --enable-mmu was given.
14988 if test "${enable_mmu+set}" = set; then :
14989 enableval=$enable_mmu; aros_enable_mmu=$enableval
14990 else
14991 aros_enable_mmu="yes"
14994 if test "$aros_enable_mmu" = "" ; then
14995 aros_enable_mmu="yes"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14998 $as_echo "$aros_enable_mmu" >&6; }
15000 if test "$aros_enable_mmu" = "no" ; then
15001 aros_enable_mmu="0"
15002 else
15003 aros_enable_mmu="1"
15007 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15009 if test "x-$need_dlopen" != "x-no" ; then
15010 save_libs="$LIBS"
15011 LIBS=""
15012 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15013 if test "x$ac_cv_func_dlopen" = xyes; then :
15014 have_dl="yes"
15015 else
15016 have_dl="no"
15019 if test "x-$have_dl" = "x-no" ; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15021 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15022 if ${ac_cv_lib_dl_dlopen+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 ac_check_lib_save_LIBS=$LIBS
15026 LIBS="-ldl $LIBS"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char dlopen ();
15038 main ()
15040 return dlopen ();
15042 return 0;
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"; then :
15046 ac_cv_lib_dl_dlopen=yes
15047 else
15048 ac_cv_lib_dl_dlopen=no
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$ac_check_lib_save_LIBS
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15055 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15056 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15057 have_dl="yes"
15058 aros_host_ldflags="$aros_host_ldflags -ldl"
15059 else
15060 have_dl="no"
15064 if test "x-$have_dl" = "x-no" ; then
15065 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
15067 LIBS="$save_libs"
15071 # Check whether --enable-x11_hidd was given.
15072 if test "${enable_x11_hidd+set}" = set; then :
15073 enableval=$enable_x11_hidd; x11_hidd="$enableval"
15074 else
15075 x11_hidd="$need_x11"
15078 case "x-$x11_hidd" in
15079 x-yes|x-no|x-auto) ;;
15080 *) x11_hidd="$need_x11" ;;
15081 esac
15083 ENABLE_X11=0
15085 if test "x-$x11_hidd" != "x-no" ; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15088 $as_echo_n "checking for X... " >&6; }
15091 # Check whether --with-x was given.
15092 if test "${with_x+set}" = set; then :
15093 withval=$with_x;
15096 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15097 if test "x$with_x" = xno; then
15098 # The user explicitly disabled X.
15099 have_x=disabled
15100 else
15101 case $x_includes,$x_libraries in #(
15102 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
15103 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
15104 $as_echo_n "(cached) " >&6
15105 else
15106 # One or both of the vars are not set, and there is no cached value.
15107 ac_x_includes=no ac_x_libraries=no
15108 rm -f -r conftest.dir
15109 if mkdir conftest.dir; then
15110 cd conftest.dir
15111 cat >Imakefile <<'_ACEOF'
15112 incroot:
15113 @echo incroot='${INCROOT}'
15114 usrlibdir:
15115 @echo usrlibdir='${USRLIBDIR}'
15116 libdir:
15117 @echo libdir='${LIBDIR}'
15118 _ACEOF
15119 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15120 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15121 for ac_var in incroot usrlibdir libdir; do
15122 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15123 done
15124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15125 for ac_extension in a so sl dylib la dll; do
15126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15128 ac_im_usrlibdir=$ac_im_libdir; break
15130 done
15131 # Screen out bogus values from the imake configuration. They are
15132 # bogus both because they are the default anyway, and because
15133 # using them would break gcc on systems where it needs fixed includes.
15134 case $ac_im_incroot in
15135 /usr/include) ac_x_includes= ;;
15136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15137 esac
15138 case $ac_im_usrlibdir in
15139 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15141 esac
15143 cd ..
15144 rm -f -r conftest.dir
15147 # Standard set of common directories for X headers.
15148 # Check X11 before X11Rn because it is often a symlink to the current release.
15149 ac_x_header_dirs='
15150 /usr/X11/include
15151 /usr/X11R7/include
15152 /usr/X11R6/include
15153 /usr/X11R5/include
15154 /usr/X11R4/include
15156 /usr/include/X11
15157 /usr/include/X11R7
15158 /usr/include/X11R6
15159 /usr/include/X11R5
15160 /usr/include/X11R4
15162 /usr/local/X11/include
15163 /usr/local/X11R7/include
15164 /usr/local/X11R6/include
15165 /usr/local/X11R5/include
15166 /usr/local/X11R4/include
15168 /usr/local/include/X11
15169 /usr/local/include/X11R7
15170 /usr/local/include/X11R6
15171 /usr/local/include/X11R5
15172 /usr/local/include/X11R4
15174 /usr/X386/include
15175 /usr/x386/include
15176 /usr/XFree86/include/X11
15178 /usr/include
15179 /usr/local/include
15180 /usr/unsupported/include
15181 /usr/athena/include
15182 /usr/local/x11r5/include
15183 /usr/lpp/Xamples/include
15185 /usr/openwin/include
15186 /usr/openwin/share/include'
15188 if test "$ac_x_includes" = no; then
15189 # Guess where to find include files, by looking for Xlib.h.
15190 # First, try using that file with no special directory specified.
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 #include <X11/Xlib.h>
15194 _ACEOF
15195 if ac_fn_c_try_cpp "$LINENO"; then :
15196 # We can compile using X headers with no special include directory.
15197 ac_x_includes=
15198 else
15199 for ac_dir in $ac_x_header_dirs; do
15200 if test -r "$ac_dir/X11/Xlib.h"; then
15201 ac_x_includes=$ac_dir
15202 break
15204 done
15206 rm -f conftest.err conftest.i conftest.$ac_ext
15207 fi # $ac_x_includes = no
15209 if test "$ac_x_libraries" = no; then
15210 # Check for the libraries.
15211 # See if we find them without any special options.
15212 # Don't add to $LIBS permanently.
15213 ac_save_LIBS=$LIBS
15214 LIBS="-lX11 $LIBS"
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #include <X11/Xlib.h>
15219 main ()
15221 XrmInitialize ()
15223 return 0;
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 LIBS=$ac_save_LIBS
15228 # We can link X programs with no special library path.
15229 ac_x_libraries=
15230 else
15231 LIBS=$ac_save_LIBS
15232 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15234 # Don't even attempt the hair of trying to link an X program!
15235 for ac_extension in a so sl dylib la dll; do
15236 if test -r "$ac_dir/libX11.$ac_extension"; then
15237 ac_x_libraries=$ac_dir
15238 break 2
15240 done
15241 done
15243 rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245 fi # $ac_x_libraries = no
15247 case $ac_x_includes,$ac_x_libraries in #(
15248 no,* | *,no | *\'*)
15249 # Didn't find X, or a directory has "'" in its name.
15250 ac_cv_have_x="have_x=no";; #(
15252 # Record where we found X for the cache.
15253 ac_cv_have_x="have_x=yes\
15254 ac_x_includes='$ac_x_includes'\
15255 ac_x_libraries='$ac_x_libraries'"
15256 esac
15258 ;; #(
15259 *) have_x=yes;;
15260 esac
15261 eval "$ac_cv_have_x"
15262 fi # $with_x != no
15264 if test "$have_x" != yes; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15266 $as_echo "$have_x" >&6; }
15267 no_x=yes
15268 else
15269 # If each of the values was on the command line, it overrides each guess.
15270 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15271 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15272 # Update the cache value to reflect the command line values.
15273 ac_cv_have_x="have_x=yes\
15274 ac_x_includes='$x_includes'\
15275 ac_x_libraries='$x_libraries'"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15277 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15281 if test -n "$x_includes"; then
15282 X_CFLAGS="$X_CFLAGS -I$x_includes"
15285 if test -n "$x_libraries"; then
15286 X_LIBS="$X_LIBS -L$x_libraries"
15289 if test "x-$no_x" = "x-yes" ; then
15291 if test "x-$x11_hidd" != "x-auto" ; then
15292 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15295 else
15296 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15297 if test "x-$host_feature_glx" != "x-no" ; then
15298 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15300 ENABLE_X11=1
15302 aros_host_x11_cflags="$X_CFLAGS"
15303 aros_host_x11_ldflags="$X_LIBS -lX11"
15305 # Check whether --enable-x11_shm was given.
15306 if test "${enable_x11_shm+set}" = set; then :
15307 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15308 else
15309 x11_hidd_shm="auto"
15312 case "x-$x11_hidd_shm" in
15313 x-yes|x-no|x-auto) ;;
15314 *) x11_hidd_shm="auto" ;;
15315 esac
15317 have_xshm=no
15319 if test "x-$x11_hidd_shm" != "x-no" ; then
15321 for ac_header in sys/ipc.h
15322 do :
15323 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15324 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15325 cat >>confdefs.h <<_ACEOF
15326 #define HAVE_SYS_IPC_H 1
15327 _ACEOF
15331 done
15333 for ac_header in sys/shm.h
15334 do :
15335 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15336 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15337 cat >>confdefs.h <<_ACEOF
15338 #define HAVE_SYS_SHM_H 1
15339 _ACEOF
15343 done
15346 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15348 save_cflags="$CFLAGS"
15349 save_ldflags="$LDFLAGS"
15350 CFLAGS="$CFLAGS $X_CFLAGS"
15351 LDFLAGS="$LDFLAGS $X_LIBS"
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15353 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15354 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-lXext $LIBS"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15362 /* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15365 #ifdef __cplusplus
15366 extern "C"
15367 #endif
15368 char XShmQueryExtension ();
15370 main ()
15372 return XShmQueryExtension ();
15374 return 0;
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 ac_cv_lib_Xext_XShmQueryExtension=yes
15379 else
15380 ac_cv_lib_Xext_XShmQueryExtension=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15387 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15388 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15389 have_xshm=yes
15392 CFLAGS="$save_cflags"
15393 LDFLAGS="$save_ldflags"
15397 if test "x-$have_xshm" = "x-yes" ; then
15398 DO_XSHM_SUPPORT="1"
15399 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15400 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15401 else
15402 DO_XSHM_SUPPORT="0"
15406 # Check whether --enable-x11_vidmode was given.
15407 if test "${enable_x11_vidmode+set}" = set; then :
15408 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15409 else
15410 x11_hidd_vidmode="auto"
15413 case "x-$x11_hidd_vidmode" in
15414 x-yes|x-no|x-auto) ;;
15415 *) x11_hidd_vidmode="auto" ;;
15416 esac
15418 have_vidmode=no
15420 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15422 save_cflags="$CFLAGS"
15423 save_ldflags="$LDFLAGS"
15424 CFLAGS="$CFLAGS $X_CFLAGS"
15425 LDFLAGS="$LDFLAGS $X_LIBS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15427 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15428 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 ac_check_lib_save_LIBS=$LIBS
15432 LIBS="-lXxf86vm $LIBS"
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15436 /* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15439 #ifdef __cplusplus
15440 extern "C"
15441 #endif
15442 char XF86VidModeQueryExtension ();
15444 main ()
15446 return XF86VidModeQueryExtension ();
15448 return 0;
15450 _ACEOF
15451 if ac_fn_c_try_link "$LINENO"; then :
15452 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15453 else
15454 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15461 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15462 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15463 have_vidmode=yes
15466 CFLAGS="$save_cflags"
15467 LDFLAGS="$save_ldflags"
15470 if test "x-$have_vidmode" = "x-yes" ; then
15471 DO_VIDMODE_SUPPORT="1"
15472 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15473 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15474 else
15475 DO_VIDMODE_SUPPORT="0"
15480 # Check whether --enable-sdl_hidd was given.
15481 if test "${enable_sdl_hidd+set}" = set; then :
15482 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15483 else
15484 sdl_hidd="auto"
15487 case "x-$sdl_hidd" in
15488 x-yes|x-no|x-auto) ;;
15489 *) sdl_hidd="auto" ;;
15490 esac
15492 if test "x-$sdl_hidd" != "x-no" ; then
15494 SDL_VERSION=1.2.5
15496 # Check whether --with-sdl-prefix was given.
15497 if test "${with_sdl_prefix+set}" = set; then :
15498 withval=$with_sdl_prefix; sdl_prefix="$withval"
15499 else
15500 sdl_prefix=""
15504 # Check whether --with-sdl-exec-prefix was given.
15505 if test "${with_sdl_exec_prefix+set}" = set; then :
15506 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15507 else
15508 sdl_exec_prefix=""
15511 # Check whether --enable-sdltest was given.
15512 if test "${enable_sdltest+set}" = set; then :
15513 enableval=$enable_sdltest;
15514 else
15515 enable_sdltest=yes
15519 if test x$sdl_exec_prefix != x ; then
15520 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15521 if test x${SDL_CONFIG+set} != xset ; then
15522 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15525 if test x$sdl_prefix != x ; then
15526 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15527 if test x${SDL_CONFIG+set} != xset ; then
15528 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15532 as_save_PATH="$PATH"
15533 if test "x$prefix" != xNONE; then
15534 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15536 # Extract the first word of "sdl-config", so it can be a program name with args.
15537 set dummy sdl-config; ac_word=$2
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539 $as_echo_n "checking for $ac_word... " >&6; }
15540 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15541 $as_echo_n "(cached) " >&6
15542 else
15543 case $SDL_CONFIG in
15544 [\\/]* | ?:[\\/]*)
15545 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15551 IFS=$as_save_IFS
15552 test -z "$as_dir" && as_dir=.
15553 for ac_exec_ext in '' $ac_executable_extensions; do
15554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15555 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15557 break 2
15559 done
15560 done
15561 IFS=$as_save_IFS
15563 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15565 esac
15567 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15568 if test -n "$SDL_CONFIG"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15570 $as_echo "$SDL_CONFIG" >&6; }
15571 else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15577 PATH="$as_save_PATH"
15578 min_sdl_version=$SDL_VERSION
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15580 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15581 no_sdl=""
15582 if test "$SDL_CONFIG" = "no" ; then
15583 no_sdl=yes
15584 else
15585 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15586 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15588 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15590 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15592 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15594 if test "x$enable_sdltest" = "xyes" ; then
15595 ac_save_CFLAGS="$CFLAGS"
15596 ac_save_CXXFLAGS="$CXXFLAGS"
15597 ac_save_LIBS="$LIBS"
15598 CFLAGS="$CFLAGS $SDL_CFLAGS"
15599 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15600 LIBS="$LIBS $SDL_LIBS"
15601 rm -f conf.sdltest
15602 if test "$cross_compiling" = yes; then :
15603 echo $ac_n "cross compiling; assumed OK... $ac_c"
15604 else
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15608 #include <stdio.h>
15609 #include <stdlib.h>
15610 #include <string.h>
15611 #include "SDL.h"
15613 char*
15614 my_strdup (char *str)
15616 char *new_str;
15618 if (str)
15620 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15621 strcpy (new_str, str);
15623 else
15624 new_str = NULL;
15626 return new_str;
15629 int main (int argc, char *argv[])
15631 int major, minor, micro;
15632 char *tmp_version;
15634 /* This hangs on some systems (?)
15635 system ("touch conf.sdltest");
15637 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15639 /* HP/UX 9 (%@#!) writes to sscanf strings */
15640 tmp_version = my_strdup("$min_sdl_version");
15641 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15642 printf("%s, bad version string\n", "$min_sdl_version");
15643 exit(1);
15646 if (($sdl_major_version > major) ||
15647 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15648 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15650 return 0;
15652 else
15654 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15655 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15656 printf("*** best to upgrade to the required version.\n");
15657 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15658 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15659 printf("*** config.cache before re-running configure\n");
15660 return 1;
15665 _ACEOF
15666 if ac_fn_c_try_run "$LINENO"; then :
15668 else
15669 no_sdl=yes
15671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15672 conftest.$ac_objext conftest.beam conftest.$ac_ext
15675 CFLAGS="$ac_save_CFLAGS"
15676 CXXFLAGS="$ac_save_CXXFLAGS"
15677 LIBS="$ac_save_LIBS"
15680 if test "x$no_sdl" = x ; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15683 have_sdl="yes"
15684 else
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686 $as_echo "no" >&6; }
15687 if test "$SDL_CONFIG" = "no" ; then
15688 echo "*** The sdl-config script installed by SDL could not be found"
15689 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15690 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15691 echo "*** full path to sdl-config."
15692 else
15693 if test -f conf.sdltest ; then
15695 else
15696 echo "*** Could not run SDL test program, checking why..."
15697 CFLAGS="$CFLAGS $SDL_CFLAGS"
15698 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15699 LIBS="$LIBS $SDL_LIBS"
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15703 #include <stdio.h>
15704 #include "SDL.h"
15706 int main(int argc, char *argv[])
15707 { return 0; }
15708 #undef main
15709 #define main K_and_R_C_main
15712 main ()
15714 return 0;
15716 return 0;
15718 _ACEOF
15719 if ac_fn_c_try_link "$LINENO"; then :
15720 echo "*** The test program compiled, but did not run. This usually means"
15721 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15722 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15723 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15724 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15725 echo "*** is required on your system"
15726 echo "***"
15727 echo "*** If you have an old version installed, it is best to remove it, although"
15728 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15729 else
15730 echo "*** The test program failed to compile or link. See the file config.log for the"
15731 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15732 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15733 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15735 rm -f core conftest.err conftest.$ac_objext \
15736 conftest$ac_exeext conftest.$ac_ext
15737 CFLAGS="$ac_save_CFLAGS"
15738 CXXFLAGS="$ac_save_CXXFLAGS"
15739 LIBS="$ac_save_LIBS"
15742 SDL_CFLAGS=""
15743 SDL_LIBS=""
15744 have_sdl="no"
15748 rm -f conf.sdltest
15751 if test "x-$have_sdl" != "x-yes" ; then
15753 if test "x-$sdl_hidd" != "x-auto" ; then
15754 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15757 else
15758 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15759 aros_host_sdl_cflags=$SDL_CFLAGS
15760 aros_host_sdl_libs=$SDL_LIBS
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15768 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15769 # Check whether --enable-dbus was given.
15770 if test "${enable_dbus+set}" = set; then :
15771 enableval=$enable_dbus; dbus="yes"
15772 else
15773 dbus="no"
15776 if test "$dbus" = "yes" ; then
15777 ENABLE_DBUS=1
15778 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15779 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15780 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15781 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15782 else
15783 ENABLE_DBUS=0
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15786 $as_echo "$dbus" >&6; }
15788 if test "$use_kernel_cc_wrapper" = "yes" ; then
15789 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15792 aros_kernel_cppflags=$aros_config_cppflags
15793 aros_optimization_cflags="$optimization_level"
15794 if test "$optimization" = "default"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15796 $as_echo_n "checking default optimization level to use... " >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15798 $as_echo "$optimization_level" >&6; }
15801 if ! test "$gcc_default_cpu" = "" ; then
15802 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"
15805 if test "$use_libatomic" = "yes" ; then
15806 aros_cxx_libs="$aros_cxx_libs -latomic"
15809 aros_target_options+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15812 # Generic
15826 # Compatability with other Amiga-like operating systems
15829 # Host Related ###########################
15861 # Target Related #########################
15955 # Native version related
15960 # MMU related
15963 # Bootloader related
15966 # Unix/Hosted version related
15969 # ARM default GCC target related
15976 # Palm native version related
15979 # Apple iOS related
15984 # Android related
15990 # Debug related
15996 # Collect-aros stuff: "-ius" to ignore undefined symbols
15999 # C compiler related
16004 #ObjC compiler related
16007 #Java related
16010 # DBUS related
16017 #X11 related
16025 #SDL related
16029 # USB3.0 code
16032 case "$aros_flavour" in
16033 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
16034 aros_flavour="emulation" ;;
16035 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16036 aros_flavour="emulation" ;;
16037 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
16038 aros_flavour="standalone";;
16039 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16040 aros_flavour="standalone";;
16041 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
16042 aros_flavour="native" ;;
16043 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16044 aros_flavour="native" ;;
16045 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
16046 aros_flavour="linklib" ;;
16047 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16048 aros_flavour="palmnative" ;;
16049 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16050 aros_flavour="mac68knative" ;;
16051 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16052 aros_flavour="ppcnative" ;;
16053 esac
16055 if test ! -d ${aros_inc_dir} ; then
16056 ${MKDIR} ${aros_inc_dir}
16058 if test ! -d ${aros_geninc_dir} ; then
16059 ${MKDIR} ${aros_geninc_dir}
16061 if test ! -d ${aros_hostcfg_dir} ; then
16062 ${MKDIR} ${aros_hostcfg_dir}
16064 if test ! -d ${aros_targetcfg_dir} ; then
16065 ${MKDIR} ${aros_targetcfg_dir}
16067 if test ! -d ${aros_tools_dir} ; then
16068 ${MKDIR} ${aros_tools_dir}
16070 if test ! -d ${aros_scripts_dir} ; then
16071 ${MKDIR} ${aros_scripts_dir}
16074 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16077 # Generic build tools (metamake, etc)
16078 ac_config_commands="$ac_config_commands genmf-executable-support"
16080 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"
16083 # Binutils
16084 ac_config_commands="$ac_config_commands binutils-support"
16086 if test "${use_ld_wrapper}" = "yes"; then
16087 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"
16090 # Bare Elf support script and spec
16091 if test "${use_kernel_cc_wrapper}" = "yes"; then
16092 ac_config_commands="$ac_config_commands elf-compiler-support"
16094 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"
16098 # Host compiler support scripts and spec
16099 if test "${aros_target_toolchain}" = "no"; then
16100 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
16102 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"
16106 # Android support
16107 if test "$aros_target_variant" == "android"; then
16108 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16112 # cmake helper
16113 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16116 cat >confcache <<\_ACEOF
16117 # This file is a shell script that caches the results of configure
16118 # tests run on this system so they can be shared between configure
16119 # scripts and configure runs, see configure's option --config-cache.
16120 # It is not useful on other systems. If it contains results you don't
16121 # want to keep, you may remove or edit it.
16123 # config.status only pays attention to the cache file if you give it
16124 # the --recheck option to rerun configure.
16126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16128 # following values.
16130 _ACEOF
16132 # The following way of writing the cache mishandles newlines in values,
16133 # but we know of no workaround that is simple, portable, and efficient.
16134 # So, we kill variables containing newlines.
16135 # Ultrix sh set writes to stderr and can't be redirected directly,
16136 # and sets the high bit in the cache file unless we assign to the vars.
16138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16139 eval ac_val=\$$ac_var
16140 case $ac_val in #(
16141 *${as_nl}*)
16142 case $ac_var in #(
16143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16145 esac
16146 case $ac_var in #(
16147 _ | IFS | as_nl) ;; #(
16148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16149 *) { eval $ac_var=; unset $ac_var;} ;;
16150 esac ;;
16151 esac
16152 done
16154 (set) 2>&1 |
16155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16156 *${as_nl}ac_space=\ *)
16157 # `set' does not quote correctly, so add quotes: double-quote
16158 # substitution turns \\\\ into \\, and sed turns \\ into \.
16159 sed -n \
16160 "s/'/'\\\\''/g;
16161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16162 ;; #(
16164 # `set' quotes correctly as required by POSIX, so do not add quotes.
16165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16167 esac |
16168 sort
16170 sed '
16171 /^ac_cv_env_/b end
16172 t clear
16173 :clear
16174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16175 t end
16176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16177 :end' >>confcache
16178 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16179 if test -w "$cache_file"; then
16180 if test "x$cache_file" != "x/dev/null"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16182 $as_echo "$as_me: updating cache $cache_file" >&6;}
16183 if test ! -f "$cache_file" || test -h "$cache_file"; then
16184 cat confcache >"$cache_file"
16185 else
16186 case $cache_file in #(
16187 */* | ?:*)
16188 mv -f confcache "$cache_file"$$ &&
16189 mv -f "$cache_file"$$ "$cache_file" ;; #(
16191 mv -f confcache "$cache_file" ;;
16192 esac
16195 else
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16197 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16200 rm -f confcache
16202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16203 # Let make expand exec_prefix.
16204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16206 DEFS=-DHAVE_CONFIG_H
16208 ac_libobjs=
16209 ac_ltlibobjs=
16211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16212 # 1. Remove the extension, and $U if already installed.
16213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16216 # will be set to the directory where LIBOBJS objects are built.
16217 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16218 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16219 done
16220 LIBOBJS=$ac_libobjs
16222 LTLIBOBJS=$ac_ltlibobjs
16226 : "${CONFIG_STATUS=./config.status}"
16227 ac_write_fail=0
16228 ac_clean_files_save=$ac_clean_files
16229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16231 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16232 as_write_fail=0
16233 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16234 #! $SHELL
16235 # Generated by $as_me.
16236 # Run this file to recreate the current configuration.
16237 # Compiler output produced by configure, useful for debugging
16238 # configure, is in config.log if it exists.
16240 debug=false
16241 ac_cs_recheck=false
16242 ac_cs_silent=false
16244 SHELL=\${CONFIG_SHELL-$SHELL}
16245 export SHELL
16246 _ASEOF
16247 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16248 ## -------------------- ##
16249 ## M4sh Initialization. ##
16250 ## -------------------- ##
16252 # Be more Bourne compatible
16253 DUALCASE=1; export DUALCASE # for MKS sh
16254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16255 emulate sh
16256 NULLCMD=:
16257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16258 # is contrary to our usage. Disable this feature.
16259 alias -g '${1+"$@"}'='"$@"'
16260 setopt NO_GLOB_SUBST
16261 else
16262 case `(set -o) 2>/dev/null` in #(
16263 *posix*) :
16264 set -o posix ;; #(
16265 *) :
16267 esac
16271 as_nl='
16273 export as_nl
16274 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16275 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16278 # Prefer a ksh shell builtin over an external printf program on Solaris,
16279 # but without wasting forks for bash or zsh.
16280 if test -z "$BASH_VERSION$ZSH_VERSION" \
16281 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16282 as_echo='print -r --'
16283 as_echo_n='print -rn --'
16284 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16285 as_echo='printf %s\n'
16286 as_echo_n='printf %s'
16287 else
16288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16289 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16290 as_echo_n='/usr/ucb/echo -n'
16291 else
16292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16293 as_echo_n_body='eval
16294 arg=$1;
16295 case $arg in #(
16296 *"$as_nl"*)
16297 expr "X$arg" : "X\\(.*\\)$as_nl";
16298 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16299 esac;
16300 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16302 export as_echo_n_body
16303 as_echo_n='sh -c $as_echo_n_body as_echo'
16305 export as_echo_body
16306 as_echo='sh -c $as_echo_body as_echo'
16309 # The user is always right.
16310 if test "${PATH_SEPARATOR+set}" != set; then
16311 PATH_SEPARATOR=:
16312 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16313 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16314 PATH_SEPARATOR=';'
16319 # IFS
16320 # We need space, tab and new line, in precisely that order. Quoting is
16321 # there to prevent editors from complaining about space-tab.
16322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16323 # splitting by setting IFS to empty value.)
16324 IFS=" "" $as_nl"
16326 # Find who we are. Look in the path if we contain no directory separator.
16327 as_myself=
16328 case $0 in #((
16329 *[\\/]* ) as_myself=$0 ;;
16330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16333 IFS=$as_save_IFS
16334 test -z "$as_dir" && as_dir=.
16335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16336 done
16337 IFS=$as_save_IFS
16340 esac
16341 # We did not find ourselves, most probably we were run as `sh COMMAND'
16342 # in which case we are not to be found in the path.
16343 if test "x$as_myself" = x; then
16344 as_myself=$0
16346 if test ! -f "$as_myself"; then
16347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16348 exit 1
16351 # Unset variables that we do not need and which cause bugs (e.g. in
16352 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16353 # suppresses any "Segmentation fault" message there. '((' could
16354 # trigger a bug in pdksh 5.2.14.
16355 for as_var in BASH_ENV ENV MAIL MAILPATH
16356 do eval test x\${$as_var+set} = xset \
16357 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16358 done
16359 PS1='$ '
16360 PS2='> '
16361 PS4='+ '
16363 # NLS nuisances.
16364 LC_ALL=C
16365 export LC_ALL
16366 LANGUAGE=C
16367 export LANGUAGE
16369 # CDPATH.
16370 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16374 # ----------------------------------------
16375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16377 # script with STATUS, using 1 if that was 0.
16378 as_fn_error ()
16380 as_status=$1; test $as_status -eq 0 && as_status=1
16381 if test "$4"; then
16382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16385 $as_echo "$as_me: error: $2" >&2
16386 as_fn_exit $as_status
16387 } # as_fn_error
16390 # as_fn_set_status STATUS
16391 # -----------------------
16392 # Set $? to STATUS, without forking.
16393 as_fn_set_status ()
16395 return $1
16396 } # as_fn_set_status
16398 # as_fn_exit STATUS
16399 # -----------------
16400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16401 as_fn_exit ()
16403 set +e
16404 as_fn_set_status $1
16405 exit $1
16406 } # as_fn_exit
16408 # as_fn_unset VAR
16409 # ---------------
16410 # Portably unset VAR.
16411 as_fn_unset ()
16413 { eval $1=; unset $1;}
16415 as_unset=as_fn_unset
16416 # as_fn_append VAR VALUE
16417 # ----------------------
16418 # Append the text in VALUE to the end of the definition contained in VAR. Take
16419 # advantage of any shell optimizations that allow amortized linear growth over
16420 # repeated appends, instead of the typical quadratic growth present in naive
16421 # implementations.
16422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16423 eval 'as_fn_append ()
16425 eval $1+=\$2
16427 else
16428 as_fn_append ()
16430 eval $1=\$$1\$2
16432 fi # as_fn_append
16434 # as_fn_arith ARG...
16435 # ------------------
16436 # Perform arithmetic evaluation on the ARGs, and store the result in the
16437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16438 # must be portable across $(()) and expr.
16439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16440 eval 'as_fn_arith ()
16442 as_val=$(( $* ))
16444 else
16445 as_fn_arith ()
16447 as_val=`expr "$@" || test $? -eq 1`
16449 fi # as_fn_arith
16452 if expr a : '\(a\)' >/dev/null 2>&1 &&
16453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16454 as_expr=expr
16455 else
16456 as_expr=false
16459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16460 as_basename=basename
16461 else
16462 as_basename=false
16465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16466 as_dirname=dirname
16467 else
16468 as_dirname=false
16471 as_me=`$as_basename -- "$0" ||
16472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16473 X"$0" : 'X\(//\)$' \| \
16474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16475 $as_echo X/"$0" |
16476 sed '/^.*\/\([^/][^/]*\)\/*$/{
16477 s//\1/
16480 /^X\/\(\/\/\)$/{
16481 s//\1/
16484 /^X\/\(\/\).*/{
16485 s//\1/
16488 s/.*/./; q'`
16490 # Avoid depending upon Character Ranges.
16491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16494 as_cr_digits='0123456789'
16495 as_cr_alnum=$as_cr_Letters$as_cr_digits
16497 ECHO_C= ECHO_N= ECHO_T=
16498 case `echo -n x` in #(((((
16499 -n*)
16500 case `echo 'xy\c'` in
16501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16502 xy) ECHO_C='\c';;
16503 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16504 ECHO_T=' ';;
16505 esac;;
16507 ECHO_N='-n';;
16508 esac
16510 rm -f conf$$ conf$$.exe conf$$.file
16511 if test -d conf$$.dir; then
16512 rm -f conf$$.dir/conf$$.file
16513 else
16514 rm -f conf$$.dir
16515 mkdir conf$$.dir 2>/dev/null
16517 if (echo >conf$$.file) 2>/dev/null; then
16518 if ln -s conf$$.file conf$$ 2>/dev/null; then
16519 as_ln_s='ln -s'
16520 # ... but there are two gotchas:
16521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16523 # In both cases, we have to default to `cp -pR'.
16524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16525 as_ln_s='cp -pR'
16526 elif ln conf$$.file conf$$ 2>/dev/null; then
16527 as_ln_s=ln
16528 else
16529 as_ln_s='cp -pR'
16531 else
16532 as_ln_s='cp -pR'
16534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16535 rmdir conf$$.dir 2>/dev/null
16538 # as_fn_mkdir_p
16539 # -------------
16540 # Create "$as_dir" as a directory, including parents if necessary.
16541 as_fn_mkdir_p ()
16544 case $as_dir in #(
16545 -*) as_dir=./$as_dir;;
16546 esac
16547 test -d "$as_dir" || eval $as_mkdir_p || {
16548 as_dirs=
16549 while :; do
16550 case $as_dir in #(
16551 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16552 *) as_qdir=$as_dir;;
16553 esac
16554 as_dirs="'$as_qdir' $as_dirs"
16555 as_dir=`$as_dirname -- "$as_dir" ||
16556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16557 X"$as_dir" : 'X\(//\)[^/]' \| \
16558 X"$as_dir" : 'X\(//\)$' \| \
16559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16560 $as_echo X"$as_dir" |
16561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16562 s//\1/
16565 /^X\(\/\/\)[^/].*/{
16566 s//\1/
16569 /^X\(\/\/\)$/{
16570 s//\1/
16573 /^X\(\/\).*/{
16574 s//\1/
16577 s/.*/./; q'`
16578 test -d "$as_dir" && break
16579 done
16580 test -z "$as_dirs" || eval "mkdir $as_dirs"
16581 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16584 } # as_fn_mkdir_p
16585 if mkdir -p . 2>/dev/null; then
16586 as_mkdir_p='mkdir -p "$as_dir"'
16587 else
16588 test -d ./-p && rmdir ./-p
16589 as_mkdir_p=false
16593 # as_fn_executable_p FILE
16594 # -----------------------
16595 # Test if FILE is an executable regular file.
16596 as_fn_executable_p ()
16598 test -f "$1" && test -x "$1"
16599 } # as_fn_executable_p
16600 as_test_x='test -x'
16601 as_executable_p=as_fn_executable_p
16603 # Sed expression to map a string onto a valid CPP name.
16604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16606 # Sed expression to map a string onto a valid variable name.
16607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16610 exec 6>&1
16611 ## ----------------------------------- ##
16612 ## Main body of $CONFIG_STATUS script. ##
16613 ## ----------------------------------- ##
16614 _ASEOF
16615 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16618 # Save the log message, to keep $0 and so on meaningful, and to
16619 # report actual input values of CONFIG_FILES etc. instead of their
16620 # values after options handling.
16621 ac_log="
16622 This file was extended by $as_me, which was
16623 generated by GNU Autoconf 2.69. Invocation command line was
16625 CONFIG_FILES = $CONFIG_FILES
16626 CONFIG_HEADERS = $CONFIG_HEADERS
16627 CONFIG_LINKS = $CONFIG_LINKS
16628 CONFIG_COMMANDS = $CONFIG_COMMANDS
16629 $ $0 $@
16631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16634 _ACEOF
16636 case $ac_config_files in *"
16637 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16638 esac
16640 case $ac_config_headers in *"
16641 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16642 esac
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 # Files that config.status was made for.
16647 config_files="$ac_config_files"
16648 config_headers="$ac_config_headers"
16649 config_commands="$ac_config_commands"
16651 _ACEOF
16653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654 ac_cs_usage="\
16655 \`$as_me' instantiates files and other configuration actions
16656 from templates according to the current configuration. Unless the files
16657 and actions are specified as TAGs, all are instantiated by default.
16659 Usage: $0 [OPTION]... [TAG]...
16661 -h, --help print this help, then exit
16662 -V, --version print version number and configuration settings, then exit
16663 --config print configuration, then exit
16664 -q, --quiet, --silent
16665 do not print progress messages
16666 -d, --debug don't remove temporary files
16667 --recheck update $as_me by reconfiguring in the same conditions
16668 --file=FILE[:TEMPLATE]
16669 instantiate the configuration file FILE
16670 --header=FILE[:TEMPLATE]
16671 instantiate the configuration header FILE
16673 Configuration files:
16674 $config_files
16676 Configuration headers:
16677 $config_headers
16679 Configuration commands:
16680 $config_commands
16682 Report bugs to the package provider."
16684 _ACEOF
16685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16686 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16687 ac_cs_version="\\
16688 config.status
16689 configured by $0, generated by GNU Autoconf 2.69,
16690 with options \\"\$ac_cs_config\\"
16692 Copyright (C) 2012 Free Software Foundation, Inc.
16693 This config.status script is free software; the Free Software Foundation
16694 gives unlimited permission to copy, distribute and modify it."
16696 ac_pwd='$ac_pwd'
16697 srcdir='$srcdir'
16698 test -n "\$AWK" || AWK=awk
16699 _ACEOF
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 # The default lists apply if the user does not specify any file.
16703 ac_need_defaults=:
16704 while test $# != 0
16706 case $1 in
16707 --*=?*)
16708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16710 ac_shift=:
16712 --*=)
16713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16714 ac_optarg=
16715 ac_shift=:
16718 ac_option=$1
16719 ac_optarg=$2
16720 ac_shift=shift
16722 esac
16724 case $ac_option in
16725 # Handling of the options.
16726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16727 ac_cs_recheck=: ;;
16728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16729 $as_echo "$ac_cs_version"; exit ;;
16730 --config | --confi | --conf | --con | --co | --c )
16731 $as_echo "$ac_cs_config"; exit ;;
16732 --debug | --debu | --deb | --de | --d | -d )
16733 debug=: ;;
16734 --file | --fil | --fi | --f )
16735 $ac_shift
16736 case $ac_optarg in
16737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16738 '') as_fn_error $? "missing file argument" ;;
16739 esac
16740 as_fn_append CONFIG_FILES " '$ac_optarg'"
16741 ac_need_defaults=false;;
16742 --header | --heade | --head | --hea )
16743 $ac_shift
16744 case $ac_optarg in
16745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16746 esac
16747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16748 ac_need_defaults=false;;
16749 --he | --h)
16750 # Conflict between --help and --header
16751 as_fn_error $? "ambiguous option: \`$1'
16752 Try \`$0 --help' for more information.";;
16753 --help | --hel | -h )
16754 $as_echo "$ac_cs_usage"; exit ;;
16755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16757 ac_cs_silent=: ;;
16759 # This is an error.
16760 -*) as_fn_error $? "unrecognized option: \`$1'
16761 Try \`$0 --help' for more information." ;;
16763 *) as_fn_append ac_config_targets " $1"
16764 ac_need_defaults=false ;;
16766 esac
16767 shift
16768 done
16770 ac_configure_extra_args=
16772 if $ac_cs_silent; then
16773 exec 6>/dev/null
16774 ac_configure_extra_args="$ac_configure_extra_args --silent"
16777 _ACEOF
16778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 if \$ac_cs_recheck; then
16780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16781 shift
16782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16783 CONFIG_SHELL='$SHELL'
16784 export CONFIG_SHELL
16785 exec "\$@"
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16790 exec 5>>config.log
16792 echo
16793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16794 ## Running $as_me. ##
16795 _ASBOX
16796 $as_echo "$ac_log"
16797 } >&5
16799 _ACEOF
16800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16802 # INIT-COMMANDS
16805 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16806 aros_tools_dir=${aros_tools_dir}
16810 aros_host_exe_suffix=${aros_host_exe_suffix}
16811 aros_tools_dir=${aros_tools_dir}
16812 aros_target_cpu=${aros_target_cpu}
16813 aros_target_arch=${aros_target_arch}
16814 aros_target_suffix=${aros_target_suffix}
16815 orig_target_nm=${orig_target_nm}
16816 orig_target_as=${orig_target_as}
16817 orig_target_ar=${orig_target_ar}
16818 orig_target_ranlib=${orig_target_ranlib}
16819 orig_target_objdump=${orig_target_objdump}
16820 orig_target_objcopy=${orig_target_objcopy}
16821 orig_target_strip=${orig_target_strip}
16822 aros_kernel_ld=${aros_kernel_ld}
16826 aros_host_exe_suffix=${aros_host_exe_suffix}
16827 aros_tools_dir=${aros_tools_dir}
16828 aros_target_cpu=${aros_target_cpu}
16829 aros_target_arch=${aros_target_arch}
16830 aros_target_suffix=${aros_target_suffix}
16831 aros_kernel_ld=${aros_kernel_ld}
16835 aros_host_exe_suffix=${aros_host_exe_suffix}
16836 aros_tools_dir=${aros_tools_dir}
16837 aros_target_cpu=${aros_target_cpu}
16838 aros_target_arch=${aros_target_arch}
16839 aros_target_suffix=${aros_target_suffix}
16843 _ACEOF
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 # Handling of arguments.
16848 for ac_config_target in $ac_config_targets
16850 case $ac_config_target in
16851 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16852 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16854 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16855 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16856 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16857 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16858 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16859 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16860 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16861 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16862 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16863 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16864 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16865 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16866 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16867 "${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" ;;
16868 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16869 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16870 "${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" ;;
16871 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16872 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16873 "${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" ;;
16874 "${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" ;;
16875 "${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" ;;
16876 "${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" ;;
16877 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16879 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16880 esac
16881 done
16884 # If the user did not use the arguments to specify the items to instantiate,
16885 # then the envvar interface is used. Set only those that are not.
16886 # We use the long form for the default assignment because of an extremely
16887 # bizarre bug on SunOS 4.1.3.
16888 if $ac_need_defaults; then
16889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16894 # Have a temporary directory for convenience. Make it in the build tree
16895 # simply because there is no reason against having it here, and in addition,
16896 # creating and moving files from /tmp can sometimes cause problems.
16897 # Hook for its removal unless debugging.
16898 # Note that there is a small window in which the directory will not be cleaned:
16899 # after its creation but before its name has been assigned to `$tmp'.
16900 $debug ||
16902 tmp= ac_tmp=
16903 trap 'exit_status=$?
16904 : "${ac_tmp:=$tmp}"
16905 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16907 trap 'as_fn_exit 1' 1 2 13 15
16909 # Create a (secure) tmp directory for tmp files.
16912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16913 test -d "$tmp"
16914 } ||
16916 tmp=./conf$$-$RANDOM
16917 (umask 077 && mkdir "$tmp")
16918 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16919 ac_tmp=$tmp
16921 # Set up the scripts for CONFIG_FILES section.
16922 # No need to generate them if there are no CONFIG_FILES.
16923 # This happens for instance with `./config.status config.h'.
16924 if test -n "$CONFIG_FILES"; then
16927 ac_cr=`echo X | tr X '\015'`
16928 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16929 # But we know of no other shell where ac_cr would be empty at this
16930 # point, so we can use a bashism as a fallback.
16931 if test "x$ac_cr" = x; then
16932 eval ac_cr=\$\'\\r\'
16934 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16936 ac_cs_awk_cr='\\r'
16937 else
16938 ac_cs_awk_cr=$ac_cr
16941 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16942 _ACEOF
16946 echo "cat >conf$$subs.awk <<_ACEOF" &&
16947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16948 echo "_ACEOF"
16949 } >conf$$subs.sh ||
16950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16952 ac_delim='%!_!# '
16953 for ac_last_try in false false false false false :; do
16954 . ./conf$$subs.sh ||
16955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16957 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16958 if test $ac_delim_n = $ac_delim_num; then
16959 break
16960 elif $ac_last_try; then
16961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16962 else
16963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16965 done
16966 rm -f conf$$subs.sh
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16970 _ACEOF
16971 sed -n '
16973 s/^/S["/; s/!.*/"]=/
16976 s/^[^!]*!//
16977 :repl
16978 t repl
16979 s/'"$ac_delim"'$//
16980 t delim
16983 s/\(.\{148\}\)..*/\1/
16984 t more1
16985 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16988 b repl
16989 :more1
16990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16993 s/.\{148\}//
16994 t nl
16995 :delim
16997 s/\(.\{148\}\)..*/\1/
16998 t more2
16999 s/["\\]/\\&/g; s/^/"/; s/$/"/
17002 :more2
17003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17006 s/.\{148\}//
17007 t delim
17008 ' <conf$$subs.awk | sed '
17009 /^[^""]/{
17011 s/\n//
17013 ' >>$CONFIG_STATUS || ac_write_fail=1
17014 rm -f conf$$subs.awk
17015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 _ACAWK
17017 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17018 for (key in S) S_is_set[key] = 1
17019 FS = "\a"
17023 line = $ 0
17024 nfields = split(line, field, "@")
17025 substed = 0
17026 len = length(field[1])
17027 for (i = 2; i < nfields; i++) {
17028 key = field[i]
17029 keylen = length(key)
17030 if (S_is_set[key]) {
17031 value = S[key]
17032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17033 len += length(value) + length(field[++i])
17034 substed = 1
17035 } else
17036 len += 1 + keylen
17039 print line
17042 _ACAWK
17043 _ACEOF
17044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17045 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17047 else
17049 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17050 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17051 _ACEOF
17053 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17054 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17055 # trailing colons and then remove the whole line if VPATH becomes empty
17056 # (actually we leave an empty line to preserve line numbers).
17057 if test "x$srcdir" = x.; then
17058 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17060 s///
17061 s/^/:/
17062 s/[ ]*$/:/
17063 s/:\$(srcdir):/:/g
17064 s/:\${srcdir}:/:/g
17065 s/:@srcdir@:/:/g
17066 s/^:*//
17067 s/:*$//
17069 s/\(=[ ]*\).*/\1/
17071 s/\n//
17072 s/^[^=]*=[ ]*$//
17076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17077 fi # test -n "$CONFIG_FILES"
17079 # Set up the scripts for CONFIG_HEADERS section.
17080 # No need to generate them if there are no CONFIG_HEADERS.
17081 # This happens for instance with `./config.status Makefile'.
17082 if test -n "$CONFIG_HEADERS"; then
17083 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17084 BEGIN {
17085 _ACEOF
17087 # Transform confdefs.h into an awk script `defines.awk', embedded as
17088 # here-document in config.status, that substitutes the proper values into
17089 # config.h.in to produce config.h.
17091 # Create a delimiter string that does not exist in confdefs.h, to ease
17092 # handling of long lines.
17093 ac_delim='%!_!# '
17094 for ac_last_try in false false :; do
17095 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17096 if test -z "$ac_tt"; then
17097 break
17098 elif $ac_last_try; then
17099 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17100 else
17101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17103 done
17105 # For the awk script, D is an array of macro values keyed by name,
17106 # likewise P contains macro parameters if any. Preserve backslash
17107 # newline sequences.
17109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17110 sed -n '
17111 s/.\{148\}/&'"$ac_delim"'/g
17112 t rset
17113 :rset
17114 s/^[ ]*#[ ]*define[ ][ ]*/ /
17115 t def
17117 :def
17118 s/\\$//
17119 t bsnl
17120 s/["\\]/\\&/g
17121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17122 D["\1"]=" \3"/p
17123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17125 :bsnl
17126 s/["\\]/\\&/g
17127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17128 D["\1"]=" \3\\\\\\n"\\/p
17129 t cont
17130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17131 t cont
17133 :cont
17135 s/.\{148\}/&'"$ac_delim"'/g
17136 t clear
17137 :clear
17138 s/\\$//
17139 t bsnlc
17140 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17142 :bsnlc
17143 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17144 b cont
17145 ' <confdefs.h | sed '
17146 s/'"$ac_delim"'/"\\\
17147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 for (key in D) D_is_set[key] = 1
17151 FS = "\a"
17153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17154 line = \$ 0
17155 split(line, arg, " ")
17156 if (arg[1] == "#") {
17157 defundef = arg[2]
17158 mac1 = arg[3]
17159 } else {
17160 defundef = substr(arg[1], 2)
17161 mac1 = arg[2]
17163 split(mac1, mac2, "(") #)
17164 macro = mac2[1]
17165 prefix = substr(line, 1, index(line, defundef) - 1)
17166 if (D_is_set[macro]) {
17167 # Preserve the white space surrounding the "#".
17168 print prefix "define", macro P[macro] D[macro]
17169 next
17170 } else {
17171 # Replace #undef with comments. This is necessary, for example,
17172 # in the case of _POSIX_SOURCE, which is predefined and required
17173 # on some systems where configure will not decide to define it.
17174 if (defundef == "undef") {
17175 print "/*", prefix defundef, macro, "*/"
17176 next
17180 { print }
17181 _ACAWK
17182 _ACEOF
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17185 fi # test -n "$CONFIG_HEADERS"
17188 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17189 shift
17190 for ac_tag
17192 case $ac_tag in
17193 :[FHLC]) ac_mode=$ac_tag; continue;;
17194 esac
17195 case $ac_mode$ac_tag in
17196 :[FHL]*:*);;
17197 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17198 :[FH]-) ac_tag=-:-;;
17199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17200 esac
17201 ac_save_IFS=$IFS
17202 IFS=:
17203 set x $ac_tag
17204 IFS=$ac_save_IFS
17205 shift
17206 ac_file=$1
17207 shift
17209 case $ac_mode in
17210 :L) ac_source=$1;;
17211 :[FH])
17212 ac_file_inputs=
17213 for ac_f
17215 case $ac_f in
17216 -) ac_f="$ac_tmp/stdin";;
17217 *) # Look for the file first in the build tree, then in the source tree
17218 # (if the path is not absolute). The absolute path cannot be DOS-style,
17219 # because $ac_f cannot contain `:'.
17220 test -f "$ac_f" ||
17221 case $ac_f in
17222 [\\/$]*) false;;
17223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17224 esac ||
17225 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17226 esac
17227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17228 as_fn_append ac_file_inputs " '$ac_f'"
17229 done
17231 # Let's still pretend it is `configure' which instantiates (i.e., don't
17232 # use $as_me), people would be surprised to read:
17233 # /* config.h. Generated by config.status. */
17234 configure_input='Generated from '`
17235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17236 `' by configure.'
17237 if test x"$ac_file" != x-; then
17238 configure_input="$ac_file. $configure_input"
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17240 $as_echo "$as_me: creating $ac_file" >&6;}
17242 # Neutralize special characters interpreted by sed in replacement strings.
17243 case $configure_input in #(
17244 *\&* | *\|* | *\\* )
17245 ac_sed_conf_input=`$as_echo "$configure_input" |
17246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17247 *) ac_sed_conf_input=$configure_input;;
17248 esac
17250 case $ac_tag in
17251 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17253 esac
17255 esac
17257 ac_dir=`$as_dirname -- "$ac_file" ||
17258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259 X"$ac_file" : 'X\(//\)[^/]' \| \
17260 X"$ac_file" : 'X\(//\)$' \| \
17261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17262 $as_echo X"$ac_file" |
17263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17264 s//\1/
17267 /^X\(\/\/\)[^/].*/{
17268 s//\1/
17271 /^X\(\/\/\)$/{
17272 s//\1/
17275 /^X\(\/\).*/{
17276 s//\1/
17279 s/.*/./; q'`
17280 as_dir="$ac_dir"; as_fn_mkdir_p
17281 ac_builddir=.
17283 case "$ac_dir" in
17284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17287 # A ".." for each directory in $ac_dir_suffix.
17288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17289 case $ac_top_builddir_sub in
17290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17292 esac ;;
17293 esac
17294 ac_abs_top_builddir=$ac_pwd
17295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17296 # for backward compatibility:
17297 ac_top_builddir=$ac_top_build_prefix
17299 case $srcdir in
17300 .) # We are building in place.
17301 ac_srcdir=.
17302 ac_top_srcdir=$ac_top_builddir_sub
17303 ac_abs_top_srcdir=$ac_pwd ;;
17304 [\\/]* | ?:[\\/]* ) # Absolute name.
17305 ac_srcdir=$srcdir$ac_dir_suffix;
17306 ac_top_srcdir=$srcdir
17307 ac_abs_top_srcdir=$srcdir ;;
17308 *) # Relative name.
17309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17310 ac_top_srcdir=$ac_top_build_prefix$srcdir
17311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17312 esac
17313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17316 case $ac_mode in
17319 # CONFIG_FILE
17322 _ACEOF
17324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325 # If the template does not know about datarootdir, expand it.
17326 # FIXME: This hack should be removed a few years after 2.60.
17327 ac_datarootdir_hack=; ac_datarootdir_seen=
17328 ac_sed_dataroot='
17329 /datarootdir/ {
17333 /@datadir@/p
17334 /@docdir@/p
17335 /@infodir@/p
17336 /@localedir@/p
17337 /@mandir@/p'
17338 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17339 *datarootdir*) ac_datarootdir_seen=yes;;
17340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17342 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17343 _ACEOF
17344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17345 ac_datarootdir_hack='
17346 s&@datadir@&$datadir&g
17347 s&@docdir@&$docdir&g
17348 s&@infodir@&$infodir&g
17349 s&@localedir@&$localedir&g
17350 s&@mandir@&$mandir&g
17351 s&\\\${datarootdir}&$datarootdir&g' ;;
17352 esac
17353 _ACEOF
17355 # Neutralize VPATH when `$srcdir' = `.'.
17356 # Shell code in configure.ac might set extrasub.
17357 # FIXME: do we really want to maintain this feature?
17358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17359 ac_sed_extra="$ac_vpsub
17360 $extrasub
17361 _ACEOF
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17365 s|@configure_input@|$ac_sed_conf_input|;t t
17366 s&@top_builddir@&$ac_top_builddir_sub&;t t
17367 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17368 s&@srcdir@&$ac_srcdir&;t t
17369 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17370 s&@top_srcdir@&$ac_top_srcdir&;t t
17371 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17372 s&@builddir@&$ac_builddir&;t t
17373 s&@abs_builddir@&$ac_abs_builddir&;t t
17374 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17375 $ac_datarootdir_hack
17377 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17378 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17380 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17381 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17382 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17383 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17385 which seems to be undefined. Please make sure it is defined" >&5
17386 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17387 which seems to be undefined. Please make sure it is defined" >&2;}
17389 rm -f "$ac_tmp/stdin"
17390 case $ac_file in
17391 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17392 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17393 esac \
17394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17398 # CONFIG_HEADER
17400 if test x"$ac_file" != x-; then
17402 $as_echo "/* $configure_input */" \
17403 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17404 } >"$ac_tmp/config.h" \
17405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17406 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17408 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17409 else
17410 rm -f "$ac_file"
17411 mv "$ac_tmp/config.h" "$ac_file" \
17412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17414 else
17415 $as_echo "/* $configure_input */" \
17416 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17417 || as_fn_error $? "could not create -" "$LINENO" 5
17421 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17422 $as_echo "$as_me: executing $ac_file commands" >&6;}
17424 esac
17427 case $ac_file$ac_mode in
17428 "genmf-executable-support":C)
17429 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17430 chmod a+x ${aros_tools_dir}/genmf.py
17432 "binutils-support":C)
17433 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17434 mkdir -p $prefix
17435 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17437 chmod a+x ${prefix2}-ld
17439 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17440 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17441 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17442 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17443 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17444 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17445 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17447 "elf-compiler-support":C)
17448 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17449 mkdir -p $prefix
17450 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17452 chmod a+x ${prefix2}-gcc
17454 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17456 "host-compiler-wrapper-support":C)
17457 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17458 mkdir -p $prefix
17459 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17461 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17464 esac
17465 done # for ac_tag
17468 as_fn_exit 0
17469 _ACEOF
17470 ac_clean_files=$ac_clean_files_save
17472 test $ac_write_fail = 0 ||
17473 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17476 # configure is writing to config.log, and then calls config.status.
17477 # config.status does its own redirection, appending to config.log.
17478 # Unfortunately, on DOS this fails, as config.log is still kept open
17479 # by configure, so config.status won't be able to write to it; its
17480 # output is simply discarded. So we exec the FD to /dev/null,
17481 # effectively closing config.log, so it can be properly (re)opened and
17482 # appended to by config.status. When coming back to configure, we
17483 # need to make the FD available again.
17484 if test "$no_create" != yes; then
17485 ac_cs_success=:
17486 ac_config_status_args=
17487 test "$silent" = yes &&
17488 ac_config_status_args="$ac_config_status_args --quiet"
17489 exec 5>/dev/null
17490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17491 exec 5>>config.log
17492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17493 # would make configure fail if this is the last instruction.
17494 $ac_cs_success || as_fn_exit 1
17496 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17498 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17503 #XXX compatability...
17504 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17506 if test -n "$aros_shared_cflags" ; then
17507 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17508 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg