use the correct binutils version
[AROS.git] / configure
blobead424f6459188ef336c18fb068e98e510a50323
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_float_abi
643 gcc_default_fpu
644 gcc_default_cpu_tune
645 gcc_default_cpu
646 aros_ios_sdk
647 aros_ios_version
648 aros_ios_platform
649 aros_enable_mmu
650 aros_nesting_supervisor
651 aros_palm_debug_hack
652 aros_serial_debug
653 aros_host_sdl_libs
654 aros_host_sdl_cflags
655 aros_host_x11_libdirs
656 aros_host_x11_includes
657 DO_VIDMODE_SUPPORT
658 DO_XSHM_SUPPORT
659 aros_default_wbdepth
660 aros_default_wbheight
661 aros_default_wbwidth
662 oss_library_target
663 pci_hidd_target
664 sdl_hidd_target
665 unixgfx_hidd_target
666 aros_cflags_format_security
667 aros_cflags_strict_overflow
668 aros_cflags_enum_compare
669 aros_cflags_array_bounds
670 aros_cflags_unused_but_set_variable
671 crosstools_cxx_target
672 crosstools_target
673 aros_isa_flags
674 aros_optimization_cflags
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cflags
680 aros_target_cflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_shared_ldflags
686 aros_shared_aflags
687 aros_shared_cflags
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cflags
691 aros_config_sysroot
692 aros_arch_libs
693 aros_compiler_libs
694 spec_obj_format
695 aros_object_format
696 aros_shared_ld
697 aros_shared_default
698 aros_target_nm
699 aros_target_strip
700 aros_target_objcopy
701 aros_target_objdump
702 aros_target_cc_path
703 aros_target_cc_includes
704 aros_target_ld
705 aros_target_as
706 aros_target_cpp
707 aros_target_cxx
708 aros_target_cc
709 aros_plain_ar
710 aros_plain_nm
711 aros_target_ranlib
712 aros_target_ar
713 aros_target_suffix
714 aros_target_variant
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_cpp
735 aros_host_cpu
736 aros_host_arch
737 aros_cc_pre
738 aros_amigaos_compliance
739 AROS_PORTSSRCDIR
740 AROS_CROSSTOOLSDIR
741 SRCDIR
742 AROS_BUILDDIR_UNIX
743 AROS_BUILDDIR
744 aros_target_toolchain
745 aros_flavour_uc
746 aros_flavour
747 aros_cpu
748 aros_arch
749 SDL_LIBS
750 SDL_CFLAGS
751 SDL_CONFIG
752 XMKMF
753 aros_cflags_iquote_end
754 aros_cflags_iquote
755 kernel_cflags_iquote_end
756 kernel_cflags_iquote
757 host_cflags_iquote_end
758 host_cflags_iquote
759 aros_target_nostdlib_ldflags
760 aros_target_detach_ldflags
761 aros_target_nix_ldflags
762 aros_target_nostartup_ldflags
763 aros_target_nostdinc_cflags
764 aros_kernel_rescomp
765 orig_target_objdump
766 orig_target_objcopy
767 orig_target_strip
768 orig_target_nm
769 orig_target_ranlib
770 orig_target_ar
771 orig_target_as
772 orig_target_ld
773 orig_target_cxx
774 orig_target_cc
775 orig_target_cpp
776 aros_kernel_objdump
777 aros_kernel_objcopy
778 aros_kernel_strip
779 aros_kernel_nm
780 aros_kernel_ranlib
781 aros_kernel_ar
782 aros_kernel_as
783 aros_kernel_ld
784 aros_kernel_cxx
785 aros_kernel_cc
786 aros_kernel_cpp
787 target_gcc_version
789 android_tool
790 CCACHE
791 DISTCC
792 LIBOBJS
793 EGREP
794 GREP
796 TEST
799 pkgpyexecdir
800 pyexecdir
801 pkgpythondir
802 pythondir
803 PYTHON_PLATFORM
804 PYTHON_EXEC_PREFIX
805 PYTHON_PREFIX
806 PYTHON_VERSION
807 PYTHON
808 PATCH
809 CHMOD
811 PPMTOILBM
812 PNGTOPNM
813 FLEX
814 BISON
817 UNIQ
818 SORT
819 TOUCH
820 MKDIR
821 ECHO
825 aros_host_strip
826 aros_host_ranlib
827 aros_host_ar
828 aros_host_automake
829 aros_host_autoheader
830 aros_host_autoconf
831 aros_host_aclocal
832 aros_host_ld
833 MMAKE
836 ac_ct_CC
837 CFLAGS
839 OBJEXT
840 EXEEXT
841 ac_ct_CXX
842 CPPFLAGS
843 LDFLAGS
844 CXXFLAGS
846 host_os
847 host_vendor
848 host_cpu
849 host
850 build_os
851 build_vendor
852 build_cpu
853 build
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL'
892 ac_subst_files=''
893 ac_user_opts='
894 enable_option_checking
895 enable_build_type
896 enable_debug
897 enable_distcc
898 enable_ccache
899 with_kernel_gcc_version
900 with_optimization
901 with_paranoia
902 enable_target_variant
903 with_xcode
904 with_sdk_version
905 with_sdk
906 with_ndk
907 with_ndk_version
908 with_apk_version
909 enable_amigaos_compliance
910 with_kernel_toolchain_prefix
911 with_elf_toolchain_prefix
912 with_aros_toolchain
913 enable_crosstools
914 with_aros_toolchain_install
915 with_gcc_version
916 enable_objc
917 enable_java
918 with_cpu
919 with_fpu
920 with_float
921 with_portssources
922 with_bootloader
923 with_iconset
924 with_theme
925 enable_includes
926 with_resolution
927 with_serial_debug
928 enable_palm_debug_hack
929 enable_usb30_code
930 enable_nesting_supervisor
931 enable_mmu
932 enable_x11_hidd
933 with_x
934 enable_x11_shm
935 enable_x11_vidmode
936 enable_sdl_hidd
937 with_sdl_prefix
938 with_sdl_exec_prefix
939 enable_sdltest
940 enable_dbus
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CXXFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
952 CFLAGS
954 PYTHON
955 XMKMF'
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1017 case $ac_option in
1018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *=) ac_optarg= ;;
1020 *) ac_optarg=yes ;;
1021 esac
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1027 ac_dashdash=yes ;;
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1341 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1363 esac
1364 done
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $? "missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $? "pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1448 /^X\(\/\/\)$/{
1449 s//\1/
1452 /^X\(\/\).*/{
1453 s//\1/
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1461 else
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1551 cat <<\_ACEOF
1553 X features:
1554 --x-includes=DIR X include files are in DIR
1555 --x-libraries=DIR X library files are in DIR
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 _ACEOF
1563 if test -n "$ac_init_help"; then
1565 cat <<\_ACEOF
1567 Optional Features:
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-build-type=TYPE
1572 Select the build type. Available types are:
1573 personal, nightly, snapshot, milestone, release. Do
1574 NOT use this option unless you know what you are
1575 doing! (default=personal)
1576 --enable-debug=list Enable different types of debug. Commas or
1577 whitespaces can be used to separate the items in the
1578 list. Available types of debug are: all, none,
1579 messages, stack, mungwall, modules, symbols. If no
1580 list is provided then "all" is assumed.
1581 (default=none)
1582 --enable-distcc Use distcc as a front end to the compiler
1583 (default=no).
1584 --enable-ccache Use ccache as a front end to the compiler
1585 (default=no).
1586 --enable-target-variant=NAME
1587 Enable a specific target variant(default=none)
1588 --enable-amigaos-compliance=VERSION
1589 Enforce userspace AmigaOS compliance to a specific
1590 KickStart version (default=none).
1591 --disable-crosstools Do not build cross-compiler toolchain
1592 --enable-objc Enable Objectve-C support (default=yes)
1593 --enable-java Enable Java support (default=no)
1594 --enable-includes=dir Alternative system include directory
1595 --enable-palm-debug-hack
1596 Enable palm debug output hack in palm native
1597 (default=no)
1598 --enable-usb30-code Enable usb3.0 code (default=no)
1599 --enable-nesting-supervisor
1600 Enable nesting supervisor support in unix
1601 (default=no)
1602 --disable-mmu Disable MMU support (default=enabled)
1603 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1604 --enable-x11-shm use X11 shared memory (default=auto)
1605 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1606 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1607 --disable-sdltest Do not try to compile and run a test SDL program
1608 --enable-dbus Enable DBUS support via dbus.library (default=no)
1610 Optional Packages:
1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1613 --with-kernel-gcc-version=VERSION
1614 Use gcc-VERSION for building bootstrap
1615 --with-optimization=FLAGS
1616 Use optimization flags FLAGS (default=-O2).
1617 --with-paranoia=FLAGS CC flags to enable paranoia
1618 --with-xcode=PATH Specify XCode path for iOS targets
1619 (default=/Developer).
1620 --with-sdk-version=VERSION
1621 Use iOS SDK version VERSION (default=4.1).
1622 --with-sdk=PATH Specify Android SDK path
1623 (default=$default_android_sdk).
1624 --with-ndk=PATH Specify Android NDK path (default=none).
1625 --with-sdk-version=LEVEL
1626 Use Android SDK for API LEVEL (default=12).
1627 --with-ndk-version=LEVEL
1628 Use Android NDK for API LEVEL (default=9).
1629 --with-apk-version=(release|debug)
1630 Which version of AROSBootstrap.apk to compile.
1631 Release version needs key for signing, debug version
1632 will only run in emulator. (default=release)
1633 --with-kernel-toolchain-prefix=...
1634 Specify crosscompile toolchain prefix for kernel
1635 objects
1636 --with-elf-toolchain-prefix=...
1637 Specify crosscompile toolchain prefix to wrap for
1638 AROS objects
1639 --with-aros-toolchain=PREFIX
1640 Specify prebuilt AROS toolchain. Use yes for default
1641 name
1642 --with-aros-toolchain-install=DIR
1643 Where to install or search for cross tools binaries
1644 --with-binutils-version=VERSION
1645 Use gcc-VERSION for building AROS
1646 --with-gcc-version=VERSION
1647 Use gcc-VERSION for building AROS
1648 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1649 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1650 --with-float=<spec> Specify floating point ABI
1651 (default=$gcc_default_float_abi).
1652 --with-portssources=DIR Where to download sourcecode for external ports
1653 --with-bootloader=NAME Use a specific bootloader
1654 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1655 --with-theme=NAME Use a specific GUI Theme
1656 --with-resolution=XRESxYRESxDEPTH
1657 Default resolution of the initial WorkbenchScreen
1658 --with-serial-debug Enable serial debug output in native (default=no)
1659 --with-x use the X Window System
1660 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1661 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1663 Some influential environment variables:
1664 CXX C++ compiler command
1665 CXXFLAGS C++ compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CC C compiler command
1672 CFLAGS C compiler flags
1673 CPP C preprocessor
1674 PYTHON the Python interpreter
1675 XMKMF Path to xmkmf, Makefile generator for X Window System
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1680 Report bugs to the package provider.
1681 _ACEOF
1682 ac_status=$?
1685 if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
1691 ac_builddir=.
1693 case "$ac_dir" in
1694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703 esac
1704 ac_abs_top_builddir=$ac_pwd
1705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706 # for backward compatibility:
1707 ac_top_builddir=$ac_top_build_prefix
1709 case $srcdir in
1710 .) # We are building in place.
1711 ac_srcdir=.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722 esac
1723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1742 cat <<\_ACEOF
1743 configure
1744 generated by GNU Autoconf 2.69
1746 Copyright (C) 2012 Free Software Foundation, Inc.
1747 This configure script is free software; the Free Software Foundation
1748 gives unlimited permission to copy, distribute and modify it.
1749 _ACEOF
1750 exit
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1757 # ac_fn_cxx_try_compile LINENO
1758 # ----------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_cxx_try_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_cxx_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=1
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_cxx_try_compile
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_cpp ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_cpp
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_link
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1920 # accordingly.
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 else
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1944 else
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1960 else
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 yes:no: )
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 no:yes:* )
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 esac
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 else
1993 eval "$3=\$ac_header_compiler"
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_mongrel
2003 # ac_fn_c_try_run LINENO
2004 # ----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006 # that executables *can* be run.
2007 ac_fn_c_try_run ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>&5
2018 ac_status=$?
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2021 { { case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_try") 2>&5
2028 ac_status=$?
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; }; }; then :
2031 ac_retval=0
2032 else
2033 $as_echo "$as_me: program exited with status $ac_status" >&5
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 ac_retval=$ac_status
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2043 } # ac_fn_c_try_run
2045 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists and can be compiled using the include files in
2048 # INCLUDES, setting the cache variable VAR accordingly.
2049 ac_fn_c_check_header_compile ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2060 #include <$2>
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_header_compile
2076 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2077 # ----------------------------------------------------
2078 # Tries to find if the field MEMBER exists in type AGGR, after including
2079 # INCLUDES, setting cache variable VAR accordingly.
2080 ac_fn_c_check_member ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2084 $as_echo_n "checking for $2.$3... " >&6; }
2085 if eval \${$4+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 static $2 ac_aggr;
2095 if (ac_aggr.$3)
2096 return 0;
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$4=yes"
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2108 main ()
2110 static $2 ac_aggr;
2111 if (sizeof ac_aggr.$3)
2112 return 0;
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$4=yes"
2119 else
2120 eval "$4=no"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 eval ac_res=\$$4
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_member
2133 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2134 # ---------------------------------------------
2135 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2136 # accordingly.
2137 ac_fn_c_check_decl ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 as_decl_name=`echo $2|sed 's/ *(.*//'`
2141 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144 if eval \${$3+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 #ifndef $as_decl_name
2154 #ifdef __cplusplus
2155 (void) $as_decl_use;
2156 #else
2157 (void) $as_decl_name;
2158 #endif
2159 #endif
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 eval "$3=yes"
2167 else
2168 eval "$3=no"
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_decl
2179 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2180 # -------------------------------------------
2181 # Tests whether TYPE exists after having included INCLUDES, setting cache
2182 # variable VAR accordingly.
2183 ac_fn_c_check_type ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 eval "$3=no"
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2196 main ()
2198 if (sizeof ($2))
2199 return 0;
2201 return 0;
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2209 main ()
2211 if (sizeof (($2)))
2212 return 0;
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2219 else
2220 eval "$3=yes"
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 eval ac_res=\$$3
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228 $as_echo "$ac_res" >&6; }
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 } # ac_fn_c_check_type
2233 # ac_fn_c_check_func LINENO FUNC VAR
2234 # ----------------------------------
2235 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2236 ac_fn_c_check_func ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2248 #define $2 innocuous_$2
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $2 (); below.
2252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2253 <limits.h> exists even on freestanding compilers. */
2255 #ifdef __STDC__
2256 # include <limits.h>
2257 #else
2258 # include <assert.h>
2259 #endif
2261 #undef $2
2263 /* Override any GCC internal prototype to avoid an error.
2264 Use char because int might match the return type of a GCC
2265 builtin and then its argument prototype would still apply. */
2266 #ifdef __cplusplus
2267 extern "C"
2268 #endif
2269 char $2 ();
2270 /* The GNU C library defines this for functions which it implements
2271 to always fail with ENOSYS. Some functions are actually named
2272 something starting with __ and the normal name is an alias. */
2273 #if defined __stub_$2 || defined __stub___$2
2274 choke me
2275 #endif
2278 main ()
2280 return $2 ();
2282 return 0;
2284 _ACEOF
2285 if ac_fn_c_try_link "$LINENO"; then :
2286 eval "$3=yes"
2287 else
2288 eval "$3=no"
2290 rm -f core conftest.err conftest.$ac_objext \
2291 conftest$ac_exeext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_func
2299 cat >config.log <<_ACEOF
2300 This file contains any messages produced by compilers while
2301 running configure, to aid debugging if configure makes a mistake.
2303 It was created by $as_me, which was
2304 generated by GNU Autoconf 2.69. Invocation command line was
2306 $ $0 $@
2308 _ACEOF
2309 exec 5>>config.log
2311 cat <<_ASUNAME
2312 ## --------- ##
2313 ## Platform. ##
2314 ## --------- ##
2316 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2317 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2318 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2319 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2320 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2323 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2325 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2326 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2327 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2328 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2329 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2330 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2331 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333 _ASUNAME
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 $as_echo "PATH: $as_dir"
2341 done
2342 IFS=$as_save_IFS
2344 } >&5
2346 cat >&5 <<_ACEOF
2349 ## ----------- ##
2350 ## Core tests. ##
2351 ## ----------- ##
2353 _ACEOF
2356 # Keep a trace of the command line.
2357 # Strip out --no-create and --no-recursion so they do not pile up.
2358 # Strip out --silent because we don't want to record it for future runs.
2359 # Also quote any args containing shell meta-characters.
2360 # Make two passes to allow for proper duplicate-argument suppression.
2361 ac_configure_args=
2362 ac_configure_args0=
2363 ac_configure_args1=
2364 ac_must_keep_next=false
2365 for ac_pass in 1 2
2367 for ac_arg
2369 case $ac_arg in
2370 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2372 | -silent | --silent | --silen | --sile | --sil)
2373 continue ;;
2374 *\'*)
2375 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 esac
2377 case $ac_pass in
2378 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380 as_fn_append ac_configure_args1 " '$ac_arg'"
2381 if test $ac_must_keep_next = true; then
2382 ac_must_keep_next=false # Got value, back to normal.
2383 else
2384 case $ac_arg in
2385 *=* | --config-cache | -C | -disable-* | --disable-* \
2386 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2387 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2388 | -with-* | --with-* | -without-* | --without-* | --x)
2389 case "$ac_configure_args0 " in
2390 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2391 esac
2393 -* ) ac_must_keep_next=true ;;
2394 esac
2396 as_fn_append ac_configure_args " '$ac_arg'"
2398 esac
2399 done
2400 done
2401 { ac_configure_args0=; unset ac_configure_args0;}
2402 { ac_configure_args1=; unset ac_configure_args1;}
2404 # When interrupted or exit'd, cleanup temporary files, and complete
2405 # config.log. We remove comments because anyway the quotes in there
2406 # would cause problems or look ugly.
2407 # WARNING: Use '\'' to represent an apostrophe within the trap.
2408 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2409 trap 'exit_status=$?
2410 # Save into config.log some information that might help in debugging.
2412 echo
2414 $as_echo "## ---------------- ##
2415 ## Cache variables. ##
2416 ## ---------------- ##"
2417 echo
2418 # The following way of writing the cache mishandles newlines in values,
2420 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in #(
2423 *${as_nl}*)
2424 case $ac_var in #(
2425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2427 esac
2428 case $ac_var in #(
2429 _ | IFS | as_nl) ;; #(
2430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2431 *) { eval $ac_var=; unset $ac_var;} ;;
2432 esac ;;
2433 esac
2434 done
2435 (set) 2>&1 |
2436 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2437 *${as_nl}ac_space=\ *)
2438 sed -n \
2439 "s/'\''/'\''\\\\'\'''\''/g;
2440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2441 ;; #(
2443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445 esac |
2446 sort
2448 echo
2450 $as_echo "## ----------------- ##
2451 ## Output variables. ##
2452 ## ----------------- ##"
2453 echo
2454 for ac_var in $ac_subst_vars
2456 eval ac_val=\$$ac_var
2457 case $ac_val in
2458 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 esac
2460 $as_echo "$ac_var='\''$ac_val'\''"
2461 done | sort
2462 echo
2464 if test -n "$ac_subst_files"; then
2465 $as_echo "## ------------------- ##
2466 ## File substitutions. ##
2467 ## ------------------- ##"
2468 echo
2469 for ac_var in $ac_subst_files
2471 eval ac_val=\$$ac_var
2472 case $ac_val in
2473 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 esac
2475 $as_echo "$ac_var='\''$ac_val'\''"
2476 done | sort
2477 echo
2480 if test -s confdefs.h; then
2481 $as_echo "## ----------- ##
2482 ## confdefs.h. ##
2483 ## ----------- ##"
2484 echo
2485 cat confdefs.h
2486 echo
2488 test "$ac_signal" != 0 &&
2489 $as_echo "$as_me: caught signal $ac_signal"
2490 $as_echo "$as_me: exit $exit_status"
2491 } >&5
2492 rm -f core *.core core.conftest.* &&
2493 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2494 exit $exit_status
2496 for ac_signal in 1 2 13 15; do
2497 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2498 done
2499 ac_signal=0
2501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2502 rm -f -r conftest* confdefs.h
2504 $as_echo "/* confdefs.h */" > confdefs.h
2506 # Predefined preprocessor variables.
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_NAME "$PACKAGE_NAME"
2510 _ACEOF
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_STRING "$PACKAGE_STRING"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_URL "$PACKAGE_URL"
2530 _ACEOF
2533 # Let the site file select an alternate cache file if it wants to.
2534 # Prefer an explicitly selected file to automatically selected ones.
2535 ac_site_file1=NONE
2536 ac_site_file2=NONE
2537 if test -n "$CONFIG_SITE"; then
2538 # We do not want a PATH search for config.site.
2539 case $CONFIG_SITE in #((
2540 -*) ac_site_file1=./$CONFIG_SITE;;
2541 */*) ac_site_file1=$CONFIG_SITE;;
2542 *) ac_site_file1=./$CONFIG_SITE;;
2543 esac
2544 elif test "x$prefix" != xNONE; then
2545 ac_site_file1=$prefix/share/config.site
2546 ac_site_file2=$prefix/etc/config.site
2547 else
2548 ac_site_file1=$ac_default_prefix/share/config.site
2549 ac_site_file2=$ac_default_prefix/etc/config.site
2551 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2553 test "x$ac_site_file" = xNONE && continue
2554 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2556 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2557 sed 's/^/| /' "$ac_site_file" >&5
2558 . "$ac_site_file" \
2559 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "failed to load site script $ac_site_file
2562 See \`config.log' for more details" "$LINENO" 5; }
2564 done
2566 if test -r "$cache_file"; then
2567 # Some versions of bash will fail to source /dev/null (special files
2568 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2569 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2571 $as_echo "$as_me: loading cache $cache_file" >&6;}
2572 case $cache_file in
2573 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2574 *) . "./$cache_file";;
2575 esac
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2579 $as_echo "$as_me: creating cache $cache_file" >&6;}
2580 >$cache_file
2583 as_fn_append ac_header_list " stdlib.h"
2584 as_fn_append ac_header_list " unistd.h"
2585 as_fn_append ac_header_list " sys/param.h"
2586 # Check that the precious variables saved in the cache have kept the same
2587 # value.
2588 ac_cache_corrupted=false
2589 for ac_var in $ac_precious_vars; do
2590 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2591 eval ac_new_set=\$ac_env_${ac_var}_set
2592 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2593 eval ac_new_val=\$ac_env_${ac_var}_value
2594 case $ac_old_set,$ac_new_set in
2595 set,)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2597 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2598 ac_cache_corrupted=: ;;
2599 ,set)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,);;
2605 if test "x$ac_old_val" != "x$ac_new_val"; then
2606 # differences in whitespace do not lead to failure.
2607 ac_old_val_w=`echo x $ac_old_val`
2608 ac_new_val_w=`echo x $ac_new_val`
2609 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2611 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2612 ac_cache_corrupted=:
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2615 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2616 eval $ac_var=\$ac_old_val
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2619 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2621 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2622 fi;;
2623 esac
2624 # Pass precious variables to config.status.
2625 if test "$ac_new_set" = set; then
2626 case $ac_new_val in
2627 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2628 *) ac_arg=$ac_var=$ac_new_val ;;
2629 esac
2630 case " $ac_configure_args " in
2631 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2632 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2633 esac
2635 done
2636 if $ac_cache_corrupted; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2640 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2641 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643 ## -------------------- ##
2644 ## Main body of script. ##
2645 ## -------------------- ##
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 ac_aux_dir=
2656 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2657 if test -f "$ac_dir/install-sh"; then
2658 ac_aux_dir=$ac_dir
2659 ac_install_sh="$ac_aux_dir/install-sh -c"
2660 break
2661 elif test -f "$ac_dir/install.sh"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/install.sh -c"
2664 break
2665 elif test -f "$ac_dir/shtool"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/shtool install -c"
2668 break
2670 done
2671 if test -z "$ac_aux_dir"; then
2672 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2675 # These three variables are undocumented and unsupported,
2676 # and are intended to be withdrawn in a future Autoconf release.
2677 # They can cause serious problems if a builder's source tree is in a directory
2678 # whose full name contains unusual characters.
2679 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2680 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2681 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2685 # Check what host we are running on.
2686 # If a target is not suggested, we use this one.
2687 # Note that what we call a target, Autoconf calls a host.
2688 # Make sure we can run config.sub.
2689 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2690 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693 $as_echo_n "checking build system type... " >&6; }
2694 if ${ac_cv_build+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 ac_build_alias=$build_alias
2698 test "x$ac_build_alias" = x &&
2699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700 test "x$ac_build_alias" = x &&
2701 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2702 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707 $as_echo "$ac_cv_build" >&6; }
2708 case $ac_cv_build in
2709 *-*-*) ;;
2710 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2711 esac
2712 build=$ac_cv_build
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_build
2715 shift
2716 build_cpu=$1
2717 build_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 build_os=$*
2722 IFS=$ac_save_IFS
2723 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727 $as_echo_n "checking host system type... " >&6; }
2728 if ${ac_cv_host+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test "x$host_alias" = x; then
2732 ac_cv_host=$ac_cv_build
2733 else
2734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740 $as_echo "$ac_cv_host" >&6; }
2741 case $ac_cv_host in
2742 *-*-*) ;;
2743 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2744 esac
2745 host=$ac_cv_host
2746 ac_save_IFS=$IFS; IFS='-'
2747 set x $ac_cv_host
2748 shift
2749 host_cpu=$1
2750 host_vendor=$2
2751 shift; shift
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2754 host_os=$*
2755 IFS=$ac_save_IFS
2756 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760 # Default version of gnu tools to use
2761 default_gcc_version="4.6.4"
2762 default_binutils_version="2.23.2"
2764 # The AROS target is slightly different to the normal GNU style
2765 # format. We don't have the middle part, and we reverse the order
2766 # of the $(CPU) and $(OS) bits.
2768 # Don't strip the version of the target yet, it might be
2769 # useful on some systems.
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2772 $as_echo_n "checking for AROS style target... " >&6; }
2774 if test "$target" = "NONE" ; then
2775 target=$host_os-$host_cpu
2776 else
2777 if test "$target" = "" ; then
2778 target=$host_os-$host_cpu
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2782 $as_echo "$target" >&6; }
2784 if test "$host_os" = "mingw32" ; then
2785 PWDCMD="pwd -W"
2788 # Don't know where else to put this...
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2790 $as_echo_n "checking building AROS in... " >&6; }
2791 AROS_BUILDDIR=`${PWDCMD-pwd}`
2792 AROS_BUILDDIR_UNIX=${PWD}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2794 $as_echo "$AROS_BUILDDIR" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2797 $as_echo_n "checking AROS source in... " >&6; }
2798 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2799 SRCDIR=${srcpwd}
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2801 $as_echo "$SRCDIR" >&6; }
2803 # Parse the target field into something useful.
2805 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2806 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2809 # Some debug output, to be removed again.
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2811 $as_echo_n "checking for target system (debug output)... " >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2813 $as_echo "$target_os" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2815 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2817 $as_echo "$target_cpu" >&6; }
2819 aros_default_wbwidth=800
2820 aros_default_wbheight=600
2821 aros_default_wbdepth=4
2824 # The first step is to find the host binaries.
2825 # Check for a compiler.
2826 # Due to a bug in autoconf check for c++ compiler first.
2827 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2828 ac_ext=cpp
2829 ac_cpp='$CXXCPP $CPPFLAGS'
2830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2833 if test -z "$CXX"; then
2834 if test -n "$CCC"; then
2835 CXX=$CCC
2836 else
2837 if test -n "$ac_tool_prefix"; then
2838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_CXX+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$CXX"; then
2848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2861 done
2862 done
2863 IFS=$as_save_IFS
2867 CXX=$ac_cv_prog_CXX
2868 if test -n "$CXX"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2870 $as_echo "$CXX" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2877 test -n "$CXX" && break
2878 done
2880 if test -z "$CXX"; then
2881 ac_ct_CXX=$CXX
2882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$ac_ct_CXX"; then
2892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2912 if test -n "$ac_ct_CXX"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2914 $as_echo "$ac_ct_CXX" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$ac_ct_CXX" && break
2922 done
2924 if test "x$ac_ct_CXX" = x; then
2925 CXX="g++"
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933 CXX=$ac_ct_CXX
2939 # Provide some information about the compiler.
2940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2941 set X $ac_compile
2942 ac_compiler=$2
2943 for ac_option in --version -v -V -qversion; do
2944 { { ac_try="$ac_compiler $ac_option >&5"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950 $as_echo "$ac_try_echo"; } >&5
2951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2952 ac_status=$?
2953 if test -s conftest.err; then
2954 sed '10a\
2955 ... rest of stderr output deleted ...
2956 10q' conftest.err >conftest.er1
2957 cat conftest.er1 >&5
2959 rm -f conftest.er1 conftest.err
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962 done
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2968 main ()
2972 return 0;
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2981 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2982 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984 # The possible output files:
2985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987 ac_rmfiles=
2988 for ac_file in $ac_files
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 esac
2994 done
2995 rm -f $ac_rmfiles
2997 if { { ac_try="$ac_link_default"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link_default") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3010 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3011 # so that the user can short-circuit this test for compilers unknown to
3012 # Autoconf.
3013 for ac_file in $ac_files ''
3015 test -f "$ac_file" || continue
3016 case $ac_file in
3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 [ab].out )
3020 # We found the default executable, but exeext='' is most
3021 # certainly right.
3022 break;;
3023 *.* )
3024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3025 then :; else
3026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 # We set ac_cv_exeext here because the later test for it is not
3029 # safe: cross compilers may not add the suffix if given an `-o'
3030 # argument, so we may need to know it at that point already.
3031 # Even if this section looks crufty: it has the advantage of
3032 # actually working.
3033 break;;
3035 break;;
3036 esac
3037 done
3038 test "$ac_cv_exeext" = no && ac_cv_exeext=
3040 else
3041 ac_file=''
3043 if test -z "$ac_file"; then :
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 $as_echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error 77 "C++ compiler cannot create executables
3052 See \`config.log' for more details" "$LINENO" 5; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3058 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3060 $as_echo "$ac_file" >&6; }
3061 ac_exeext=$ac_cv_exeext
3063 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3064 ac_clean_files=$ac_clean_files_save
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3066 $as_echo_n "checking for suffix of executables... " >&6; }
3067 if { { ac_try="$ac_link"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_link") 2>&5
3075 ac_status=$?
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; then :
3078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080 # work properly (i.e., refer to `conftest.exe'), while it won't with
3081 # `rm'.
3082 for ac_file in conftest.exe conftest conftest.*; do
3083 test -f "$ac_file" || continue
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087 break;;
3088 * ) break;;
3089 esac
3090 done
3091 else
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3095 See \`config.log' for more details" "$LINENO" 5; }
3097 rm -f conftest conftest$ac_cv_exeext
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3099 $as_echo "$ac_cv_exeext" >&6; }
3101 rm -f conftest.$ac_ext
3102 EXEEXT=$ac_cv_exeext
3103 ac_exeext=$EXEEXT
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3106 #include <stdio.h>
3108 main ()
3110 FILE *f = fopen ("conftest.out", "w");
3111 return ferror (f) || fclose (f) != 0;
3114 return 0;
3116 _ACEOF
3117 ac_clean_files="$ac_clean_files conftest.out"
3118 # Check that the compiler produces executables we can run. If not, either
3119 # the compiler is broken, or we cross compile.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3121 $as_echo_n "checking whether we are cross compiling... " >&6; }
3122 if test "$cross_compiling" != yes; then
3123 { { ac_try="$ac_link"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }
3134 if { ac_try='./conftest$ac_cv_exeext'
3135 { { case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot run C++ compiled programs.
3153 If you meant to cross compile, use \`--host'.
3154 See \`config.log' for more details" "$LINENO" 5; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3159 $as_echo "$cross_compiling" >&6; }
3161 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3162 ac_clean_files=$ac_clean_files_save
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3164 $as_echo_n "checking for suffix of object files... " >&6; }
3165 if ${ac_cv_objext+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3172 main ()
3176 return 0;
3178 _ACEOF
3179 rm -f conftest.o conftest.obj
3180 if { { ac_try="$ac_compile"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_compile") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; then :
3191 for ac_file in conftest.o conftest.obj conftest.*; do
3192 test -f "$ac_file" || continue;
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196 break;;
3197 esac
3198 done
3199 else
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "cannot compute suffix of object files: cannot compile
3206 See \`config.log' for more details" "$LINENO" 5; }
3208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3211 $as_echo "$ac_cv_objext" >&6; }
3212 OBJEXT=$ac_cv_objext
3213 ac_objext=$OBJEXT
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3215 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3216 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3223 main ()
3225 #ifndef __GNUC__
3226 choke me
3227 #endif
3230 return 0;
3232 _ACEOF
3233 if ac_fn_cxx_try_compile "$LINENO"; then :
3234 ac_compiler_gnu=yes
3235 else
3236 ac_compiler_gnu=no
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3243 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3244 if test $ac_compiler_gnu = yes; then
3245 GXX=yes
3246 else
3247 GXX=
3249 ac_test_CXXFLAGS=${CXXFLAGS+set}
3250 ac_save_CXXFLAGS=$CXXFLAGS
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3252 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3253 if ${ac_cv_prog_cxx_g+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3257 ac_cxx_werror_flag=yes
3258 ac_cv_prog_cxx_g=no
3259 CXXFLAGS="-g"
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3264 main ()
3268 return 0;
3270 _ACEOF
3271 if ac_fn_cxx_try_compile "$LINENO"; then :
3272 ac_cv_prog_cxx_g=yes
3273 else
3274 CXXFLAGS=""
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 if ac_fn_cxx_try_compile "$LINENO"; then :
3288 else
3289 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3290 CXXFLAGS="-g"
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3299 return 0;
3301 _ACEOF
3302 if ac_fn_cxx_try_compile "$LINENO"; then :
3303 ac_cv_prog_cxx_g=yes
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3313 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3314 if test "$ac_test_CXXFLAGS" = set; then
3315 CXXFLAGS=$ac_save_CXXFLAGS
3316 elif test $ac_cv_prog_cxx_g = yes; then
3317 if test "$GXX" = yes; then
3318 CXXFLAGS="-g -O2"
3319 else
3320 CXXFLAGS="-g"
3322 else
3323 if test "$GXX" = yes; then
3324 CXXFLAGS="-O2"
3325 else
3326 CXXFLAGS=
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3364 IFS=$as_save_IFS
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3379 if test -z "$ac_cv_prog_CC"; then
3380 ac_ct_CC=$CC
3381 # Extract the first word of "gcc", so it can be a program name with args.
3382 set dummy gcc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$ac_ct_CC"; then
3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_ac_ct_CC="gcc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3409 if test -n "$ac_ct_CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3411 $as_echo "$ac_ct_CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 if test "x$ac_ct_CC" = x; then
3418 CC=""
3419 else
3420 case $cross_compiling:$ac_tool_warned in
3421 yes:)
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424 ac_tool_warned=yes ;;
3425 esac
3426 CC=$ac_ct_CC
3428 else
3429 CC="$ac_cv_prog_CC"
3432 if test -z "$CC"; then
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}cc; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="${ac_tool_prefix}cc"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3473 if test -z "$CC"; then
3474 # Extract the first word of "cc", so it can be a program name with args.
3475 set dummy cc; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 ac_prog_rejected=no
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3493 ac_prog_rejected=yes
3494 continue
3496 ac_cv_prog_CC="cc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3502 IFS=$as_save_IFS
3504 if test $ac_prog_rejected = yes; then
3505 # We found a bogon in the path, so make sure we never use it.
3506 set dummy $ac_cv_prog_CC
3507 shift
3508 if test $# != 0; then
3509 # We chose a different compiler from the bogus one.
3510 # However, it has the same basename, so the bogon will be chosen
3511 # first if we set CC to just the basename; use the full file name.
3512 shift
3513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3529 if test -z "$CC"; then
3530 if test -n "$ac_tool_prefix"; then
3531 for ac_prog in cl.exe
3533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CC+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3570 test -n "$CC" && break
3571 done
3573 if test -z "$CC"; then
3574 ac_ct_CC=$CC
3575 for ac_prog in cl.exe
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy $ac_prog; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC="$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607 $as_echo "$ac_ct_CC" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3614 test -n "$ac_ct_CC" && break
3615 done
3617 if test "x$ac_ct_CC" = x; then
3618 CC=""
3619 else
3620 case $cross_compiling:$ac_tool_warned in
3621 yes:)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626 CC=$ac_ct_CC
3633 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "no acceptable C compiler found in \$PATH
3636 See \`config.log' for more details" "$LINENO" 5; }
3638 # Provide some information about the compiler.
3639 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3640 set X $ac_compile
3641 ac_compiler=$2
3642 for ac_option in --version -v -V -qversion; do
3643 { { ac_try="$ac_compiler $ac_option >&5"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3651 ac_status=$?
3652 if test -s conftest.err; then
3653 sed '10a\
3654 ... rest of stderr output deleted ...
3655 10q' conftest.err >conftest.er1
3656 cat conftest.er1 >&5
3658 rm -f conftest.er1 conftest.err
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 done
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665 if ${ac_cv_c_compiler_gnu+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 main ()
3674 #ifndef __GNUC__
3675 choke me
3676 #endif
3679 return 0;
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_compiler_gnu=yes
3684 else
3685 ac_compiler_gnu=no
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693 if test $ac_compiler_gnu = yes; then
3694 GCC=yes
3695 else
3696 GCC=
3698 ac_test_CFLAGS=${CFLAGS+set}
3699 ac_save_CFLAGS=$CFLAGS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3702 if ${ac_cv_prog_cc_g+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 ac_save_c_werror_flag=$ac_c_werror_flag
3706 ac_c_werror_flag=yes
3707 ac_cv_prog_cc_g=no
3708 CFLAGS="-g"
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3713 main ()
3717 return 0;
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_g=yes
3722 else
3723 CFLAGS=""
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3737 else
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 CFLAGS="-g"
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3744 main ()
3748 return 0;
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_g=yes
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762 $as_echo "$ac_cv_prog_cc_g" >&6; }
3763 if test "$ac_test_CFLAGS" = set; then
3764 CFLAGS=$ac_save_CFLAGS
3765 elif test $ac_cv_prog_cc_g = yes; then
3766 if test "$GCC" = yes; then
3767 CFLAGS="-g -O2"
3768 else
3769 CFLAGS="-g"
3771 else
3772 if test "$GCC" = yes; then
3773 CFLAGS="-O2"
3774 else
3775 CFLAGS=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780 if ${ac_cv_prog_cc_c89+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_cv_prog_cc_c89=no
3784 ac_save_CC=$CC
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <stdarg.h>
3788 #include <stdio.h>
3789 struct stat;
3790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3791 struct buf { int x; };
3792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3793 static char *e (p, i)
3794 char **p;
3795 int i;
3797 return p[i];
3799 static char *f (char * (*g) (char **, int), char **p, ...)
3801 char *s;
3802 va_list v;
3803 va_start (v,p);
3804 s = g (p, va_arg (v,int));
3805 va_end (v);
3806 return s;
3809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3810 function prototypes and stuff, but not '\xHH' hex character constants.
3811 These don't provoke an error unfortunately, instead are silently treated
3812 as 'x'. The following induces an error, until -std is added to get
3813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3814 array size at least. It's necessary to write '\x00'==0 to get something
3815 that's true only with -std. */
3816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3818 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3819 inside strings and character constants. */
3820 #define FOO(x) 'x'
3821 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3823 int test (int i, double x);
3824 struct s1 {int (*f) (int a);};
3825 struct s2 {int (*f) (double a);};
3826 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3827 int argc;
3828 char **argv;
3830 main ()
3832 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3834 return 0;
3836 _ACEOF
3837 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3838 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3840 CC="$ac_save_CC $ac_arg"
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_c89=$ac_arg
3844 rm -f core conftest.err conftest.$ac_objext
3845 test "x$ac_cv_prog_cc_c89" != "xno" && break
3846 done
3847 rm -f conftest.$ac_ext
3848 CC=$ac_save_CC
3851 # AC_CACHE_VAL
3852 case "x$ac_cv_prog_cc_c89" in
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3855 $as_echo "none needed" >&6; } ;;
3856 xno)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3858 $as_echo "unsupported" >&6; } ;;
3860 CC="$CC $ac_cv_prog_cc_c89"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3862 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3863 esac
3864 if test "x$ac_cv_prog_cc_c89" != xno; then :
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 case $ac_cv_prog_cc_stdc in #(
3875 no) :
3876 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3877 *) :
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3879 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3880 if ${ac_cv_prog_cc_c99+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_cv_prog_cc_c99=no
3884 ac_save_CC=$CC
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <stdarg.h>
3888 #include <stdbool.h>
3889 #include <stdlib.h>
3890 #include <wchar.h>
3891 #include <stdio.h>
3893 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3894 #define debug(...) fprintf (stderr, __VA_ARGS__)
3895 #define showlist(...) puts (#__VA_ARGS__)
3896 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3897 static void
3898 test_varargs_macros (void)
3900 int x = 1234;
3901 int y = 5678;
3902 debug ("Flag");
3903 debug ("X = %d\n", x);
3904 showlist (The first, second, and third items.);
3905 report (x>y, "x is %d but y is %d", x, y);
3908 // Check long long types.
3909 #define BIG64 18446744073709551615ull
3910 #define BIG32 4294967295ul
3911 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3912 #if !BIG_OK
3913 your preprocessor is broken;
3914 #endif
3915 #if BIG_OK
3916 #else
3917 your preprocessor is broken;
3918 #endif
3919 static long long int bignum = -9223372036854775807LL;
3920 static unsigned long long int ubignum = BIG64;
3922 struct incomplete_array
3924 int datasize;
3925 double data[];
3928 struct named_init {
3929 int number;
3930 const wchar_t *name;
3931 double average;
3934 typedef const char *ccp;
3936 static inline int
3937 test_restrict (ccp restrict text)
3939 // See if C++-style comments work.
3940 // Iterate through items via the restricted pointer.
3941 // Also check for declarations in for loops.
3942 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3943 continue;
3944 return 0;
3947 // Check varargs and va_copy.
3948 static void
3949 test_varargs (const char *format, ...)
3951 va_list args;
3952 va_start (args, format);
3953 va_list args_copy;
3954 va_copy (args_copy, args);
3956 const char *str;
3957 int number;
3958 float fnumber;
3960 while (*format)
3962 switch (*format++)
3964 case 's': // string
3965 str = va_arg (args_copy, const char *);
3966 break;
3967 case 'd': // int
3968 number = va_arg (args_copy, int);
3969 break;
3970 case 'f': // float
3971 fnumber = va_arg (args_copy, double);
3972 break;
3973 default:
3974 break;
3977 va_end (args_copy);
3978 va_end (args);
3982 main ()
3985 // Check bool.
3986 _Bool success = false;
3988 // Check restrict.
3989 if (test_restrict ("String literal") == 0)
3990 success = true;
3991 char *restrict newvar = "Another string";
3993 // Check varargs.
3994 test_varargs ("s, d' f .", "string", 65, 34.234);
3995 test_varargs_macros ();
3997 // Check flexible array members.
3998 struct incomplete_array *ia =
3999 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4000 ia->datasize = 10;
4001 for (int i = 0; i < ia->datasize; ++i)
4002 ia->data[i] = i * 1.234;
4004 // Check named initializers.
4005 struct named_init ni = {
4006 .number = 34,
4007 .name = L"Test wide string",
4008 .average = 543.34343,
4011 ni.number = 58;
4013 int dynamic_array[ni.number];
4014 dynamic_array[ni.number - 1] = 543;
4016 // work around unused variable warnings
4017 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4018 || dynamic_array[ni.number - 1] != 543);
4021 return 0;
4023 _ACEOF
4024 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4026 CC="$ac_save_CC $ac_arg"
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_prog_cc_c99=$ac_arg
4030 rm -f core conftest.err conftest.$ac_objext
4031 test "x$ac_cv_prog_cc_c99" != "xno" && break
4032 done
4033 rm -f conftest.$ac_ext
4034 CC=$ac_save_CC
4037 # AC_CACHE_VAL
4038 case "x$ac_cv_prog_cc_c99" in
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;;
4042 xno)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4044 $as_echo "unsupported" >&6; } ;;
4046 CC="$CC $ac_cv_prog_cc_c99"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4048 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4049 esac
4050 if test "x$ac_cv_prog_cc_c99" != xno; then :
4051 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055 if ${ac_cv_prog_cc_c89+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 ac_cv_prog_cc_c89=no
4059 ac_save_CC=$CC
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #include <stdarg.h>
4063 #include <stdio.h>
4064 struct stat;
4065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066 struct buf { int x; };
4067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068 static char *e (p, i)
4069 char **p;
4070 int i;
4072 return p[i];
4074 static char *f (char * (*g) (char **, int), char **p, ...)
4076 char *s;
4077 va_list v;
4078 va_start (v,p);
4079 s = g (p, va_arg (v,int));
4080 va_end (v);
4081 return s;
4084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4095 #define FOO(x) 'x'
4096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098 int test (int i, double x);
4099 struct s1 {int (*f) (int a);};
4100 struct s2 {int (*f) (double a);};
4101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4102 int argc;
4103 char **argv;
4105 main ()
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4109 return 0;
4111 _ACEOF
4112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_c89=$ac_arg
4119 rm -f core conftest.err conftest.$ac_objext
4120 test "x$ac_cv_prog_cc_c89" != "xno" && break
4121 done
4122 rm -f conftest.$ac_ext
4123 CC=$ac_save_CC
4126 # AC_CACHE_VAL
4127 case "x$ac_cv_prog_cc_c89" in
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4130 $as_echo "none needed" >&6; } ;;
4131 xno)
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4133 $as_echo "unsupported" >&6; } ;;
4135 CC="$CC $ac_cv_prog_cc_c89"
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4138 esac
4139 if test "x$ac_cv_prog_cc_c89" != xno; then :
4140 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4141 else
4142 ac_cv_prog_cc_stdc=no
4147 esac
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4149 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4150 if ${ac_cv_prog_cc_stdc+:} false; then :
4151 $as_echo_n "(cached) " >&6
4154 case $ac_cv_prog_cc_stdc in #(
4155 no) :
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4157 $as_echo "unsupported" >&6; } ;; #(
4158 '') :
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;; #(
4161 *) :
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4163 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4164 esac
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4172 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4173 # On Suns, sometimes $CPP names a directory.
4174 if test -n "$CPP" && test -d "$CPP"; then
4175 CPP=
4177 if test -z "$CPP"; then
4178 if ${ac_cv_prog_CPP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 # Double quotes because CPP needs to be expanded
4182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4184 ac_preproc_ok=false
4185 for ac_c_preproc_warn_flag in '' yes
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #ifdef __STDC__
4196 # include <limits.h>
4197 #else
4198 # include <assert.h>
4199 #endif
4200 Syntax error
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4204 else
4205 # Broken: fails on valid input.
4206 continue
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <ac_nonexistent.h>
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4217 # Broken: success on invalid input.
4218 continue
4219 else
4220 # Passes both tests.
4221 ac_preproc_ok=:
4222 break
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4226 done
4227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228 rm -f conftest.i conftest.err conftest.$ac_ext
4229 if $ac_preproc_ok; then :
4230 break
4233 done
4234 ac_cv_prog_CPP=$CPP
4237 CPP=$ac_cv_prog_CPP
4238 else
4239 ac_cv_prog_CPP=$CPP
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4242 $as_echo "$CPP" >&6; }
4243 ac_preproc_ok=false
4244 for ac_c_preproc_warn_flag in '' yes
4246 # Use a header file that comes with gcc, so configuring glibc
4247 # with a fresh cross-compiler works.
4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249 # <limits.h> exists even on freestanding compilers.
4250 # On the NeXT, cc -E runs the code through the compiler's parser,
4251 # not just through cpp. "Syntax error" is here to catch this case.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #ifdef __STDC__
4255 # include <limits.h>
4256 #else
4257 # include <assert.h>
4258 #endif
4259 Syntax error
4260 _ACEOF
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4263 else
4264 # Broken: fails on valid input.
4265 continue
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ac_nonexistent.h>
4274 _ACEOF
4275 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: success on invalid input.
4277 continue
4278 else
4279 # Passes both tests.
4280 ac_preproc_ok=:
4281 break
4283 rm -f conftest.err conftest.i conftest.$ac_ext
4285 done
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.i conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then :
4290 else
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details" "$LINENO" 5; }
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 # Check for a compatible awk
4305 for ac_prog in gawk nawk
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_AWK+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$AWK"; then
4315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_AWK="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 AWK=$ac_cv_prog_AWK
4335 if test -n "$AWK"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4337 $as_echo "$AWK" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$AWK" && break
4345 done
4347 if test "$AWK" = ""; then
4348 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4350 # Extract the first word of "mmake", so it can be a program name with args.
4351 set dummy mmake; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_MMAKE+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$MMAKE"; then
4358 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_MMAKE="mmake "
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 MMAKE=$ac_cv_prog_MMAKE
4378 if test -n "$MMAKE"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4380 $as_echo "$MMAKE" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4388 # Perform some default variable assignments. Note all of these will be
4389 # Regenerated from the script, so there is no need to cache them.
4391 aros_host_cpp="$CPP"
4392 aros_host_cc="$CC"
4393 aros_host_cxx="$CXX"
4394 if test "$GCC" = "yes"; then
4395 aros_gcc_ld=`$CC -print-prog-name=ld`
4396 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4397 set dummy `basename $aros_gcc_ld`; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_path_aros_host_ld+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 case $aros_host_ld in
4404 [\\/]* | ?:[\\/]*)
4405 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in `dirname $aros_gcc_ld`
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4424 esac
4426 aros_host_ld=$ac_cv_path_aros_host_ld
4427 if test -n "$aros_host_ld"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4429 $as_echo "$aros_host_ld" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4437 if test "$aros_host_ld" = ""; then
4438 # Extract the first word of "ld", so it can be a program name with args.
4439 set dummy ld; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_path_aros_host_ld+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 case $aros_host_ld in
4446 [\\/]* | ?:[\\/]*)
4447 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4466 esac
4468 aros_host_ld=$ac_cv_path_aros_host_ld
4469 if test -n "$aros_host_ld"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4471 $as_echo "$aros_host_ld" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test "$aros_host_ld" = ""; then
4480 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4482 aros_host_make="make"
4483 aros_host_cflags="$CFLAGS"
4484 aros_host_cxxflags="$CXXFLAGS"
4485 aros_host_ldflags="$LDFLAGS"
4486 aros_host_debug="-g -O0"
4487 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4488 aros_host_mkargs="--no-print-directory"
4489 aros_host_exe_suffix="$EXEEXT"
4490 aros_host_lib_suffix=""
4492 # Ignore all compliance, AROS ROMs = 0
4493 # KickStart v1.0 = 30
4494 # KickStart v1.3 = 34
4495 # KickStart v2.0 = 37
4496 # KickStart v3.0 = 39
4497 # KickStart v3.1 = 40
4498 # AmigaOS v3.5 = 44
4499 aros_amigaos_compliance=0
4501 for ac_prog in aclocal aclocal19 aclocal-1.9
4503 # Extract the first word of "$ac_prog", so it can be a program name with args.
4504 set dummy $ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$aros_host_aclocal"; then
4511 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_aros_host_aclocal="$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4531 if test -n "$aros_host_aclocal"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4533 $as_echo "$aros_host_aclocal" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 test -n "$aros_host_aclocal" && break
4541 done
4543 for ac_prog in autoconf autoconf259 autoconf253
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$aros_host_autoconf"; then
4553 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_aros_host_autoconf="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4573 if test -n "$aros_host_autoconf"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4575 $as_echo "$aros_host_autoconf" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$aros_host_autoconf" && break
4583 done
4585 for ac_prog in autoheader autoheader259 autoheader253
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$aros_host_autoheader"; then
4595 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_aros_host_autoheader="$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4608 done
4609 done
4610 IFS=$as_save_IFS
4614 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4615 if test -n "$aros_host_autoheader"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4617 $as_echo "$aros_host_autoheader" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$aros_host_autoheader" && break
4625 done
4627 for ac_prog in automake automake19 automake-1.9
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_aros_host_automake+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$aros_host_automake"; then
4637 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_aros_host_automake="$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 aros_host_automake=$ac_cv_prog_aros_host_automake
4657 if test -n "$aros_host_automake"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4659 $as_echo "$aros_host_automake" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 test -n "$aros_host_automake" && break
4667 done
4670 if test "$aros_host_aclocal" = ""; then
4671 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4673 if test "$aros_host_automake" = ""; then
4674 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4677 case "$aros_host_cc" in
4678 *clang*)
4679 aros_host_cc_pipe=""
4681 *gcc*)
4682 aros_host_cc_pipe="-pipe"
4684 icc)
4685 aros_host_cc_pipe=""
4688 aros_host_cc_pipe=""
4690 esac
4692 aros_kernel_cc_includes=""
4693 aros_target_cc_includes=""
4694 host_cc_elf=yes
4696 # ----------------------------------------------------------------------------------------
4697 # Host-specific defaults
4699 # This is the main host configuration section. It is where the host
4700 # can change the values of any variables it needs to change. We do
4701 # not look at anything that compiles to the target yet, we'll get
4702 # to that later.
4704 case "$host_os" in
4705 aros*)
4706 aros_host_arch="aros"
4707 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4708 case "$host_cpu" in
4709 *i?86*)
4710 aros_host_cpu="i386"
4712 *x86_64*)
4713 aros_host_cpu="x86_64"
4715 *powerpc*)
4716 aros_host_cpu="ppc"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4720 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4721 aros_host_cpu="$host_cpu"
4723 esac
4726 linux*)
4727 aros_host_arch="linux"
4728 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4729 android_build_os="linux-x86"
4730 android_tool="android"
4731 default_android_sdk="/opt/android-sdk-linux_x86"
4732 case "$host_cpu" in
4733 *i?86*)
4734 aros_host_cpu="i386"
4736 *x86_64*)
4737 aros_host_cpu="x86_64"
4739 *m68k*)
4740 aros_host_cpu="m68k"
4742 *powerpc*)
4743 aros_host_cpu="ppc"
4745 *arm*)
4746 aros_host_cpu="arm"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4750 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4751 aros_host_cpu="$host_cpu"
4753 esac
4756 freebsd*)
4757 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4758 aros_host_make="gmake"
4759 aros_host_arch="freebsd"
4760 aros_host_cpu="i386"
4762 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4764 case $host_os in
4765 freebsd[234]*)
4766 aros_object_format="elf_i386"
4770 aros_object_format="elf_i386_fbsd"
4772 esac
4776 darwin*)
4777 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4778 aros_host_arch="darwin"
4779 host_cc_elf=no
4780 SED="gsed"
4781 android_build_os="darwin-x86"
4782 android_tool="android"
4783 default_android_sdk="/android-sdk-mac_x86"
4784 case "$host_cpu" in
4785 *i?86*)
4786 aros_host_cpu="i386"
4788 *x86_64*)
4789 aros_host_cpu="x86_64"
4791 *powerpc*)
4792 aros_host_cpu="ppc"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4796 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4797 aros_host_cpu="$host_cpu"
4799 esac
4801 aros_host_ldflags="$aros_host_ldflags -liconv"
4805 dragonfly*)
4806 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4807 aros_host_make="gmake"
4808 aros_host_arch="dragonfly"
4809 case $host_cpu in
4810 *i?86*)
4811 aros_host_cpu="i386"
4813 *amd64*)
4814 aros_host_cpu="x86_64"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4818 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4819 aros_host_cpu="$host_cpu"
4821 esac
4824 netbsd*)
4825 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4826 aros_host_make="gmake"
4827 aros_host_arch="netbsd"
4828 case "$host_cpu" in
4829 *i?86*)
4830 aros_host_cpu="i386"
4832 *m68k*)
4833 aros_host_cpu="m68k"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4837 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4838 aros_host_cpu="$host_cpu"
4840 esac
4841 aros_host_lib_suffix=".0.0"
4844 openbsd*)
4845 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4846 aros_host_make="gmake"
4847 aros_host_arch="openbsd"
4848 case "$host_cpu" in
4849 *i?86*)
4850 aros_host_cpu="i386"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu="$host_cpu"
4857 esac
4860 solaris*)
4861 aros_host_arch="solaris"
4862 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4863 case "$host_cpu" in
4864 *i?86*)
4865 aros_host_cpu="i386"
4867 *sparc*)
4868 aros_host_cpu="sparc"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4872 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4873 aros_host_cpu="$host_cpu"
4875 esac
4878 morphos*)
4879 aros_host_arch="morphos"
4880 aros_host_cpu="ppc"
4881 host_cc_elf=no
4884 amiga*)
4885 aros_host_arch="amiga"
4886 host_cc_elf=no
4887 SORT="/gg/bin/sort"
4888 TEST="/gg/bin/test"
4889 UNIQ="/gg/bin/uniq"
4890 FOR="for"
4891 TOUCH="/gg/bin/touch"
4892 case "$host_cpu" in
4893 *m68k*)
4894 aros_host_cpu="m68k"
4896 *powerpc*)
4897 aros_host_cpu="ppc"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4901 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4902 aros_host_cpu="$host_cpu"
4904 esac
4907 cygwin*)
4908 aros_host_arch="cygwin"
4909 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4910 host_cc_elf=no
4911 android_build_os="windows"
4912 android_tool="android.bat"
4913 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4915 case "$host_cpu" in
4916 *i?86*)
4917 aros_host_cpu="i386"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4921 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4922 aros_host_cpu="$host_cpu"
4924 esac
4927 mingw32*)
4928 aros_host_arch="mingw32"
4929 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4930 host_cc_elf=no
4931 android_build_os="windows"
4932 android_tool="android.bat"
4933 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4935 case "$host_cpu" in
4936 *i?86*)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4939 $as_echo_n "checking for Windows native gcc target... " >&6; }
4940 host_cpu=`gcc -dumpmachine`
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4942 $as_echo "$host_cpu" >&6; }
4945 esac
4947 case "$host_cpu" in
4948 *i?86*)
4949 aros_host_cpu="i386"
4952 mingw32*)
4953 aros_host_cpu="i386"
4956 *x86_64*)
4957 aros_host_cpu="x86_64"
4958 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4963 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4964 aros_host_cpu="$host_cpu"
4966 esac
4969 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4971 esac
4973 # Extract the first word of "ar", so it can be a program name with args.
4974 set dummy ar; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_prog_aros_host_ar+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$aros_host_ar"; then
4981 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_aros_host_ar="ar cr"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4994 done
4995 done
4996 IFS=$as_save_IFS
5000 aros_host_ar=$ac_cv_prog_aros_host_ar
5001 if test -n "$aros_host_ar"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5003 $as_echo "$aros_host_ar" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5010 if test "$aros_host_ar" = ""; then
5011 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5013 # Extract the first word of "ranlib", so it can be a program name with args.
5014 set dummy ranlib; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$aros_host_ranlib"; then
5021 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_aros_host_ranlib="ranlib "
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5041 if test -n "$aros_host_ranlib"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5043 $as_echo "$aros_host_ranlib" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 if test "$aros_host_ranlib" = ""; then
5051 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5053 # Extract the first word of "strip", so it can be a program name with args.
5054 set dummy strip; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_aros_host_strip+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$aros_host_strip"; then
5061 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_aros_host_strip="strip "
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 aros_host_strip=$ac_cv_prog_aros_host_strip
5081 if test -n "$aros_host_strip"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5083 $as_echo "$aros_host_strip" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 if test "$aros_host_strip" = ""; then
5091 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5094 # Extract the first word of "rm", so it can be a program name with args.
5095 set dummy rm; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_RM+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$RM"; then
5102 ac_cv_prog_RM="$RM" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_RM="rm -rf"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 RM=$ac_cv_prog_RM
5122 if test -n "$RM"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5124 $as_echo "$RM" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 if test "$RM" = ""; then
5132 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5134 # Extract the first word of "cp", so it can be a program name with args.
5135 set dummy cp; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_CP+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$CP"; then
5142 ac_cv_prog_CP="$CP" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_CP="cp "
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 CP=$ac_cv_prog_CP
5162 if test -n "$CP"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5164 $as_echo "$CP" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5171 if test "$CP" = ""; then
5172 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5174 # Extract the first word of "mv", so it can be a program name with args.
5175 set dummy mv; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_MV+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$MV"; then
5182 ac_cv_prog_MV="$MV" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_MV="mv "
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 MV=$ac_cv_prog_MV
5202 if test -n "$MV"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5204 $as_echo "$MV" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 if test "$MV" = ""; then
5212 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5214 # Extract the first word of "echo", so it can be a program name with args.
5215 set dummy echo; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_ECHO+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$ECHO"; then
5222 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_ECHO="echo "
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 ECHO=$ac_cv_prog_ECHO
5242 if test -n "$ECHO"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5244 $as_echo "$ECHO" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5251 if test "$ECHO" = ""; then
5252 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5254 # Extract the first word of "mkdir", so it can be a program name with args.
5255 set dummy mkdir; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_MKDIR+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$MKDIR"; then
5262 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_MKDIR="mkdir -p"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 MKDIR=$ac_cv_prog_MKDIR
5282 if test -n "$MKDIR"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5284 $as_echo "$MKDIR" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5291 if test "$MKDIR" = ""; then
5292 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5294 # Extract the first word of "touch", so it can be a program name with args.
5295 set dummy touch; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_TOUCH+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$TOUCH"; then
5302 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_TOUCH="touch "
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 TOUCH=$ac_cv_prog_TOUCH
5322 if test -n "$TOUCH"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5324 $as_echo "$TOUCH" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 if test "$TOUCH" = ""; then
5332 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5334 # Extract the first word of "sort", so it can be a program name with args.
5335 set dummy sort; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_SORT+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$SORT"; then
5342 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_SORT="sort "
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5361 SORT=$ac_cv_prog_SORT
5362 if test -n "$SORT"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5364 $as_echo "$SORT" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 if test "$SORT" = ""; then
5372 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5374 # Extract the first word of "uniq", so it can be a program name with args.
5375 set dummy uniq; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_UNIQ+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$UNIQ"; then
5382 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_UNIQ="uniq "
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 UNIQ=$ac_cv_prog_UNIQ
5402 if test -n "$UNIQ"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5404 $as_echo "$UNIQ" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 if test "$UNIQ" = ""; then
5412 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5414 # Extract the first word of "true", so it can be a program name with args.
5415 set dummy true; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_NOP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$NOP"; then
5422 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_NOP="true "
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5435 done
5436 done
5437 IFS=$as_save_IFS
5441 NOP=$ac_cv_prog_NOP
5442 if test -n "$NOP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5444 $as_echo "$NOP" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5451 if test "$NOP" = ""; then
5452 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5454 # Extract the first word of "cat", so it can be a program name with args.
5455 set dummy cat; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_CAT+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$CAT"; then
5462 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_CAT="cat "
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5475 done
5476 done
5477 IFS=$as_save_IFS
5481 CAT=$ac_cv_prog_CAT
5482 if test -n "$CAT"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5484 $as_echo "$CAT" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 if test "$CAT" = ""; then
5492 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5494 # Extract the first word of "bison", so it can be a program name with args.
5495 set dummy bison; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_BISON+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$BISON"; then
5502 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_BISON="bison "
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 BISON=$ac_cv_prog_BISON
5522 if test -n "$BISON"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5524 $as_echo "$BISON" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 if test "$BISON" = ""; then
5532 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5534 # Extract the first word of "flex", so it can be a program name with args.
5535 set dummy flex; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_FLEX+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$FLEX"; then
5542 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_FLEX="flex "
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 FLEX=$ac_cv_prog_FLEX
5562 if test -n "$FLEX"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5564 $as_echo "$FLEX" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 if test "$FLEX" = ""; then
5572 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5574 # Extract the first word of "pngtopnm", so it can be a program name with args.
5575 set dummy pngtopnm; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$PNGTOPNM"; then
5582 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_PNGTOPNM="pngtopnm "
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5602 if test -n "$PNGTOPNM"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5604 $as_echo "$PNGTOPNM" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 if test "$PNGTOPNM" = ""; then
5612 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5614 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5615 set dummy ppmtoilbm; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$PPMTOILBM"; then
5622 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5642 if test -n "$PPMTOILBM"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5644 $as_echo "$PPMTOILBM" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 if test "$PPMTOILBM" = ""; then
5652 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5654 # Extract the first word of "sed", so it can be a program name with args.
5655 set dummy sed; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_SED+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$SED"; then
5662 ac_cv_prog_SED="$SED" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_SED="sed "
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5675 done
5676 done
5677 IFS=$as_save_IFS
5681 SED=$ac_cv_prog_SED
5682 if test -n "$SED"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5684 $as_echo "$SED" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 if test "$SED" = ""; then
5692 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5694 # Extract the first word of "chmod", so it can be a program name with args.
5695 set dummy chmod; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_CHMOD+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$CHMOD"; then
5702 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_CHMOD="chmod "
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 CHMOD=$ac_cv_prog_CHMOD
5722 if test -n "$CHMOD"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5724 $as_echo "$CHMOD" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5731 if test "$CHMOD" = ""; then
5732 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5734 # Extract the first word of "patch", so it can be a program name with args.
5735 set dummy patch; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_PATCH+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$PATCH"; then
5742 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_PATCH="patch "
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5755 done
5756 done
5757 IFS=$as_save_IFS
5761 PATCH=$ac_cv_prog_PATCH
5762 if test -n "$PATCH"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5764 $as_echo "$PATCH" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5771 if test "$PATCH" = ""; then
5772 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5781 if test -n "$PYTHON"; then
5782 # If the user set $PYTHON, use it and don't search something else.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5784 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5785 prog="import sys
5786 # split strings by '.' and convert to numeric. Append some zeros
5787 # because we need at least 4 digits for the hex conversion.
5788 # map returns an iterator in Python 3.0 and a list in 2.x
5789 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5790 minverhex = 0
5791 # xrange is not present in Python 3.0 and range returns an iterator
5792 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5793 sys.exit(sys.hexversion < minverhex)"
5794 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5795 ($PYTHON -c "$prog") >&5 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; then :
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800 $as_echo "yes" >&6; }
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5806 am_display_PYTHON=$PYTHON
5807 else
5808 # Otherwise, try each interpreter until we find one that satisfies
5809 # VERSION.
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5811 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5812 if ${am_cv_pathless_PYTHON+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5816 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5817 test "$am_cv_pathless_PYTHON" = none && break
5818 prog="import sys
5819 # split strings by '.' and convert to numeric. Append some zeros
5820 # because we need at least 4 digits for the hex conversion.
5821 # map returns an iterator in Python 3.0 and a list in 2.x
5822 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5823 minverhex = 0
5824 # xrange is not present in Python 3.0 and range returns an iterator
5825 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5826 sys.exit(sys.hexversion < minverhex)"
5827 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5828 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; then :
5832 break
5834 done
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5837 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5838 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5839 if test "$am_cv_pathless_PYTHON" = none; then
5840 PYTHON=:
5841 else
5842 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5843 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_path_PYTHON+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 case $PYTHON in
5850 [\\/]* | ?:[\\/]*)
5851 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5867 IFS=$as_save_IFS
5870 esac
5872 PYTHON=$ac_cv_path_PYTHON
5873 if test -n "$PYTHON"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5875 $as_echo "$PYTHON" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5883 am_display_PYTHON=$am_cv_pathless_PYTHON
5887 if test "$PYTHON" = :; then
5888 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5889 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5893 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5894 if ${am_cv_python_version+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5900 $as_echo "$am_cv_python_version" >&6; }
5901 PYTHON_VERSION=$am_cv_python_version
5905 PYTHON_PREFIX='${prefix}'
5907 PYTHON_EXEC_PREFIX='${exec_prefix}'
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5912 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5913 if ${am_cv_python_platform+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5919 $as_echo "$am_cv_python_platform" >&6; }
5920 PYTHON_PLATFORM=$am_cv_python_platform
5923 # Just factor out some code duplication.
5924 am_python_setup_sysconfig="\
5925 import sys
5926 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5927 # with python 3.x. See automake bug#10227.
5928 try:
5929 import sysconfig
5930 except ImportError:
5931 can_use_sysconfig = 0
5932 else:
5933 can_use_sysconfig = 1
5934 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5935 # <https://github.com/pypa/virtualenv/issues/118>
5936 try:
5937 from platform import python_implementation
5938 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5939 can_use_sysconfig = 0
5940 except ImportError:
5941 pass"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5945 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5946 if ${am_cv_python_pythondir+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test "x$prefix" = xNONE
5950 then
5951 am_py_prefix=$ac_default_prefix
5952 else
5953 am_py_prefix=$prefix
5955 am_cv_python_pythondir=`$PYTHON -c "
5956 $am_python_setup_sysconfig
5957 if can_use_sysconfig:
5958 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5959 else:
5960 from distutils import sysconfig
5961 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5962 sys.stdout.write(sitedir)"`
5963 case $am_cv_python_pythondir in
5964 $am_py_prefix*)
5965 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5966 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5969 case $am_py_prefix in
5970 /usr|/System*) ;;
5972 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5974 esac
5976 esac
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5980 $as_echo "$am_cv_python_pythondir" >&6; }
5981 pythondir=$am_cv_python_pythondir
5985 pkgpythondir=\${pythondir}/$PACKAGE
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5989 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5990 if ${am_cv_python_pyexecdir+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if test "x$exec_prefix" = xNONE
5994 then
5995 am_py_exec_prefix=$am_py_prefix
5996 else
5997 am_py_exec_prefix=$exec_prefix
5999 am_cv_python_pyexecdir=`$PYTHON -c "
6000 $am_python_setup_sysconfig
6001 if can_use_sysconfig:
6002 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6003 else:
6004 from distutils import sysconfig
6005 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6006 sys.stdout.write(sitedir)"`
6007 case $am_cv_python_pyexecdir in
6008 $am_py_exec_prefix*)
6009 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6010 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6013 case $am_py_exec_prefix in
6014 /usr|/System*) ;;
6016 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6018 esac
6020 esac
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6024 $as_echo "$am_cv_python_pyexecdir" >&6; }
6025 pyexecdir=$am_cv_python_pyexecdir
6029 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6039 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6040 if ${ac_cv_lib_png_png_read_png+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 ac_check_lib_save_LIBS=$LIBS
6044 LIBS="-lpng $LIBS"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6048 /* Override any GCC internal prototype to avoid an error.
6049 Use char because int might match the return type of a GCC
6050 builtin and then its argument prototype would still apply. */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 char png_read_png ();
6056 main ()
6058 return png_read_png ();
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 ac_cv_lib_png_png_read_png=yes
6065 else
6066 ac_cv_lib_png_png_read_png=no
6068 rm -f core conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6073 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6074 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6075 cat >>confdefs.h <<_ACEOF
6076 #define HAVE_LIBPNG 1
6077 _ACEOF
6079 LIBS="-lpng $LIBS"
6083 if test "$ac_cv_lib_png_png_read_png" = ""; then
6084 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6087 FOR=for
6089 IF=if
6091 TEST=test
6093 CMP=cmp
6097 # Check for some includes for the X11 HIDD and the kernel
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6101 if ${ac_cv_path_GREP+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -z "$GREP"; then
6105 ac_path_GREP_found=false
6106 # Loop through the user's path and test for each of PROGNAME-LIST
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_prog in grep ggrep; do
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6115 as_fn_executable_p "$ac_path_GREP" || continue
6116 # Check for GNU ac_path_GREP and select it if it is found.
6117 # Check for GNU $ac_path_GREP
6118 case `"$ac_path_GREP" --version 2>&1` in
6119 *GNU*)
6120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6122 ac_count=0
6123 $as_echo_n 0123456789 >"conftest.in"
6124 while :
6126 cat "conftest.in" "conftest.in" >"conftest.tmp"
6127 mv "conftest.tmp" "conftest.in"
6128 cp "conftest.in" "conftest.nl"
6129 $as_echo 'GREP' >> "conftest.nl"
6130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6132 as_fn_arith $ac_count + 1 && ac_count=$as_val
6133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6134 # Best one so far, save it but keep looking for a better one
6135 ac_cv_path_GREP="$ac_path_GREP"
6136 ac_path_GREP_max=$ac_count
6138 # 10*(2^10) chars as input seems more than enough
6139 test $ac_count -gt 10 && break
6140 done
6141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6142 esac
6144 $ac_path_GREP_found && break 3
6145 done
6146 done
6147 done
6148 IFS=$as_save_IFS
6149 if test -z "$ac_cv_path_GREP"; then
6150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6152 else
6153 ac_cv_path_GREP=$GREP
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6158 $as_echo "$ac_cv_path_GREP" >&6; }
6159 GREP="$ac_cv_path_GREP"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6163 $as_echo_n "checking for egrep... " >&6; }
6164 if ${ac_cv_path_EGREP+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6168 then ac_cv_path_EGREP="$GREP -E"
6169 else
6170 if test -z "$EGREP"; then
6171 ac_path_EGREP_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in egrep; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6181 as_fn_executable_p "$ac_path_EGREP" || continue
6182 # Check for GNU ac_path_EGREP and select it if it is found.
6183 # Check for GNU $ac_path_EGREP
6184 case `"$ac_path_EGREP" --version 2>&1` in
6185 *GNU*)
6186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6188 ac_count=0
6189 $as_echo_n 0123456789 >"conftest.in"
6190 while :
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo 'EGREP' >> "conftest.nl"
6196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_EGREP="$ac_path_EGREP"
6202 ac_path_EGREP_max=$ac_count
6204 # 10*(2^10) chars as input seems more than enough
6205 test $ac_count -gt 10 && break
6206 done
6207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6208 esac
6210 $ac_path_EGREP_found && break 3
6211 done
6212 done
6213 done
6214 IFS=$as_save_IFS
6215 if test -z "$ac_cv_path_EGREP"; then
6216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 else
6219 ac_cv_path_EGREP=$EGREP
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6225 $as_echo "$ac_cv_path_EGREP" >&6; }
6226 EGREP="$ac_cv_path_EGREP"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6230 $as_echo_n "checking for ANSI C header files... " >&6; }
6231 if ${ac_cv_header_stdc+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <stdlib.h>
6237 #include <stdarg.h>
6238 #include <string.h>
6239 #include <float.h>
6242 main ()
6246 return 0;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 ac_cv_header_stdc=yes
6251 else
6252 ac_cv_header_stdc=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test $ac_cv_header_stdc = yes; then
6257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <string.h>
6262 _ACEOF
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "memchr" >/dev/null 2>&1; then :
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f conftest*
6273 if test $ac_cv_header_stdc = yes; then
6274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <stdlib.h>
6279 _ACEOF
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "free" >/dev/null 2>&1; then :
6283 else
6284 ac_cv_header_stdc=no
6286 rm -f conftest*
6290 if test $ac_cv_header_stdc = yes; then
6291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6292 if test "$cross_compiling" = yes; then :
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 #include <ctype.h>
6298 #include <stdlib.h>
6299 #if ((' ' & 0x0FF) == 0x020)
6300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6302 #else
6303 # define ISLOWER(c) \
6304 (('a' <= (c) && (c) <= 'i') \
6305 || ('j' <= (c) && (c) <= 'r') \
6306 || ('s' <= (c) && (c) <= 'z'))
6307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6308 #endif
6310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6312 main ()
6314 int i;
6315 for (i = 0; i < 256; i++)
6316 if (XOR (islower (i), ISLOWER (i))
6317 || toupper (i) != TOUPPER (i))
6318 return 2;
6319 return 0;
6321 _ACEOF
6322 if ac_fn_c_try_run "$LINENO"; then :
6324 else
6325 ac_cv_header_stdc=no
6327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6328 conftest.$ac_objext conftest.beam conftest.$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6334 $as_echo "$ac_cv_header_stdc" >&6; }
6335 if test $ac_cv_header_stdc = yes; then
6337 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6343 inttypes.h stdint.h unistd.h
6344 do :
6345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6346 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6349 cat >>confdefs.h <<_ACEOF
6350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 _ACEOF
6355 done
6358 for ac_header in sys/ipc.h sys/shm.h \
6359 sys/mmap.h sys/mman.h sysexits.h \
6360 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6362 do :
6363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6366 cat >>confdefs.h <<_ACEOF
6367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6368 _ACEOF
6372 done
6375 for ac_header in sys/mount.h
6376 do :
6377 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6379 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6380 cat >>confdefs.h <<_ACEOF
6381 #define HAVE_SYS_MOUNT_H 1
6382 _ACEOF
6386 done
6389 ac_header_dirent=no
6390 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6391 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6393 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6394 if eval \${$as_ac_Header+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #include <sys/types.h>
6400 #include <$ac_hdr>
6403 main ()
6405 if ((DIR *) 0)
6406 return 0;
6408 return 0;
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412 eval "$as_ac_Header=yes"
6413 else
6414 eval "$as_ac_Header=no"
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 eval ac_res=\$$as_ac_Header
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6420 $as_echo "$ac_res" >&6; }
6421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6424 _ACEOF
6426 ac_header_dirent=$ac_hdr; break
6429 done
6430 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6431 if test $ac_header_dirent = dirent.h; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6433 $as_echo_n "checking for library containing opendir... " >&6; }
6434 if ${ac_cv_search_opendir+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 ac_func_search_save_LIBS=$LIBS
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6441 /* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 char opendir ();
6449 main ()
6451 return opendir ();
6453 return 0;
6455 _ACEOF
6456 for ac_lib in '' dir; do
6457 if test -z "$ac_lib"; then
6458 ac_res="none required"
6459 else
6460 ac_res=-l$ac_lib
6461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6463 if ac_fn_c_try_link "$LINENO"; then :
6464 ac_cv_search_opendir=$ac_res
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext
6468 if ${ac_cv_search_opendir+:} false; then :
6469 break
6471 done
6472 if ${ac_cv_search_opendir+:} false; then :
6474 else
6475 ac_cv_search_opendir=no
6477 rm conftest.$ac_ext
6478 LIBS=$ac_func_search_save_LIBS
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6481 $as_echo "$ac_cv_search_opendir" >&6; }
6482 ac_res=$ac_cv_search_opendir
6483 if test "$ac_res" != no; then :
6484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6490 $as_echo_n "checking for library containing opendir... " >&6; }
6491 if ${ac_cv_search_opendir+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 ac_func_search_save_LIBS=$LIBS
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6498 /* Override any GCC internal prototype to avoid an error.
6499 Use char because int might match the return type of a GCC
6500 builtin and then its argument prototype would still apply. */
6501 #ifdef __cplusplus
6502 extern "C"
6503 #endif
6504 char opendir ();
6506 main ()
6508 return opendir ();
6510 return 0;
6512 _ACEOF
6513 for ac_lib in '' x; do
6514 if test -z "$ac_lib"; then
6515 ac_res="none required"
6516 else
6517 ac_res=-l$ac_lib
6518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6520 if ac_fn_c_try_link "$LINENO"; then :
6521 ac_cv_search_opendir=$ac_res
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext
6525 if ${ac_cv_search_opendir+:} false; then :
6526 break
6528 done
6529 if ${ac_cv_search_opendir+:} false; then :
6531 else
6532 ac_cv_search_opendir=no
6534 rm conftest.$ac_ext
6535 LIBS=$ac_func_search_save_LIBS
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6538 $as_echo "$ac_cv_search_opendir" >&6; }
6539 ac_res=$ac_cv_search_opendir
6540 if test "$ac_res" != no; then :
6541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6548 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6549 if ${ac_cv_header_stat_broken+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <sys/stat.h>
6557 #if defined S_ISBLK && defined S_IFDIR
6558 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6559 #endif
6561 #if defined S_ISBLK && defined S_IFCHR
6562 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6563 #endif
6565 #if defined S_ISLNK && defined S_IFREG
6566 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6567 #endif
6569 #if defined S_ISSOCK && defined S_IFREG
6570 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6571 #endif
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 ac_cv_header_stat_broken=no
6576 else
6577 ac_cv_header_stat_broken=yes
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6582 $as_echo "$ac_cv_header_stat_broken" >&6; }
6583 if test $ac_cv_header_stat_broken = yes; then
6585 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6590 $as_echo_n "checking for ANSI C header files... " >&6; }
6591 if ${ac_cv_header_stdc+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 #include <stdlib.h>
6597 #include <stdarg.h>
6598 #include <string.h>
6599 #include <float.h>
6602 main ()
6606 return 0;
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610 ac_cv_header_stdc=yes
6611 else
6612 ac_cv_header_stdc=no
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test $ac_cv_header_stdc = yes; then
6617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <string.h>
6622 _ACEOF
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 $EGREP "memchr" >/dev/null 2>&1; then :
6626 else
6627 ac_cv_header_stdc=no
6629 rm -f conftest*
6633 if test $ac_cv_header_stdc = yes; then
6634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <stdlib.h>
6639 _ACEOF
6640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "free" >/dev/null 2>&1; then :
6643 else
6644 ac_cv_header_stdc=no
6646 rm -f conftest*
6650 if test $ac_cv_header_stdc = yes; then
6651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6652 if test "$cross_compiling" = yes; then :
6654 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <ctype.h>
6658 #include <stdlib.h>
6659 #if ((' ' & 0x0FF) == 0x020)
6660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6662 #else
6663 # define ISLOWER(c) \
6664 (('a' <= (c) && (c) <= 'i') \
6665 || ('j' <= (c) && (c) <= 'r') \
6666 || ('s' <= (c) && (c) <= 'z'))
6667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6668 #endif
6670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6672 main ()
6674 int i;
6675 for (i = 0; i < 256; i++)
6676 if (XOR (islower (i), ISLOWER (i))
6677 || toupper (i) != TOUPPER (i))
6678 return 2;
6679 return 0;
6681 _ACEOF
6682 if ac_fn_c_try_run "$LINENO"; then :
6684 else
6685 ac_cv_header_stdc=no
6687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6688 conftest.$ac_objext conftest.beam conftest.$ac_ext
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6694 $as_echo "$ac_cv_header_stdc" >&6; }
6695 if test $ac_cv_header_stdc = yes; then
6697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6702 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6703 if ${ac_cv_header_sys_wait_h+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <sys/types.h>
6709 #include <sys/wait.h>
6710 #ifndef WEXITSTATUS
6711 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6712 #endif
6713 #ifndef WIFEXITED
6714 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6715 #endif
6718 main ()
6720 int s;
6721 wait (&s);
6722 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6724 return 0;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 ac_cv_header_sys_wait_h=yes
6729 else
6730 ac_cv_header_sys_wait_h=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6735 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6736 if test $ac_cv_header_sys_wait_h = yes; then
6738 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6743 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6744 if ${ac_cv_header_time+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <sys/types.h>
6750 #include <sys/time.h>
6751 #include <time.h>
6754 main ()
6756 if ((struct tm *) 0)
6757 return 0;
6759 return 0;
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_header_time=yes
6764 else
6765 ac_cv_header_time=no
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6770 $as_echo "$ac_cv_header_time" >&6; }
6771 if test $ac_cv_header_time = yes; then
6773 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6777 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6778 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6782 _ACEOF
6785 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6790 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6791 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6795 _ACEOF
6798 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6800 else
6801 case " $LIBOBJS " in
6802 *" fileblocks.$ac_objext "* ) ;;
6803 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6805 esac
6810 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6811 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6813 cat >>confdefs.h <<_ACEOF
6814 #define HAVE_STRUCT_STAT_ST_RDEV 1
6815 _ACEOF
6818 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6824 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6825 if ${ac_cv_struct_tm+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 #include <time.h>
6834 main ()
6836 struct tm tm;
6837 int *p = &tm.tm_sec;
6838 return !p;
6840 return 0;
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"; then :
6844 ac_cv_struct_tm=time.h
6845 else
6846 ac_cv_struct_tm=sys/time.h
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6851 $as_echo "$ac_cv_struct_tm" >&6; }
6852 if test $ac_cv_struct_tm = sys/time.h; then
6854 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6858 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6859 #include <$ac_cv_struct_tm>
6862 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_STRUCT_TM_TM_ZONE 1
6866 _ACEOF
6871 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6873 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6875 else
6876 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6878 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6879 ac_have_decl=1
6880 else
6881 ac_have_decl=0
6884 cat >>confdefs.h <<_ACEOF
6885 #define HAVE_DECL_TZNAME $ac_have_decl
6886 _ACEOF
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6889 $as_echo_n "checking for tzname... " >&6; }
6890 if ${ac_cv_var_tzname+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <time.h>
6896 #if !HAVE_DECL_TZNAME
6897 extern char *tzname[];
6898 #endif
6901 main ()
6903 return tzname[0][0];
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 ac_cv_var_tzname=yes
6910 else
6911 ac_cv_var_tzname=no
6913 rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6917 $as_echo "$ac_cv_var_tzname" >&6; }
6918 if test $ac_cv_var_tzname = yes; then
6920 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6925 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6926 if test "x$ac_cv_type_off_t" = xyes; then :
6928 else
6930 cat >>confdefs.h <<_ACEOF
6931 #define off_t long int
6932 _ACEOF
6936 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6937 if test "x$ac_cv_type_pid_t" = xyes; then :
6939 else
6941 cat >>confdefs.h <<_ACEOF
6942 #define pid_t int
6943 _ACEOF
6947 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6948 if test "x$ac_cv_type_size_t" = xyes; then :
6950 else
6952 cat >>confdefs.h <<_ACEOF
6953 #define size_t unsigned int
6954 _ACEOF
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6959 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6960 if ${ac_cv_type_uid_t+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6967 _ACEOF
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969 $EGREP "uid_t" >/dev/null 2>&1; then :
6970 ac_cv_type_uid_t=yes
6971 else
6972 ac_cv_type_uid_t=no
6974 rm -f conftest*
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6978 $as_echo "$ac_cv_type_uid_t" >&6; }
6979 if test $ac_cv_type_uid_t = no; then
6981 $as_echo "#define uid_t int" >>confdefs.h
6984 $as_echo "#define gid_t int" >>confdefs.h
6989 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6990 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6994 _ACEOF
7000 # Look for some functions
7001 for ac_func in getpagesize kqueue statfs statvfs \
7002 clone kse_create rfork_thread thr_create sa_register \
7003 getcontext makecontext setcontext sigaltstack swapcontext
7004 do :
7005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7010 _ACEOF
7013 done
7019 for ac_header in $ac_header_list
7020 do :
7021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7025 cat >>confdefs.h <<_ACEOF
7026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027 _ACEOF
7031 done
7040 for ac_func in getpagesize
7041 do :
7042 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7043 if test "x$ac_cv_func_getpagesize" = xyes; then :
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_GETPAGESIZE 1
7046 _ACEOF
7049 done
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7052 $as_echo_n "checking for working mmap... " >&6; }
7053 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test "$cross_compiling" = yes; then :
7057 ac_cv_func_mmap_fixed_mapped=no
7058 else
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 $ac_includes_default
7062 /* malloc might have been renamed as rpl_malloc. */
7063 #undef malloc
7065 /* Thanks to Mike Haertel and Jim Avera for this test.
7066 Here is a matrix of mmap possibilities:
7067 mmap private not fixed
7068 mmap private fixed at somewhere currently unmapped
7069 mmap private fixed at somewhere already mapped
7070 mmap shared not fixed
7071 mmap shared fixed at somewhere currently unmapped
7072 mmap shared fixed at somewhere already mapped
7073 For private mappings, we should verify that changes cannot be read()
7074 back from the file, nor mmap's back from the file at a different
7075 address. (There have been systems where private was not correctly
7076 implemented like the infamous i386 svr4.0, and systems where the
7077 VM page cache was not coherent with the file system buffer cache
7078 like early versions of FreeBSD and possibly contemporary NetBSD.)
7079 For shared mappings, we should conversely verify that changes get
7080 propagated back to all the places they're supposed to be.
7082 Grep wants private fixed already mapped.
7083 The main things grep needs to know about mmap are:
7084 * does it exist and is it safe to write into the mmap'd area
7085 * how to use it (BSD variants) */
7087 #include <fcntl.h>
7088 #include <sys/mman.h>
7090 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7091 char *malloc ();
7092 #endif
7094 /* This mess was copied from the GNU getpagesize.h. */
7095 #ifndef HAVE_GETPAGESIZE
7096 # ifdef _SC_PAGESIZE
7097 # define getpagesize() sysconf(_SC_PAGESIZE)
7098 # else /* no _SC_PAGESIZE */
7099 # ifdef HAVE_SYS_PARAM_H
7100 # include <sys/param.h>
7101 # ifdef EXEC_PAGESIZE
7102 # define getpagesize() EXEC_PAGESIZE
7103 # else /* no EXEC_PAGESIZE */
7104 # ifdef NBPG
7105 # define getpagesize() NBPG * CLSIZE
7106 # ifndef CLSIZE
7107 # define CLSIZE 1
7108 # endif /* no CLSIZE */
7109 # else /* no NBPG */
7110 # ifdef NBPC
7111 # define getpagesize() NBPC
7112 # else /* no NBPC */
7113 # ifdef PAGESIZE
7114 # define getpagesize() PAGESIZE
7115 # endif /* PAGESIZE */
7116 # endif /* no NBPC */
7117 # endif /* no NBPG */
7118 # endif /* no EXEC_PAGESIZE */
7119 # else /* no HAVE_SYS_PARAM_H */
7120 # define getpagesize() 8192 /* punt totally */
7121 # endif /* no HAVE_SYS_PARAM_H */
7122 # endif /* no _SC_PAGESIZE */
7124 #endif /* no HAVE_GETPAGESIZE */
7127 main ()
7129 char *data, *data2, *data3;
7130 const char *cdata2;
7131 int i, pagesize;
7132 int fd, fd2;
7134 pagesize = getpagesize ();
7136 /* First, make a file with some known garbage in it. */
7137 data = (char *) malloc (pagesize);
7138 if (!data)
7139 return 1;
7140 for (i = 0; i < pagesize; ++i)
7141 *(data + i) = rand ();
7142 umask (0);
7143 fd = creat ("conftest.mmap", 0600);
7144 if (fd < 0)
7145 return 2;
7146 if (write (fd, data, pagesize) != pagesize)
7147 return 3;
7148 close (fd);
7150 /* Next, check that the tail of a page is zero-filled. File must have
7151 non-zero length, otherwise we risk SIGBUS for entire page. */
7152 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7153 if (fd2 < 0)
7154 return 4;
7155 cdata2 = "";
7156 if (write (fd2, cdata2, 1) != 1)
7157 return 5;
7158 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7159 if (data2 == MAP_FAILED)
7160 return 6;
7161 for (i = 0; i < pagesize; ++i)
7162 if (*(data2 + i))
7163 return 7;
7164 close (fd2);
7165 if (munmap (data2, pagesize))
7166 return 8;
7168 /* Next, try to mmap the file at a fixed address which already has
7169 something else allocated at it. If we can, also make sure that
7170 we see the same garbage. */
7171 fd = open ("conftest.mmap", O_RDWR);
7172 if (fd < 0)
7173 return 9;
7174 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7175 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7176 return 10;
7177 for (i = 0; i < pagesize; ++i)
7178 if (*(data + i) != *(data2 + i))
7179 return 11;
7181 /* Finally, make sure that changes to the mapped area do not
7182 percolate back to the file as seen by read(). (This is a bug on
7183 some variants of i386 svr4.0.) */
7184 for (i = 0; i < pagesize; ++i)
7185 *(data2 + i) = *(data2 + i) + 1;
7186 data3 = (char *) malloc (pagesize);
7187 if (!data3)
7188 return 12;
7189 if (read (fd, data3, pagesize) != pagesize)
7190 return 13;
7191 for (i = 0; i < pagesize; ++i)
7192 if (*(data + i) != *(data3 + i))
7193 return 14;
7194 close (fd);
7195 return 0;
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7199 ac_cv_func_mmap_fixed_mapped=yes
7200 else
7201 ac_cv_func_mmap_fixed_mapped=no
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7209 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7212 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7215 rm -f conftest.mmap conftest.txt
7220 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7221 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7222 aros_config_ldflags=""
7224 aros_shared_default=yes
7226 aros_shared_cflags="-fPIC"
7227 aros_shared_aflags=""
7228 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7229 aros_kernel_ldflags="-Wl,-rpath,./lib"
7231 aros_kernel_ar_flags="cr"
7232 aros_target_ar_flags="cr"
7233 aros_target_nm_flags="-C -ul"
7234 aros_target_strip_flags="--strip-unneeded -R.comment"
7236 aros_compiler_libs=
7237 aros_arch_libs=
7239 aros_target_genmap="-Wl,-Map -Xlinker"
7241 # Native flavour stuff
7242 aros_serial_debug="0"
7244 # Palm native flavour stuff
7245 aros_palm_debug_hack="0"
7247 # Unix flavour stuff
7248 aros_nesting_supervisor="0"
7250 # Collect-aros stuff: "-ius" to ignore undefined symbols
7251 ignore_undefined_symbols=""
7253 # Check for X11 by default
7254 need_x11="auto"
7256 #-----------------------------------------------------------------------------
7259 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7260 # it switched on by default, and we use the host compiler, so it compiles AROS
7261 # code with this enabled resulting in link failures as we don't have support
7262 # for it.
7264 # We use two methods to disable it. For the host compiler (used to compile
7265 # some hosted modules), we test to see if the compiler supports stack
7266 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7267 # work on all platforms.
7269 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7270 # (this is done unconditionally, as it should have no effect on compilers
7271 # without the stack protection feature). This may be specific to the way that
7272 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7273 # strong enough to disable it in a generic way though, so we'll live with it
7274 # until another vendor ships GCC with it enabled in a different way, and deal
7275 # with it then.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7279 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7280 save_cflags="$CFLAGS"
7281 CFLAGS="$CFLAGS -fno-stack-protector"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7286 main ()
7290 return 0;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 use_no_stack_protector="yes"
7295 else
7296 use_no_stack_protector="no"
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7300 $as_echo "$use_no_stack_protector" >&6; }
7301 if test "x-$use_no_stack_protector" = "x-yes" ; then
7302 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7304 CFLAGS="$save_cflags"
7306 #-----------------------------------------------------------------------------
7308 # Disable pointer-signedness warnings if the compiler recognises the option
7309 # (this only works for the host compiler at the moment)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7312 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7313 save_cflags="$CFLAGS"
7314 CFLAGS="$CFLAGS -Wno-pointer-sign"
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7319 main ()
7323 return 0;
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 use_no_sign_warning="yes"
7328 else
7329 use_no_sign_warning="no"
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7333 $as_echo "$use_no_sign_warning" >&6; }
7334 if test "x-$use_no_sign_warning" = "x-yes" ; then
7335 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7337 CFLAGS="$save_cflags"
7339 #-----------------------------------------------------------------------------
7341 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7344 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7345 save_cflags="$CFLAGS"
7346 CFLAGS="$CFLAGS -fgnu89-inline"
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7351 main ()
7355 return 0;
7357 _ACEOF
7358 if ac_fn_c_try_compile "$LINENO"; then :
7359 use_gnu89_inline="yes"
7360 else
7361 use_gnu89_inline="no"
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7365 $as_echo "$use_gnu89_inline" >&6; }
7366 if test "x-$use_gnu89_inline" = "x-yes" ; then
7367 gnu89_inline="-fgnu89-inline"
7369 CFLAGS="$save_cflags"
7371 #-----------------------------------------------------------------------------
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7374 $as_echo_n "checking for type of build... " >&6; }
7375 # Check whether --enable-build_type was given.
7376 if test "${enable_build_type+set}" = set; then :
7377 enableval=$enable_build_type; build_type=$enableval
7378 else
7379 build_type="personal"
7383 if test "$build_type" = "nightly"; then
7384 build_type_string="NIGHTLY"
7385 elif test "$build_type" = "snapshot"; then
7386 build_type_string="SNAPSHOT"
7387 elif test "$build_type" = "milestone"; then
7388 build_type_string="MILESTONE"
7389 elif test "$build_type" = "release"; then
7390 build_type_string="RELEASE"
7391 else
7392 build_type_string="PERSONAL"
7393 build_type="personal"
7396 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7399 $as_echo "$build_type" >&6; }
7401 #-----------------------------------------------------------------------------
7402 all_debug_types="messages stack modules mungwall symbols"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7405 $as_echo_n "checking which debug types to enable... " >&6; }
7406 # Check whether --enable-debug was given.
7407 if test "${enable_debug+set}" = set; then :
7408 enableval=$enable_debug; debug="$enableval"
7409 else
7410 debug=""
7414 if test "$debug" = "" -o "$debug" = "no"; then
7415 debug="none"
7416 elif test "$debug" = "yes"; then
7417 debug="all"
7420 if test "$debug" = "all" ; then
7421 debug="messages stack modules symbols"
7422 for d in $all_debug_types; do
7423 export aros_${d}_debug="1"
7424 done
7425 else
7426 for d in $all_debug_types; do
7427 export aros_${d}_debug="0"
7428 done
7431 if test "$debug" != "none"; then
7432 debug=`echo $debug | sed s/,/\ /g`
7433 for d in $debug; do
7434 found="0"
7435 for d2 in $all_debug_types; do
7436 if test "$d2" = "$d"; then
7437 found="1"
7438 break
7440 done
7441 if test "$found" = "0"; then
7442 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7444 export aros_${d}_debug="1"
7445 done
7446 aros_debug="yes"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7449 $as_echo "$debug" >&6; }
7451 if test "$aros_messages_debug" = "1"; then
7452 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7453 else
7454 aros_messages_debug=""
7456 if test "$aros_symbols_debug" = "1"; then
7457 aros_symbols_debug="-g"
7458 else
7459 aros_symbols_debug=""
7462 # These are the flags to pass when compiling debugged programs
7463 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7464 aros_debug_aflags=""
7465 aros_debug_ldflags="$aros_symbols_debug"
7467 #-----------------------------------------------------------------------------
7468 # Checking for distcc and ccache.
7470 # Always apply the transforms in this particular order. Basically you should
7471 # always run 'ccache distcc compiler' in that order for the best performance.
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7474 $as_echo_n "checking whether to enable distcc... " >&6; }
7475 # Check whether --enable-distcc was given.
7476 if test "${enable_distcc+set}" = set; then :
7477 enableval=$enable_distcc; distcc="$enableval"
7478 else
7479 distcc="no"
7482 if test "$distcc" != "" -a "$distcc" != "no"; then
7483 # AC_CHECK_PROG will print out the result in this case
7484 # Extract the first word of "distcc", so it can be a program name with args.
7485 set dummy distcc; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_path_DISTCC+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 case $DISTCC in
7492 [\\/]* | ?:[\\/]*)
7493 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7507 done
7508 done
7509 IFS=$as_save_IFS
7511 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7513 esac
7515 DISTCC=$ac_cv_path_DISTCC
7516 if test -n "$DISTCC"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7518 $as_echo "$DISTCC" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7531 $as_echo_n "checking whether to enable ccache... " >&6; }
7532 # Check whether --enable-ccache was given.
7533 if test "${enable_ccache+set}" = set; then :
7534 enableval=$enable_ccache; ccache="$enableval"
7535 else
7536 ccache="no"
7539 if test "$ccache" != "" -a "$ccache" != "no"; then
7540 # AC_CHECK_PROG will print out the result in this case
7541 # Extract the first word of "ccache", so it can be a program name with args.
7542 set dummy ccache; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_CCACHE+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$CCACHE"; then
7549 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_CCACHE="ccache"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7564 IFS=$as_save_IFS
7568 CCACHE=$ac_cv_prog_CCACHE
7569 if test -n "$CCACHE"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7571 $as_echo "$CCACHE" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7583 #-----------------------------------------------------------------------------
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7585 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7587 # Check whether --with-kernel-gcc-version was given.
7588 if test "${with_kernel_gcc_version+set}" = set; then :
7589 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7590 else
7591 kernel_tool_version=""
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7595 $as_echo "$kernel_tool_version" >&6; }
7597 #-----------------------------------------------------------------------------
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7599 $as_echo_n "checking what optimization flags to use... " >&6; }
7601 # Check whether --with-optimization was given.
7602 if test "${with_optimization+set}" = set; then :
7603 withval=$with_optimization; optimization="$withval"
7604 else
7605 optimization="unknown"
7608 if test "$optimization" = "unknown"; then
7609 if test "$debug" != "none"; then
7610 optimization="-O0"
7611 else
7612 optimization="-O2"
7615 aros_optimization_cflags="$optimization"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7617 $as_echo "$optimization" >&6; }
7619 #-----------------------------------------------------------------------------
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7621 $as_echo_n "checking what paranoia flags to use... " >&6; }
7623 # Check whether --with-paranoia was given.
7624 if test "${with_paranoia+set}" = set; then :
7625 withval=$with_paranoia; paranoia_flags="$withval"
7626 else
7627 paranoia_flags="default"
7630 if test "$paranoia_flags" = "default"; then
7631 paranoia_flags=""
7632 else if test "$paranoia_flags" = "yes"; then
7633 paranoia_flags="-Wall -Werror"
7634 fi fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7636 $as_echo "$paranoia_flags" >&6; }
7637 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7639 #-----------------------------------------------------------------------------
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7641 $as_echo_n "checking what target variant to enable... " >&6; }
7642 # Check whether --enable-target_variant was given.
7643 if test "${enable_target_variant+set}" = set; then :
7644 enableval=$enable_target_variant; target_variant=$enableval
7645 else
7646 target_variant=""
7649 if test "$target_variant" = ""; then
7650 aros_target_variant=""
7651 aros_target_suffix=""
7652 enableval="none"
7653 else
7654 aros_target_variant="$target_variant"
7655 aros_target_suffix="-$target_variant"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7658 $as_echo "$enableval" >&6; }
7660 #-----------------------------------------------------------------------------
7661 # Target-specific defaults. You can override then on a per-target basis.
7663 # Bootloader name. Currently used by PC target.
7664 target_bootloader="none"
7666 #-----------------------------------------------------------------------------
7667 # Additional options for some specific targets
7669 case "$aros_target_variant" in
7670 ios)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7672 $as_echo_n "checking XCode path... " >&6; }
7674 # Check whether --with-xcode was given.
7675 if test "${with_xcode+set}" = set; then :
7676 withval=$with_xcode; aros_xcode_path="$withval"
7677 else
7678 aros_xcode_path="/Developer"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7682 $as_echo "$aros_xcode_path" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7685 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7687 # Check whether --with-sdk-version was given.
7688 if test "${with_sdk_version+set}" = set; then :
7689 withval=$with_sdk_version; aros_sdk_version="$withval"
7690 else
7691 aros_sdk_version="4.1"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7695 $as_echo "$aros_sdk_version" >&6; }
7699 "android")
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7701 $as_echo_n "checking Android SDK path... " >&6; }
7703 # Check whether --with-sdk was given.
7704 if test "${with_sdk+set}" = set; then :
7705 withval=$with_sdk; aros_android_sdk="$withval"
7706 else
7707 aros_android_sdk=$default_android_sdk
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7711 $as_echo "$aros_android_sdk" >&6; }
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7714 $as_echo_n "checking Android NDK path... " >&6; }
7716 # Check whether --with-ndk was given.
7717 if test "${with_ndk+set}" = set; then :
7718 withval=$with_ndk; aros_android_ndk="$withval"
7719 else
7720 aros_android_ndk="none"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7724 $as_echo "$aros_android_ndk" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7727 $as_echo_n "checking what Android SDK version to use... " >&6; }
7729 # Check whether --with-sdk-version was given.
7730 if test "${with_sdk_version+set}" = set; then :
7731 withval=$with_sdk_version; aros_sdk_version="$withval"
7732 else
7733 aros_sdk_version="12"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7737 $as_echo "$aros_sdk_version" >&6; }
7739 aros_android_level=android-$aros_sdk_version
7740 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7741 echo "Platform $aros_android_level is not installed in your SDK"
7742 echo "Use --with-sdk-version=<API level number> to select another platform version"
7743 echo "You can check what plaform versions are installed in your SDK"
7744 echo "by examining contents of $aros_android_sdk/platforms directory"
7745 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7748 export PATH="$aros_android_sdk/tools:$PATH"
7749 # Extract the first word of "$android_tool", so it can be a program name with args.
7750 set dummy $android_tool; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_path_android_tool+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 case $android_tool in
7757 [\\/]* | ?:[\\/]*)
7758 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7774 IFS=$as_save_IFS
7777 esac
7779 android_tool=$ac_cv_path_android_tool
7780 if test -n "$android_tool"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7782 $as_echo "$android_tool" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7789 if test "$android_tool" = ""; then
7790 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7793 if test "$aros_android_ndk" != "none"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7795 $as_echo_n "checking what Android NDK version to use... " >&6; }
7797 # Check whether --with-ndk-version was given.
7798 if test "${with_ndk_version+set}" = set; then :
7799 withval=$with_ndk_version; aros_ndk_version="$withval"
7800 else
7801 aros_ndk_version="9"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7805 $as_echo "$aros_ndk_version" >&6; }
7808 # Extract the first word of "ant", so it can be a program name with args.
7809 set dummy ant; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_path_ant+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 case $ant in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7831 done
7832 done
7833 IFS=$as_save_IFS
7836 esac
7838 ant=$ac_cv_path_ant
7839 if test -n "$ant"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7841 $as_echo "$ant" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 if test "$ant" = ""; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7850 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7854 $as_echo_n "checking Build debug or release apk... " >&6; }
7856 # Check whether --with-apk-version was given.
7857 if test "${with_apk_version+set}" = set; then :
7858 withval=$with_apk_version; aros_android_antapk=$withval
7859 else
7860 aros_android_antapk=release
7863 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7864 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7867 $as_echo "$aros_android_antapk" >&6; }
7869 if test "$host_os" = "mingw32"; then
7870 android_tool="cmd //c $android_tool"
7873 need_dlopen="no"
7876 esac
7878 #-----------------------------------------------------------------------------
7879 # External toolchains
7880 kernel_tool_prefix="none"
7881 aros_tool_prefix="none"
7882 elf_tool_prefix="${target_cpu}-elf-"
7884 # This is the target configuration switch.
7885 case "$target_os" in
7886 linux*)
7887 aros_target_arch="linux"
7888 aros_target_family="unix"
7889 case "$target_cpu" in
7890 *m68k*)
7891 aros_target_cpu="m68k"
7892 aros_object_format="m68kelf"
7893 aros_flavour="emulcompat"
7894 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7895 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7896 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7897 gcc_target_cpu="mc68000"
7899 *i?86*)
7900 aros_target_cpu="i386"
7901 aros_object_format="elf_i386"
7902 aros_flavour="emulation"
7903 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7904 aros_kernel_ldflags="-Wl,-melf_i386"
7905 aros_default_wbdepth=8
7906 gcc_target_cpu="i386"
7907 pci_hidd_target="hidd-pci-linux"
7908 android_tool_dir_prefix="x86"
7909 android_tool_prefix="i686-android-linux"
7910 android_ndk_arch="x86"
7912 *x86_64*)
7913 aros_target_cpu="x86_64"
7914 aros_object_format="elf_x86_64"
7915 aros_flavour="emulation"
7916 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7917 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7918 aros_default_wbdepth=8
7919 pci_hidd_target="hidd-pci-linux"
7921 *powerpc*)
7922 aros_target_cpu="ppc"
7923 aros_object_format="elf32ppc"
7924 aros_flavour="emulation"
7925 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7926 aros_default_wbdepth=8
7927 gcc_target_cpu="ppc"
7929 # TODO
7930 # Same as powerpc, but I need this for the nightly build to work again.
7931 # Actually, the nightly should be made working with powerpc target.
7932 # That just was too much work for the moment, another week or two.
7933 *ppc*)
7934 aros_target_cpu="ppc"
7935 aros_object_format="elf32ppc"
7936 aros_flavour="emulation"
7937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7938 aros_default_wbdepth=8
7939 gcc_target_cpu="ppc"
7941 *armhf*)
7942 aros_target_cpu="arm"
7943 target_cpu="arm"
7944 aros_object_format="armelf_aros"
7945 aros_flavour="emulation"
7946 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7947 gcc_target_cpu="arm"
7948 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7949 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7950 aros_arch_libs="-laeabi"
7951 gcc_default_float_abi="hard"
7952 android_tool_dir_prefix="arm-linux-androideabi"
7953 android_tool_prefix="arm-linux-androideabi"
7954 android_ndk_arch="arm"
7955 kernel_tool_prefix="arm-linux-gnueabihf-"
7957 *arm*)
7958 aros_target_cpu="arm"
7959 aros_object_format="armelf_aros"
7960 aros_flavour="emulation"
7961 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7962 gcc_target_cpu="arm"
7963 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7964 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7965 aros_arch_libs="-laeabi"
7966 android_tool_dir_prefix="arm-linux-androideabi"
7967 android_tool_prefix="arm-linux-androideabi"
7968 android_ndk_arch="arm"
7969 kernel_tool_prefix="arm-linux-gnueabi-"
7972 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7974 esac
7975 case "$aros_target_variant" in
7976 android)
7978 if test "$android_ndk_arch" = ""; then
7979 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7982 aros_default_wbwidth=320
7983 aros_default_wbheight=480
7984 if test "$aros_android_ndk" = "none"; then
7985 aros_kernel_cflags="-mandroid"
7986 aros_kernel_ldflags="-mandroid"
7987 CFLAGS="-mandroid"
7988 else
7989 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7990 kernel_tool_version=""
7991 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7992 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7993 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7994 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7995 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7997 need_x11=no
7998 unixgfx_hidd_target=kernel-hidd-androidgfx
7999 # Disable implicit PIC mode
8000 aros_target_cflags="$aros_target_cflags -fno-pic"
8001 kernel_tool_prefix="$android_tool_prefix-"
8003 esac
8007 aros_target_arch="pc"
8008 aros_shared_default="no"
8009 target_bootloader="grub2"
8010 case "$target_cpu" in
8011 *i?86*)
8012 aros_target_cpu="i386"
8015 if test "$aros_object_format" = "" ; then
8016 aros_object_format="elf_i386"
8018 aros_flavour="standalone"
8019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8020 aros_kernel_ldflags="-Wl,-melf_i386"
8021 aros_default_wbwidth=640
8022 aros_default_wbheight=480
8023 gcc_target_cpu="i386"
8025 *x86_64*)
8026 aros_target_cpu="x86_64"
8027 aros_serial_debug=1
8028 if test "$aros_object_format" = "" ; then
8029 aros_object_format="elf_x86_64"
8031 aros_flavour="standalone"
8032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8033 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8034 aros_kernel_ldflags=""
8035 aros_default_wbwidth=640
8036 aros_default_wbheight=480
8039 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8041 esac
8044 prep)
8045 aros_target_arch="prep"
8046 aros_shared_default="no"
8047 aros_target_cpu="ppc"
8048 aros_object_format="elf32ppc"
8049 aros_flavour="ppcnative"
8050 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8051 aros_kernel_ldflags=""
8052 aros_default_wbwidth=640
8053 aros_default_wbheight=480
8054 gcc_target_cpu="ppc"
8057 freebsd*)
8058 aros_target_arch="freebsd"
8059 aros_target_family="unix"
8060 aros_target_cpu="i386"
8061 aros_flavour="emulation"
8062 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8063 gcc_target_cpu="i386"
8065 aros_target_strip_flags="-x"
8068 darwin*)
8069 aros_target_arch="darwin"
8070 aros_target_family="unix"
8071 aros_flavour="emulation"
8072 case "$target_cpu" in
8073 *i?86*)
8074 aros_ios_platform="iPhoneSimulator"
8075 aros_target_cpu="i386"
8076 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8077 aros_kernel_ldflags=""
8078 aros_macosx_version="10.4"
8079 aros_default_wbdepth=8
8080 gcc_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_kernel_ar_flags="-cr"
8083 aros_target_strip_flags="-x"
8084 kernel_tool_flags="-m32"
8086 *x86_64*)
8087 aros_target_cpu="x86_64"
8088 aros_object_format="elf_x86_64"
8089 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8090 aros_macosx_version="10.6"
8091 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8092 aros_kernel_cflags="-m64"
8093 aros_kernel_ldflags="-m64"
8094 aros_target_cflags="-mcmodel=large"
8095 aros_default_wbdepth=8
8096 aros_kernel_ar="ar"
8097 aros_kernel_ar_flags="-cr"
8098 aros_kernel_ld="ld"
8099 aros_kernel_as="as"
8100 aros_kernel_ranlib="ranlib"
8101 aros_kernel_nm="nm"
8102 aros_kernel_strip="strip"
8103 kernel_tool_prefix="i686-apple-darwin10-"
8105 *ppc*)
8106 aros_target_cpu="ppc"
8107 aros_object_format="elf32ppc"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8109 aros_kernel_ldflags=""
8110 aros_macosx_version="10.0"
8111 aros_default_wbdepth=8
8112 gcc_target_cpu="ppc"
8113 aros_kernel_ar="ar"
8114 aros_kernel_ar_flags="-cr"
8115 aros_kernel_ld="ld -arch ppc"
8116 aros_kernel_as="as -arch ppc"
8117 aros_kernel_ranlib="ranlib -arch ppc"
8118 aros_kernel_nm="nm -arch ppc"
8119 aros_kernel_strip="strip -arch ppc"
8120 kernel_tool_prefix="powerpc-apple-darwin10-"
8122 *arm*)
8123 aros_ios_platform="iPhoneOS"
8124 aros_target_cpu="arm"
8125 aros_object_format="armelf_aros"
8126 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8127 aros_arch_libs="-laeabi"
8128 aros_default_wbdepth=8
8129 gcc_target_cpu="arm"
8130 aros_kernel_ar="ar"
8131 aros_kernel_ar_flags="-cr"
8132 aros_kernel_ld="ld -arch arm"
8133 aros_kernel_ranlib="ranlib -arch arm"
8134 kernel_tool_prefix="arm-apple-darwin10-"
8135 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8138 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8140 esac
8141 case "$aros_target_variant" in
8142 ios)
8143 aros_ios_version="3.0"
8144 aros_default_wbwidth=320
8145 aros_default_wbheight=480
8146 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8147 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8148 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8149 need_x11=no
8150 # This is here because it may depend on iOS or SDK version
8151 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8152 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8153 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8156 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8157 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8159 esac
8162 dragonfly*)
8163 aros_target_arch="dragonfly"
8164 aros_target_family="unix"
8165 aros_flavour="emulation"
8166 case "$target_cpu" in
8167 *i?86*)
8168 aros_target_cpu="i386"
8169 aros_object_format="elf_i386"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8172 *x86_64*)
8173 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8174 aros_target_cpu="x86_64"
8175 aros_object_format="elf_x86_64"
8176 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8179 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8181 esac
8184 netbsd*)
8185 aros_target_arch="netbsd"
8186 aros_target_family="unix"
8187 case "$target_cpu" in
8188 *m68k*)
8189 aros_target_cpu="m68k"
8190 aros_object_format="m68kelf"
8191 aros_flavour="emulcompat"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8193 gcc_target_cpu="mc68000"
8195 *i?86*)
8196 aros_target_cpu="i386"
8197 aros_object_format="elf_i386"
8198 aros_flavour="emulation"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8200 aros_default_wbdepth=8
8201 gcc_target_cpu="i386"
8204 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8206 esac
8207 aros_target_genmap="-Wl,-M -Xlinker >"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8212 openbsd*)
8213 aros_target_arch="openbsd"
8214 aros_target_family="unix"
8215 case "$target_cpu" in
8216 *i?86*)
8217 aros_target_cpu="i386"
8218 aros_object_format="elf_i386"
8219 aros_flavour="emulation"
8220 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8221 gcc_target_cpu="i386"
8224 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8226 esac
8227 aros_target_genmap="-Wl,-M -Xlinker >"
8228 aros_target_nm_flags="-u"
8229 aros_flavour="emulation"
8232 solaris*)
8233 aros_target_arch="solaris"
8234 aros_target_family="unix"
8235 case "$target_cpu" in
8236 *i?86*)
8237 aros_target_cpu="i386"
8238 aros_object_format="elf_i386"
8239 aros_flavour="emulation"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8241 aros_default_wbdepth=8
8242 gcc_target_cpu="i386"
8244 *sparc*)
8245 aros_target_cpu="sparc"
8246 aros_object_format="elf_sparc"
8247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8248 gcc_target_cpu="sparc"
8251 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8253 esac
8254 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8255 aros_flavour="emulation"
8258 morphos*)
8259 aros_target_arch="morphos"
8260 aros_shared_default="no"
8261 aros_target_cpu="ppc"
8262 aros_object_format="elf_ppc"
8263 aros_flavour="nativecompat"
8264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8265 gcc_target_cpu="ppc"
8268 sam440)
8269 aros_target_arch="sam440"
8270 aros_shared_default="no"
8271 aros_target_cpu="ppc"
8272 aros_object_format="elf32ppc"
8273 aros_flavour="ppcnative"
8274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8275 aros_kernel_ldflags=""
8276 aros_default_wbwidth=1024
8277 aros_default_wbheight=768
8278 aros_default_wbdepth=24
8279 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8280 gcc_target_cpu="powerpc"
8283 efika)
8284 aros_target_arch="efika"
8285 aros_shared_default="no"
8286 aros_target_cpu="arm"
8287 aros_object_format="armelf_aros"
8288 aros_flavour="standalone"
8289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8290 aros_kernel_ldflags=""
8291 aros_default_wbwidth=1024
8292 aros_default_wbheight=600
8293 aros_arch_libs="-laeabi"
8294 gcc_default_cpu="armv7-a"
8295 gcc_default_fpu="vfpv3"
8296 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8297 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8298 aros_optimization_cflags="$aros_optimization_cflags -Os"
8299 case "$target_cpu" in
8300 *armhf*)
8301 gcc_default_float_abi="hard"
8302 target_cpu=arm
8303 aros_target_cpu=arm
8305 *arm*)
8306 gcc_default_float_abi="softfp"
8309 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8311 esac
8314 chrp)
8315 aros_target_arch="chrp"
8316 aros_shared_default="no"
8317 aros_target_cpu="ppc"
8318 aros_object_format="elf32ppc"
8319 aros_flavour="ppcnative"
8320 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8321 aros_kernel_ldflags=""
8322 aros_default_wbwidth=640
8323 aros_default_wbheight=480
8324 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8325 gcc_target_cpu="powerpc"
8326 case "$aros_target_variant" in
8327 efika)
8328 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8330 esac
8333 r*pi)
8334 aros_flavour="standalone"
8335 aros_target_arch="raspi"
8336 aros_target_cpu="arm"
8337 aros_object_format="armelf_aros"
8338 aros_shared_default="no"
8339 aros_arch_libs="-laeabi"
8341 gcc_default_cpu="armv6"
8342 gcc_default_cpu_tune="arm1176jzf-s"
8344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8345 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8346 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8348 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8351 sun4i)
8352 aros_flavour="standalone"
8353 aros_target_arch="sun4i"
8354 aros_target_cpu="arm"
8355 aros_object_format="armelf_aros"
8356 aros_shared_default="no"
8357 aros_arch_libs="-laeabi"
8359 gcc_default_cpu="armv7-a"
8360 gcc_default_fpu="neon"
8361 gcc_default_cpu_tune="cortex-a8"
8362 gcc_default_float_abi="hard"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8365 aros_optimization_cflags=""
8366 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8367 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8370 amiga*)
8371 aros_target_arch="amiga"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8373 aros_shared_default="no"
8375 case "$target_cpu" in
8376 *m68k*)
8377 # Check whether --enable-amigaos_compliance was given.
8378 if test "${enable_amigaos_compliance+set}" = set; then :
8379 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8382 aros_enable_mmu=no
8383 aros_target_cpu="m68k"
8384 aros_object_format="m68kelf"
8385 aros_flavour="standcompat"
8386 gcc_target_cpu="m68000"
8387 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8388 aros_optimization_cflags="$aros_optimization_cflags -Os"
8389 aros_config_aflags="$aros_config_aflags"
8390 aros_target_strip_flags="-R.comment --strip-debug"
8391 aros_default_wbwidth=640
8392 aros_default_wbheight=256
8393 aros_default_wbdepth=2
8395 *ppc*)
8396 aros_cpu="ppc"
8397 aros_flavour="native"
8398 gcc_target_cpu="ppc"
8401 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8403 esac
8406 mingw*)
8407 aros_target_arch="mingw32"
8408 aros_shared_default="no"
8409 aros_flavour="emulation"
8410 aros_shared_cflags=""
8411 need_crosstools="yes"
8412 need_dlopen="no"
8413 rescomp="windres"
8414 case "$target_cpu" in
8415 *i?86*)
8416 aros_target_cpu="i386"
8417 aros_object_format="elf_i386"
8418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8419 aros_default_wbdepth=8
8420 gcc_target_cpu="i386"
8422 kernel_tool_prefix="i386-mingw32-"
8424 *x86_64*)
8425 aros_target_cpu="x86_64"
8426 aros_object_format="elf_x86_64"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8428 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8429 aros_default_wbdepth=8
8430 kernel_tool_prefix="x86_64-w64-mingw32-"
8432 *arm*)
8433 aros_target_cpu="arm"
8434 aros_object_format="armelf_aros"
8435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8436 aros_arch_libs="-laeabi"
8437 aros_default_wbdepth=8
8438 gcc_target_cpu="arm"
8439 gcc_default_float_abi="soft"
8440 kernel_tool_prefix="arm-mingw32ce-"
8441 aros_default_wbwidth=160
8442 aros_default_wbheight=160
8445 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8447 esac
8448 if test $host_os = "cygwin"; then
8449 aros_kernel_cflags="-mno-cygwin"
8452 pp*)
8453 aros_target_arch="pp"
8454 aros_shared_default="no"
8455 case "$target_cpu" in
8456 *m68k*)
8457 aros_target_cpu="m68k"
8458 aros_object_format="m68kelf"
8459 aros_flavour="palmnative"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8461 aros_default_wbwidth=160
8462 aros_default_wbheight=160
8463 aros_default_wbdepth=1
8464 aros_target_ar_flags="cru"
8465 aros_compiler_libs="-lgcc1"
8466 aros_shared_default=no
8467 aros_shared_cflags="-fpic"
8468 aros_shared_aflags=""
8469 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8470 aros_kernel_ldflags="-Wl,-rpath,./lib"
8471 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8472 aros_debug_aflags=""
8473 aros_debug_ldflags="$aros_symbols_debug"
8474 aros_mungwall_debug="0"
8475 aros_modules_debug="0"
8476 gcc_target_cpu="mc68000"
8477 ignore_undefined_symbols="-ius"
8480 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8482 esac
8485 mac*)
8486 aros_target_arch="mac"
8487 aros_shared_default="no"
8488 case "$target_cpu" in
8489 *m68k*)
8490 aros_target_cpu="m68k"
8491 aros_object_format="m68kelf"
8492 aros_flavour="mac68knative"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8494 aros_default_wbwidth=512
8495 aros_default_wbheight=384
8496 aros_default_wbdepth=8
8497 aros_target_ar_flags="cru"
8498 aros_compiler_libs="-lgcc1"
8499 aros_shared_default=no
8500 aros_shared_cflags="-fpic"
8501 aros_shared_aflags=""
8502 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8503 aros_kernel_ldflags="-Wl,-rpath,./lib"
8504 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8505 aros_debug_aflags=""
8506 aros_debug_ldflags="$aros_symbols_debug"
8507 aros_mungwall_debug="0"
8508 aros_modules_debug="0"
8509 gcc_target_cpu="mc68000"
8510 ignore_undefined_symbols="-ius"
8513 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8515 esac
8519 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8521 esac
8523 #-----------------------------------------------------------------------------
8524 crosstools_guess="yes"
8525 aros_target_toolchain="no"
8526 aros_config_sysroot=""
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8529 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8531 # Check whether --with-kernel-toolchain-prefix was given.
8532 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8533 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8537 $as_echo "$kernel_tool_prefix" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8540 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8542 # Check whether --with-elf-toolchain-prefix was given.
8543 if test "${with_elf_toolchain_prefix+set}" = set; then :
8544 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8545 crosstools_guess="no"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8549 $as_echo "$elf_tool_prefix" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8552 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8554 # Check whether --with-aros-toolchain was given.
8555 if test "${with_aros_toolchain+set}" = set; then :
8556 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8557 crosstools_guess="no"
8560 if test "$aros_tool_prefix" = "yes" ; then
8561 aros_tool_prefix=$aros_target_cpu-aros-
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8564 $as_echo "$aros_tool_prefix" >&6; }
8566 #-----------------------------------------------------------------------------
8567 # Checking if we should build crosstools..
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8569 $as_echo_n "checking whether to build crosstools... " >&6; }
8570 # Check whether --enable-crosstools was given.
8571 if test "${enable_crosstools+set}" = set; then :
8572 enableval=$enable_crosstools; crosstools="$enableval"
8573 else
8574 crosstools="$crosstools_guess"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8578 $as_echo "$crosstools" >&6; }
8580 if test "${crosstools}" = "yes"; then
8581 if test "${crosstools_guess}" = "no"; then
8582 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8586 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8587 aros_target_toolchain="yes"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8591 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8593 # Check whether --with-aros-toolchain-install was given.
8594 if test "${with_aros_toolchain_install+set}" = set; then :
8595 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8598 if test "x$aros_toolchain_install" = "x"; then
8599 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8600 else
8601 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8602 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8603 if test "$crosstools_guess" = "no" ; then
8604 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8608 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8610 #-----------------------------------------------------------------------------
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8612 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8614 # Check whether --with-gcc-version was given.
8615 if test "${with_gcc_version+set}" = set; then :
8616 withval=$with_gcc_version; use_binutils_version="$withval"
8617 else
8618 use_binutils_version=""
8621 if test "$use_binutils_version" = ""; then
8622 target_binutils_version="$default_binutils_version"
8623 else
8624 target_gcc_version="$use_binutils_version"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8627 $as_echo "$target_binutils_version" >&6; }
8630 # Helper to identify gcc version
8633 #-----------------------------------------------------------------------------
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8635 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8637 # Check whether --with-gcc-version was given.
8638 if test "${with_gcc_version+set}" = set; then :
8639 withval=$with_gcc_version; use_gcc_version="$withval"
8640 else
8641 use_gcc_version=""
8644 if test "$use_gcc_version" = ""; then
8645 if test "${crosstools}" = "no"; then
8646 if test "x$aros_toolchain_install" != "x"; then
8648 target_gcc_version=""
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8650 $as_echo_n "checking gcc version... " >&6; }
8651 if ${ax_cv_gcc_version+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8655 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8656 if test "x$ax_cv_gcc_version" = "x"; then :
8658 ax_cv_gcc_version=""
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8664 $as_echo "$ax_cv_gcc_version" >&6; }
8665 target_gcc_version=$ax_cv_gcc_version
8670 if test "$use_gcc_version" = ""; then
8671 target_gcc_version="$default_gcc_version"
8673 else
8674 target_gcc_version="$use_gcc_version"
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8677 $as_echo "$target_gcc_version" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8680 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8681 # Check whether --enable-objc was given.
8682 if test "${enable_objc+set}" = set; then :
8683 enableval=$enable_objc; objc="$enableval"
8684 else
8685 objc="yes"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8689 $as_echo "$objc" >&6; }
8690 if test "x$objc" = "xyes"; then
8691 objc_target="$objc"
8692 else
8693 objc_target="no-objc"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8697 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8698 # Check whether --enable-java was given.
8699 if test "${enable_java+set}" = set; then :
8700 enableval=$enable_java; java="$enableval"
8701 else
8702 java="no"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8706 $as_echo "$java" >&6; }
8707 if test "x$java" != "xno"; then
8708 java_target="$java"
8709 else
8710 java_target="no-java"
8713 spec_obj_format="-m $aros_object_format"
8714 # Now process extra architecture-specific options.
8715 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8716 # as well as floating-point ABI.
8717 case "$aros_target_cpu" in
8718 *x86_64*)
8719 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8721 arm*)
8722 if test "$gcc_default_cpu" = ""; then
8723 gcc_default_cpu="armv6"
8725 if test "$gcc_default_fpu" = ""; then
8726 gcc_default_fpu="vfp"
8728 if test "$gcc_default_float_abi" = ""; then
8729 if test "$target_cpu" = "armhf"; then
8730 gcc_default_float_abi="hard"
8731 else
8732 gcc_default_float_abi="softfp"
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8737 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8739 # Check whether --with-cpu was given.
8740 if test "${with_cpu+set}" = set; then :
8741 withval=$with_cpu; aros_gcc_cpu="$withval"
8742 else
8743 aros_gcc_cpu=$gcc_default_cpu
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8747 $as_echo "$aros_gcc_cpu" >&6; }
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8750 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8752 # Check whether --with-fpu was given.
8753 if test "${with_fpu+set}" = set; then :
8754 withval=$with_fpu; aros_gcc_fpu="$withval"
8755 else
8756 aros_gcc_fpu=$gcc_default_fpu
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8760 $as_echo "$aros_gcc_fpu" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8763 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8765 # Check whether --with-float was given.
8766 if test "${with_float+set}" = set; then :
8767 withval=$with_float; aros_gcc_float_abi="$withval"
8768 else
8769 aros_gcc_float_abi=$gcc_default_float_abi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8773 $as_echo "$aros_gcc_float_abi" >&6; }
8775 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8776 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8777 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8779 i386)
8780 aros_isa_flags="-m32 -march=i486"
8781 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8782 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8784 esac
8786 # Some architectures may need custom ELF specs.
8787 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8788 elf_specs_in=config/${aros_object_format}-specs.in
8789 else
8790 elf_specs_in=config/elf-specs.in
8793 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8794 # Since we override specs, we may need to put these defines there
8795 if test "$gcc_target_cpu" != ""; then
8796 gcc_target_cpu="-D__${gcc_target_cpu}__"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8800 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8802 # Check whether --with-portssources was given.
8803 if test "${with_portssources+set}" = set; then :
8804 withval=$with_portssources; with_portssrcdir=$withval
8805 else
8806 with_portssrcdir="default"
8809 if test "$with_portssrcdir" = "default"; then
8810 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8811 else
8812 AROS_PORTSSRCDIR="$with_portssrcdir"
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8815 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8818 $as_echo_n "checking which bootloader to use... " >&6; }
8820 # Check whether --with-bootloader was given.
8821 if test "${with_bootloader+set}" = set; then :
8822 withval=$with_bootloader; target_bootloader=$withval
8823 else
8824 target_bootloader=$target_bootloader
8827 if test "$target_bootloader" = "none"; then
8828 aros_target_bootloader=""
8829 else
8830 aros_target_bootloader="$target_bootloader"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8833 $as_echo "$target_bootloader" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8836 $as_echo_n "checking which icon-set to use... " >&6; }
8838 # Check whether --with-iconset was given.
8839 if test "${with_iconset+set}" = set; then :
8840 withval=$with_iconset; target_iconset=$withval
8841 else
8842 target_iconset="default"
8845 if test "$target_iconset" = "default"; then
8846 aros_target_iconset="Gorilla"
8847 target_iconset="default (Gorilla)"
8848 else
8849 aros_target_iconset="$target_iconset"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8852 $as_echo "$target_iconset" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8855 $as_echo_n "checking which GUI Theme to use... " >&6; }
8857 # Check whether --with-theme was given.
8858 if test "${with_theme+set}" = set; then :
8859 withval=$with_theme; target_guitheme=$withval
8860 else
8861 target_guitheme="default"
8864 if test "$target_guitheme" = "default"; then
8865 aros_target_guitheme="Ice"
8866 else
8867 aros_target_guitheme="$target_guitheme"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8870 $as_echo "$aros_target_guitheme" >&6; }
8872 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8873 # for target code)
8874 cross_compiling=no
8876 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8877 cross_compiling=yes
8880 if test "$aros_host_cpu" == "x86_64" ; then
8881 if test "$aros_target_cpu" == "i386" ; then
8882 cross_compiling=no
8886 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8887 if test "$aros_host_arch" != "$aros_target_arch" ; then
8888 cross_compiling=yes
8890 else
8891 if test "$host_cc_elf" = "no" ; then
8892 cross_compiling=yes
8896 if test "$cross_compiling" = "no" ; then
8897 kernel_tool_prefix=""
8898 if test "$host_cc_elf" = "yes" ; then
8899 elf_tool_prefix=""
8903 if test "$kernel_tool_version" != ""; then
8904 kernel_tool_version="-$kernel_tool_version"
8907 #######################################################################
8908 ## Compute what toolchains to use, and their paths ##
8909 #######################################################################
8911 # This takes, as input:
8912 # crosstools {yes,no}
8913 # kernel_tool_version {"",[version]}
8914 # target_tool_version {"",[version]}
8915 # kernel_tool_prefix {none,[some-arch-os-]}
8916 # target_tool_prefix ${aros_target_cpu}-aros-
8917 # aros_tool_prefix ${aros_target_cpu}-aros-
8919 # The output is
8920 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8921 # Where the 'kernel' binaries are located
8922 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8923 # Where the 'target' binaries are located
8924 # (not the symlink farm - that is aros_target_*!)
8926 # The rules are:
8927 # if crosstools then
8928 # if kernel_tools_prefix = "no-kernel-prefix-"
8929 # aros_kernel_* = crosstools cc paths
8930 # aros_kernel_cc = elf cc wrapper around crosstools cc
8931 # else
8932 # VALIDATE(${kernel_tools_prefix}*)
8933 # aros_kernel_* = ${kernel_tools_prefix}*
8934 # if ${kernel_tools_prefix}cc is an AROS gcc
8935 # aros_kernel_cc = ${kernel_tools_prefix}cc
8936 # else
8937 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8938 # fi
8939 # fi
8941 # orig_target_* = aros built crosstools
8942 # orig_target_cc = elf cc wrapper around crosstools cc
8943 # else
8944 # VALIDATE(${kernel_tools_prefix}*)
8946 # orig_target_* = aros_kernel_*
8947 # if aros_kernel_cc is an AROS gcc
8948 # orig_target_cc = aros_kernel_cc
8949 # else
8950 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8951 # fi
8952 # fi
8954 target_tool_prefix="${aros_target_cpu}-aros-"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8957 $as_echo_n "checking which kernel tools... " >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8959 $as_echo "$kernel_tool_prefix" >&6; };
8961 if test "$kernel_tool_prefix" = "none" ; then
8962 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8963 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8965 else
8966 # Kernel tools required - find them
8967 # Note that 'normally', aros_kernel_* overrides will be
8968 # empty, unless specified in the per-arch sections above.
8969 if test "x$aros_kernel_cpp" = "x"; then
8970 aros_kernel_cpp=${kernel_tool_prefix}cpp
8973 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8974 if test "$cross_compiling" = "yes" ; then
8975 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8976 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 case $aros_kernel_cpp in
8983 [\\/]* | ?:[\\/]*)
8984 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8998 done
8999 done
9000 IFS=$as_save_IFS
9003 esac
9005 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9006 if test -n "$aros_kernel_cpp"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9008 $as_echo "$aros_kernel_cpp" >&6; }
9009 else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9015 else
9016 if test "$GCC" = "yes"; then
9017 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9018 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9019 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 case $aros_kernel_cpp in
9026 [\\/]* | ?:[\\/]*)
9027 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in `dirname $aros_gcc_cpp`
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9037 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9041 done
9042 done
9043 IFS=$as_save_IFS
9046 esac
9048 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9049 if test -n "$aros_kernel_cpp"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9051 $as_echo "$aros_kernel_cpp" >&6; }
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9059 if test "$aros_kernel_cpp" = ""; then
9060 # Extract the first word of "cpp", so it can be a program name with args.
9061 set dummy cpp; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 case $aros_kernel_cpp in
9068 [\\/]* | ?:[\\/]*)
9069 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9083 done
9084 done
9085 IFS=$as_save_IFS
9088 esac
9090 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9091 if test -n "$aros_kernel_cpp"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9093 $as_echo "$aros_kernel_cpp" >&6; }
9094 else
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9102 else
9103 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9104 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 case $aros_kernel_cpp in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9131 esac
9133 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9134 if test -n "$aros_kernel_cpp"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9136 $as_echo "$aros_kernel_cpp" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9145 if test "$aros_kernel_cpp" = ""; then
9146 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9148 if test "x$aros_kernel_cc" = "x"; then
9149 aros_kernel_cc=${kernel_tool_prefix}gcc
9152 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9153 if test "$cross_compiling" = "yes" ; then
9154 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9155 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 case $aros_kernel_cc in
9162 [\\/]* | ?:[\\/]*)
9163 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9179 IFS=$as_save_IFS
9182 esac
9184 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9185 if test -n "$aros_kernel_cc"; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9187 $as_echo "$aros_kernel_cc" >&6; }
9188 else
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 $as_echo "no" >&6; }
9194 else
9195 if test "$GCC" = "yes"; then
9196 aros_gcc_cc=`$CC -print-prog-name=cc`
9197 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9198 set dummy `basename $aros_gcc_cc`; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 case $aros_kernel_cc in
9205 [\\/]* | ?:[\\/]*)
9206 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in `dirname $aros_gcc_cc`
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9220 done
9221 done
9222 IFS=$as_save_IFS
9225 esac
9227 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9228 if test -n "$aros_kernel_cc"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9230 $as_echo "$aros_kernel_cc" >&6; }
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9238 if test "$aros_kernel_cc" = ""; then
9239 # Extract the first word of "cc", so it can be a program name with args.
9240 set dummy cc; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 case $aros_kernel_cc in
9247 [\\/]* | ?:[\\/]*)
9248 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 break 2
9262 done
9263 done
9264 IFS=$as_save_IFS
9267 esac
9269 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9270 if test -n "$aros_kernel_cc"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9272 $as_echo "$aros_kernel_cc" >&6; }
9273 else
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9281 else
9282 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9283 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 case $aros_kernel_cc in
9290 [\\/]* | ?:[\\/]*)
9291 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9305 done
9306 done
9307 IFS=$as_save_IFS
9310 esac
9312 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9313 if test -n "$aros_kernel_cc"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9315 $as_echo "$aros_kernel_cc" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9324 if test "$aros_kernel_cc" = ""; then
9325 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9327 if test "x$aros_kernel_cxx" = "x"; then
9328 aros_kernel_cxx=${kernel_tool_prefix}g++
9331 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9332 if test "$cross_compiling" = "yes" ; then
9333 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9334 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 case $aros_kernel_cxx in
9341 [\\/]* | ?:[\\/]*)
9342 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 for as_dir in $PATH
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 break 2
9356 done
9357 done
9358 IFS=$as_save_IFS
9361 esac
9363 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9364 if test -n "$aros_kernel_cxx"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9366 $as_echo "$aros_kernel_cxx" >&6; }
9367 else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9373 else
9374 if test "$GCC" = "yes"; then
9375 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9376 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9377 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9379 $as_echo_n "checking for $ac_word... " >&6; }
9380 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 case $aros_kernel_cxx in
9384 [\\/]* | ?:[\\/]*)
9385 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in `dirname $aros_gcc_cxx`
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9399 done
9400 done
9401 IFS=$as_save_IFS
9404 esac
9406 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9407 if test -n "$aros_kernel_cxx"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9409 $as_echo "$aros_kernel_cxx" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9417 if test "$aros_kernel_cxx" = ""; then
9418 # Extract the first word of "cxx", so it can be a program name with args.
9419 set dummy cxx; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $aros_kernel_cxx in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9446 esac
9448 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9449 if test -n "$aros_kernel_cxx"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9451 $as_echo "$aros_kernel_cxx" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9460 else
9461 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9462 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 case $aros_kernel_cxx in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9486 IFS=$as_save_IFS
9489 esac
9491 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9492 if test -n "$aros_kernel_cxx"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9494 $as_echo "$aros_kernel_cxx" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9503 # If it's set, make sure it's really there
9504 if test "x$aros_kernel_cxx" != "x" ; then
9505 if test "$aros_kernel_cxx" = ""; then
9506 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9510 if test "$aros_kernel_ld" = ""; then
9511 if test "$cross_compiling" = "yes" ; then
9512 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9513 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 case $aros_kernel_ld in
9520 [\\/]* | ?:[\\/]*)
9521 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in $PATH
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 break 2
9535 done
9536 done
9537 IFS=$as_save_IFS
9540 esac
9542 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9543 if test -n "$aros_kernel_ld"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9545 $as_echo "$aros_kernel_ld" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9552 else
9553 if test "$GCC" = "yes"; then
9554 aros_gcc_ld=`$CC -print-prog-name=ld`
9555 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9556 set dummy `basename $aros_gcc_ld`; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 case $aros_kernel_ld in
9563 [\\/]* | ?:[\\/]*)
9564 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in `dirname $aros_gcc_ld`
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9578 done
9579 done
9580 IFS=$as_save_IFS
9583 esac
9585 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9586 if test -n "$aros_kernel_ld"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9588 $as_echo "$aros_kernel_ld" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9596 if test "$aros_kernel_ld" = ""; then
9597 # Extract the first word of "ld", so it can be a program name with args.
9598 set dummy ld; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 case $aros_kernel_ld in
9605 [\\/]* | ?:[\\/]*)
9606 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9625 esac
9627 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9628 if test -n "$aros_kernel_ld"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9630 $as_echo "$aros_kernel_ld" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9639 else
9640 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9641 set dummy $aros_kernel_ld; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 case $aros_kernel_ld in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9668 esac
9670 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9671 if test -n "$aros_kernel_ld"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9673 $as_echo "$aros_kernel_ld" >&6; }
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9682 if test "$aros_kernel_ld" = ""; then
9683 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9686 if test "$aros_kernel_as" = ""; then
9687 if test "$cross_compiling" = "yes" ; then
9688 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9689 set dummy ${kernel_tool_prefix}as; ac_word=$2
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691 $as_echo_n "checking for $ac_word... " >&6; }
9692 if ${ac_cv_path_aros_kernel_as+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 case $aros_kernel_as in
9696 [\\/]* | ?:[\\/]*)
9697 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in $PATH
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9707 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9711 done
9712 done
9713 IFS=$as_save_IFS
9716 esac
9718 aros_kernel_as=$ac_cv_path_aros_kernel_as
9719 if test -n "$aros_kernel_as"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9721 $as_echo "$aros_kernel_as" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9728 else
9729 if test "$GCC" = "yes"; then
9730 aros_gcc_as=`$CC -print-prog-name=as`
9731 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9732 set dummy `basename $aros_gcc_as`; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_path_aros_kernel_as+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 case $aros_kernel_as in
9739 [\\/]* | ?:[\\/]*)
9740 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 for as_dir in `dirname $aros_gcc_as`
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9754 done
9755 done
9756 IFS=$as_save_IFS
9759 esac
9761 aros_kernel_as=$ac_cv_path_aros_kernel_as
9762 if test -n "$aros_kernel_as"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9764 $as_echo "$aros_kernel_as" >&6; }
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9772 if test "$aros_kernel_as" = ""; then
9773 # Extract the first word of "as", so it can be a program name with args.
9774 set dummy as; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if ${ac_cv_path_aros_kernel_as+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 case $aros_kernel_as in
9781 [\\/]* | ?:[\\/]*)
9782 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9796 done
9797 done
9798 IFS=$as_save_IFS
9801 esac
9803 aros_kernel_as=$ac_cv_path_aros_kernel_as
9804 if test -n "$aros_kernel_as"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9806 $as_echo "$aros_kernel_as" >&6; }
9807 else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9815 else
9816 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9817 set dummy $aros_kernel_as; ac_word=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if ${ac_cv_path_aros_kernel_as+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 case $aros_kernel_as in
9824 [\\/]* | ?:[\\/]*)
9825 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in $PATH
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9835 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9839 done
9840 done
9841 IFS=$as_save_IFS
9844 esac
9846 aros_kernel_as=$ac_cv_path_aros_kernel_as
9847 if test -n "$aros_kernel_as"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9849 $as_echo "$aros_kernel_as" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9858 if test "$aros_kernel_as" = ""; then
9859 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9862 if test "$aros_kernel_ar" = ""; then
9863 if test "$cross_compiling" = "yes" ; then
9864 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9865 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 case $aros_kernel_ar in
9872 [\\/]* | ?:[\\/]*)
9873 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9887 done
9888 done
9889 IFS=$as_save_IFS
9892 esac
9894 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9895 if test -n "$aros_kernel_ar"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9897 $as_echo "$aros_kernel_ar" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9904 else
9905 if test "$GCC" = "yes"; then
9906 aros_gcc_ar=`$CC -print-prog-name=ar`
9907 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9908 set dummy `basename $aros_gcc_ar`; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 case $aros_kernel_ar in
9915 [\\/]* | ?:[\\/]*)
9916 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in `dirname $aros_gcc_ar`
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9930 done
9931 done
9932 IFS=$as_save_IFS
9935 esac
9937 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9938 if test -n "$aros_kernel_ar"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9940 $as_echo "$aros_kernel_ar" >&6; }
9941 else
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9948 if test "$aros_kernel_ar" = ""; then
9949 # Extract the first word of "ar", so it can be a program name with args.
9950 set dummy ar; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 case $aros_kernel_ar in
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9972 done
9973 done
9974 IFS=$as_save_IFS
9977 esac
9979 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9980 if test -n "$aros_kernel_ar"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9982 $as_echo "$aros_kernel_ar" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9991 else
9992 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9993 set dummy $aros_kernel_ar; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 case $aros_kernel_ar in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10020 esac
10022 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10023 if test -n "$aros_kernel_ar"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10025 $as_echo "$aros_kernel_ar" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10034 if test "$aros_kernel_ar" = ""; then
10035 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10038 if test "$aros_kernel_ranlib" = ""; then
10039 if test "$cross_compiling" = "yes" ; then
10040 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10041 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 case $aros_kernel_ranlib in
10048 [\\/]* | ?:[\\/]*)
10049 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10068 esac
10070 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10071 if test -n "$aros_kernel_ranlib"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10073 $as_echo "$aros_kernel_ranlib" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10080 else
10081 if test "$GCC" = "yes"; then
10082 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10083 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10084 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 case $aros_kernel_ranlib in
10091 [\\/]* | ?:[\\/]*)
10092 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in `dirname $aros_gcc_ranlib`
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10106 done
10107 done
10108 IFS=$as_save_IFS
10111 esac
10113 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10114 if test -n "$aros_kernel_ranlib"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10116 $as_echo "$aros_kernel_ranlib" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10124 if test "$aros_kernel_ranlib" = ""; then
10125 # Extract the first word of "ranlib", so it can be a program name with args.
10126 set dummy ranlib; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 case $aros_kernel_ranlib in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10148 done
10149 done
10150 IFS=$as_save_IFS
10153 esac
10155 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10156 if test -n "$aros_kernel_ranlib"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10158 $as_echo "$aros_kernel_ranlib" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10167 else
10168 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10169 set dummy $aros_kernel_ranlib; 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_ranlib+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 case $aros_kernel_ranlib in
10176 [\\/]* | ?:[\\/]*)
10177 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10199 if test -n "$aros_kernel_ranlib"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10201 $as_echo "$aros_kernel_ranlib" >&6; }
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10210 if test "$aros_kernel_ranlib" = ""; then
10211 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10214 if test "$aros_kernel_nm" = ""; then
10215 if test "$cross_compiling" = "yes" ; then
10216 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10217 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 case $aros_kernel_nm in
10224 [\\/]* | ?:[\\/]*)
10225 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229 for as_dir in $PATH
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10239 done
10240 done
10241 IFS=$as_save_IFS
10244 esac
10246 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10247 if test -n "$aros_kernel_nm"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10249 $as_echo "$aros_kernel_nm" >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10256 else
10257 if test "$GCC" = "yes"; then
10258 aros_gcc_nm=`$CC -print-prog-name=nm`
10259 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10260 set dummy `basename $aros_gcc_nm`; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 case $aros_kernel_nm in
10267 [\\/]* | ?:[\\/]*)
10268 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272 for as_dir in `dirname $aros_gcc_nm`
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10282 done
10283 done
10284 IFS=$as_save_IFS
10287 esac
10289 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10290 if test -n "$aros_kernel_nm"; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10292 $as_echo "$aros_kernel_nm" >&6; }
10293 else
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10300 if test "$aros_kernel_nm" = ""; then
10301 # Extract the first word of "nm", so it can be a program name with args.
10302 set dummy nm; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 case $aros_kernel_nm in
10309 [\\/]* | ?:[\\/]*)
10310 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10324 done
10325 done
10326 IFS=$as_save_IFS
10329 esac
10331 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10332 if test -n "$aros_kernel_nm"; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10334 $as_echo "$aros_kernel_nm" >&6; }
10335 else
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10343 else
10344 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10345 set dummy $aros_kernel_nm; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 case $aros_kernel_nm in
10352 [\\/]* | ?:[\\/]*)
10353 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10367 done
10368 done
10369 IFS=$as_save_IFS
10372 esac
10374 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10375 if test -n "$aros_kernel_nm"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10377 $as_echo "$aros_kernel_nm" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10386 if test "$aros_kernel_nm" = ""; then
10387 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10390 if test "$aros_kernel_strip" = ""; then
10391 if test "$cross_compiling" = "yes" ; then
10392 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10393 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 case $aros_kernel_strip in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10423 if test -n "$aros_kernel_strip"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10425 $as_echo "$aros_kernel_strip" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10432 else
10433 if test "$GCC" = "yes"; then
10434 aros_gcc_strip=`$CC -print-prog-name=strip`
10435 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10436 set dummy `basename $aros_gcc_strip`; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 case $aros_kernel_strip in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in `dirname $aros_gcc_strip`
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10466 if test -n "$aros_kernel_strip"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10468 $as_echo "$aros_kernel_strip" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10476 if test "$aros_kernel_strip" = ""; then
10477 # Extract the first word of "strip", so it can be a program name with args.
10478 set dummy strip; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 case $aros_kernel_strip in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10505 esac
10507 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10508 if test -n "$aros_kernel_strip"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10510 $as_echo "$aros_kernel_strip" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10519 else
10520 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10521 set dummy $aros_kernel_strip; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 case $aros_kernel_strip in
10528 [\\/]* | ?:[\\/]*)
10529 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10543 done
10544 done
10545 IFS=$as_save_IFS
10548 esac
10550 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10551 if test -n "$aros_kernel_strip"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10553 $as_echo "$aros_kernel_strip" >&6; }
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10562 if test "$aros_kernel_strip" = ""; then
10563 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 # Objcopy and objdump are not required for the kernel
10567 # toolchain on many architectures.
10568 # So we'll look for them, but not make them strictly required.
10570 if test "$aros_kernel_objcopy" = ""; then
10571 if test "$cross_compiling" = "yes" ; then
10572 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10573 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 case $aros_kernel_objcopy in
10580 [\\/]* | ?:[\\/]*)
10581 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10595 done
10596 done
10597 IFS=$as_save_IFS
10600 esac
10602 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10603 if test -n "$aros_kernel_objcopy"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10605 $as_echo "$aros_kernel_objcopy" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10612 else
10613 if test "$GCC" = "yes"; then
10614 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10615 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10616 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 case $aros_kernel_objcopy in
10623 [\\/]* | ?:[\\/]*)
10624 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in `dirname $aros_gcc_objcopy`
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10638 done
10639 done
10640 IFS=$as_save_IFS
10643 esac
10645 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10646 if test -n "$aros_kernel_objcopy"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10648 $as_echo "$aros_kernel_objcopy" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10656 if test "$aros_kernel_objcopy" = ""; then
10657 # Extract the first word of "objcopy", so it can be a program name with args.
10658 set dummy objcopy; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 case $aros_kernel_objcopy in
10665 [\\/]* | ?:[\\/]*)
10666 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10680 done
10681 done
10682 IFS=$as_save_IFS
10685 esac
10687 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10688 if test -n "$aros_kernel_objcopy"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10690 $as_echo "$aros_kernel_objcopy" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10699 else
10700 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10701 set dummy $aros_kernel_objcopy; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 case $aros_kernel_objcopy in
10708 [\\/]* | ?:[\\/]*)
10709 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10723 done
10724 done
10725 IFS=$as_save_IFS
10728 esac
10730 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10731 if test -n "$aros_kernel_objcopy"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10733 $as_echo "$aros_kernel_objcopy" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10743 if test "$aros_kernel_objdump" = ""; then
10744 if test "$cross_compiling" = "yes" ; then
10745 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10746 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748 $as_echo_n "checking for $ac_word... " >&6; }
10749 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 case $aros_kernel_objdump in
10753 [\\/]* | ?:[\\/]*)
10754 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $PATH
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10764 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10768 done
10769 done
10770 IFS=$as_save_IFS
10773 esac
10775 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10776 if test -n "$aros_kernel_objdump"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10778 $as_echo "$aros_kernel_objdump" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10785 else
10786 if test "$GCC" = "yes"; then
10787 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10788 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10789 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 case $aros_kernel_objdump in
10796 [\\/]* | ?:[\\/]*)
10797 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in `dirname $aros_gcc_objdump`
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10816 esac
10818 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10819 if test -n "$aros_kernel_objdump"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10821 $as_echo "$aros_kernel_objdump" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10829 if test "$aros_kernel_objdump" = ""; then
10830 # Extract the first word of "objdump", so it can be a program name with args.
10831 set dummy objdump; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 case $aros_kernel_objdump in
10838 [\\/]* | ?:[\\/]*)
10839 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10845 IFS=$as_save_IFS
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10849 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 break 2
10853 done
10854 done
10855 IFS=$as_save_IFS
10858 esac
10860 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10861 if test -n "$aros_kernel_objdump"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10863 $as_echo "$aros_kernel_objdump" >&6; }
10864 else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10872 else
10873 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10874 set dummy $aros_kernel_objdump; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 case $aros_kernel_objdump in
10881 [\\/]* | ?:[\\/]*)
10882 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10896 done
10897 done
10898 IFS=$as_save_IFS
10901 esac
10903 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10904 if test -n "$aros_kernel_objdump"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10906 $as_echo "$aros_kernel_objdump" >&6; }
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10915 if test "x${crosstools}" != "xyes" ; then
10916 if test "$aros_kernel_objcopy" = ""; then
10917 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10919 if test "$aros_kernel_objdump" = ""; then
10920 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10926 $as_echo_n "checking which target tools to use... " >&6; }
10927 if test "$aros_target_toolchain" = "yes"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10929 $as_echo "$target_tool_prefix" >&6; }
10930 # We are building AROS crosstools
10931 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10932 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10933 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10934 orig_target_cpp="${tmp_tool_prefix}cpp"
10935 orig_target_ld="${tmp_tool_prefix}ld"
10936 orig_target_as="${tmp_tool_prefix}as"
10937 orig_target_ar="${tmp_tool_prefix}ar"
10938 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10939 orig_target_nm="${tmp_tool_prefix}nm"
10940 orig_target_strip="${tmp_tool_prefix}strip"
10941 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10942 orig_target_objdump="${tmp_tool_prefix}objdump"
10943 else
10944 # Determine whether AROS or ELF tools should be used
10945 if test "$aros_tool_prefix" = "none"; then
10946 aros_tool_prefix="${elf_tool_prefix}"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10950 $as_echo "$aros_tool_prefix" >&6; }
10951 # We are *not* building AROS crosstools - use the AROS or ELF tools
10953 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10954 if test "$cross_compiling" = "yes" ; then
10955 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10956 set dummy ${target_tool_prefix}cpp; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if ${ac_cv_path_orig_target_cpp+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 case $orig_target_cpp in
10963 [\\/]* | ?:[\\/]*)
10964 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10978 done
10979 done
10980 IFS=$as_save_IFS
10983 esac
10985 orig_target_cpp=$ac_cv_path_orig_target_cpp
10986 if test -n "$orig_target_cpp"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10988 $as_echo "$orig_target_cpp" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10995 else
10996 if test "$GCC" = "yes"; then
10997 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10998 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10999 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_path_orig_target_cpp+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 case $orig_target_cpp in
11006 [\\/]* | ?:[\\/]*)
11007 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in `dirname $aros_gcc_cpp`
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11021 done
11022 done
11023 IFS=$as_save_IFS
11026 esac
11028 orig_target_cpp=$ac_cv_path_orig_target_cpp
11029 if test -n "$orig_target_cpp"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11031 $as_echo "$orig_target_cpp" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11039 if test "$orig_target_cpp" = ""; then
11040 # Extract the first word of "cpp", so it can be a program name with args.
11041 set dummy cpp; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if ${ac_cv_path_orig_target_cpp+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $orig_target_cpp in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11068 esac
11070 orig_target_cpp=$ac_cv_path_orig_target_cpp
11071 if test -n "$orig_target_cpp"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11073 $as_echo "$orig_target_cpp" >&6; }
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11082 else
11083 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11084 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_path_orig_target_cpp+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 case $orig_target_cpp in
11091 [\\/]* | ?:[\\/]*)
11092 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11111 esac
11113 orig_target_cpp=$ac_cv_path_orig_target_cpp
11114 if test -n "$orig_target_cpp"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11116 $as_echo "$orig_target_cpp" >&6; }
11117 else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11125 if test "$orig_target_cpp" = ""; then
11126 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11129 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11130 if test "$cross_compiling" = "yes" ; then
11131 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11132 set dummy ${target_tool_prefix}gcc; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_path_orig_target_cc+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 case $orig_target_cc in
11139 [\\/]* | ?:[\\/]*)
11140 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11154 done
11155 done
11156 IFS=$as_save_IFS
11159 esac
11161 orig_target_cc=$ac_cv_path_orig_target_cc
11162 if test -n "$orig_target_cc"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11164 $as_echo "$orig_target_cc" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11171 else
11172 if test "$GCC" = "yes"; then
11173 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11174 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11175 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_path_orig_target_cc+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 case $orig_target_cc in
11182 [\\/]* | ?:[\\/]*)
11183 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in `dirname $aros_gcc_gcc`
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11197 done
11198 done
11199 IFS=$as_save_IFS
11202 esac
11204 orig_target_cc=$ac_cv_path_orig_target_cc
11205 if test -n "$orig_target_cc"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11207 $as_echo "$orig_target_cc" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11215 if test "$orig_target_cc" = ""; then
11216 # Extract the first word of "gcc", so it can be a program name with args.
11217 set dummy gcc; ac_word=$2
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 $as_echo_n "checking for $ac_word... " >&6; }
11220 if ${ac_cv_path_orig_target_cc+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 case $orig_target_cc in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11239 done
11240 done
11241 IFS=$as_save_IFS
11244 esac
11246 orig_target_cc=$ac_cv_path_orig_target_cc
11247 if test -n "$orig_target_cc"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11249 $as_echo "$orig_target_cc" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11258 else
11259 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11260 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_path_orig_target_cc+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 case $orig_target_cc in
11267 [\\/]* | ?:[\\/]*)
11268 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11282 done
11283 done
11284 IFS=$as_save_IFS
11287 esac
11289 orig_target_cc=$ac_cv_path_orig_target_cc
11290 if test -n "$orig_target_cc"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11292 $as_echo "$orig_target_cc" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11301 if test "$orig_target_cc" = ""; then
11302 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11305 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11306 if test "$cross_compiling" = "yes" ; then
11307 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11308 set dummy ${target_tool_prefix}g++; ac_word=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_path_orig_target_cxx+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 case $orig_target_cxx in
11315 [\\/]* | ?:[\\/]*)
11316 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11330 done
11331 done
11332 IFS=$as_save_IFS
11335 esac
11337 orig_target_cxx=$ac_cv_path_orig_target_cxx
11338 if test -n "$orig_target_cxx"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11340 $as_echo "$orig_target_cxx" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11347 else
11348 if test "$GCC" = "yes"; then
11349 aros_gcc_g++=`$CC -print-prog-name=g++`
11350 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11351 set dummy `basename $aros_gcc_g++`; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_path_orig_target_cxx+:} false; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 case $orig_target_cxx in
11358 [\\/]* | ?:[\\/]*)
11359 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in `dirname $aros_gcc_g++`
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11373 done
11374 done
11375 IFS=$as_save_IFS
11378 esac
11380 orig_target_cxx=$ac_cv_path_orig_target_cxx
11381 if test -n "$orig_target_cxx"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11383 $as_echo "$orig_target_cxx" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11391 if test "$orig_target_cxx" = ""; then
11392 # Extract the first word of "g++", so it can be a program name with args.
11393 set dummy g++; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_orig_target_cxx+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 case $orig_target_cxx in
11400 [\\/]* | ?:[\\/]*)
11401 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11415 done
11416 done
11417 IFS=$as_save_IFS
11420 esac
11422 orig_target_cxx=$ac_cv_path_orig_target_cxx
11423 if test -n "$orig_target_cxx"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11425 $as_echo "$orig_target_cxx" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11434 else
11435 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11436 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_path_orig_target_cxx+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 case $orig_target_cxx in
11443 [\\/]* | ?:[\\/]*)
11444 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11458 done
11459 done
11460 IFS=$as_save_IFS
11463 esac
11465 orig_target_cxx=$ac_cv_path_orig_target_cxx
11466 if test -n "$orig_target_cxx"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11468 $as_echo "$orig_target_cxx" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11477 if test "$orig_target_cxx" = ""; then
11478 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11481 if test "${aros_tool_prefix}ld" = ""; then
11482 if test "$cross_compiling" = "yes" ; then
11483 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11484 set dummy ${target_tool_prefix}gcc; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_orig_target_ld+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 case $orig_target_ld in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11506 done
11507 done
11508 IFS=$as_save_IFS
11511 esac
11513 orig_target_ld=$ac_cv_path_orig_target_ld
11514 if test -n "$orig_target_ld"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11516 $as_echo "$orig_target_ld" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11523 else
11524 if test "$GCC" = "yes"; then
11525 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11526 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11527 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if ${ac_cv_path_orig_target_ld+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 case $orig_target_ld in
11534 [\\/]* | ?:[\\/]*)
11535 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in `dirname $aros_gcc_gcc`
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11549 done
11550 done
11551 IFS=$as_save_IFS
11554 esac
11556 orig_target_ld=$ac_cv_path_orig_target_ld
11557 if test -n "$orig_target_ld"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11559 $as_echo "$orig_target_ld" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11567 if test "$orig_target_ld" = ""; then
11568 # Extract the first word of "gcc", so it can be a program name with args.
11569 set dummy gcc; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_path_orig_target_ld+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 case $orig_target_ld in
11576 [\\/]* | ?:[\\/]*)
11577 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11587 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 break 2
11591 done
11592 done
11593 IFS=$as_save_IFS
11596 esac
11598 orig_target_ld=$ac_cv_path_orig_target_ld
11599 if test -n "$orig_target_ld"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11601 $as_echo "$orig_target_ld" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11610 else
11611 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11612 set dummy ${aros_tool_prefix}ld; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if ${ac_cv_path_orig_target_ld+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 case $orig_target_ld in
11619 [\\/]* | ?:[\\/]*)
11620 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11634 done
11635 done
11636 IFS=$as_save_IFS
11639 esac
11641 orig_target_ld=$ac_cv_path_orig_target_ld
11642 if test -n "$orig_target_ld"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11644 $as_echo "$orig_target_ld" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11653 if test "$orig_target_ld" = ""; then
11654 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11657 if test "${aros_tool_prefix}as" = ""; then
11658 if test "$cross_compiling" = "yes" ; then
11659 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11660 set dummy ${target_tool_prefix}as; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_path_orig_target_as+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $orig_target_as in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11687 esac
11689 orig_target_as=$ac_cv_path_orig_target_as
11690 if test -n "$orig_target_as"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11692 $as_echo "$orig_target_as" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11699 else
11700 if test "$GCC" = "yes"; then
11701 aros_gcc_as=`$CC -print-prog-name=as`
11702 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11703 set dummy `basename $aros_gcc_as`; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if ${ac_cv_path_orig_target_as+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 case $orig_target_as in
11710 [\\/]* | ?:[\\/]*)
11711 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in `dirname $aros_gcc_as`
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11721 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11725 done
11726 done
11727 IFS=$as_save_IFS
11730 esac
11732 orig_target_as=$ac_cv_path_orig_target_as
11733 if test -n "$orig_target_as"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11735 $as_echo "$orig_target_as" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11743 if test "$orig_target_as" = ""; then
11744 # Extract the first word of "as", so it can be a program name with args.
11745 set dummy as; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_orig_target_as+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 case $orig_target_as in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11767 done
11768 done
11769 IFS=$as_save_IFS
11772 esac
11774 orig_target_as=$ac_cv_path_orig_target_as
11775 if test -n "$orig_target_as"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11777 $as_echo "$orig_target_as" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11786 else
11787 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11788 set dummy ${aros_tool_prefix}as; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_path_orig_target_as+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 case $orig_target_as in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11810 done
11811 done
11812 IFS=$as_save_IFS
11815 esac
11817 orig_target_as=$ac_cv_path_orig_target_as
11818 if test -n "$orig_target_as"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11820 $as_echo "$orig_target_as" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11829 if test "$orig_target_as" = ""; then
11830 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11833 if test "${aros_tool_prefix}ar" = ""; then
11834 if test "$cross_compiling" = "yes" ; then
11835 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11836 set dummy ${target_tool_prefix}ar; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_path_orig_target_ar+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 case $orig_target_ar in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11863 esac
11865 orig_target_ar=$ac_cv_path_orig_target_ar
11866 if test -n "$orig_target_ar"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11868 $as_echo "$orig_target_ar" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11875 else
11876 if test "$GCC" = "yes"; then
11877 aros_gcc_ar=`$CC -print-prog-name=ar`
11878 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11879 set dummy `basename $aros_gcc_ar`; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_path_orig_target_ar+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 case $orig_target_ar in
11886 [\\/]* | ?:[\\/]*)
11887 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in `dirname $aros_gcc_ar`
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11901 done
11902 done
11903 IFS=$as_save_IFS
11906 esac
11908 orig_target_ar=$ac_cv_path_orig_target_ar
11909 if test -n "$orig_target_ar"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11911 $as_echo "$orig_target_ar" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11919 if test "$orig_target_ar" = ""; then
11920 # Extract the first word of "ar", so it can be a program name with args.
11921 set dummy ar; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_path_orig_target_ar+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 case $orig_target_ar in
11928 [\\/]* | ?:[\\/]*)
11929 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11943 done
11944 done
11945 IFS=$as_save_IFS
11948 esac
11950 orig_target_ar=$ac_cv_path_orig_target_ar
11951 if test -n "$orig_target_ar"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11953 $as_echo "$orig_target_ar" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11962 else
11963 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11964 set dummy ${aros_tool_prefix}ar; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_path_orig_target_ar+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 case $orig_target_ar in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11986 done
11987 done
11988 IFS=$as_save_IFS
11991 esac
11993 orig_target_ar=$ac_cv_path_orig_target_ar
11994 if test -n "$orig_target_ar"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11996 $as_echo "$orig_target_ar" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12005 if test "$orig_target_ar" = ""; then
12006 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12009 if test "${aros_tool_prefix}ranlib" = ""; then
12010 if test "$cross_compiling" = "yes" ; then
12011 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12012 set dummy ${target_tool_prefix}ar; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 case $orig_target_ranlib in
12019 [\\/]* | ?:[\\/]*)
12020 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12034 done
12035 done
12036 IFS=$as_save_IFS
12039 esac
12041 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12042 if test -n "$orig_target_ranlib"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12044 $as_echo "$orig_target_ranlib" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12051 else
12052 if test "$GCC" = "yes"; then
12053 aros_gcc_ar=`$CC -print-prog-name=ar`
12054 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12055 set dummy `basename $aros_gcc_ar`; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 case $orig_target_ranlib in
12062 [\\/]* | ?:[\\/]*)
12063 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in `dirname $aros_gcc_ar`
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12077 done
12078 done
12079 IFS=$as_save_IFS
12082 esac
12084 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12085 if test -n "$orig_target_ranlib"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12087 $as_echo "$orig_target_ranlib" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12095 if test "$orig_target_ranlib" = ""; then
12096 # Extract the first word of "ar", so it can be a program name with args.
12097 set dummy ar; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 case $orig_target_ranlib in
12104 [\\/]* | ?:[\\/]*)
12105 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12115 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12119 done
12120 done
12121 IFS=$as_save_IFS
12124 esac
12126 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12127 if test -n "$orig_target_ranlib"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12129 $as_echo "$orig_target_ranlib" >&6; }
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12138 else
12139 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12140 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 case $orig_target_ranlib in
12147 [\\/]* | ?:[\\/]*)
12148 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12167 esac
12169 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12170 if test -n "$orig_target_ranlib"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12172 $as_echo "$orig_target_ranlib" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12181 if test "$orig_target_ranlib" = ""; then
12182 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12185 if test "${aros_tool_prefix}nm" = ""; then
12186 if test "$cross_compiling" = "yes" ; then
12187 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12188 set dummy ${target_tool_prefix}nm; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_orig_target_nm+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 case $orig_target_nm in
12195 [\\/]* | ?:[\\/]*)
12196 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12210 done
12211 done
12212 IFS=$as_save_IFS
12215 esac
12217 orig_target_nm=$ac_cv_path_orig_target_nm
12218 if test -n "$orig_target_nm"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12220 $as_echo "$orig_target_nm" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12227 else
12228 if test "$GCC" = "yes"; then
12229 aros_gcc_nm=`$CC -print-prog-name=nm`
12230 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12231 set dummy `basename $aros_gcc_nm`; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_path_orig_target_nm+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 case $orig_target_nm in
12238 [\\/]* | ?:[\\/]*)
12239 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in `dirname $aros_gcc_nm`
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12253 done
12254 done
12255 IFS=$as_save_IFS
12258 esac
12260 orig_target_nm=$ac_cv_path_orig_target_nm
12261 if test -n "$orig_target_nm"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12263 $as_echo "$orig_target_nm" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 if test "$orig_target_nm" = ""; then
12272 # Extract the first word of "nm", so it can be a program name with args.
12273 set dummy nm; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_path_orig_target_nm+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 case $orig_target_nm in
12280 [\\/]* | ?:[\\/]*)
12281 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12300 esac
12302 orig_target_nm=$ac_cv_path_orig_target_nm
12303 if test -n "$orig_target_nm"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12305 $as_echo "$orig_target_nm" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12314 else
12315 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12316 set dummy ${aros_tool_prefix}nm; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_path_orig_target_nm+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 case $orig_target_nm in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12343 esac
12345 orig_target_nm=$ac_cv_path_orig_target_nm
12346 if test -n "$orig_target_nm"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12348 $as_echo "$orig_target_nm" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12357 if test "$orig_target_nm" = ""; then
12358 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12361 if test "${aros_tool_prefix}strip" = ""; then
12362 if test "$cross_compiling" = "yes" ; then
12363 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12364 set dummy ${target_tool_prefix}strip; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_path_orig_target_strip+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 case $orig_target_strip in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12386 done
12387 done
12388 IFS=$as_save_IFS
12391 esac
12393 orig_target_strip=$ac_cv_path_orig_target_strip
12394 if test -n "$orig_target_strip"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12396 $as_echo "$orig_target_strip" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12403 else
12404 if test "$GCC" = "yes"; then
12405 aros_gcc_strip=`$CC -print-prog-name=strip`
12406 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12407 set dummy `basename $aros_gcc_strip`; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_path_orig_target_strip+:} false; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 case $orig_target_strip in
12414 [\\/]* | ?:[\\/]*)
12415 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in `dirname $aros_gcc_strip`
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 break 2
12429 done
12430 done
12431 IFS=$as_save_IFS
12434 esac
12436 orig_target_strip=$ac_cv_path_orig_target_strip
12437 if test -n "$orig_target_strip"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12439 $as_echo "$orig_target_strip" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12447 if test "$orig_target_strip" = ""; then
12448 # Extract the first word of "strip", so it can be a program name with args.
12449 set dummy strip; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_path_orig_target_strip+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 case $orig_target_strip in
12456 [\\/]* | ?:[\\/]*)
12457 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12476 esac
12478 orig_target_strip=$ac_cv_path_orig_target_strip
12479 if test -n "$orig_target_strip"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12481 $as_echo "$orig_target_strip" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12490 else
12491 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12492 set dummy ${aros_tool_prefix}strip; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_orig_target_strip+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 case $orig_target_strip in
12499 [\\/]* | ?:[\\/]*)
12500 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12514 done
12515 done
12516 IFS=$as_save_IFS
12519 esac
12521 orig_target_strip=$ac_cv_path_orig_target_strip
12522 if test -n "$orig_target_strip"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12524 $as_echo "$orig_target_strip" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12533 if test "$orig_target_strip" = ""; then
12534 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12537 if test "${aros_tool_prefix}objcopy" = ""; then
12538 if test "$cross_compiling" = "yes" ; then
12539 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12540 set dummy ${target_tool_prefix}objcopy; 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_objcopy+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 case $orig_target_objcopy in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
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_objcopy="$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_objcopy=$ac_cv_path_orig_target_objcopy
12570 if test -n "$orig_target_objcopy"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12572 $as_echo "$orig_target_objcopy" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12579 else
12580 if test "$GCC" = "yes"; then
12581 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12582 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12583 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 $as_echo_n "checking for $ac_word... " >&6; }
12586 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 case $orig_target_objcopy in
12590 [\\/]* | ?:[\\/]*)
12591 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in `dirname $aros_gcc_objcopy`
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12605 done
12606 done
12607 IFS=$as_save_IFS
12610 esac
12612 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12613 if test -n "$orig_target_objcopy"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12615 $as_echo "$orig_target_objcopy" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12623 if test "$orig_target_objcopy" = ""; then
12624 # Extract the first word of "objcopy", so it can be a program name with args.
12625 set dummy objcopy; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 case $orig_target_objcopy in
12632 [\\/]* | ?:[\\/]*)
12633 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12652 esac
12654 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12655 if test -n "$orig_target_objcopy"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12657 $as_echo "$orig_target_objcopy" >&6; }
12658 else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12666 else
12667 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12668 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 case $orig_target_objcopy in
12675 [\\/]* | ?:[\\/]*)
12676 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12686 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12695 esac
12697 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12698 if test -n "$orig_target_objcopy"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12700 $as_echo "$orig_target_objcopy" >&6; }
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12709 if test "$orig_target_objcopy" = ""; then
12710 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12713 if test "${aros_tool_prefix}objdump" = ""; then
12714 if test "$cross_compiling" = "yes" ; then
12715 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12716 set dummy ${target_tool_prefix}objdump; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if ${ac_cv_path_orig_target_objdump+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 case $orig_target_objdump in
12723 [\\/]* | ?:[\\/]*)
12724 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12738 done
12739 done
12740 IFS=$as_save_IFS
12743 esac
12745 orig_target_objdump=$ac_cv_path_orig_target_objdump
12746 if test -n "$orig_target_objdump"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12748 $as_echo "$orig_target_objdump" >&6; }
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12755 else
12756 if test "$GCC" = "yes"; then
12757 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12758 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12759 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_path_orig_target_objdump+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 case $orig_target_objdump in
12766 [\\/]* | ?:[\\/]*)
12767 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in `dirname $aros_gcc_objdump`
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12781 done
12782 done
12783 IFS=$as_save_IFS
12786 esac
12788 orig_target_objdump=$ac_cv_path_orig_target_objdump
12789 if test -n "$orig_target_objdump"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12791 $as_echo "$orig_target_objdump" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12799 if test "$orig_target_objdump" = ""; then
12800 # Extract the first word of "objdump", so it can be a program name with args.
12801 set dummy objdump; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 $as_echo_n "checking for $ac_word... " >&6; }
12804 if ${ac_cv_path_orig_target_objdump+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 case $orig_target_objdump in
12808 [\\/]* | ?:[\\/]*)
12809 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12819 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 break 2
12823 done
12824 done
12825 IFS=$as_save_IFS
12828 esac
12830 orig_target_objdump=$ac_cv_path_orig_target_objdump
12831 if test -n "$orig_target_objdump"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12833 $as_echo "$orig_target_objdump" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12842 else
12843 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12844 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_path_orig_target_objdump+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 case $orig_target_objdump in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12871 esac
12873 orig_target_objdump=$ac_cv_path_orig_target_objdump
12874 if test -n "$orig_target_objdump"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12876 $as_echo "$orig_target_objdump" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12885 if test "$orig_target_objdump" = ""; then
12886 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12890 if test "$kernel_tool_prefix" = "none" ; then
12891 # No kernel tools specified
12892 # Assume target tools == kernel tools with ELF wrapper
12893 aros_kernel_cc=$orig_target_cc
12894 aros_kernel_cxx=$orig_target_cxx
12895 aros_kernel_cpp=$orig_target_cpp
12896 aros_kernel_ld=$orig_target_ld
12897 aros_kernel_as=$orig_target_as
12898 aros_kernel_ar=$orig_target_ar
12899 aros_kernel_ranlib=$orig_target_ranlib
12900 aros_kernel_nm=$orig_target_nm
12901 aros_kernel_strip=$orig_target_strip
12902 aros_kernel_objcopy=$orig_target_objcopy
12903 aros_kernel_objdump=$orig_target_objdump
12904 use_kernel_cc_wrapper=yes
12907 # At this point, all aros_kernel_* and aros_target_*
12908 # tools should be set up correctly
12910 CC="$aros_kernel_cc $kernel_tool_flags"
12911 CPP="$aros_kernel_cpp"
12913 #-----------------------------------------------------------------------------
12915 # Disable pointer-signedness warnings if the compiler recognises the option
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12918 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12919 save_cflags="$CFLAGS"
12920 if test "$crosstools" != "yes" ; then
12921 CFLAGS="$CFLAGS -Wno-pointer-sign"
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12926 main ()
12930 return 0;
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934 use_no_sign_warning="yes"
12935 else
12936 use_no_sign_warning="no"
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 else
12940 # we do know it is supported for the smallest version of gcc we are going to build
12941 # we assume it's also supported by later versions
12942 use_no_sign_warning=yes
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12945 $as_echo "$use_no_sign_warning" >&6; }
12946 if test "x-$use_no_sign_warning" = "x-yes" ; then
12947 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12949 CFLAGS="$save_cflags"
12951 #-----------------------------------------------------------------------------
12953 # Find all the tools we need to compile. This could be cross-compiling
12954 # though! If that is the case we use the GNU form of the target and
12955 # simply add this to the front of the binary name. This is rather simple,
12956 # but it should work under most circumstances.
12958 # The default tools are to use the same as the host, but only if the
12959 # host and target CPU are the same. With GCC this is normally enough.
12962 aros_cc_pre=""
12963 aros_shared_ld="$aros_host_ld"
12965 aros_target_mkdep="$aros_host_mkdep"
12967 # The default tools executables to be linked to.
12968 if test "$rescomp" != ""; then
12969 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12970 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 case $aros_kernel_rescomp in
12977 [\\/]* | ?:[\\/]*)
12978 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12984 IFS=$as_save_IFS
12985 test -z "$as_dir" && as_dir=.
12986 for ac_exec_ext in '' $ac_executable_extensions; do
12987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12988 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12990 break 2
12992 done
12993 done
12994 IFS=$as_save_IFS
12997 esac
12999 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13000 if test -n "$aros_kernel_rescomp"; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13002 $as_echo "$aros_kernel_rescomp" >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005 $as_echo "no" >&6; }
13009 if test "$aros_kernel_rescomp" = ""; then
13010 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13014 # Set up the sources for the symlink farm
13015 if test "$crosstools" = "yes"; then
13016 crosstools_target=tools-crosstools
13019 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13020 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13022 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
13023 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13024 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13025 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13026 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13027 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13028 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13030 # aros_cc_pre is a variable that is added to the front of the compiler name
13031 # in the generated aros-gcc shell script. We need this to enable the cache
13032 # to work across cleaned builds. Also, support DISTCC using the correct
13033 # environment variable.
13036 if test "x${DISTCC}" != "x" ; then
13037 if test "x${CCACHE}" != "x" ; then
13038 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13039 else
13040 aros_cc_pre="${DISTCC} "
13042 else
13043 if test "x${CCACHE}" != "x" ; then
13044 aros_cc_pre="${CCACHE} "
13048 aros_target_nostdinc_cflags=-nostdinc
13050 aros_target_nostartup_ldflags=-nostartfiles
13052 aros_target_nix_ldflags=-nix
13054 aros_target_detach_ldflags=-detach
13056 aros_target_nostdlib_ldflags=-nostdlib
13059 # Target tools
13060 if test "$aros_target_toolchain" != "yes"; then
13061 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13062 if test "$GCC" = "yes"; then
13063 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13065 else
13066 # We do not know which gcc version we are going to build and what we need to know
13067 # here is different for different versions so this will be set later during the
13068 # build of crosstools.
13069 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13070 aros_target_cc_path=@aros_target_cc_path@
13072 aros_target_cpp="${prefix}cpp"
13073 aros_target_cc="${prefix}gcc"
13074 aros_target_cxx="${prefix}g++"
13075 aros_target_as="${prefix}as"
13076 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13077 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13078 aros_target_objcopy="${prefix}objcopy"
13079 aros_target_objdump="${prefix}objdump"
13080 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13081 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13082 aros_target_strip="${prefix}strip"
13083 aros_plain_nm="${prefix}nm"
13084 aros_plain_ar="${prefix}ar"
13086 # Check whether --enable-includes was given.
13087 if test "${enable_includes+set}" = set; then :
13088 enableval=$enable_includes; aros_target_incl=$enable_includes
13089 else
13090 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13094 if test "$aros_kernel_includes" = ""; then
13095 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13096 aros_kernel_includes="-isystem $aros_target_incl"
13100 if test "$aros_kernel_includes" != "" ; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13102 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13103 if test "$aros_kernel_cc_includes" = "" ; then
13104 # Try to guess where the directory is.
13105 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13106 if test -d $aros_kernel_cc_includes; then
13107 # Check if there is also an include-fixed directory and add it
13108 # to kernel compiler's include path as it may contain some of
13109 # the headers we need.
13110 if test -d "$aros_kernel_cc_includes"-fixed; then
13111 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13113 # Check for specific includes directory. Neede for Ubuntu 11.10
13114 if test -d "/usr/include/i386-linux-gnu"; then
13115 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13117 else
13118 # The directory doesn't exist, we need to do some more work.
13119 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13121 # These are the headers we're looking for.
13122 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13123 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13124 zutil.h stdint.h"
13126 dirs=
13127 for h in $headers; do
13128 # Which other headers are needed by each of the above?
13129 deps=$(echo "#include <$h>" | \
13130 $aros_kernel_cc -E -M - 2>/dev/null | \
13131 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13133 # Copy all the needed headers to a directory beneath gendir.
13134 for d in $deps; do
13135 h=$(basename $d)
13136 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13137 sed -n "s,^.*/include\(/.*\),\1,p")
13138 ! test -d $dir && mkdir -p $dir
13139 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13140 done
13141 done
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13145 $as_echo "$aros_kernel_cc_includes" >&6; }
13146 # Adding -nostdinc to kernel includes as they are always used together.
13147 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13150 if test "$crosstools" != "yes"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13152 $as_echo_n "checking for the target compiler's include path... " >&6; }
13153 if test "$aros_target_cc_includes" = "" ; then
13154 #try to guess where the directory is
13155 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13156 if ! test -d $aros_target_cc_includes; then
13157 #the directory doesn't exist, we need to do some more work
13158 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13160 #these are the headers we're looking for
13161 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13162 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13163 zutil.h"
13165 dirs=
13166 for h in $headers; do
13167 #which other headers each of the above headers needs?
13168 deps=$(echo "#include <$h>" | \
13169 $orig_target_cc -E -M - 2>/dev/null | \
13170 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13172 #copy all the needed headers to a directory beneath gendir
13173 for d in $deps; do
13174 h=$(basename $d)
13175 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13176 sed -n "s,^.*/include\(/.*\),\1,p")
13177 ! test -d $dir && mkdir -p $dir
13178 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13179 done
13180 done
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13184 $as_echo "$aros_target_cc_includes" >&6; }
13185 else
13186 # We do not know which gcc version we are going to build and what we need to know
13187 # here is different for different versions so this will be set later during the
13188 # build of crosstools.
13189 aros_target_cc_includes=@aros_target_cc_includes@
13193 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13194 # On GCC >= 4.0 -iquote should be used
13197 save_cc="$CC"
13198 save_cflags="$CFLAGS"
13199 CFLAGS="-iquote."
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13201 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13202 if test "x-$crosstools" != "x-yes"; then
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13207 main ()
13211 return 0;
13213 _ACEOF
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 has_iquote="yes"
13216 else
13217 has_iquote="no"
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 else
13221 # we do know it is supported for the smallest version of gcc we are going to build
13222 # we assume it's also supported by later versions
13223 has_iquote=yes
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13226 $as_echo "$has_iquote" >&6; }
13227 if test "x-$has_iquote" = "x-yes" ; then
13228 host_cflags_iquote=-iquote
13229 host_cflags_iquote_end=
13230 else
13231 host_cflags_iquote=-I
13232 host_cflags_iquote_end=-I-
13234 kernel_cflags_iquote=$host_cflags_iquote
13235 kernel_cflags_iquote_end=$host_cflags_iquote_end
13236 if test "x-$cross_compiling" = "x-yes"; then
13237 CC="$aros_kernel_cc"
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13239 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13240 if test "x-$crosstools" != "x-yes"; then
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 main ()
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"; then :
13253 use_no_stack_protector="yes"
13254 else
13255 use_no_stack_protector="no"
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 else
13259 # we do know it is supported for the smallest version of gcc we are going to build
13260 # we assume it's also supported by later versions
13261 use_no_stack_protector=yes
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13264 $as_echo "$use_no_stack_protector" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13266 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13267 if test "x-$crosstools" != "x-yes"; then
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13272 main ()
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_compile "$LINENO"; then :
13280 has_iquote="yes"
13281 else
13282 has_iquote="no"
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 else
13286 # we do know it is supported for the smallest version of gcc we are going to build
13287 # we assume it's also supported by later versions
13288 has_iquote=yes
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13291 $as_echo "$has_iquote" >&6; }
13292 if test "x-$has_iquote" = "x-yes" ; then
13293 kernel_cflags_iquote=-iquote
13294 kernel_cflags_iquote_end=
13295 else
13296 kernel_cflags_iquote=-I
13297 kernel_cflags_iquote_end=-I-
13300 aros_cflags_iquote=$kernel_cflags_iquote
13301 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13302 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13303 CC="$orig_target_cc"
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13305 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13306 if test "x-$crosstools" != "x-yes"; then
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13311 main ()
13315 return 0;
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"; then :
13319 has_iquote="yes"
13320 else
13321 has_iquote="no"
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 else
13325 # we do know it is supported for the smallest version of gcc we are going to build
13326 # we assume it's also supported by later versions
13327 has_iquote=yes
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13330 $as_echo "$has_iquote" >&6; }
13331 if test "x-$has_iquote" = "x-yes" ; then
13332 aros_cflags_iquote=-iquote
13333 aros_cflags_iquote_end=
13334 else
13335 aros_cflags_iquote=-I
13336 aros_cflags_iquote_end=-I-
13339 if test "x-$use_no_stack_protector" = "x-yes" ; then
13340 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13344 #-----------------------------------------------------------------------------
13346 # Check if the target compiler supports some options used for delinting:
13347 # -Wunused-but-set-variable
13348 # -Warray-bounds
13349 # -Wenum-compare
13350 # -Wstrict-overflow
13351 # -Wformat-security
13353 if test "x-$crosstools" != "x-yes"; then
13354 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13355 CC="$orig_target_cc"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13358 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13359 CFLAGS=-Wunused-but-set-variable
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13364 main ()
13368 return 0;
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372 aros_unused_but_set_variable="yes"
13373 else
13374 aros_unused_but_set_variable="no"
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13378 $as_echo "$aros_unused_but_set_variable" >&6; }
13379 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13380 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13384 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13385 CFLAGS=-Warray-bounds
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13390 main ()
13394 return 0;
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 aros_array_bounds="yes"
13399 else
13400 aros_array_bounds="no"
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13404 $as_echo "$aros_array_bounds" >&6; }
13405 if test "x-$aros_array_bounds" = "x-yes" ; then
13406 aros_cflags_array_bounds=-Wno-array-bounds
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13410 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13411 CFLAGS=-Wenum-compare
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13416 main ()
13420 return 0;
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 aros_enum_compare="yes"
13425 else
13426 aros_enum_compare="no"
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13430 $as_echo "$aros_enum_compare" >&6; }
13431 if test "x-$aros_enum_compare" = "x-yes" ; then
13432 aros_cflags_enum_compare=-Wno-enum-compare
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13436 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13437 CFLAGS=-Wstrict-overflow
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13442 main ()
13446 return 0;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 aros_strict_overflow="yes"
13451 else
13452 aros_strict_overflow="no"
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13456 $as_echo "$aros_strict_overflow" >&6; }
13457 if test "x-$aros_strict_overflow" = "x-yes" ; then
13458 aros_cflags_strict_overflow=-Wno-strict-overflow
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13462 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13463 CFLAGS=-Wformat-security
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13468 main ()
13472 return 0;
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"; then :
13476 aros_format_security="yes"
13477 else
13478 aros_format_security="no"
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13482 $as_echo "$aros_format_security" >&6; }
13483 if test "x-$aros_format_security" = "x-yes" ; then
13484 aros_cflags_format_security=-Wno-format-security
13486 else
13487 # We do not know which gcc version we are going to build and what we need to know
13488 # here is different for different versions so this will be set later during the
13489 # build of crosstools.
13490 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13491 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13492 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13493 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13494 aros_cflags_format_security=@aros_cflags_format_security@
13497 #-----------------------------------------------------------------------------
13499 # Check if we can explicitly choose older version of symbol hashing
13501 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13502 CC="$aros_kernel_cc"
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13504 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13509 main ()
13513 return 0;
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 use_hash_style="yes"
13518 else
13519 use_hash_style="no"
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13524 $as_echo "$use_hash_style" >&6; }
13525 if test "x-$use_hash_style" = "x-yes" ; then
13526 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13528 CC="$save_cc"
13529 CFLAGS="$save_cflags"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13540 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13542 # Check whether --with-resolution was given.
13543 if test "${with_resolution+set}" = set; then :
13544 withval=$with_resolution; resolution=$withval
13545 else
13546 resolution=none
13549 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13550 if test "$resolution" = "yes" ; then
13551 resolution="none"
13553 if test "$resolution" = "no" ; then
13554 resolution="none"
13556 if test "$resolution" != "none" ; then
13557 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13558 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13559 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13562 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13563 aros_cv_default_wbwidth=$aros_default_wbwidth
13564 aros_cv_default_wbheight=$aros_default_wbheight
13565 aros_cv_default_wbdepth=$aros_default_wbdepth
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13568 $as_echo_n "checking if serial debug is enabled... " >&6; }
13570 # Check whether --with-serial-debug was given.
13571 if test "${with_serial_debug+set}" = set; then :
13572 withval=$with_serial_debug; serial_debug=$withval
13573 else
13574 serial_debug=none
13577 if test "$aros_serial_debug" = 0 ; then
13578 serial_debug_forced=""
13579 if test "$serial_debug" = "yes" ; then
13580 serial_debug="1"
13582 if test "$serial_debug" = "no" ; then
13583 serial_debug="none"
13585 else
13586 serial_debug_forced="(forced)"
13587 serial_debug=$aros_serial_debug
13589 if test "$serial_debug" != "none" ; then
13590 aros_serial_debug=$serial_debug
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13592 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13599 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13600 # Check whether --enable-palm_debug_hack was given.
13601 if test "${enable_palm_debug_hack+set}" = set; then :
13602 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13603 else
13604 palm_debug_hack="no"
13607 if test "$palm_debug_hack" = "yes" ; then
13608 aros_palm_debug_hack="1"
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13611 $as_echo "$palm_debug_hack" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13614 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13615 # Check whether --enable-usb30_code was given.
13616 if test "${enable_usb30_code+set}" = set; then :
13617 enableval=$enable_usb30_code; usb30_code="yes"
13618 else
13619 usb30_code="no"
13622 if test "$usb30_code" = "yes" ; then
13623 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13624 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13627 $as_echo "$usb30_code" >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13630 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13631 # Check whether --enable-nesting_supervisor was given.
13632 if test "${enable_nesting_supervisor+set}" = set; then :
13633 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13634 else
13635 nesting_supervisor="no"
13638 if test "$nesting_supervisor" = "yes" ; then
13639 aros_nesting_supervisor="1"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13642 $as_echo "$nesting_supervisor" >&6; }
13644 if test "$aros_enable_mmu" = "" ; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13646 $as_echo_n "checking if MMU support is enabled... " >&6; }
13647 # Check whether --enable-mmu was given.
13648 if test "${enable_mmu+set}" = set; then :
13649 enableval=$enable_mmu; aros_enable_mmu=$enableval
13650 else
13651 aros_enable_mmu="yes"
13654 if test "$aros_enable_mmu" = "" ; then
13655 aros_enable_mmu="yes"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13658 $as_echo "$aros_enable_mmu" >&6; }
13660 if test "$aros_enable_mmu" = "no" ; then
13661 aros_enable_mmu="0"
13662 else
13663 aros_enable_mmu="1"
13667 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13669 if test "x-$need_dlopen" != "x-no" ; then
13670 save_libs="$LIBS"
13671 LIBS=""
13672 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13673 if test "x$ac_cv_func_dlopen" = xyes; then :
13674 have_dl="yes"
13675 else
13676 have_dl="no"
13679 if test "x-$have_dl" = "x-no" ; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13682 if ${ac_cv_lib_dl_dlopen+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-ldl $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char dlopen ();
13698 main ()
13700 return dlopen ();
13702 return 0;
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_dl_dlopen=yes
13707 else
13708 ac_cv_lib_dl_dlopen=no
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13717 have_dl="yes"
13718 aros_host_ldflags="$aros_host_ldflags -ldl"
13719 else
13720 have_dl="no"
13724 if test "x-$have_dl" = "x-no" ; then
13725 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13727 LIBS="$save_libs"
13731 # Check whether --enable-x11_hidd was given.
13732 if test "${enable_x11_hidd+set}" = set; then :
13733 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13734 else
13735 x11_hidd="$need_x11"
13738 case "x-$x11_hidd" in
13739 x-yes|x-no|x-auto) ;;
13740 *) x11_hidd="$need_x11" ;;
13741 esac
13743 ENABLE_X11=0
13745 if test "x-$x11_hidd" != "x-no" ; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13748 $as_echo_n "checking for X... " >&6; }
13751 # Check whether --with-x was given.
13752 if test "${with_x+set}" = set; then :
13753 withval=$with_x;
13756 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13757 if test "x$with_x" = xno; then
13758 # The user explicitly disabled X.
13759 have_x=disabled
13760 else
13761 case $x_includes,$x_libraries in #(
13762 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13763 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 # One or both of the vars are not set, and there is no cached value.
13767 ac_x_includes=no ac_x_libraries=no
13768 rm -f -r conftest.dir
13769 if mkdir conftest.dir; then
13770 cd conftest.dir
13771 cat >Imakefile <<'_ACEOF'
13772 incroot:
13773 @echo incroot='${INCROOT}'
13774 usrlibdir:
13775 @echo usrlibdir='${USRLIBDIR}'
13776 libdir:
13777 @echo libdir='${LIBDIR}'
13778 _ACEOF
13779 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13780 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13781 for ac_var in incroot usrlibdir libdir; do
13782 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13783 done
13784 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13785 for ac_extension in a so sl dylib la dll; do
13786 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13787 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13788 ac_im_usrlibdir=$ac_im_libdir; break
13790 done
13791 # Screen out bogus values from the imake configuration. They are
13792 # bogus both because they are the default anyway, and because
13793 # using them would break gcc on systems where it needs fixed includes.
13794 case $ac_im_incroot in
13795 /usr/include) ac_x_includes= ;;
13796 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13797 esac
13798 case $ac_im_usrlibdir in
13799 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13800 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13801 esac
13803 cd ..
13804 rm -f -r conftest.dir
13807 # Standard set of common directories for X headers.
13808 # Check X11 before X11Rn because it is often a symlink to the current release.
13809 ac_x_header_dirs='
13810 /usr/X11/include
13811 /usr/X11R7/include
13812 /usr/X11R6/include
13813 /usr/X11R5/include
13814 /usr/X11R4/include
13816 /usr/include/X11
13817 /usr/include/X11R7
13818 /usr/include/X11R6
13819 /usr/include/X11R5
13820 /usr/include/X11R4
13822 /usr/local/X11/include
13823 /usr/local/X11R7/include
13824 /usr/local/X11R6/include
13825 /usr/local/X11R5/include
13826 /usr/local/X11R4/include
13828 /usr/local/include/X11
13829 /usr/local/include/X11R7
13830 /usr/local/include/X11R6
13831 /usr/local/include/X11R5
13832 /usr/local/include/X11R4
13834 /usr/X386/include
13835 /usr/x386/include
13836 /usr/XFree86/include/X11
13838 /usr/include
13839 /usr/local/include
13840 /usr/unsupported/include
13841 /usr/athena/include
13842 /usr/local/x11r5/include
13843 /usr/lpp/Xamples/include
13845 /usr/openwin/include
13846 /usr/openwin/share/include'
13848 if test "$ac_x_includes" = no; then
13849 # Guess where to find include files, by looking for Xlib.h.
13850 # First, try using that file with no special directory specified.
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <X11/Xlib.h>
13854 _ACEOF
13855 if ac_fn_c_try_cpp "$LINENO"; then :
13856 # We can compile using X headers with no special include directory.
13857 ac_x_includes=
13858 else
13859 for ac_dir in $ac_x_header_dirs; do
13860 if test -r "$ac_dir/X11/Xlib.h"; then
13861 ac_x_includes=$ac_dir
13862 break
13864 done
13866 rm -f conftest.err conftest.i conftest.$ac_ext
13867 fi # $ac_x_includes = no
13869 if test "$ac_x_libraries" = no; then
13870 # Check for the libraries.
13871 # See if we find them without any special options.
13872 # Don't add to $LIBS permanently.
13873 ac_save_LIBS=$LIBS
13874 LIBS="-lX11 $LIBS"
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <X11/Xlib.h>
13879 main ()
13881 XrmInitialize ()
13883 return 0;
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 LIBS=$ac_save_LIBS
13888 # We can link X programs with no special library path.
13889 ac_x_libraries=
13890 else
13891 LIBS=$ac_save_LIBS
13892 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13894 # Don't even attempt the hair of trying to link an X program!
13895 for ac_extension in a so sl dylib la dll; do
13896 if test -r "$ac_dir/libX11.$ac_extension"; then
13897 ac_x_libraries=$ac_dir
13898 break 2
13900 done
13901 done
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 fi # $ac_x_libraries = no
13907 case $ac_x_includes,$ac_x_libraries in #(
13908 no,* | *,no | *\'*)
13909 # Didn't find X, or a directory has "'" in its name.
13910 ac_cv_have_x="have_x=no";; #(
13912 # Record where we found X for the cache.
13913 ac_cv_have_x="have_x=yes\
13914 ac_x_includes='$ac_x_includes'\
13915 ac_x_libraries='$ac_x_libraries'"
13916 esac
13918 ;; #(
13919 *) have_x=yes;;
13920 esac
13921 eval "$ac_cv_have_x"
13922 fi # $with_x != no
13924 if test "$have_x" != yes; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13926 $as_echo "$have_x" >&6; }
13927 no_x=yes
13928 else
13929 # If each of the values was on the command line, it overrides each guess.
13930 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13931 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13932 # Update the cache value to reflect the command line values.
13933 ac_cv_have_x="have_x=yes\
13934 ac_x_includes='$x_includes'\
13935 ac_x_libraries='$x_libraries'"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13937 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13941 x_cflags=
13942 for path in $x_libraries
13944 x_cflags="$x_cflags -L$path"
13945 done
13947 for path in $x_includes
13949 x_cflags="$x_cflags -I$path"
13950 done
13952 if test "x-$no_x" = "x-yes" ; then
13954 if test "x-$x11_hidd" != "x-auto" ; then
13955 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13958 else
13959 unixgfx_hidd_target=kernel-x11gfx
13960 ENABLE_X11=1
13962 # Check whether --enable-x11_shm was given.
13963 if test "${enable_x11_shm+set}" = set; then :
13964 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13965 else
13966 x11_hidd_shm="auto"
13969 case "x-$x11_hidd_shm" in
13970 x-yes|x-no|x-auto) ;;
13971 *) x11_hidd_shm="auto" ;;
13972 esac
13974 have_xshm=no
13976 if test "x-$x11_hidd_shm" != "x-no" ; then
13978 for ac_header in sys/ipc.h
13979 do :
13980 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13981 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_SYS_IPC_H 1
13984 _ACEOF
13988 done
13990 for ac_header in sys/shm.h
13991 do :
13992 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13993 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_SYS_SHM_H 1
13996 _ACEOF
14000 done
14003 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14005 save_cflags="$CFLAGS"
14006 CFLAGS="$CFLAGS $x_cflags"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14008 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14009 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 ac_check_lib_save_LIBS=$LIBS
14013 LIBS="-lXext $LIBS"
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14017 /* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char XShmQueryExtension ();
14025 main ()
14027 return XShmQueryExtension ();
14029 return 0;
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 ac_cv_lib_Xext_XShmQueryExtension=yes
14034 else
14035 ac_cv_lib_Xext_XShmQueryExtension=no
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 LIBS=$ac_check_lib_save_LIBS
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14042 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14043 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14044 have_xshm=yes
14047 CFLAGS="$save_cflags"
14051 if test "x-$have_xshm" = "x-yes" ; then
14052 DO_XSHM_SUPPORT="1"
14053 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14054 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14055 else
14056 DO_XSHM_SUPPORT="0"
14060 # Check whether --enable-x11_vidmode was given.
14061 if test "${enable_x11_vidmode+set}" = set; then :
14062 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14063 else
14064 x11_hidd_vidmode="auto"
14067 case "x-$x11_hidd_vidmode" in
14068 x-yes|x-no|x-auto) ;;
14069 *) x11_hidd_vidmode="auto" ;;
14070 esac
14072 have_vidmode=no
14074 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14076 save_cflags="$CFLAGS"
14077 CFLAGS="$CFLAGS $x_cflags"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14079 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14080 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lXxf86vm $LIBS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char XF86VidModeQueryExtension ();
14096 main ()
14098 return XF86VidModeQueryExtension ();
14100 return 0;
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14105 else
14106 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14113 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14114 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14115 have_vidmode=yes
14118 CFLAGS="$save_cflags"
14121 if test "x-$have_vidmode" = "x-yes" ; then
14122 DO_VIDMODE_SUPPORT="1"
14123 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14124 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14125 else
14126 DO_VIDMODE_SUPPORT="0"
14130 aros_host_x11_includes=$x_includes
14131 aros_host_x11_libdirs=$x_libraries
14135 # Check whether --enable-sdl_hidd was given.
14136 if test "${enable_sdl_hidd+set}" = set; then :
14137 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14138 else
14139 sdl_hidd="auto"
14142 case "x-$sdl_hidd" in
14143 x-yes|x-no|x-auto) ;;
14144 *) sdl_hidd="auto" ;;
14145 esac
14147 if test "x-$sdl_hidd" != "x-no" ; then
14150 # Check whether --with-sdl-prefix was given.
14151 if test "${with_sdl_prefix+set}" = set; then :
14152 withval=$with_sdl_prefix; sdl_prefix="$withval"
14153 else
14154 sdl_prefix=""
14158 # Check whether --with-sdl-exec-prefix was given.
14159 if test "${with_sdl_exec_prefix+set}" = set; then :
14160 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14161 else
14162 sdl_exec_prefix=""
14165 # Check whether --enable-sdltest was given.
14166 if test "${enable_sdltest+set}" = set; then :
14167 enableval=$enable_sdltest;
14168 else
14169 enable_sdltest=yes
14173 if test x$sdl_exec_prefix != x ; then
14174 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14175 if test x${SDL_CONFIG+set} != xset ; then
14176 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14179 if test x$sdl_prefix != x ; then
14180 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14181 if test x${SDL_CONFIG+set} != xset ; then
14182 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14186 as_save_PATH="$PATH"
14187 if test "x$prefix" != xNONE; then
14188 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14190 # Extract the first word of "sdl-config", so it can be a program name with args.
14191 set dummy sdl-config; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 case $SDL_CONFIG in
14198 [\\/]* | ?:[\\/]*)
14199 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203 for as_dir in $PATH
14205 IFS=$as_save_IFS
14206 test -z "$as_dir" && as_dir=.
14207 for ac_exec_ext in '' $ac_executable_extensions; do
14208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14209 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14211 break 2
14213 done
14214 done
14215 IFS=$as_save_IFS
14217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14219 esac
14221 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14222 if test -n "$SDL_CONFIG"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14224 $as_echo "$SDL_CONFIG" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14231 PATH="$as_save_PATH"
14232 min_sdl_version=1.2.10
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14234 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14235 no_sdl=""
14236 if test "$SDL_CONFIG" = "no" ; then
14237 no_sdl=yes
14238 else
14239 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14240 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14242 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14244 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14246 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14248 if test "x$enable_sdltest" = "xyes" ; then
14249 ac_save_CFLAGS="$CFLAGS"
14250 ac_save_CXXFLAGS="$CXXFLAGS"
14251 ac_save_LIBS="$LIBS"
14252 CFLAGS="$CFLAGS $SDL_CFLAGS"
14253 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14254 LIBS="$LIBS $SDL_LIBS"
14255 rm -f conf.sdltest
14256 if test "$cross_compiling" = yes; then :
14257 echo $ac_n "cross compiling; assumed OK... $ac_c"
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14262 #include <stdio.h>
14263 #include <stdlib.h>
14264 #include <string.h>
14265 #include "SDL.h"
14267 char*
14268 my_strdup (char *str)
14270 char *new_str;
14272 if (str)
14274 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14275 strcpy (new_str, str);
14277 else
14278 new_str = NULL;
14280 return new_str;
14283 int main (int argc, char *argv[])
14285 int major, minor, micro;
14286 char *tmp_version;
14288 /* This hangs on some systems (?)
14289 system ("touch conf.sdltest");
14291 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14293 /* HP/UX 9 (%@#!) writes to sscanf strings */
14294 tmp_version = my_strdup("$min_sdl_version");
14295 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14296 printf("%s, bad version string\n", "$min_sdl_version");
14297 exit(1);
14300 if (($sdl_major_version > major) ||
14301 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14302 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14304 return 0;
14306 else
14308 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14309 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14310 printf("*** best to upgrade to the required version.\n");
14311 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14312 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14313 printf("*** config.cache before re-running configure\n");
14314 return 1;
14319 _ACEOF
14320 if ac_fn_c_try_run "$LINENO"; then :
14322 else
14323 no_sdl=yes
14325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14326 conftest.$ac_objext conftest.beam conftest.$ac_ext
14329 CFLAGS="$ac_save_CFLAGS"
14330 CXXFLAGS="$ac_save_CXXFLAGS"
14331 LIBS="$ac_save_LIBS"
14334 if test "x$no_sdl" = x ; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14336 $as_echo "yes" >&6; }
14337 have_sdl="yes"
14338 else
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341 if test "$SDL_CONFIG" = "no" ; then
14342 echo "*** The sdl-config script installed by SDL could not be found"
14343 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14344 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14345 echo "*** full path to sdl-config."
14346 else
14347 if test -f conf.sdltest ; then
14349 else
14350 echo "*** Could not run SDL test program, checking why..."
14351 CFLAGS="$CFLAGS $SDL_CFLAGS"
14352 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14353 LIBS="$LIBS $SDL_LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 #include <stdio.h>
14358 #include "SDL.h"
14360 int main(int argc, char *argv[])
14361 { return 0; }
14362 #undef main
14363 #define main K_and_R_C_main
14366 main ()
14368 return 0;
14370 return 0;
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 echo "*** The test program compiled, but did not run. This usually means"
14375 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14376 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14377 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14378 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14379 echo "*** is required on your system"
14380 echo "***"
14381 echo "*** If you have an old version installed, it is best to remove it, although"
14382 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14383 else
14384 echo "*** The test program failed to compile or link. See the file config.log for the"
14385 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14386 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14387 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14389 rm -f core conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14391 CFLAGS="$ac_save_CFLAGS"
14392 CXXFLAGS="$ac_save_CXXFLAGS"
14393 LIBS="$ac_save_LIBS"
14396 SDL_CFLAGS=""
14397 SDL_LIBS=""
14398 have_sdl="no"
14402 rm -f conf.sdltest
14405 if test "x-$have_sdl" != "x-yes" ; then
14407 if test "x-$sdl_hidd" != "x-auto" ; then
14408 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14411 else
14412 sdl_hidd_target=kernel-hidd-sdl
14413 aros_host_sdl_cflags=SDL_CFLAGS
14414 aros_host_sdl_libs=SDL_LIBS
14418 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14419 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14424 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14425 oss_library_target=workbench-libs-oss-unix
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14431 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14432 # Check whether --enable-dbus was given.
14433 if test "${enable_dbus+set}" = set; then :
14434 enableval=$enable_dbus; dbus="yes"
14435 else
14436 dbus="no"
14439 if test "$dbus" = "yes" ; then
14440 ENABLE_DBUS=1
14441 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14442 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14443 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14444 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14445 else
14446 ENABLE_DBUS=0
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14449 $as_echo "$dbus" >&6; }
14451 if test "$use_kernel_cc_wrapper" = "yes" ; then
14452 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14456 # Generic
14468 # Compatability with other Amiga-like operation systems
14471 # Host related
14499 # Target Related
14567 # Delinting target compiler flags
14574 # Graphics Related
14591 # Native version related
14594 # Palm native version related
14597 # Unix/Hosted version related
14600 # MMU related
14603 # Apple iOS related
14608 # ARM default GCC target related
14614 # Android related
14619 # DBUS related
14626 #X11 related
14629 # Debug related
14635 # Collect-aros stuff: "-ius" to ignore undefined symbols
14638 # C compiler related
14643 #ObjC compiler related
14646 #Java related
14649 # USB3.0 code
14652 case "$aros_flavour" in
14653 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14654 aros_flavour="emulation" ;;
14655 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14656 aros_flavour="emulation" ;;
14657 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14658 aros_flavour="standalone";;
14659 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14660 aros_flavour="standalone";;
14661 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14662 aros_flavour="native" ;;
14663 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14664 aros_flavour="native" ;;
14665 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14666 aros_flavour="linklib" ;;
14667 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14668 aros_flavour="palmnative" ;;
14669 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14670 aros_flavour="mac68knative" ;;
14671 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14672 aros_flavour="ppcnative" ;;
14673 esac
14675 if test ! -d ${aros_inc_dir} ; then
14676 ${MKDIR} ${aros_inc_dir}
14678 if test ! -d ${aros_geninc_dir} ; then
14679 ${MKDIR} ${aros_geninc_dir}
14681 if test ! -d ${aros_hostcfg_dir} ; then
14682 ${MKDIR} ${aros_hostcfg_dir}
14684 if test ! -d ${aros_targetcfg_dir} ; then
14685 ${MKDIR} ${aros_targetcfg_dir}
14687 if test ! -d ${aros_tools_dir} ; then
14688 ${MKDIR} ${aros_tools_dir}
14690 if test ! -d ${aros_scripts_dir} ; then
14691 ${MKDIR} ${aros_scripts_dir}
14694 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14697 # Generic build tools (metamake, etc)
14698 ac_config_commands="$ac_config_commands genmf-executable-support"
14700 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14703 # Binutils
14704 ac_config_commands="$ac_config_commands binutils-support"
14706 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14709 # Bare Elf support script and spec
14710 if test "${use_kernel_cc_wrapper}" = "yes"; then
14711 ac_config_commands="$ac_config_commands elf-compiler-support"
14713 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"
14717 # Host compiler support scripts and spec
14718 if test "${aros_target_toolchain}" = "no"; then
14719 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14721 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-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14725 # Android support
14726 if test "$aros_target_variant" == "android"; then
14727 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14731 cat >confcache <<\_ACEOF
14732 # This file is a shell script that caches the results of configure
14733 # tests run on this system so they can be shared between configure
14734 # scripts and configure runs, see configure's option --config-cache.
14735 # It is not useful on other systems. If it contains results you don't
14736 # want to keep, you may remove or edit it.
14738 # config.status only pays attention to the cache file if you give it
14739 # the --recheck option to rerun configure.
14741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14743 # following values.
14745 _ACEOF
14747 # The following way of writing the cache mishandles newlines in values,
14748 # but we know of no workaround that is simple, portable, and efficient.
14749 # So, we kill variables containing newlines.
14750 # Ultrix sh set writes to stderr and can't be redirected directly,
14751 # and sets the high bit in the cache file unless we assign to the vars.
14753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14754 eval ac_val=\$$ac_var
14755 case $ac_val in #(
14756 *${as_nl}*)
14757 case $ac_var in #(
14758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14760 esac
14761 case $ac_var in #(
14762 _ | IFS | as_nl) ;; #(
14763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14764 *) { eval $ac_var=; unset $ac_var;} ;;
14765 esac ;;
14766 esac
14767 done
14769 (set) 2>&1 |
14770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14771 *${as_nl}ac_space=\ *)
14772 # `set' does not quote correctly, so add quotes: double-quote
14773 # substitution turns \\\\ into \\, and sed turns \\ into \.
14774 sed -n \
14775 "s/'/'\\\\''/g;
14776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14777 ;; #(
14779 # `set' quotes correctly as required by POSIX, so do not add quotes.
14780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14782 esac |
14783 sort
14785 sed '
14786 /^ac_cv_env_/b end
14787 t clear
14788 :clear
14789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14790 t end
14791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14792 :end' >>confcache
14793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14794 if test -w "$cache_file"; then
14795 if test "x$cache_file" != "x/dev/null"; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14797 $as_echo "$as_me: updating cache $cache_file" >&6;}
14798 if test ! -f "$cache_file" || test -h "$cache_file"; then
14799 cat confcache >"$cache_file"
14800 else
14801 case $cache_file in #(
14802 */* | ?:*)
14803 mv -f confcache "$cache_file"$$ &&
14804 mv -f "$cache_file"$$ "$cache_file" ;; #(
14806 mv -f confcache "$cache_file" ;;
14807 esac
14810 else
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14815 rm -f confcache
14817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14818 # Let make expand exec_prefix.
14819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14821 DEFS=-DHAVE_CONFIG_H
14823 ac_libobjs=
14824 ac_ltlibobjs=
14826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14827 # 1. Remove the extension, and $U if already installed.
14828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14831 # will be set to the directory where LIBOBJS objects are built.
14832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14834 done
14835 LIBOBJS=$ac_libobjs
14837 LTLIBOBJS=$ac_ltlibobjs
14841 : "${CONFIG_STATUS=./config.status}"
14842 ac_write_fail=0
14843 ac_clean_files_save=$ac_clean_files
14844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14846 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14847 as_write_fail=0
14848 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14849 #! $SHELL
14850 # Generated by $as_me.
14851 # Run this file to recreate the current configuration.
14852 # Compiler output produced by configure, useful for debugging
14853 # configure, is in config.log if it exists.
14855 debug=false
14856 ac_cs_recheck=false
14857 ac_cs_silent=false
14859 SHELL=\${CONFIG_SHELL-$SHELL}
14860 export SHELL
14861 _ASEOF
14862 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14863 ## -------------------- ##
14864 ## M4sh Initialization. ##
14865 ## -------------------- ##
14867 # Be more Bourne compatible
14868 DUALCASE=1; export DUALCASE # for MKS sh
14869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14870 emulate sh
14871 NULLCMD=:
14872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14873 # is contrary to our usage. Disable this feature.
14874 alias -g '${1+"$@"}'='"$@"'
14875 setopt NO_GLOB_SUBST
14876 else
14877 case `(set -o) 2>/dev/null` in #(
14878 *posix*) :
14879 set -o posix ;; #(
14880 *) :
14882 esac
14886 as_nl='
14888 export as_nl
14889 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14890 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14893 # Prefer a ksh shell builtin over an external printf program on Solaris,
14894 # but without wasting forks for bash or zsh.
14895 if test -z "$BASH_VERSION$ZSH_VERSION" \
14896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14897 as_echo='print -r --'
14898 as_echo_n='print -rn --'
14899 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14900 as_echo='printf %s\n'
14901 as_echo_n='printf %s'
14902 else
14903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14905 as_echo_n='/usr/ucb/echo -n'
14906 else
14907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14908 as_echo_n_body='eval
14909 arg=$1;
14910 case $arg in #(
14911 *"$as_nl"*)
14912 expr "X$arg" : "X\\(.*\\)$as_nl";
14913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14914 esac;
14915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14917 export as_echo_n_body
14918 as_echo_n='sh -c $as_echo_n_body as_echo'
14920 export as_echo_body
14921 as_echo='sh -c $as_echo_body as_echo'
14924 # The user is always right.
14925 if test "${PATH_SEPARATOR+set}" != set; then
14926 PATH_SEPARATOR=:
14927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14929 PATH_SEPARATOR=';'
14934 # IFS
14935 # We need space, tab and new line, in precisely that order. Quoting is
14936 # there to prevent editors from complaining about space-tab.
14937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14938 # splitting by setting IFS to empty value.)
14939 IFS=" "" $as_nl"
14941 # Find who we are. Look in the path if we contain no directory separator.
14942 as_myself=
14943 case $0 in #((
14944 *[\\/]* ) as_myself=$0 ;;
14945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14946 for as_dir in $PATH
14948 IFS=$as_save_IFS
14949 test -z "$as_dir" && as_dir=.
14950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14951 done
14952 IFS=$as_save_IFS
14955 esac
14956 # We did not find ourselves, most probably we were run as `sh COMMAND'
14957 # in which case we are not to be found in the path.
14958 if test "x$as_myself" = x; then
14959 as_myself=$0
14961 if test ! -f "$as_myself"; then
14962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14963 exit 1
14966 # Unset variables that we do not need and which cause bugs (e.g. in
14967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14968 # suppresses any "Segmentation fault" message there. '((' could
14969 # trigger a bug in pdksh 5.2.14.
14970 for as_var in BASH_ENV ENV MAIL MAILPATH
14971 do eval test x\${$as_var+set} = xset \
14972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14973 done
14974 PS1='$ '
14975 PS2='> '
14976 PS4='+ '
14978 # NLS nuisances.
14979 LC_ALL=C
14980 export LC_ALL
14981 LANGUAGE=C
14982 export LANGUAGE
14984 # CDPATH.
14985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14989 # ----------------------------------------
14990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14992 # script with STATUS, using 1 if that was 0.
14993 as_fn_error ()
14995 as_status=$1; test $as_status -eq 0 && as_status=1
14996 if test "$4"; then
14997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15000 $as_echo "$as_me: error: $2" >&2
15001 as_fn_exit $as_status
15002 } # as_fn_error
15005 # as_fn_set_status STATUS
15006 # -----------------------
15007 # Set $? to STATUS, without forking.
15008 as_fn_set_status ()
15010 return $1
15011 } # as_fn_set_status
15013 # as_fn_exit STATUS
15014 # -----------------
15015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15016 as_fn_exit ()
15018 set +e
15019 as_fn_set_status $1
15020 exit $1
15021 } # as_fn_exit
15023 # as_fn_unset VAR
15024 # ---------------
15025 # Portably unset VAR.
15026 as_fn_unset ()
15028 { eval $1=; unset $1;}
15030 as_unset=as_fn_unset
15031 # as_fn_append VAR VALUE
15032 # ----------------------
15033 # Append the text in VALUE to the end of the definition contained in VAR. Take
15034 # advantage of any shell optimizations that allow amortized linear growth over
15035 # repeated appends, instead of the typical quadratic growth present in naive
15036 # implementations.
15037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15038 eval 'as_fn_append ()
15040 eval $1+=\$2
15042 else
15043 as_fn_append ()
15045 eval $1=\$$1\$2
15047 fi # as_fn_append
15049 # as_fn_arith ARG...
15050 # ------------------
15051 # Perform arithmetic evaluation on the ARGs, and store the result in the
15052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15053 # must be portable across $(()) and expr.
15054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15055 eval 'as_fn_arith ()
15057 as_val=$(( $* ))
15059 else
15060 as_fn_arith ()
15062 as_val=`expr "$@" || test $? -eq 1`
15064 fi # as_fn_arith
15067 if expr a : '\(a\)' >/dev/null 2>&1 &&
15068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15069 as_expr=expr
15070 else
15071 as_expr=false
15074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15075 as_basename=basename
15076 else
15077 as_basename=false
15080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15081 as_dirname=dirname
15082 else
15083 as_dirname=false
15086 as_me=`$as_basename -- "$0" ||
15087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15088 X"$0" : 'X\(//\)$' \| \
15089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15090 $as_echo X/"$0" |
15091 sed '/^.*\/\([^/][^/]*\)\/*$/{
15092 s//\1/
15095 /^X\/\(\/\/\)$/{
15096 s//\1/
15099 /^X\/\(\/\).*/{
15100 s//\1/
15103 s/.*/./; q'`
15105 # Avoid depending upon Character Ranges.
15106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15109 as_cr_digits='0123456789'
15110 as_cr_alnum=$as_cr_Letters$as_cr_digits
15112 ECHO_C= ECHO_N= ECHO_T=
15113 case `echo -n x` in #(((((
15114 -n*)
15115 case `echo 'xy\c'` in
15116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15117 xy) ECHO_C='\c';;
15118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15119 ECHO_T=' ';;
15120 esac;;
15122 ECHO_N='-n';;
15123 esac
15125 rm -f conf$$ conf$$.exe conf$$.file
15126 if test -d conf$$.dir; then
15127 rm -f conf$$.dir/conf$$.file
15128 else
15129 rm -f conf$$.dir
15130 mkdir conf$$.dir 2>/dev/null
15132 if (echo >conf$$.file) 2>/dev/null; then
15133 if ln -s conf$$.file conf$$ 2>/dev/null; then
15134 as_ln_s='ln -s'
15135 # ... but there are two gotchas:
15136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15138 # In both cases, we have to default to `cp -pR'.
15139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15140 as_ln_s='cp -pR'
15141 elif ln conf$$.file conf$$ 2>/dev/null; then
15142 as_ln_s=ln
15143 else
15144 as_ln_s='cp -pR'
15146 else
15147 as_ln_s='cp -pR'
15149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15150 rmdir conf$$.dir 2>/dev/null
15153 # as_fn_mkdir_p
15154 # -------------
15155 # Create "$as_dir" as a directory, including parents if necessary.
15156 as_fn_mkdir_p ()
15159 case $as_dir in #(
15160 -*) as_dir=./$as_dir;;
15161 esac
15162 test -d "$as_dir" || eval $as_mkdir_p || {
15163 as_dirs=
15164 while :; do
15165 case $as_dir in #(
15166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15167 *) as_qdir=$as_dir;;
15168 esac
15169 as_dirs="'$as_qdir' $as_dirs"
15170 as_dir=`$as_dirname -- "$as_dir" ||
15171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15172 X"$as_dir" : 'X\(//\)[^/]' \| \
15173 X"$as_dir" : 'X\(//\)$' \| \
15174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15175 $as_echo X"$as_dir" |
15176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15177 s//\1/
15180 /^X\(\/\/\)[^/].*/{
15181 s//\1/
15184 /^X\(\/\/\)$/{
15185 s//\1/
15188 /^X\(\/\).*/{
15189 s//\1/
15192 s/.*/./; q'`
15193 test -d "$as_dir" && break
15194 done
15195 test -z "$as_dirs" || eval "mkdir $as_dirs"
15196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15199 } # as_fn_mkdir_p
15200 if mkdir -p . 2>/dev/null; then
15201 as_mkdir_p='mkdir -p "$as_dir"'
15202 else
15203 test -d ./-p && rmdir ./-p
15204 as_mkdir_p=false
15208 # as_fn_executable_p FILE
15209 # -----------------------
15210 # Test if FILE is an executable regular file.
15211 as_fn_executable_p ()
15213 test -f "$1" && test -x "$1"
15214 } # as_fn_executable_p
15215 as_test_x='test -x'
15216 as_executable_p=as_fn_executable_p
15218 # Sed expression to map a string onto a valid CPP name.
15219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15221 # Sed expression to map a string onto a valid variable name.
15222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15225 exec 6>&1
15226 ## ----------------------------------- ##
15227 ## Main body of $CONFIG_STATUS script. ##
15228 ## ----------------------------------- ##
15229 _ASEOF
15230 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233 # Save the log message, to keep $0 and so on meaningful, and to
15234 # report actual input values of CONFIG_FILES etc. instead of their
15235 # values after options handling.
15236 ac_log="
15237 This file was extended by $as_me, which was
15238 generated by GNU Autoconf 2.69. Invocation command line was
15240 CONFIG_FILES = $CONFIG_FILES
15241 CONFIG_HEADERS = $CONFIG_HEADERS
15242 CONFIG_LINKS = $CONFIG_LINKS
15243 CONFIG_COMMANDS = $CONFIG_COMMANDS
15244 $ $0 $@
15246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15249 _ACEOF
15251 case $ac_config_files in *"
15252 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15253 esac
15255 case $ac_config_headers in *"
15256 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15257 esac
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 # Files that config.status was made for.
15262 config_files="$ac_config_files"
15263 config_headers="$ac_config_headers"
15264 config_commands="$ac_config_commands"
15266 _ACEOF
15268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269 ac_cs_usage="\
15270 \`$as_me' instantiates files and other configuration actions
15271 from templates according to the current configuration. Unless the files
15272 and actions are specified as TAGs, all are instantiated by default.
15274 Usage: $0 [OPTION]... [TAG]...
15276 -h, --help print this help, then exit
15277 -V, --version print version number and configuration settings, then exit
15278 --config print configuration, then exit
15279 -q, --quiet, --silent
15280 do not print progress messages
15281 -d, --debug don't remove temporary files
15282 --recheck update $as_me by reconfiguring in the same conditions
15283 --file=FILE[:TEMPLATE]
15284 instantiate the configuration file FILE
15285 --header=FILE[:TEMPLATE]
15286 instantiate the configuration header FILE
15288 Configuration files:
15289 $config_files
15291 Configuration headers:
15292 $config_headers
15294 Configuration commands:
15295 $config_commands
15297 Report bugs to the package provider."
15299 _ACEOF
15300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15301 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15302 ac_cs_version="\\
15303 config.status
15304 configured by $0, generated by GNU Autoconf 2.69,
15305 with options \\"\$ac_cs_config\\"
15307 Copyright (C) 2012 Free Software Foundation, Inc.
15308 This config.status script is free software; the Free Software Foundation
15309 gives unlimited permission to copy, distribute and modify it."
15311 ac_pwd='$ac_pwd'
15312 srcdir='$srcdir'
15313 test -n "\$AWK" || AWK=awk
15314 _ACEOF
15316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15317 # The default lists apply if the user does not specify any file.
15318 ac_need_defaults=:
15319 while test $# != 0
15321 case $1 in
15322 --*=?*)
15323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15325 ac_shift=:
15327 --*=)
15328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15329 ac_optarg=
15330 ac_shift=:
15333 ac_option=$1
15334 ac_optarg=$2
15335 ac_shift=shift
15337 esac
15339 case $ac_option in
15340 # Handling of the options.
15341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15342 ac_cs_recheck=: ;;
15343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15344 $as_echo "$ac_cs_version"; exit ;;
15345 --config | --confi | --conf | --con | --co | --c )
15346 $as_echo "$ac_cs_config"; exit ;;
15347 --debug | --debu | --deb | --de | --d | -d )
15348 debug=: ;;
15349 --file | --fil | --fi | --f )
15350 $ac_shift
15351 case $ac_optarg in
15352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15353 '') as_fn_error $? "missing file argument" ;;
15354 esac
15355 as_fn_append CONFIG_FILES " '$ac_optarg'"
15356 ac_need_defaults=false;;
15357 --header | --heade | --head | --hea )
15358 $ac_shift
15359 case $ac_optarg in
15360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15361 esac
15362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15363 ac_need_defaults=false;;
15364 --he | --h)
15365 # Conflict between --help and --header
15366 as_fn_error $? "ambiguous option: \`$1'
15367 Try \`$0 --help' for more information.";;
15368 --help | --hel | -h )
15369 $as_echo "$ac_cs_usage"; exit ;;
15370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15372 ac_cs_silent=: ;;
15374 # This is an error.
15375 -*) as_fn_error $? "unrecognized option: \`$1'
15376 Try \`$0 --help' for more information." ;;
15378 *) as_fn_append ac_config_targets " $1"
15379 ac_need_defaults=false ;;
15381 esac
15382 shift
15383 done
15385 ac_configure_extra_args=
15387 if $ac_cs_silent; then
15388 exec 6>/dev/null
15389 ac_configure_extra_args="$ac_configure_extra_args --silent"
15392 _ACEOF
15393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15394 if \$ac_cs_recheck; then
15395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15396 shift
15397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15398 CONFIG_SHELL='$SHELL'
15399 export CONFIG_SHELL
15400 exec "\$@"
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 exec 5>>config.log
15407 echo
15408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15409 ## Running $as_me. ##
15410 _ASBOX
15411 $as_echo "$ac_log"
15412 } >&5
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417 # INIT-COMMANDS
15419 aros_tools_dir=${aros_tools_dir}
15422 aros_host_exe_suffix=${aros_host_exe_suffix}
15423 aros_tools_dir=${aros_tools_dir}
15424 aros_target_cpu=${aros_target_cpu}
15425 aros_target_arch=${aros_target_arch}
15426 aros_target_suffix=${aros_target_suffix}
15427 orig_target_nm=${orig_target_nm}
15428 orig_target_as=${orig_target_as}
15429 orig_target_ar=${orig_target_ar}
15430 orig_target_ranlib=${orig_target_ranlib}
15431 orig_target_objdump=${orig_target_objdump}
15432 orig_target_objcopy=${orig_target_objcopy}
15433 orig_target_strip=${orig_target_strip}
15434 aros_kernel_ld=${aros_kernel_ld}
15438 aros_host_exe_suffix=${aros_host_exe_suffix}
15439 aros_tools_dir=${aros_tools_dir}
15440 aros_target_cpu=${aros_target_cpu}
15441 aros_target_arch=${aros_target_arch}
15442 aros_target_suffix=${aros_target_suffix}
15443 aros_kernel_ld=${aros_kernel_ld}
15447 aros_host_exe_suffix=${aros_host_exe_suffix}
15448 aros_tools_dir=${aros_tools_dir}
15449 aros_target_cpu=${aros_target_cpu}
15450 aros_target_arch=${aros_target_arch}
15451 aros_target_suffix=${aros_target_suffix}
15455 _ACEOF
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15459 # Handling of arguments.
15460 for ac_config_target in $ac_config_targets
15462 case $ac_config_target in
15463 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15464 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15466 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15467 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15468 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15469 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15470 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15471 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15472 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15473 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15474 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15475 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15476 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15477 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15478 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15479 "${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" ;;
15480 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15481 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15482 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15483 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15484 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15485 "${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" ;;
15487 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15488 esac
15489 done
15492 # If the user did not use the arguments to specify the items to instantiate,
15493 # then the envvar interface is used. Set only those that are not.
15494 # We use the long form for the default assignment because of an extremely
15495 # bizarre bug on SunOS 4.1.3.
15496 if $ac_need_defaults; then
15497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15502 # Have a temporary directory for convenience. Make it in the build tree
15503 # simply because there is no reason against having it here, and in addition,
15504 # creating and moving files from /tmp can sometimes cause problems.
15505 # Hook for its removal unless debugging.
15506 # Note that there is a small window in which the directory will not be cleaned:
15507 # after its creation but before its name has been assigned to `$tmp'.
15508 $debug ||
15510 tmp= ac_tmp=
15511 trap 'exit_status=$?
15512 : "${ac_tmp:=$tmp}"
15513 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15515 trap 'as_fn_exit 1' 1 2 13 15
15517 # Create a (secure) tmp directory for tmp files.
15520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15521 test -d "$tmp"
15522 } ||
15524 tmp=./conf$$-$RANDOM
15525 (umask 077 && mkdir "$tmp")
15526 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15527 ac_tmp=$tmp
15529 # Set up the scripts for CONFIG_FILES section.
15530 # No need to generate them if there are no CONFIG_FILES.
15531 # This happens for instance with `./config.status config.h'.
15532 if test -n "$CONFIG_FILES"; then
15535 ac_cr=`echo X | tr X '\015'`
15536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15537 # But we know of no other shell where ac_cr would be empty at this
15538 # point, so we can use a bashism as a fallback.
15539 if test "x$ac_cr" = x; then
15540 eval ac_cr=\$\'\\r\'
15542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15544 ac_cs_awk_cr='\\r'
15545 else
15546 ac_cs_awk_cr=$ac_cr
15549 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15550 _ACEOF
15554 echo "cat >conf$$subs.awk <<_ACEOF" &&
15555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15556 echo "_ACEOF"
15557 } >conf$$subs.sh ||
15558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15560 ac_delim='%!_!# '
15561 for ac_last_try in false false false false false :; do
15562 . ./conf$$subs.sh ||
15563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15565 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15566 if test $ac_delim_n = $ac_delim_num; then
15567 break
15568 elif $ac_last_try; then
15569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15570 else
15571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15573 done
15574 rm -f conf$$subs.sh
15576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15578 _ACEOF
15579 sed -n '
15581 s/^/S["/; s/!.*/"]=/
15584 s/^[^!]*!//
15585 :repl
15586 t repl
15587 s/'"$ac_delim"'$//
15588 t delim
15591 s/\(.\{148\}\)..*/\1/
15592 t more1
15593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15596 b repl
15597 :more1
15598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15601 s/.\{148\}//
15602 t nl
15603 :delim
15605 s/\(.\{148\}\)..*/\1/
15606 t more2
15607 s/["\\]/\\&/g; s/^/"/; s/$/"/
15610 :more2
15611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15614 s/.\{148\}//
15615 t delim
15616 ' <conf$$subs.awk | sed '
15617 /^[^""]/{
15619 s/\n//
15621 ' >>$CONFIG_STATUS || ac_write_fail=1
15622 rm -f conf$$subs.awk
15623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624 _ACAWK
15625 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15626 for (key in S) S_is_set[key] = 1
15627 FS = "\a"
15631 line = $ 0
15632 nfields = split(line, field, "@")
15633 substed = 0
15634 len = length(field[1])
15635 for (i = 2; i < nfields; i++) {
15636 key = field[i]
15637 keylen = length(key)
15638 if (S_is_set[key]) {
15639 value = S[key]
15640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15641 len += length(value) + length(field[++i])
15642 substed = 1
15643 } else
15644 len += 1 + keylen
15647 print line
15650 _ACAWK
15651 _ACEOF
15652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15655 else
15657 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15658 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15659 _ACEOF
15661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15663 # trailing colons and then remove the whole line if VPATH becomes empty
15664 # (actually we leave an empty line to preserve line numbers).
15665 if test "x$srcdir" = x.; then
15666 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15668 s///
15669 s/^/:/
15670 s/[ ]*$/:/
15671 s/:\$(srcdir):/:/g
15672 s/:\${srcdir}:/:/g
15673 s/:@srcdir@:/:/g
15674 s/^:*//
15675 s/:*$//
15677 s/\(=[ ]*\).*/\1/
15679 s/\n//
15680 s/^[^=]*=[ ]*$//
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 fi # test -n "$CONFIG_FILES"
15687 # Set up the scripts for CONFIG_HEADERS section.
15688 # No need to generate them if there are no CONFIG_HEADERS.
15689 # This happens for instance with `./config.status Makefile'.
15690 if test -n "$CONFIG_HEADERS"; then
15691 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15692 BEGIN {
15693 _ACEOF
15695 # Transform confdefs.h into an awk script `defines.awk', embedded as
15696 # here-document in config.status, that substitutes the proper values into
15697 # config.h.in to produce config.h.
15699 # Create a delimiter string that does not exist in confdefs.h, to ease
15700 # handling of long lines.
15701 ac_delim='%!_!# '
15702 for ac_last_try in false false :; do
15703 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15704 if test -z "$ac_tt"; then
15705 break
15706 elif $ac_last_try; then
15707 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15708 else
15709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15711 done
15713 # For the awk script, D is an array of macro values keyed by name,
15714 # likewise P contains macro parameters if any. Preserve backslash
15715 # newline sequences.
15717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15718 sed -n '
15719 s/.\{148\}/&'"$ac_delim"'/g
15720 t rset
15721 :rset
15722 s/^[ ]*#[ ]*define[ ][ ]*/ /
15723 t def
15725 :def
15726 s/\\$//
15727 t bsnl
15728 s/["\\]/\\&/g
15729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730 D["\1"]=" \3"/p
15731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15733 :bsnl
15734 s/["\\]/\\&/g
15735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15736 D["\1"]=" \3\\\\\\n"\\/p
15737 t cont
15738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15739 t cont
15741 :cont
15743 s/.\{148\}/&'"$ac_delim"'/g
15744 t clear
15745 :clear
15746 s/\\$//
15747 t bsnlc
15748 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15750 :bsnlc
15751 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15752 b cont
15753 ' <confdefs.h | sed '
15754 s/'"$ac_delim"'/"\\\
15755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 for (key in D) D_is_set[key] = 1
15759 FS = "\a"
15761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15762 line = \$ 0
15763 split(line, arg, " ")
15764 if (arg[1] == "#") {
15765 defundef = arg[2]
15766 mac1 = arg[3]
15767 } else {
15768 defundef = substr(arg[1], 2)
15769 mac1 = arg[2]
15771 split(mac1, mac2, "(") #)
15772 macro = mac2[1]
15773 prefix = substr(line, 1, index(line, defundef) - 1)
15774 if (D_is_set[macro]) {
15775 # Preserve the white space surrounding the "#".
15776 print prefix "define", macro P[macro] D[macro]
15777 next
15778 } else {
15779 # Replace #undef with comments. This is necessary, for example,
15780 # in the case of _POSIX_SOURCE, which is predefined and required
15781 # on some systems where configure will not decide to define it.
15782 if (defundef == "undef") {
15783 print "/*", prefix defundef, macro, "*/"
15784 next
15788 { print }
15789 _ACAWK
15790 _ACEOF
15791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15793 fi # test -n "$CONFIG_HEADERS"
15796 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15797 shift
15798 for ac_tag
15800 case $ac_tag in
15801 :[FHLC]) ac_mode=$ac_tag; continue;;
15802 esac
15803 case $ac_mode$ac_tag in
15804 :[FHL]*:*);;
15805 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806 :[FH]-) ac_tag=-:-;;
15807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15808 esac
15809 ac_save_IFS=$IFS
15810 IFS=:
15811 set x $ac_tag
15812 IFS=$ac_save_IFS
15813 shift
15814 ac_file=$1
15815 shift
15817 case $ac_mode in
15818 :L) ac_source=$1;;
15819 :[FH])
15820 ac_file_inputs=
15821 for ac_f
15823 case $ac_f in
15824 -) ac_f="$ac_tmp/stdin";;
15825 *) # Look for the file first in the build tree, then in the source tree
15826 # (if the path is not absolute). The absolute path cannot be DOS-style,
15827 # because $ac_f cannot contain `:'.
15828 test -f "$ac_f" ||
15829 case $ac_f in
15830 [\\/$]*) false;;
15831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15832 esac ||
15833 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15834 esac
15835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836 as_fn_append ac_file_inputs " '$ac_f'"
15837 done
15839 # Let's still pretend it is `configure' which instantiates (i.e., don't
15840 # use $as_me), people would be surprised to read:
15841 # /* config.h. Generated by config.status. */
15842 configure_input='Generated from '`
15843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15844 `' by configure.'
15845 if test x"$ac_file" != x-; then
15846 configure_input="$ac_file. $configure_input"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848 $as_echo "$as_me: creating $ac_file" >&6;}
15850 # Neutralize special characters interpreted by sed in replacement strings.
15851 case $configure_input in #(
15852 *\&* | *\|* | *\\* )
15853 ac_sed_conf_input=`$as_echo "$configure_input" |
15854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855 *) ac_sed_conf_input=$configure_input;;
15856 esac
15858 case $ac_tag in
15859 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15861 esac
15863 esac
15865 ac_dir=`$as_dirname -- "$ac_file" ||
15866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15867 X"$ac_file" : 'X\(//\)[^/]' \| \
15868 X"$ac_file" : 'X\(//\)$' \| \
15869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870 $as_echo X"$ac_file" |
15871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15872 s//\1/
15875 /^X\(\/\/\)[^/].*/{
15876 s//\1/
15879 /^X\(\/\/\)$/{
15880 s//\1/
15883 /^X\(\/\).*/{
15884 s//\1/
15887 s/.*/./; q'`
15888 as_dir="$ac_dir"; as_fn_mkdir_p
15889 ac_builddir=.
15891 case "$ac_dir" in
15892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15895 # A ".." for each directory in $ac_dir_suffix.
15896 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897 case $ac_top_builddir_sub in
15898 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900 esac ;;
15901 esac
15902 ac_abs_top_builddir=$ac_pwd
15903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904 # for backward compatibility:
15905 ac_top_builddir=$ac_top_build_prefix
15907 case $srcdir in
15908 .) # We are building in place.
15909 ac_srcdir=.
15910 ac_top_srcdir=$ac_top_builddir_sub
15911 ac_abs_top_srcdir=$ac_pwd ;;
15912 [\\/]* | ?:[\\/]* ) # Absolute name.
15913 ac_srcdir=$srcdir$ac_dir_suffix;
15914 ac_top_srcdir=$srcdir
15915 ac_abs_top_srcdir=$srcdir ;;
15916 *) # Relative name.
15917 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918 ac_top_srcdir=$ac_top_build_prefix$srcdir
15919 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15920 esac
15921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15924 case $ac_mode in
15927 # CONFIG_FILE
15930 _ACEOF
15932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15933 # If the template does not know about datarootdir, expand it.
15934 # FIXME: This hack should be removed a few years after 2.60.
15935 ac_datarootdir_hack=; ac_datarootdir_seen=
15936 ac_sed_dataroot='
15937 /datarootdir/ {
15941 /@datadir@/p
15942 /@docdir@/p
15943 /@infodir@/p
15944 /@localedir@/p
15945 /@mandir@/p'
15946 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15947 *datarootdir*) ac_datarootdir_seen=yes;;
15948 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15950 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15951 _ACEOF
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 ac_datarootdir_hack='
15954 s&@datadir@&$datadir&g
15955 s&@docdir@&$docdir&g
15956 s&@infodir@&$infodir&g
15957 s&@localedir@&$localedir&g
15958 s&@mandir@&$mandir&g
15959 s&\\\${datarootdir}&$datarootdir&g' ;;
15960 esac
15961 _ACEOF
15963 # Neutralize VPATH when `$srcdir' = `.'.
15964 # Shell code in configure.ac might set extrasub.
15965 # FIXME: do we really want to maintain this feature?
15966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15967 ac_sed_extra="$ac_vpsub
15968 $extrasub
15969 _ACEOF
15970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15973 s|@configure_input@|$ac_sed_conf_input|;t t
15974 s&@top_builddir@&$ac_top_builddir_sub&;t t
15975 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15976 s&@srcdir@&$ac_srcdir&;t t
15977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15978 s&@top_srcdir@&$ac_top_srcdir&;t t
15979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15980 s&@builddir@&$ac_builddir&;t t
15981 s&@abs_builddir@&$ac_abs_builddir&;t t
15982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15983 $ac_datarootdir_hack
15985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15993 which seems to be undefined. Please make sure it is defined" >&5
15994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15995 which seems to be undefined. Please make sure it is defined" >&2;}
15997 rm -f "$ac_tmp/stdin"
15998 case $ac_file in
15999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16001 esac \
16002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16006 # CONFIG_HEADER
16008 if test x"$ac_file" != x-; then
16010 $as_echo "/* $configure_input */" \
16011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16012 } >"$ac_tmp/config.h" \
16013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16017 else
16018 rm -f "$ac_file"
16019 mv "$ac_tmp/config.h" "$ac_file" \
16020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16022 else
16023 $as_echo "/* $configure_input */" \
16024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16025 || as_fn_error $? "could not create -" "$LINENO" 5
16029 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16030 $as_echo "$as_me: executing $ac_file commands" >&6;}
16032 esac
16035 case $ac_file$ac_mode in
16036 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16037 "binutils-support":C)
16038 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16039 mkdir -p $prefix
16040 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16042 chmod a+x ${prefix2}-ld
16044 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16045 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16046 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16047 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16048 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16049 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16050 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16052 "elf-compiler-support":C)
16053 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16054 mkdir -p $prefix
16055 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16057 chmod a+x ${prefix2}-gcc
16059 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16061 "host-compiler-wrapper-support":C)
16062 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16063 mkdir -p $prefix
16064 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16066 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16069 esac
16070 done # for ac_tag
16073 as_fn_exit 0
16074 _ACEOF
16075 ac_clean_files=$ac_clean_files_save
16077 test $ac_write_fail = 0 ||
16078 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16081 # configure is writing to config.log, and then calls config.status.
16082 # config.status does its own redirection, appending to config.log.
16083 # Unfortunately, on DOS this fails, as config.log is still kept open
16084 # by configure, so config.status won't be able to write to it; its
16085 # output is simply discarded. So we exec the FD to /dev/null,
16086 # effectively closing config.log, so it can be properly (re)opened and
16087 # appended to by config.status. When coming back to configure, we
16088 # need to make the FD available again.
16089 if test "$no_create" != yes; then
16090 ac_cs_success=:
16091 ac_config_status_args=
16092 test "$silent" = yes &&
16093 ac_config_status_args="$ac_config_status_args --quiet"
16094 exec 5>/dev/null
16095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16096 exec 5>>config.log
16097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16098 # would make configure fail if this is the last instruction.
16099 $ac_cs_success || as_fn_exit 1
16101 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16103 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16108 #XXX compatability...
16109 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16111 if test -n "$aros_shared_cflags" ; then
16112 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16113 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg