Share code between the two reset functions.
[AROS.git] / configure
blob5755ffb336cd3d13467996f43e2589b33f824bcb
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 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_antapk
639 aros_android_level
640 gcc_default_float_abi
641 gcc_default_fpu
642 gcc_default_cpu_tune
643 gcc_default_cpu
644 aros_ios_sdk
645 aros_ios_version
646 aros_ios_platform
647 aros_enable_mmu
648 aros_nesting_supervisor
649 aros_palm_debug_hack
650 aros_serial_debug
651 aros_host_sdl_libs
652 aros_host_sdl_cflags
653 aros_host_x11_libdirs
654 aros_host_x11_includes
655 DO_VIDMODE_SUPPORT
656 DO_XSHM_SUPPORT
657 aros_default_wbdepth
658 aros_default_wbheight
659 aros_default_wbwidth
660 oss_library_target
661 pci_hidd_target
662 sdl_hidd_target
663 unixgfx_hidd_target
664 aros_cflags_format_security
665 aros_cflags_strict_overflow
666 aros_cflags_enum_compare
667 aros_cflags_array_bounds
668 aros_cflags_unused_but_set_variable
669 crosstools_cxx_target
670 crosstools_target
671 aros_target_strip_flags
672 aros_target_genmap
673 aros_debug_ldflags
674 aros_debug_aflags
675 aros_debug_cflags
676 aros_target_cflags
677 aros_kernel_ldflags
678 aros_kernel_objcflags
679 aros_kernel_includes
680 aros_kernel_cflags
681 aros_shared_ldflags
682 aros_shared_aflags
683 aros_shared_cflags
684 aros_config_ldflags
685 aros_config_aflags
686 aros_config_cflags
687 aros_arch_libs
688 aros_compiler_libs
689 spec_obj_format
690 aros_object_format
691 aros_shared_ld
692 aros_shared_default
693 aros_target_nm
694 aros_target_strip
695 aros_target_objcopy
696 aros_target_objdump
697 aros_target_cc_path
698 aros_target_cc_includes
699 aros_target_ld
700 aros_target_as
701 aros_target_cpp
702 aros_target_cxx
703 aros_target_cc
704 aros_plain_ar
705 aros_plain_nm
706 aros_target_ranlib
707 aros_target_ar
708 aros_target_suffix
709 aros_target_variant
710 aros_target_cpu
711 aros_target_family
712 aros_target_arch
713 aros_target_bootloader
714 aros_target_iconset
715 aros_target_guitheme
716 aros_tools_dir
717 aros_host_lib_suffix
718 aros_host_exe_suffix
719 aros_host_mkargs
720 aros_host_mkdep
721 aros_host_debug
722 aros_host_ldflags
723 gnu89_inline
724 aros_host_cxxflags
725 aros_host_cflags
726 aros_host_make
727 aros_host_cxx
728 aros_host_cc
729 aros_host_cpp
730 aros_host_cpu
731 aros_host_arch
732 aros_cc_pre
733 aros_amigaos_compliance
734 AROS_PORTSSRCDIR
735 AROS_CROSSTOOLSDIR
736 SRCDIR
737 AROS_BUILDDIR_UNIX
738 AROS_BUILDDIR
739 aros_target_toolchain
740 aros_flavour_uc
741 aros_flavour
742 aros_cpu
743 aros_arch
744 SDL_LIBS
745 SDL_CFLAGS
746 SDL_CONFIG
747 XMKMF
748 aros_cflags_iquote_end
749 aros_cflags_iquote
750 kernel_cflags_iquote_end
751 kernel_cflags_iquote
752 host_cflags_iquote_end
753 host_cflags_iquote
754 aros_target_nostdlib_ldflags
755 aros_target_detach_ldflags
756 aros_target_nix_ldflags
757 aros_target_nostartup_ldflags
758 aros_target_nostdinc_cflags
759 aros_kernel_rescomp
760 orig_target_objdump
761 orig_target_objcopy
762 orig_target_strip
763 orig_target_nm
764 orig_target_ranlib
765 orig_target_ar
766 orig_target_as
767 orig_target_ld
768 orig_target_cxx
769 orig_target_cc
770 orig_target_cpp
771 aros_kernel_objdump
772 aros_kernel_objcopy
773 aros_kernel_strip
774 aros_kernel_nm
775 aros_kernel_ranlib
776 aros_kernel_ar
777 aros_kernel_as
778 aros_kernel_ld
779 aros_kernel_cxx
780 aros_kernel_cc
781 aros_kernel_cpp
782 target_gcc_version
784 android_tool
785 CCACHE
786 DISTCC
787 LIBOBJS
788 EGREP
789 GREP
791 TEST
794 pkgpyexecdir
795 pyexecdir
796 pkgpythondir
797 pythondir
798 PYTHON_PLATFORM
799 PYTHON_EXEC_PREFIX
800 PYTHON_PREFIX
801 PYTHON_VERSION
802 PYTHON
803 PATCH
804 CHMOD
806 PPMTOILBM
807 PNGTOPNM
808 FLEX
809 BISON
812 UNIQ
813 SORT
814 TOUCH
815 MKDIR
816 ECHO
820 aros_host_strip
821 aros_host_ranlib
822 aros_host_ar
823 aros_host_automake
824 aros_host_autoheader
825 aros_host_autoconf
826 aros_host_aclocal
827 aros_host_ld
828 MMAKE
831 ac_ct_CC
832 CFLAGS
834 OBJEXT
835 EXEEXT
836 ac_ct_CXX
837 CPPFLAGS
838 LDFLAGS
839 CXXFLAGS
841 host_os
842 host_vendor
843 host_cpu
844 host
845 build_os
846 build_vendor
847 build_cpu
848 build
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 localstatedir
869 sharedstatedir
870 sysconfdir
871 datadir
872 datarootdir
873 libexecdir
874 sbindir
875 bindir
876 program_transform_name
877 prefix
878 exec_prefix
879 PACKAGE_URL
880 PACKAGE_BUGREPORT
881 PACKAGE_STRING
882 PACKAGE_VERSION
883 PACKAGE_TARNAME
884 PACKAGE_NAME
885 PATH_SEPARATOR
886 SHELL'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_build_type
891 enable_debug
892 enable_distcc
893 enable_ccache
894 with_kernel_gcc_version
895 with_optimization
896 with_paranoia
897 enable_target_variant
898 with_xcode
899 with_sdk_version
900 with_sdk
901 with_ndk
902 with_ndk_version
903 with_apk_version
904 enable_amigaos_compliance
905 with_kernel_toolchain_prefix
906 with_elf_toolchain_prefix
907 with_aros_toolchain
908 enable_crosstools
909 with_aros_toolchain_install
910 with_gcc_version
911 enable_objc
912 with_cpu
913 with_fpu
914 with_float
915 with_portssources
916 with_bootloader
917 with_iconset
918 with_theme
919 enable_includes
920 with_resolution
921 with_serial_debug
922 enable_palm_debug_hack
923 enable_usb30_code
924 enable_nesting_supervisor
925 enable_mmu
926 enable_x11_hidd
927 with_x
928 enable_x11_shm
929 enable_x11_vidmode
930 enable_sdl_hidd
931 with_sdl_prefix
932 with_sdl_exec_prefix
933 enable_sdltest
934 enable_dbus
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CXXFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
946 CFLAGS
948 PYTHON
949 XMKMF'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error $? "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking ...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 X features:
1548 --x-includes=DIR X include files are in DIR
1549 --x-libraries=DIR X library files are in DIR
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-build-type=TYPE
1566 Select the build type. Available types are:
1567 personal, nightly, snapshot, milestone, release. Do
1568 NOT use this option unless you know what you are
1569 doing! (default=personal)
1570 --enable-debug=list Enable different types of debug. Commas or
1571 whitespaces can be used to separate the items in the
1572 list. Available types of debug are: all, none,
1573 messages, stack, mungwall, modules, symbols. If no
1574 list is provided then "all" is assumed.
1575 (default=none)
1576 --enable-distcc Use distcc as a front end to the compiler
1577 (default=no).
1578 --enable-ccache Use ccache as a front end to the compiler
1579 (default=no).
1580 --enable-target-variant=NAME
1581 Enable a specific target variant(default=none)
1582 --enable-amigaos-compliance=VERSION
1583 Enforce userspace AmigaOS compliance to a specific
1584 KickStart version (default=none).
1585 --disable-crosstools Do not build cross-compiler toolchain
1586 --disable-objc Build without Objectve-C support
1587 --enable-includes=dir Alternative system include directory
1588 --enable-palm-debug-hack
1589 Enable palm debug output hack in palm native
1590 (default=no)
1591 --enable-usb30-code Enable usb3.0 code (default=no)
1592 --enable-nesting-supervisor
1593 Enable nesting supervisor support in unix
1594 (default=no)
1595 --disable-mmu Disable MMU support (default=enabled)
1596 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1597 --enable-x11-shm use X11 shared memory (default=auto)
1598 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1599 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1600 --disable-sdltest Do not try to compile and run a test SDL program
1601 --enable-dbus Enable DBUS support via dbus.library (default=no)
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-kernel-gcc-version=VERSION
1607 Use gcc-VERSION for building bootstrap
1608 --with-optimization=FLAGS
1609 Use optimization flags FLAGS (default=-O2).
1610 --with-paranoia=FLAGS CC flags to enable paranoia
1611 --with-xcode=PATH Specify XCode path for iOS targets
1612 (default=/Developer).
1613 --with-sdk-version=VERSION
1614 Use iOS SDK version VERSION (default=4.1).
1615 --with-sdk=PATH Specify Android SDK path
1616 (default=$default_android_sdk).
1617 --with-ndk=PATH Specify Android NDK path (default=none).
1618 --with-sdk-version=LEVEL
1619 Use Android SDK for API LEVEL (default=12).
1620 --with-ndk-version=LEVEL
1621 Use Android NDK for API LEVEL (default=9).
1622 --with-apk-version=(release|debug)
1623 Which version of AROSBootstrap.apk to compile.
1624 Release version needs key for signing, debug version
1625 will only run in emulator. (default=release)
1626 --with-kernel-toolchain-prefix=...
1627 Specify crosscompile toolchain prefix for kernel
1628 objects
1629 --with-elf-toolchain-prefix=...
1630 Specify crosscompile toolchain prefix to wrap for
1631 AROS objects
1632 --with-aros-toolchain=PREFIX
1633 Specify prebuilt AROS toolchain. Use yes for default
1634 name
1635 --with-aros-toolchain-install=DIR
1636 Where to install or search for cross tools binaries
1637 --with-gcc-version=VERSION
1638 Use gcc-VERSION for building AROS
1639 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1640 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1641 --with-float=<spec> Specify floating point ABI
1642 (default=$gcc_default_float_abi).
1643 --with-portssources=DIR Where to download sourcecode for external ports
1644 --with-bootloader=NAME Use a specific bootloader
1645 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1646 --with-theme=NAME Use a specific GUI Theme
1647 --with-resolution=XRESxYRESxDEPTH
1648 Default resolution of the initial WorkbenchScreen
1649 --with-serial-debug Enable serial debug output in native (default=no)
1650 --with-x use the X Window System
1651 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1652 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1654 Some influential environment variables:
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 CPP C preprocessor
1665 PYTHON the Python interpreter
1666 XMKMF Path to xmkmf, Makefile generator for X Window System
1668 Use these variables to override the choices made by `configure' or to help
1669 it to find libraries and programs with nonstandard names/locations.
1671 Report bugs to the package provider.
1672 _ACEOF
1673 ac_status=$?
1676 if test "$ac_init_help" = "recursive"; then
1677 # If there are subdirs, report their specific --help.
1678 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1679 test -d "$ac_dir" ||
1680 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1681 continue
1682 ac_builddir=.
1684 case "$ac_dir" in
1685 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1688 # A ".." for each directory in $ac_dir_suffix.
1689 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1690 case $ac_top_builddir_sub in
1691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1693 esac ;;
1694 esac
1695 ac_abs_top_builddir=$ac_pwd
1696 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1697 # for backward compatibility:
1698 ac_top_builddir=$ac_top_build_prefix
1700 case $srcdir in
1701 .) # We are building in place.
1702 ac_srcdir=.
1703 ac_top_srcdir=$ac_top_builddir_sub
1704 ac_abs_top_srcdir=$ac_pwd ;;
1705 [\\/]* | ?:[\\/]* ) # Absolute name.
1706 ac_srcdir=$srcdir$ac_dir_suffix;
1707 ac_top_srcdir=$srcdir
1708 ac_abs_top_srcdir=$srcdir ;;
1709 *) # Relative name.
1710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1711 ac_top_srcdir=$ac_top_build_prefix$srcdir
1712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1713 esac
1714 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716 cd "$ac_dir" || { ac_status=$?; continue; }
1717 # Check for guested configure.
1718 if test -f "$ac_srcdir/configure.gnu"; then
1719 echo &&
1720 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1721 elif test -f "$ac_srcdir/configure"; then
1722 echo &&
1723 $SHELL "$ac_srcdir/configure" --help=recursive
1724 else
1725 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1726 fi || ac_status=$?
1727 cd "$ac_pwd" || { ac_status=$?; break; }
1728 done
1731 test -n "$ac_init_help" && exit $ac_status
1732 if $ac_init_version; then
1733 cat <<\_ACEOF
1734 configure
1735 generated by GNU Autoconf 2.69
1737 Copyright (C) 2012 Free Software Foundation, Inc.
1738 This configure script is free software; the Free Software Foundation
1739 gives unlimited permission to copy, distribute and modify it.
1740 _ACEOF
1741 exit
1744 ## ------------------------ ##
1745 ## Autoconf initialization. ##
1746 ## ------------------------ ##
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_c_try_compile LINENO
1787 # --------------------------
1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext
1793 if { { ac_try="$ac_compile"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_compile") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest.$ac_objext; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_c_try_compile
1824 # ac_fn_c_try_cpp LINENO
1825 # ----------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_cpp ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } > conftest.i && {
1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_c_try_cpp
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=1
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_link
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1911 # accordingly.
1912 ac_fn_c_check_header_mongrel ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if eval \${$3+:} false; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 else
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1935 else
1936 ac_header_compiler=no
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1951 else
1952 ac_header_preproc=no
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 yes:no: )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 no:yes:* )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 esac
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 eval "$3=\$ac_header_compiler"
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_header_mongrel
1994 # ac_fn_c_try_run LINENO
1995 # ----------------------
1996 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1997 # that executables *can* be run.
1998 ac_fn_c_try_run ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if { { ac_try="$ac_link"
2002 case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>&5
2009 ac_status=$?
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2012 { { case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_try") 2>&5
2019 ac_status=$?
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; }; }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: program exited with status $ac_status" >&5
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 ac_retval=$ac_status
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 as_fn_set_status $ac_retval
2034 } # ac_fn_c_try_run
2036 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2037 # -------------------------------------------------------
2038 # Tests whether HEADER exists and can be compiled using the include files in
2039 # INCLUDES, setting the cache variable VAR accordingly.
2040 ac_fn_c_check_header_compile ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 #include <$2>
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 eval "$3=yes"
2055 else
2056 eval "$3=no"
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 } # ac_fn_c_check_header_compile
2067 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2068 # ----------------------------------------------------
2069 # Tries to find if the field MEMBER exists in type AGGR, after including
2070 # INCLUDES, setting cache variable VAR accordingly.
2071 ac_fn_c_check_member ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2075 $as_echo_n "checking for $2.$3... " >&6; }
2076 if eval \${$4+:} false; then :
2077 $as_echo_n "(cached) " >&6
2078 else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 static $2 ac_aggr;
2086 if (ac_aggr.$3)
2087 return 0;
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 eval "$4=yes"
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 static $2 ac_aggr;
2102 if (sizeof ac_aggr.$3)
2103 return 0;
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 eval "$4=yes"
2110 else
2111 eval "$4=no"
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 eval ac_res=\$$4
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_member
2124 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2125 # ---------------------------------------------
2126 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2127 # accordingly.
2128 ac_fn_c_check_decl ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 as_decl_name=`echo $2|sed 's/ *(.*//'`
2132 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2134 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2142 main ()
2144 #ifndef $as_decl_name
2145 #ifdef __cplusplus
2146 (void) $as_decl_use;
2147 #else
2148 (void) $as_decl_name;
2149 #endif
2150 #endif
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$3=yes"
2158 else
2159 eval "$3=no"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_decl
2170 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2171 # -------------------------------------------
2172 # Tests whether TYPE exists after having included INCLUDES, setting cache
2173 # variable VAR accordingly.
2174 ac_fn_c_check_type ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 eval "$3=no"
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 if (sizeof ($2))
2190 return 0;
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2200 main ()
2202 if (sizeof (($2)))
2203 return 0;
2205 return 0;
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2210 else
2211 eval "$3=yes"
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 } # ac_fn_c_check_type
2224 # ac_fn_c_check_func LINENO FUNC VAR
2225 # ----------------------------------
2226 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2227 ac_fn_c_check_func ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if eval \${$3+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2239 #define $2 innocuous_$2
2241 /* System header to define __stub macros and hopefully few prototypes,
2242 which can conflict with char $2 (); below.
2243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2244 <limits.h> exists even on freestanding compilers. */
2246 #ifdef __STDC__
2247 # include <limits.h>
2248 #else
2249 # include <assert.h>
2250 #endif
2252 #undef $2
2254 /* Override any GCC internal prototype to avoid an error.
2255 Use char because int might match the return type of a GCC
2256 builtin and then its argument prototype would still apply. */
2257 #ifdef __cplusplus
2258 extern "C"
2259 #endif
2260 char $2 ();
2261 /* The GNU C library defines this for functions which it implements
2262 to always fail with ENOSYS. Some functions are actually named
2263 something starting with __ and the normal name is an alias. */
2264 #if defined __stub_$2 || defined __stub___$2
2265 choke me
2266 #endif
2269 main ()
2271 return $2 ();
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_link "$LINENO"; then :
2277 eval "$3=yes"
2278 else
2279 eval "$3=no"
2281 rm -f core conftest.err conftest.$ac_objext \
2282 conftest$ac_exeext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_func
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by $as_me, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2297 $ $0 $@
2299 _ACEOF
2300 exec 5>>config.log
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324 _ASUNAME
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2335 } >&5
2337 cat >&5 <<_ACEOF
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2344 _ACEOF
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2358 for ac_arg
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2387 as_fn_append ac_configure_args " '$ac_arg'"
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2403 echo
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436 esac |
2437 sort
2439 echo
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2555 done
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2574 as_fn_append ac_header_list " stdlib.h"
2575 as_fn_append ac_header_list " unistd.h"
2576 as_fn_append ac_header_list " sys/param.h"
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2626 done
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646 ac_aux_dir=
2647 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2648 if test -f "$ac_dir/install-sh"; then
2649 ac_aux_dir=$ac_dir
2650 ac_install_sh="$ac_aux_dir/install-sh -c"
2651 break
2652 elif test -f "$ac_dir/install.sh"; then
2653 ac_aux_dir=$ac_dir
2654 ac_install_sh="$ac_aux_dir/install.sh -c"
2655 break
2656 elif test -f "$ac_dir/shtool"; then
2657 ac_aux_dir=$ac_dir
2658 ac_install_sh="$ac_aux_dir/shtool install -c"
2659 break
2661 done
2662 if test -z "$ac_aux_dir"; then
2663 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2666 # These three variables are undocumented and unsupported,
2667 # and are intended to be withdrawn in a future Autoconf release.
2668 # They can cause serious problems if a builder's source tree is in a directory
2669 # whose full name contains unusual characters.
2670 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2671 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2672 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2676 # Check what host we are running on.
2677 # If a target is not suggested, we use this one.
2678 # Note that what we call a target, Autoconf calls a host.
2679 # Make sure we can run config.sub.
2680 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2681 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2684 $as_echo_n "checking build system type... " >&6; }
2685 if ${ac_cv_build+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 ac_build_alias=$build_alias
2689 test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2691 test "x$ac_build_alias" = x &&
2692 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2693 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2698 $as_echo "$ac_cv_build" >&6; }
2699 case $ac_cv_build in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2702 esac
2703 build=$ac_cv_build
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_build
2706 shift
2707 build_cpu=$1
2708 build_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 build_os=$*
2713 IFS=$ac_save_IFS
2714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2718 $as_echo_n "checking host system type... " >&6; }
2719 if ${ac_cv_host+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test "x$host_alias" = x; then
2723 ac_cv_host=$ac_cv_build
2724 else
2725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2731 $as_echo "$ac_cv_host" >&6; }
2732 case $ac_cv_host in
2733 *-*-*) ;;
2734 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2735 esac
2736 host=$ac_cv_host
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_host
2739 shift
2740 host_cpu=$1
2741 host_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 host_os=$*
2746 IFS=$ac_save_IFS
2747 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2751 # The AROS target is slightly different to the normal GNU style
2752 # format. We don't have the middle part, and we reverse the order
2753 # of the $(CPU) and $(OS) bits.
2755 # Don't strip the version of the target yet, it might be
2756 # useful on some systems.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2759 $as_echo_n "checking for AROS style target... " >&6; }
2761 if test "$target" = "NONE" ; then
2762 target=$host_os-$host_cpu
2763 else
2764 if test "$target" = "" ; then
2765 target=$host_os-$host_cpu
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2769 $as_echo "$target" >&6; }
2771 if test "$host_os" = "mingw32" ; then
2772 PWDCMD="pwd -W"
2775 # Don't know where else to put this...
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2777 $as_echo_n "checking building AROS in... " >&6; }
2778 AROS_BUILDDIR=`${PWDCMD-pwd}`
2779 AROS_BUILDDIR_UNIX=${PWD}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2781 $as_echo "$AROS_BUILDDIR" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2784 $as_echo_n "checking AROS source in... " >&6; }
2785 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2786 SRCDIR=${srcpwd}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2788 $as_echo "$SRCDIR" >&6; }
2790 # Parse the target field into something useful.
2792 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2793 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2796 # Some debug output, to be removed again.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2798 $as_echo_n "checking for target system (debug output)... " >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2800 $as_echo "$target_os" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2802 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2804 $as_echo "$target_cpu" >&6; }
2806 aros_default_wbwidth=800
2807 aros_default_wbheight=600
2808 aros_default_wbdepth=4
2811 # The first step is to find the host binaries.
2812 # Check for a compiler.
2813 # Due to a bug in autoconf check for c++ compiler first.
2814 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2815 ac_ext=cpp
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 if test -z "$CXX"; then
2821 if test -n "$CCC"; then
2822 CXX=$CCC
2823 else
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CXX+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2850 IFS=$as_save_IFS
2854 CXX=$ac_cv_prog_CXX
2855 if test -n "$CXX"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2857 $as_echo "$CXX" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2864 test -n "$CXX" && break
2865 done
2867 if test -z "$CXX"; then
2868 ac_ct_CXX=$CXX
2869 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_CXX"; then
2879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CXX="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2894 IFS=$as_save_IFS
2898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2899 if test -n "$ac_ct_CXX"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2901 $as_echo "$ac_ct_CXX" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2908 test -n "$ac_ct_CXX" && break
2909 done
2911 if test "x$ac_ct_CXX" = x; then
2912 CXX="g++"
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CXX=$ac_ct_CXX
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2928 set X $ac_compile
2929 ac_compiler=$2
2930 for ac_option in --version -v -V -qversion; do
2931 { { ac_try="$ac_compiler $ac_option >&5"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2939 ac_status=$?
2940 if test -s conftest.err; then
2941 sed '10a\
2942 ... rest of stderr output deleted ...
2943 10q' conftest.err >conftest.er1
2944 cat conftest.er1 >&5
2946 rm -f conftest.er1 conftest.err
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }
2949 done
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2955 main ()
2959 return 0;
2961 _ACEOF
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2966 # of exeext.
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2968 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2974 ac_rmfiles=
2975 for ac_file in $ac_files
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2980 esac
2981 done
2982 rm -f $ac_rmfiles
2984 if { { ac_try="$ac_link_default"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link_default") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
2999 # Autoconf.
3000 for ac_file in $ac_files ''
3002 test -f "$ac_file" || continue
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3006 [ab].out )
3007 # We found the default executable, but exeext='' is most
3008 # certainly right.
3009 break;;
3010 *.* )
3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3012 then :; else
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 # We set ac_cv_exeext here because the later test for it is not
3016 # safe: cross compilers may not add the suffix if given an `-o'
3017 # argument, so we may need to know it at that point already.
3018 # Even if this section looks crufty: it has the advantage of
3019 # actually working.
3020 break;;
3022 break;;
3023 esac
3024 done
3025 test "$ac_cv_exeext" = no && ac_cv_exeext=
3027 else
3028 ac_file=''
3030 if test -z "$ac_file"; then :
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error 77 "C++ compiler cannot create executables
3039 See \`config.log' for more details" "$LINENO" 5; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3045 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 ac_exeext=$ac_cv_exeext
3050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { { ac_try="$ac_link"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 break;;
3075 * ) break;;
3076 esac
3077 done
3078 else
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 rm -f conftest conftest$ac_cv_exeext
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093 #include <stdio.h>
3095 main ()
3097 FILE *f = fopen ("conftest.out", "w");
3098 return ferror (f) || fclose (f) != 0;
3101 return 0;
3103 _ACEOF
3104 ac_clean_files="$ac_clean_files conftest.out"
3105 # Check that the compiler produces executables we can run. If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108 $as_echo_n "checking whether we are cross compiling... " >&6; }
3109 if test "$cross_compiling" != yes; then
3110 { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 if { ac_try='./conftest$ac_cv_exeext'
3122 { { case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; }; then
3132 cross_compiling=no
3133 else
3134 if test "$cross_compiling" = maybe; then
3135 cross_compiling=yes
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot run C++ compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details" "$LINENO" 5; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146 $as_echo "$cross_compiling" >&6; }
3148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if ${ac_cv_objext+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3163 return 0;
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { { ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_compile") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183 break;;
3184 esac
3185 done
3186 else
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198 $as_echo "$ac_cv_objext" >&6; }
3199 OBJEXT=$ac_cv_objext
3200 ac_objext=$OBJEXT
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3202 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3203 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3210 main ()
3212 #ifndef __GNUC__
3213 choke me
3214 #endif
3217 return 0;
3219 _ACEOF
3220 if ac_fn_cxx_try_compile "$LINENO"; then :
3221 ac_compiler_gnu=yes
3222 else
3223 ac_compiler_gnu=no
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3230 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3231 if test $ac_compiler_gnu = yes; then
3232 GXX=yes
3233 else
3234 GXX=
3236 ac_test_CXXFLAGS=${CXXFLAGS+set}
3237 ac_save_CXXFLAGS=$CXXFLAGS
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3239 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3240 if ${ac_cv_prog_cxx_g+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3244 ac_cxx_werror_flag=yes
3245 ac_cv_prog_cxx_g=no
3246 CXXFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 if ac_fn_cxx_try_compile "$LINENO"; then :
3259 ac_cv_prog_cxx_g=yes
3260 else
3261 CXXFLAGS=""
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 if ac_fn_cxx_try_compile "$LINENO"; then :
3275 else
3276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3277 CXXFLAGS="-g"
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 main ()
3286 return 0;
3288 _ACEOF
3289 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 ac_cv_prog_cxx_g=yes
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3300 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3301 if test "$ac_test_CXXFLAGS" = set; then
3302 CXXFLAGS=$ac_save_CXXFLAGS
3303 elif test $ac_cv_prog_cxx_g = yes; then
3304 if test "$GXX" = yes; then
3305 CXXFLAGS="-g -O2"
3306 else
3307 CXXFLAGS="-g"
3309 else
3310 if test "$GXX" = yes; then
3311 CXXFLAGS="-O2"
3312 else
3313 CXXFLAGS=
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3366 if test -z "$ac_cv_prog_CC"; then
3367 ac_ct_CC=$CC
3368 # Extract the first word of "gcc", so it can be a program name with args.
3369 set dummy gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_CC="gcc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
3395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396 if test -n "$ac_ct_CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398 $as_echo "$ac_ct_CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413 CC=$ac_ct_CC
3415 else
3416 CC="$ac_cv_prog_CC"
3419 if test -z "$CC"; then
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}cc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CC+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC="${ac_tool_prefix}cc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3460 if test -z "$CC"; then
3461 # Extract the first word of "cc", so it can be a program name with args.
3462 set dummy cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 ac_prog_rejected=no
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480 ac_prog_rejected=yes
3481 continue
3483 ac_cv_prog_CC="cc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3491 if test $ac_prog_rejected = yes; then
3492 # We found a bogon in the path, so make sure we never use it.
3493 set dummy $ac_cv_prog_CC
3494 shift
3495 if test $# != 0; then
3496 # We chose a different compiler from the bogus one.
3497 # However, it has the same basename, so the bogon will be chosen
3498 # first if we set CC to just the basename; use the full file name.
3499 shift
3500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 for ac_prog in cl.exe
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_CC+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3541 done
3542 done
3543 IFS=$as_save_IFS
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3557 test -n "$CC" && break
3558 done
3560 if test -z "$CC"; then
3561 ac_ct_CC=$CC
3562 for ac_prog in cl.exe
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_ac_ct_CC="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$ac_ct_CC" && break
3602 done
3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613 CC=$ac_ct_CC
3620 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "no acceptable C compiler found in \$PATH
3623 See \`config.log' for more details" "$LINENO" 5; }
3625 # Provide some information about the compiler.
3626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3627 set X $ac_compile
3628 ac_compiler=$2
3629 for ac_option in --version -v -V -qversion; do
3630 { { ac_try="$ac_compiler $ac_option >&5"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3638 ac_status=$?
3639 if test -s conftest.err; then
3640 sed '10a\
3641 ... rest of stderr output deleted ...
3642 10q' conftest.err >conftest.er1
3643 cat conftest.er1 >&5
3645 rm -f conftest.er1 conftest.err
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648 done
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652 if ${ac_cv_c_compiler_gnu+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 main ()
3661 #ifndef __GNUC__
3662 choke me
3663 #endif
3666 return 0;
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670 ac_compiler_gnu=yes
3671 else
3672 ac_compiler_gnu=no
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3681 GCC=yes
3682 else
3683 GCC=
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if ${ac_cv_prog_cc_g+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3694 ac_cv_prog_cc_g=no
3695 CFLAGS="-g"
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 main ()
3704 return 0;
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_g=yes
3709 else
3710 CFLAGS=""
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3724 else
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3726 CFLAGS="-g"
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_prog_cc_g=yes
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749 $as_echo "$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3754 CFLAGS="-g -O2"
3755 else
3756 CFLAGS="-g"
3758 else
3759 if test "$GCC" = yes; then
3760 CFLAGS="-O2"
3761 else
3762 CFLAGS=
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767 if ${ac_cv_prog_cc_c89+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_cv_prog_cc_c89=no
3771 ac_save_CC=$CC
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <stdarg.h>
3775 #include <stdio.h>
3776 struct stat;
3777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3778 struct buf { int x; };
3779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3780 static char *e (p, i)
3781 char **p;
3782 int i;
3784 return p[i];
3786 static char *f (char * (*g) (char **, int), char **p, ...)
3788 char *s;
3789 va_list v;
3790 va_start (v,p);
3791 s = g (p, va_arg (v,int));
3792 va_end (v);
3793 return s;
3796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3797 function prototypes and stuff, but not '\xHH' hex character constants.
3798 These don't provoke an error unfortunately, instead are silently treated
3799 as 'x'. The following induces an error, until -std is added to get
3800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3801 array size at least. It's necessary to write '\x00'==0 to get something
3802 that's true only with -std. */
3803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806 inside strings and character constants. */
3807 #define FOO(x) 'x'
3808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810 int test (int i, double x);
3811 struct s1 {int (*f) (int a);};
3812 struct s2 {int (*f) (double a);};
3813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3814 int argc;
3815 char **argv;
3817 main ()
3819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 return 0;
3823 _ACEOF
3824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 CC="$ac_save_CC $ac_arg"
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_cv_prog_cc_c89=$ac_arg
3831 rm -f core conftest.err conftest.$ac_objext
3832 test "x$ac_cv_prog_cc_c89" != "xno" && break
3833 done
3834 rm -f conftest.$ac_ext
3835 CC=$ac_save_CC
3838 # AC_CACHE_VAL
3839 case "x$ac_cv_prog_cc_c89" in
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3842 $as_echo "none needed" >&6; } ;;
3843 xno)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3845 $as_echo "unsupported" >&6; } ;;
3847 CC="$CC $ac_cv_prog_cc_c89"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3849 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850 esac
3851 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855 ac_ext=c
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 case $ac_cv_prog_cc_stdc in #(
3862 no) :
3863 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3864 *) :
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3866 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3867 if ${ac_cv_prog_cc_c99+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 ac_cv_prog_cc_c99=no
3871 ac_save_CC=$CC
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874 #include <stdarg.h>
3875 #include <stdbool.h>
3876 #include <stdlib.h>
3877 #include <wchar.h>
3878 #include <stdio.h>
3880 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3881 #define debug(...) fprintf (stderr, __VA_ARGS__)
3882 #define showlist(...) puts (#__VA_ARGS__)
3883 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3884 static void
3885 test_varargs_macros (void)
3887 int x = 1234;
3888 int y = 5678;
3889 debug ("Flag");
3890 debug ("X = %d\n", x);
3891 showlist (The first, second, and third items.);
3892 report (x>y, "x is %d but y is %d", x, y);
3895 // Check long long types.
3896 #define BIG64 18446744073709551615ull
3897 #define BIG32 4294967295ul
3898 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3899 #if !BIG_OK
3900 your preprocessor is broken;
3901 #endif
3902 #if BIG_OK
3903 #else
3904 your preprocessor is broken;
3905 #endif
3906 static long long int bignum = -9223372036854775807LL;
3907 static unsigned long long int ubignum = BIG64;
3909 struct incomplete_array
3911 int datasize;
3912 double data[];
3915 struct named_init {
3916 int number;
3917 const wchar_t *name;
3918 double average;
3921 typedef const char *ccp;
3923 static inline int
3924 test_restrict (ccp restrict text)
3926 // See if C++-style comments work.
3927 // Iterate through items via the restricted pointer.
3928 // Also check for declarations in for loops.
3929 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3930 continue;
3931 return 0;
3934 // Check varargs and va_copy.
3935 static void
3936 test_varargs (const char *format, ...)
3938 va_list args;
3939 va_start (args, format);
3940 va_list args_copy;
3941 va_copy (args_copy, args);
3943 const char *str;
3944 int number;
3945 float fnumber;
3947 while (*format)
3949 switch (*format++)
3951 case 's': // string
3952 str = va_arg (args_copy, const char *);
3953 break;
3954 case 'd': // int
3955 number = va_arg (args_copy, int);
3956 break;
3957 case 'f': // float
3958 fnumber = va_arg (args_copy, double);
3959 break;
3960 default:
3961 break;
3964 va_end (args_copy);
3965 va_end (args);
3969 main ()
3972 // Check bool.
3973 _Bool success = false;
3975 // Check restrict.
3976 if (test_restrict ("String literal") == 0)
3977 success = true;
3978 char *restrict newvar = "Another string";
3980 // Check varargs.
3981 test_varargs ("s, d' f .", "string", 65, 34.234);
3982 test_varargs_macros ();
3984 // Check flexible array members.
3985 struct incomplete_array *ia =
3986 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3987 ia->datasize = 10;
3988 for (int i = 0; i < ia->datasize; ++i)
3989 ia->data[i] = i * 1.234;
3991 // Check named initializers.
3992 struct named_init ni = {
3993 .number = 34,
3994 .name = L"Test wide string",
3995 .average = 543.34343,
3998 ni.number = 58;
4000 int dynamic_array[ni.number];
4001 dynamic_array[ni.number - 1] = 543;
4003 // work around unused variable warnings
4004 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4005 || dynamic_array[ni.number - 1] != 543);
4008 return 0;
4010 _ACEOF
4011 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4013 CC="$ac_save_CC $ac_arg"
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_c99=$ac_arg
4017 rm -f core conftest.err conftest.$ac_objext
4018 test "x$ac_cv_prog_cc_c99" != "xno" && break
4019 done
4020 rm -f conftest.$ac_ext
4021 CC=$ac_save_CC
4024 # AC_CACHE_VAL
4025 case "x$ac_cv_prog_cc_c99" in
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028 $as_echo "none needed" >&6; } ;;
4029 xno)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 $as_echo "unsupported" >&6; } ;;
4033 CC="$CC $ac_cv_prog_cc_c99"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4035 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4036 esac
4037 if test "x$ac_cv_prog_cc_c99" != xno; then :
4038 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4042 if ${ac_cv_prog_cc_c89+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 ac_cv_prog_cc_c89=no
4046 ac_save_CC=$CC
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <stdarg.h>
4050 #include <stdio.h>
4051 struct stat;
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4056 char **p;
4057 int i;
4059 return p[i];
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4063 char *s;
4064 va_list v;
4065 va_start (v,p);
4066 s = g (p, va_arg (v,int));
4067 va_end (v);
4068 return s;
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4082 #define FOO(x) 'x'
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4089 int argc;
4090 char **argv;
4092 main ()
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 return 0;
4098 _ACEOF
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 CC="$ac_save_CC $ac_arg"
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_cv_prog_cc_c89=$ac_arg
4106 rm -f core conftest.err conftest.$ac_objext
4107 test "x$ac_cv_prog_cc_c89" != "xno" && break
4108 done
4109 rm -f conftest.$ac_ext
4110 CC=$ac_save_CC
4113 # AC_CACHE_VAL
4114 case "x$ac_cv_prog_cc_c89" in
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117 $as_echo "none needed" >&6; } ;;
4118 xno)
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 $as_echo "unsupported" >&6; } ;;
4122 CC="$CC $ac_cv_prog_cc_c89"
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4125 esac
4126 if test "x$ac_cv_prog_cc_c89" != xno; then :
4127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4128 else
4129 ac_cv_prog_cc_stdc=no
4134 esac
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4136 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4137 if ${ac_cv_prog_cc_stdc+:} false; then :
4138 $as_echo_n "(cached) " >&6
4141 case $ac_cv_prog_cc_stdc in #(
4142 no) :
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144 $as_echo "unsupported" >&6; } ;; #(
4145 '') :
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147 $as_echo "none needed" >&6; } ;; #(
4148 *) :
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4150 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4151 esac
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4159 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4160 # On Suns, sometimes $CPP names a directory.
4161 if test -n "$CPP" && test -d "$CPP"; then
4162 CPP=
4164 if test -z "$CPP"; then
4165 if ${ac_cv_prog_CPP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 # Double quotes because CPP needs to be expanded
4169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #ifdef __STDC__
4183 # include <limits.h>
4184 #else
4185 # include <assert.h>
4186 #endif
4187 Syntax error
4188 _ACEOF
4189 if ac_fn_c_try_cpp "$LINENO"; then :
4191 else
4192 # Broken: fails on valid input.
4193 continue
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4197 # OK, works on sane cases. Now check whether nonexistent headers
4198 # can be detected and how.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <ac_nonexistent.h>
4202 _ACEOF
4203 if ac_fn_c_try_cpp "$LINENO"; then :
4204 # Broken: success on invalid input.
4205 continue
4206 else
4207 # Passes both tests.
4208 ac_preproc_ok=:
4209 break
4211 rm -f conftest.err conftest.i conftest.$ac_ext
4213 done
4214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4215 rm -f conftest.i conftest.err conftest.$ac_ext
4216 if $ac_preproc_ok; then :
4217 break
4220 done
4221 ac_cv_prog_CPP=$CPP
4224 CPP=$ac_cv_prog_CPP
4225 else
4226 ac_cv_prog_CPP=$CPP
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4229 $as_echo "$CPP" >&6; }
4230 ac_preproc_ok=false
4231 for ac_c_preproc_warn_flag in '' yes
4233 # Use a header file that comes with gcc, so configuring glibc
4234 # with a fresh cross-compiler works.
4235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4236 # <limits.h> exists even on freestanding compilers.
4237 # On the NeXT, cc -E runs the code through the compiler's parser,
4238 # not just through cpp. "Syntax error" is here to catch this case.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #ifdef __STDC__
4242 # include <limits.h>
4243 #else
4244 # include <assert.h>
4245 #endif
4246 Syntax error
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4250 else
4251 # Broken: fails on valid input.
4252 continue
4254 rm -f conftest.err conftest.i conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <ac_nonexistent.h>
4261 _ACEOF
4262 if ac_fn_c_try_cpp "$LINENO"; then :
4263 # Broken: success on invalid input.
4264 continue
4265 else
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.i conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then :
4277 else
4278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4281 See \`config.log' for more details" "$LINENO" 5; }
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 # Check for a compatible awk
4292 for ac_prog in gawk nawk
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_AWK+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$AWK"; then
4302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_AWK="$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4321 AWK=$ac_cv_prog_AWK
4322 if test -n "$AWK"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4324 $as_echo "$AWK" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$AWK" && break
4332 done
4334 if test "$AWK" = ""; then
4335 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4337 # Extract the first word of "mmake", so it can be a program name with args.
4338 set dummy mmake; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_MMAKE+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$MMAKE"; then
4345 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_MMAKE="mmake "
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 MMAKE=$ac_cv_prog_MMAKE
4365 if test -n "$MMAKE"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4367 $as_echo "$MMAKE" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4375 # Perform some default variable assignments. Note all of these will be
4376 # Regenerated from the script, so there is no need to cache them.
4378 aros_host_cpp="$CPP"
4379 aros_host_cc="$CC"
4380 aros_host_cxx="$CXX"
4381 if test "$GCC" = "yes"; then
4382 aros_gcc_ld=`$CC -print-prog-name=ld`
4383 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4384 set dummy `basename $aros_gcc_ld`; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_path_aros_host_ld+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 case $aros_host_ld in
4391 [\\/]* | ?:[\\/]*)
4392 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in `dirname $aros_gcc_ld`
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4411 esac
4413 aros_host_ld=$ac_cv_path_aros_host_ld
4414 if test -n "$aros_host_ld"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4416 $as_echo "$aros_host_ld" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4424 if test "$aros_host_ld" = ""; then
4425 # Extract the first word of "ld", so it can be a program name with args.
4426 set dummy ld; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_path_aros_host_ld+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 case $aros_host_ld in
4433 [\\/]* | ?:[\\/]*)
4434 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4453 esac
4455 aros_host_ld=$ac_cv_path_aros_host_ld
4456 if test -n "$aros_host_ld"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4458 $as_echo "$aros_host_ld" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4466 if test "$aros_host_ld" = ""; then
4467 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4469 aros_host_make="make"
4470 aros_host_cflags="$CFLAGS"
4471 aros_host_cxxflags="$CXXFLAGS"
4472 aros_host_ldflags="$LDFLAGS"
4473 aros_host_debug="-g -O0"
4474 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4475 aros_host_mkargs="--no-print-directory"
4476 aros_host_exe_suffix="$EXEEXT"
4477 aros_host_lib_suffix=""
4479 # Ignore all compliance, AROS ROMs = 0
4480 # KickStart v1.0 = 30
4481 # KickStart v1.3 = 34
4482 # KickStart v2.0 = 37
4483 # KickStart v3.0 = 39
4484 # KickStart v3.1 = 40
4485 # AmigaOS v3.5 = 44
4486 aros_amigaos_compliance=0
4488 for ac_prog in aclocal aclocal19 aclocal-1.9
4490 # Extract the first word of "$ac_prog", so it can be a program name with args.
4491 set dummy $ac_prog; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$aros_host_aclocal"; then
4498 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 ac_cv_prog_aros_host_aclocal="$ac_prog"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4513 IFS=$as_save_IFS
4517 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4518 if test -n "$aros_host_aclocal"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4520 $as_echo "$aros_host_aclocal" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4527 test -n "$aros_host_aclocal" && break
4528 done
4530 for ac_prog in autoconf autoconf259 autoconf253
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$aros_host_autoconf"; then
4540 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_aros_host_autoconf="$ac_prog"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4559 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4560 if test -n "$aros_host_autoconf"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4562 $as_echo "$aros_host_autoconf" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 test -n "$aros_host_autoconf" && break
4570 done
4572 for ac_prog in autoheader autoheader259 autoheader253
4574 # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$aros_host_autoheader"; then
4582 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_aros_host_autoheader="$ac_prog"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4602 if test -n "$aros_host_autoheader"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4604 $as_echo "$aros_host_autoheader" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 test -n "$aros_host_autoheader" && break
4612 done
4614 for ac_prog in automake automake19 automake-1.9
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_aros_host_automake+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$aros_host_automake"; then
4624 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_aros_host_automake="$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 aros_host_automake=$ac_cv_prog_aros_host_automake
4644 if test -n "$aros_host_automake"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4646 $as_echo "$aros_host_automake" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 test -n "$aros_host_automake" && break
4654 done
4657 if test "$aros_host_aclocal" = ""; then
4658 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4660 if test "$aros_host_automake" = ""; then
4661 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4664 case "$aros_host_cc" in
4665 *gcc*)
4666 aros_host_cc_pipe="-pipe"
4668 icc)
4669 aros_host_cc_pipe=""
4672 aros_host_cc_pipe=""
4674 esac
4676 aros_kernel_cc_includes=""
4677 aros_target_cc_includes=""
4678 host_cc_elf=yes
4680 # ----------------------------------------------------------------------------------------
4681 # Host-specific defaults
4683 # This is the main host configuration section. It is where the host
4684 # can change the values of any variables it needs to change. We do
4685 # not look at anything that compiles to the target yet, we'll get
4686 # to that later.
4688 case "$host_os" in
4689 aros*)
4690 aros_host_arch="aros"
4691 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4692 case "$host_cpu" in
4693 *i?86*)
4694 aros_host_cpu="i386"
4696 *x86_64*)
4697 aros_host_cpu="x86_64"
4699 *powerpc*)
4700 aros_host_cpu="ppc"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4704 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4705 aros_host_cpu="$host_cpu"
4707 esac
4710 linux*)
4711 aros_host_arch="linux"
4712 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4713 android_build_os="linux-x86"
4714 android_tool="android"
4715 default_android_sdk="/opt/android-sdk-linux_x86"
4716 case "$host_cpu" in
4717 *i?86*)
4718 aros_host_cpu="i386"
4720 *x86_64*)
4721 aros_host_cpu="x86_64"
4723 *m68k*)
4724 aros_host_cpu="m68k"
4726 *powerpc*)
4727 aros_host_cpu="ppc"
4729 *arm*)
4730 aros_host_cpu="arm"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4734 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4735 aros_host_cpu="$host_cpu"
4737 esac
4740 freebsd*)
4741 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4742 aros_host_make="gmake"
4743 aros_host_arch="freebsd"
4744 aros_host_cpu="i386"
4746 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4748 case $host_os in
4749 freebsd[234]*)
4750 aros_object_format="elf_i386"
4754 aros_object_format="elf_i386_fbsd"
4756 esac
4760 darwin*)
4761 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4762 aros_host_arch="darwin"
4763 host_cc_elf=no
4764 SED="gsed"
4765 android_build_os="darwin-x86"
4766 android_tool="android"
4767 default_android_sdk="/android-sdk-mac_x86"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4772 *x86_64*)
4773 aros_host_cpu="x86_64"
4775 *powerpc*)
4776 aros_host_cpu="ppc"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4780 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4781 aros_host_cpu="$host_cpu"
4783 esac
4785 aros_host_ldflags="$aros_host_ldflags -liconv"
4789 dragonfly*)
4790 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4791 aros_host_make="gmake"
4792 aros_host_arch="dragonfly"
4793 case $host_cpu in
4794 *i?86*)
4795 aros_host_cpu="i386"
4797 *amd64*)
4798 aros_host_cpu="x86_64"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4802 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4803 aros_host_cpu="$host_cpu"
4805 esac
4808 netbsd*)
4809 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4810 aros_host_make="gmake"
4811 aros_host_arch="netbsd"
4812 case "$host_cpu" in
4813 *i?86*)
4814 aros_host_cpu="i386"
4816 *m68k*)
4817 aros_host_cpu="m68k"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4821 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4822 aros_host_cpu="$host_cpu"
4824 esac
4825 aros_host_lib_suffix=".0.0"
4828 openbsd*)
4829 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4830 aros_host_make="gmake"
4831 aros_host_arch="openbsd"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4844 solaris*)
4845 aros_host_arch="solaris"
4846 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4847 case "$host_cpu" in
4848 *i?86*)
4849 aros_host_cpu="i386"
4851 *sparc*)
4852 aros_host_cpu="sparc"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4856 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4857 aros_host_cpu="$host_cpu"
4859 esac
4862 morphos*)
4863 aros_host_arch="morphos"
4864 aros_host_cpu="ppc"
4865 host_cc_elf=no
4868 amiga*)
4869 aros_host_arch="amiga"
4870 host_cc_elf=no
4871 SORT="/gg/bin/sort"
4872 TEST="/gg/bin/test"
4873 UNIQ="/gg/bin/uniq"
4874 FOR="for"
4875 TOUCH="/gg/bin/touch"
4876 case "$host_cpu" in
4877 *m68k*)
4878 aros_host_cpu="m68k"
4880 *powerpc*)
4881 aros_host_cpu="ppc"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4885 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4886 aros_host_cpu="$host_cpu"
4888 esac
4891 cygwin*)
4892 aros_host_arch="cygwin"
4893 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4894 host_cc_elf=no
4895 android_build_os="windows"
4896 android_tool="android.bat"
4897 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4899 case "$host_cpu" in
4900 *i?86*)
4901 aros_host_cpu="i386"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4905 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4906 aros_host_cpu="$host_cpu"
4908 esac
4911 mingw32*)
4912 aros_host_arch="mingw32"
4913 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4914 host_cc_elf=no
4915 android_build_os="windows"
4916 android_tool="android.bat"
4917 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4919 case "$host_cpu" in
4920 *i?86*)
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4923 $as_echo_n "checking for Windows native gcc target... " >&6; }
4924 host_cpu=`gcc -dumpmachine`
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4926 $as_echo "$host_cpu" >&6; }
4929 esac
4931 case "$host_cpu" in
4932 *i?86*)
4933 aros_host_cpu="i386"
4936 mingw32*)
4937 aros_host_cpu="i386"
4940 *x86_64*)
4941 aros_host_cpu="x86_64"
4942 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4947 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4948 aros_host_cpu="$host_cpu"
4950 esac
4953 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4955 esac
4957 # Extract the first word of "ar", so it can be a program name with args.
4958 set dummy ar; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_aros_host_ar+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$aros_host_ar"; then
4965 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_aros_host_ar="ar cr"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4978 done
4979 done
4980 IFS=$as_save_IFS
4984 aros_host_ar=$ac_cv_prog_aros_host_ar
4985 if test -n "$aros_host_ar"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4987 $as_echo "$aros_host_ar" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 if test "$aros_host_ar" = ""; then
4995 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4997 # Extract the first word of "ranlib", so it can be a program name with args.
4998 set dummy ranlib; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$aros_host_ranlib"; then
5005 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_aros_host_ranlib="ranlib "
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5020 IFS=$as_save_IFS
5024 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5025 if test -n "$aros_host_ranlib"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5027 $as_echo "$aros_host_ranlib" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5034 if test "$aros_host_ranlib" = ""; then
5035 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5037 # Extract the first word of "strip", so it can be a program name with args.
5038 set dummy strip; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_aros_host_strip+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$aros_host_strip"; then
5045 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_aros_host_strip="strip "
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 aros_host_strip=$ac_cv_prog_aros_host_strip
5065 if test -n "$aros_host_strip"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5067 $as_echo "$aros_host_strip" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 if test "$aros_host_strip" = ""; then
5075 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5078 # Extract the first word of "rm", so it can be a program name with args.
5079 set dummy rm; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_RM+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$RM"; then
5086 ac_cv_prog_RM="$RM" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_RM="rm -rf"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 RM=$ac_cv_prog_RM
5106 if test -n "$RM"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5108 $as_echo "$RM" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 if test "$RM" = ""; then
5116 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5118 # Extract the first word of "cp", so it can be a program name with args.
5119 set dummy cp; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_CP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$CP"; then
5126 ac_cv_prog_CP="$CP" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_CP="cp "
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 CP=$ac_cv_prog_CP
5146 if test -n "$CP"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5148 $as_echo "$CP" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 if test "$CP" = ""; then
5156 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5158 # Extract the first word of "mv", so it can be a program name with args.
5159 set dummy mv; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_MV+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$MV"; then
5166 ac_cv_prog_MV="$MV" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_MV="mv "
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 MV=$ac_cv_prog_MV
5186 if test -n "$MV"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5188 $as_echo "$MV" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 if test "$MV" = ""; then
5196 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5198 # Extract the first word of "echo", so it can be a program name with args.
5199 set dummy echo; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ECHO+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ECHO"; then
5206 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ECHO="echo "
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ECHO=$ac_cv_prog_ECHO
5226 if test -n "$ECHO"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5228 $as_echo "$ECHO" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 if test "$ECHO" = ""; then
5236 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5238 # Extract the first word of "mkdir", so it can be a program name with args.
5239 set dummy mkdir; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_MKDIR+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$MKDIR"; then
5246 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_MKDIR="mkdir -p"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 MKDIR=$ac_cv_prog_MKDIR
5266 if test -n "$MKDIR"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5268 $as_echo "$MKDIR" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 if test "$MKDIR" = ""; then
5276 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5278 # Extract the first word of "touch", so it can be a program name with args.
5279 set dummy touch; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_TOUCH+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$TOUCH"; then
5286 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_TOUCH="touch "
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 TOUCH=$ac_cv_prog_TOUCH
5306 if test -n "$TOUCH"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5308 $as_echo "$TOUCH" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 if test "$TOUCH" = ""; then
5316 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5318 # Extract the first word of "sort", so it can be a program name with args.
5319 set dummy sort; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_SORT+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$SORT"; then
5326 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_SORT="sort "
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5345 SORT=$ac_cv_prog_SORT
5346 if test -n "$SORT"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5348 $as_echo "$SORT" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 if test "$SORT" = ""; then
5356 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5358 # Extract the first word of "uniq", so it can be a program name with args.
5359 set dummy uniq; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_prog_UNIQ+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if test -n "$UNIQ"; then
5366 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_UNIQ="uniq "
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5379 done
5380 done
5381 IFS=$as_save_IFS
5385 UNIQ=$ac_cv_prog_UNIQ
5386 if test -n "$UNIQ"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5388 $as_echo "$UNIQ" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5395 if test "$UNIQ" = ""; then
5396 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5398 # Extract the first word of "true", so it can be a program name with args.
5399 set dummy true; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_NOP+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 if test -n "$NOP"; then
5406 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_NOP="true "
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5419 done
5420 done
5421 IFS=$as_save_IFS
5425 NOP=$ac_cv_prog_NOP
5426 if test -n "$NOP"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5428 $as_echo "$NOP" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5435 if test "$NOP" = ""; then
5436 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5438 # Extract the first word of "cat", so it can be a program name with args.
5439 set dummy cat; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_CAT+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 if test -n "$CAT"; then
5446 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_CAT="cat "
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5459 done
5460 done
5461 IFS=$as_save_IFS
5465 CAT=$ac_cv_prog_CAT
5466 if test -n "$CAT"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5468 $as_echo "$CAT" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5475 if test "$CAT" = ""; then
5476 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5478 # Extract the first word of "bison", so it can be a program name with args.
5479 set dummy bison; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_BISON+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$BISON"; then
5486 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_BISON="bison "
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5505 BISON=$ac_cv_prog_BISON
5506 if test -n "$BISON"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5508 $as_echo "$BISON" >&6; }
5509 else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5515 if test "$BISON" = ""; then
5516 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5518 # Extract the first word of "flex", so it can be a program name with args.
5519 set dummy flex; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_FLEX+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$FLEX"; then
5526 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_FLEX="flex "
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 FLEX=$ac_cv_prog_FLEX
5546 if test -n "$FLEX"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5548 $as_echo "$FLEX" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 if test "$FLEX" = ""; then
5556 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5558 # Extract the first word of "pngtopnm", so it can be a program name with args.
5559 set dummy pngtopnm; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$PNGTOPNM"; then
5566 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_PNGTOPNM="pngtopnm "
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5586 if test -n "$PNGTOPNM"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5588 $as_echo "$PNGTOPNM" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 if test "$PNGTOPNM" = ""; then
5596 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5598 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5599 set dummy ppmtoilbm; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$PPMTOILBM"; then
5606 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5626 if test -n "$PPMTOILBM"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5628 $as_echo "$PPMTOILBM" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 if test "$PPMTOILBM" = ""; then
5636 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5638 # Extract the first word of "sed", so it can be a program name with args.
5639 set dummy sed; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_SED+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$SED"; then
5646 ac_cv_prog_SED="$SED" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_SED="sed "
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 SED=$ac_cv_prog_SED
5666 if test -n "$SED"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5668 $as_echo "$SED" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5675 if test "$SED" = ""; then
5676 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5678 # Extract the first word of "chmod", so it can be a program name with args.
5679 set dummy chmod; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_CHMOD+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$CHMOD"; then
5686 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_CHMOD="chmod "
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 CHMOD=$ac_cv_prog_CHMOD
5706 if test -n "$CHMOD"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5708 $as_echo "$CHMOD" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 if test "$CHMOD" = ""; then
5716 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5718 # Extract the first word of "patch", so it can be a program name with args.
5719 set dummy patch; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_PATCH+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$PATCH"; then
5726 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_PATCH="patch "
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5741 IFS=$as_save_IFS
5745 PATCH=$ac_cv_prog_PATCH
5746 if test -n "$PATCH"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5748 $as_echo "$PATCH" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5755 if test "$PATCH" = ""; then
5756 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5765 if test -n "$PYTHON"; then
5766 # If the user set $PYTHON, use it and don't search something else.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5768 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5769 prog="import sys
5770 # split strings by '.' and convert to numeric. Append some zeros
5771 # because we need at least 4 digits for the hex conversion.
5772 # map returns an iterator in Python 3.0 and a list in 2.x
5773 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5774 minverhex = 0
5775 # xrange is not present in Python 3.0 and range returns an iterator
5776 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5777 sys.exit(sys.hexversion < minverhex)"
5778 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5779 ($PYTHON -c "$prog") >&5 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then :
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5784 $as_echo "yes" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5790 am_display_PYTHON=$PYTHON
5791 else
5792 # Otherwise, try each interpreter until we find one that satisfies
5793 # VERSION.
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5795 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5796 if ${am_cv_pathless_PYTHON+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5800 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
5801 test "$am_cv_pathless_PYTHON" = none && break
5802 prog="import sys
5803 # split strings by '.' and convert to numeric. Append some zeros
5804 # because we need at least 4 digits for the hex conversion.
5805 # map returns an iterator in Python 3.0 and a list in 2.x
5806 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5807 minverhex = 0
5808 # xrange is not present in Python 3.0 and range returns an iterator
5809 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5810 sys.exit(sys.hexversion < minverhex)"
5811 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5812 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; then :
5816 break
5818 done
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5821 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5822 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5823 if test "$am_cv_pathless_PYTHON" = none; then
5824 PYTHON=:
5825 else
5826 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5827 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_path_PYTHON+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 case $PYTHON in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5851 IFS=$as_save_IFS
5854 esac
5856 PYTHON=$ac_cv_path_PYTHON
5857 if test -n "$PYTHON"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5859 $as_echo "$PYTHON" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5867 am_display_PYTHON=$am_cv_pathless_PYTHON
5871 if test "$PYTHON" = :; then
5872 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5873 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5877 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5878 if ${am_cv_python_version+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5884 $as_echo "$am_cv_python_version" >&6; }
5885 PYTHON_VERSION=$am_cv_python_version
5889 PYTHON_PREFIX='${prefix}'
5891 PYTHON_EXEC_PREFIX='${exec_prefix}'
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5896 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5897 if ${am_cv_python_platform+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5903 $as_echo "$am_cv_python_platform" >&6; }
5904 PYTHON_PLATFORM=$am_cv_python_platform
5907 # Just factor out some code duplication.
5908 am_python_setup_sysconfig="\
5909 import sys
5910 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5911 # with python 3.x. See automake bug#10227.
5912 try:
5913 import sysconfig
5914 except ImportError:
5915 can_use_sysconfig = 0
5916 else:
5917 can_use_sysconfig = 1
5918 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5919 # <https://github.com/pypa/virtualenv/issues/118>
5920 try:
5921 from platform import python_implementation
5922 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5923 can_use_sysconfig = 0
5924 except ImportError:
5925 pass"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5929 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5930 if ${am_cv_python_pythondir+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test "x$prefix" = xNONE
5934 then
5935 am_py_prefix=$ac_default_prefix
5936 else
5937 am_py_prefix=$prefix
5939 am_cv_python_pythondir=`$PYTHON -c "
5940 $am_python_setup_sysconfig
5941 if can_use_sysconfig:
5942 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5943 else:
5944 from distutils import sysconfig
5945 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5946 sys.stdout.write(sitedir)"`
5947 case $am_cv_python_pythondir in
5948 $am_py_prefix*)
5949 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5950 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5953 case $am_py_prefix in
5954 /usr|/System*) ;;
5956 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5958 esac
5960 esac
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5964 $as_echo "$am_cv_python_pythondir" >&6; }
5965 pythondir=$am_cv_python_pythondir
5969 pkgpythondir=\${pythondir}/$PACKAGE
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5973 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5974 if ${am_cv_python_pyexecdir+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test "x$exec_prefix" = xNONE
5978 then
5979 am_py_exec_prefix=$am_py_prefix
5980 else
5981 am_py_exec_prefix=$exec_prefix
5983 am_cv_python_pyexecdir=`$PYTHON -c "
5984 $am_python_setup_sysconfig
5985 if can_use_sysconfig:
5986 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5987 else:
5988 from distutils import sysconfig
5989 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5990 sys.stdout.write(sitedir)"`
5991 case $am_cv_python_pyexecdir in
5992 $am_py_exec_prefix*)
5993 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5994 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5997 case $am_py_exec_prefix in
5998 /usr|/System*) ;;
6000 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6002 esac
6004 esac
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6008 $as_echo "$am_cv_python_pyexecdir" >&6; }
6009 pyexecdir=$am_cv_python_pyexecdir
6013 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6023 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6024 if ${ac_cv_lib_png_png_read_png+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-lpng $LIBS"
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6032 /* Override any GCC internal prototype to avoid an error.
6033 Use char because int might match the return type of a GCC
6034 builtin and then its argument prototype would still apply. */
6035 #ifdef __cplusplus
6036 extern "C"
6037 #endif
6038 char png_read_png ();
6040 main ()
6042 return png_read_png ();
6044 return 0;
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048 ac_cv_lib_png_png_read_png=yes
6049 else
6050 ac_cv_lib_png_png_read_png=no
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 LIBS=$ac_check_lib_save_LIBS
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6057 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6058 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define HAVE_LIBPNG 1
6061 _ACEOF
6063 LIBS="-lpng $LIBS"
6067 if test "$ac_cv_lib_png_png_read_png" = ""; then
6068 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6071 FOR=for
6073 IF=if
6075 TEST=test
6077 CMP=cmp
6081 # Check for some includes for the X11 HIDD and the kernel
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6085 if ${ac_cv_path_GREP+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if test -z "$GREP"; then
6089 ac_path_GREP_found=false
6090 # Loop through the user's path and test for each of PROGNAME-LIST
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_prog in grep ggrep; do
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6099 as_fn_executable_p "$ac_path_GREP" || continue
6100 # Check for GNU ac_path_GREP and select it if it is found.
6101 # Check for GNU $ac_path_GREP
6102 case `"$ac_path_GREP" --version 2>&1` in
6103 *GNU*)
6104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6106 ac_count=0
6107 $as_echo_n 0123456789 >"conftest.in"
6108 while :
6110 cat "conftest.in" "conftest.in" >"conftest.tmp"
6111 mv "conftest.tmp" "conftest.in"
6112 cp "conftest.in" "conftest.nl"
6113 $as_echo 'GREP' >> "conftest.nl"
6114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6116 as_fn_arith $ac_count + 1 && ac_count=$as_val
6117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6118 # Best one so far, save it but keep looking for a better one
6119 ac_cv_path_GREP="$ac_path_GREP"
6120 ac_path_GREP_max=$ac_count
6122 # 10*(2^10) chars as input seems more than enough
6123 test $ac_count -gt 10 && break
6124 done
6125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 esac
6128 $ac_path_GREP_found && break 3
6129 done
6130 done
6131 done
6132 IFS=$as_save_IFS
6133 if test -z "$ac_cv_path_GREP"; then
6134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6136 else
6137 ac_cv_path_GREP=$GREP
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6142 $as_echo "$ac_cv_path_GREP" >&6; }
6143 GREP="$ac_cv_path_GREP"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6147 $as_echo_n "checking for egrep... " >&6; }
6148 if ${ac_cv_path_EGREP+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6152 then ac_cv_path_EGREP="$GREP -E"
6153 else
6154 if test -z "$EGREP"; then
6155 ac_path_EGREP_found=false
6156 # Loop through the user's path and test for each of PROGNAME-LIST
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_prog in egrep; do
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6165 as_fn_executable_p "$ac_path_EGREP" || continue
6166 # Check for GNU ac_path_EGREP and select it if it is found.
6167 # Check for GNU $ac_path_EGREP
6168 case `"$ac_path_EGREP" --version 2>&1` in
6169 *GNU*)
6170 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6172 ac_count=0
6173 $as_echo_n 0123456789 >"conftest.in"
6174 while :
6176 cat "conftest.in" "conftest.in" >"conftest.tmp"
6177 mv "conftest.tmp" "conftest.in"
6178 cp "conftest.in" "conftest.nl"
6179 $as_echo 'EGREP' >> "conftest.nl"
6180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6182 as_fn_arith $ac_count + 1 && ac_count=$as_val
6183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6184 # Best one so far, save it but keep looking for a better one
6185 ac_cv_path_EGREP="$ac_path_EGREP"
6186 ac_path_EGREP_max=$ac_count
6188 # 10*(2^10) chars as input seems more than enough
6189 test $ac_count -gt 10 && break
6190 done
6191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6192 esac
6194 $ac_path_EGREP_found && break 3
6195 done
6196 done
6197 done
6198 IFS=$as_save_IFS
6199 if test -z "$ac_cv_path_EGREP"; then
6200 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6202 else
6203 ac_cv_path_EGREP=$EGREP
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6209 $as_echo "$ac_cv_path_EGREP" >&6; }
6210 EGREP="$ac_cv_path_EGREP"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6214 $as_echo_n "checking for ANSI C header files... " >&6; }
6215 if ${ac_cv_header_stdc+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <stdlib.h>
6221 #include <stdarg.h>
6222 #include <string.h>
6223 #include <float.h>
6226 main ()
6230 return 0;
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 ac_cv_header_stdc=yes
6235 else
6236 ac_cv_header_stdc=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 if test $ac_cv_header_stdc = yes; then
6241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <string.h>
6246 _ACEOF
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 $EGREP "memchr" >/dev/null 2>&1; then :
6250 else
6251 ac_cv_header_stdc=no
6253 rm -f conftest*
6257 if test $ac_cv_header_stdc = yes; then
6258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <stdlib.h>
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "free" >/dev/null 2>&1; then :
6267 else
6268 ac_cv_header_stdc=no
6270 rm -f conftest*
6274 if test $ac_cv_header_stdc = yes; then
6275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6276 if test "$cross_compiling" = yes; then :
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <ctype.h>
6282 #include <stdlib.h>
6283 #if ((' ' & 0x0FF) == 0x020)
6284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6286 #else
6287 # define ISLOWER(c) \
6288 (('a' <= (c) && (c) <= 'i') \
6289 || ('j' <= (c) && (c) <= 'r') \
6290 || ('s' <= (c) && (c) <= 'z'))
6291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6292 #endif
6294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6296 main ()
6298 int i;
6299 for (i = 0; i < 256; i++)
6300 if (XOR (islower (i), ISLOWER (i))
6301 || toupper (i) != TOUPPER (i))
6302 return 2;
6303 return 0;
6305 _ACEOF
6306 if ac_fn_c_try_run "$LINENO"; then :
6308 else
6309 ac_cv_header_stdc=no
6311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6312 conftest.$ac_objext conftest.beam conftest.$ac_ext
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6318 $as_echo "$ac_cv_header_stdc" >&6; }
6319 if test $ac_cv_header_stdc = yes; then
6321 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327 inttypes.h stdint.h unistd.h
6328 do :
6329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6333 cat >>confdefs.h <<_ACEOF
6334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6335 _ACEOF
6339 done
6342 for ac_header in sys/ipc.h sys/shm.h \
6343 sys/mmap.h sys/mman.h sysexits.h \
6344 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6346 do :
6347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6356 done
6359 for ac_header in sys/mount.h
6360 do :
6361 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6363 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_SYS_MOUNT_H 1
6366 _ACEOF
6370 done
6373 ac_header_dirent=no
6374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6375 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6377 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6378 if eval \${$as_ac_Header+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <sys/types.h>
6384 #include <$ac_hdr>
6387 main ()
6389 if ((DIR *) 0)
6390 return 0;
6392 return 0;
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 eval "$as_ac_Header=yes"
6397 else
6398 eval "$as_ac_Header=no"
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 eval ac_res=\$$as_ac_Header
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6404 $as_echo "$ac_res" >&6; }
6405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6406 cat >>confdefs.h <<_ACEOF
6407 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6408 _ACEOF
6410 ac_header_dirent=$ac_hdr; break
6413 done
6414 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6415 if test $ac_header_dirent = dirent.h; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6417 $as_echo_n "checking for library containing opendir... " >&6; }
6418 if ${ac_cv_search_opendir+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 ac_func_search_save_LIBS=$LIBS
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6425 /* Override any GCC internal prototype to avoid an error.
6426 Use char because int might match the return type of a GCC
6427 builtin and then its argument prototype would still apply. */
6428 #ifdef __cplusplus
6429 extern "C"
6430 #endif
6431 char opendir ();
6433 main ()
6435 return opendir ();
6437 return 0;
6439 _ACEOF
6440 for ac_lib in '' dir; do
6441 if test -z "$ac_lib"; then
6442 ac_res="none required"
6443 else
6444 ac_res=-l$ac_lib
6445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 ac_cv_search_opendir=$ac_res
6450 rm -f core conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext
6452 if ${ac_cv_search_opendir+:} false; then :
6453 break
6455 done
6456 if ${ac_cv_search_opendir+:} false; then :
6458 else
6459 ac_cv_search_opendir=no
6461 rm conftest.$ac_ext
6462 LIBS=$ac_func_search_save_LIBS
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6465 $as_echo "$ac_cv_search_opendir" >&6; }
6466 ac_res=$ac_cv_search_opendir
6467 if test "$ac_res" != no; then :
6468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6474 $as_echo_n "checking for library containing opendir... " >&6; }
6475 if ${ac_cv_search_opendir+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 ac_func_search_save_LIBS=$LIBS
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6482 /* Override any GCC internal prototype to avoid an error.
6483 Use char because int might match the return type of a GCC
6484 builtin and then its argument prototype would still apply. */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 char opendir ();
6490 main ()
6492 return opendir ();
6494 return 0;
6496 _ACEOF
6497 for ac_lib in '' x; do
6498 if test -z "$ac_lib"; then
6499 ac_res="none required"
6500 else
6501 ac_res=-l$ac_lib
6502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6504 if ac_fn_c_try_link "$LINENO"; then :
6505 ac_cv_search_opendir=$ac_res
6507 rm -f core conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext
6509 if ${ac_cv_search_opendir+:} false; then :
6510 break
6512 done
6513 if ${ac_cv_search_opendir+:} false; then :
6515 else
6516 ac_cv_search_opendir=no
6518 rm conftest.$ac_ext
6519 LIBS=$ac_func_search_save_LIBS
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6522 $as_echo "$ac_cv_search_opendir" >&6; }
6523 ac_res=$ac_cv_search_opendir
6524 if test "$ac_res" != no; then :
6525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6532 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6533 if ${ac_cv_header_stat_broken+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <sys/types.h>
6539 #include <sys/stat.h>
6541 #if defined S_ISBLK && defined S_IFDIR
6542 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6543 #endif
6545 #if defined S_ISBLK && defined S_IFCHR
6546 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6547 #endif
6549 #if defined S_ISLNK && defined S_IFREG
6550 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6551 #endif
6553 #if defined S_ISSOCK && defined S_IFREG
6554 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6555 #endif
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 ac_cv_header_stat_broken=no
6560 else
6561 ac_cv_header_stat_broken=yes
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6566 $as_echo "$ac_cv_header_stat_broken" >&6; }
6567 if test $ac_cv_header_stat_broken = yes; then
6569 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6574 $as_echo_n "checking for ANSI C header files... " >&6; }
6575 if ${ac_cv_header_stdc+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <stdlib.h>
6581 #include <stdarg.h>
6582 #include <string.h>
6583 #include <float.h>
6586 main ()
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_header_stdc=yes
6595 else
6596 ac_cv_header_stdc=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 if test $ac_cv_header_stdc = yes; then
6601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #include <string.h>
6606 _ACEOF
6607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6608 $EGREP "memchr" >/dev/null 2>&1; then :
6610 else
6611 ac_cv_header_stdc=no
6613 rm -f conftest*
6617 if test $ac_cv_header_stdc = yes; then
6618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <stdlib.h>
6623 _ACEOF
6624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6625 $EGREP "free" >/dev/null 2>&1; then :
6627 else
6628 ac_cv_header_stdc=no
6630 rm -f conftest*
6634 if test $ac_cv_header_stdc = yes; then
6635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6636 if test "$cross_compiling" = yes; then :
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <ctype.h>
6642 #include <stdlib.h>
6643 #if ((' ' & 0x0FF) == 0x020)
6644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6646 #else
6647 # define ISLOWER(c) \
6648 (('a' <= (c) && (c) <= 'i') \
6649 || ('j' <= (c) && (c) <= 'r') \
6650 || ('s' <= (c) && (c) <= 'z'))
6651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6652 #endif
6654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6656 main ()
6658 int i;
6659 for (i = 0; i < 256; i++)
6660 if (XOR (islower (i), ISLOWER (i))
6661 || toupper (i) != TOUPPER (i))
6662 return 2;
6663 return 0;
6665 _ACEOF
6666 if ac_fn_c_try_run "$LINENO"; then :
6668 else
6669 ac_cv_header_stdc=no
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6672 conftest.$ac_objext conftest.beam conftest.$ac_ext
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6678 $as_echo "$ac_cv_header_stdc" >&6; }
6679 if test $ac_cv_header_stdc = yes; then
6681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6686 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6687 if ${ac_cv_header_sys_wait_h+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 #include <sys/types.h>
6693 #include <sys/wait.h>
6694 #ifndef WEXITSTATUS
6695 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6696 #endif
6697 #ifndef WIFEXITED
6698 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6699 #endif
6702 main ()
6704 int s;
6705 wait (&s);
6706 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6708 return 0;
6710 _ACEOF
6711 if ac_fn_c_try_compile "$LINENO"; then :
6712 ac_cv_header_sys_wait_h=yes
6713 else
6714 ac_cv_header_sys_wait_h=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6719 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6720 if test $ac_cv_header_sys_wait_h = yes; then
6722 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6727 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6728 if ${ac_cv_header_time+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 #include <sys/types.h>
6734 #include <sys/time.h>
6735 #include <time.h>
6738 main ()
6740 if ((struct tm *) 0)
6741 return 0;
6743 return 0;
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 ac_cv_header_time=yes
6748 else
6749 ac_cv_header_time=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6754 $as_echo "$ac_cv_header_time" >&6; }
6755 if test $ac_cv_header_time = yes; then
6757 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6761 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6762 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6764 cat >>confdefs.h <<_ACEOF
6765 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6766 _ACEOF
6769 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6774 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6775 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6777 cat >>confdefs.h <<_ACEOF
6778 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6779 _ACEOF
6782 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6784 else
6785 case " $LIBOBJS " in
6786 *" fileblocks.$ac_objext "* ) ;;
6787 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6789 esac
6794 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6795 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_STRUCT_STAT_ST_RDEV 1
6799 _ACEOF
6802 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6808 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6809 if ${ac_cv_struct_tm+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <sys/types.h>
6815 #include <time.h>
6818 main ()
6820 struct tm tm;
6821 int *p = &tm.tm_sec;
6822 return !p;
6824 return 0;
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 ac_cv_struct_tm=time.h
6829 else
6830 ac_cv_struct_tm=sys/time.h
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6835 $as_echo "$ac_cv_struct_tm" >&6; }
6836 if test $ac_cv_struct_tm = sys/time.h; then
6838 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6842 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6843 #include <$ac_cv_struct_tm>
6846 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_STRUCT_TM_TM_ZONE 1
6850 _ACEOF
6855 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6857 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6859 else
6860 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6862 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6863 ac_have_decl=1
6864 else
6865 ac_have_decl=0
6868 cat >>confdefs.h <<_ACEOF
6869 #define HAVE_DECL_TZNAME $ac_have_decl
6870 _ACEOF
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6873 $as_echo_n "checking for tzname... " >&6; }
6874 if ${ac_cv_var_tzname+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <time.h>
6880 #if !HAVE_DECL_TZNAME
6881 extern char *tzname[];
6882 #endif
6885 main ()
6887 return tzname[0][0];
6889 return 0;
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_var_tzname=yes
6894 else
6895 ac_cv_var_tzname=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6901 $as_echo "$ac_cv_var_tzname" >&6; }
6902 if test $ac_cv_var_tzname = yes; then
6904 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6909 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6910 if test "x$ac_cv_type_off_t" = xyes; then :
6912 else
6914 cat >>confdefs.h <<_ACEOF
6915 #define off_t long int
6916 _ACEOF
6920 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6921 if test "x$ac_cv_type_pid_t" = xyes; then :
6923 else
6925 cat >>confdefs.h <<_ACEOF
6926 #define pid_t int
6927 _ACEOF
6931 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6932 if test "x$ac_cv_type_size_t" = xyes; then :
6934 else
6936 cat >>confdefs.h <<_ACEOF
6937 #define size_t unsigned int
6938 _ACEOF
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6943 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6944 if ${ac_cv_type_uid_t+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <sys/types.h>
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "uid_t" >/dev/null 2>&1; then :
6954 ac_cv_type_uid_t=yes
6955 else
6956 ac_cv_type_uid_t=no
6958 rm -f conftest*
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6962 $as_echo "$ac_cv_type_uid_t" >&6; }
6963 if test $ac_cv_type_uid_t = no; then
6965 $as_echo "#define uid_t int" >>confdefs.h
6968 $as_echo "#define gid_t int" >>confdefs.h
6973 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6974 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6976 cat >>confdefs.h <<_ACEOF
6977 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6978 _ACEOF
6984 # Look for some functions
6985 for ac_func in getpagesize kqueue statfs statvfs \
6986 clone kse_create rfork_thread thr_create sa_register \
6987 getcontext makecontext setcontext sigaltstack swapcontext
6988 do :
6989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6992 cat >>confdefs.h <<_ACEOF
6993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6994 _ACEOF
6997 done
7003 for ac_header in $ac_header_list
7004 do :
7005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 _ACEOF
7015 done
7024 for ac_func in getpagesize
7025 do :
7026 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7027 if test "x$ac_cv_func_getpagesize" = xyes; then :
7028 cat >>confdefs.h <<_ACEOF
7029 #define HAVE_GETPAGESIZE 1
7030 _ACEOF
7033 done
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7036 $as_echo_n "checking for working mmap... " >&6; }
7037 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test "$cross_compiling" = yes; then :
7041 ac_cv_func_mmap_fixed_mapped=no
7042 else
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 $ac_includes_default
7046 /* malloc might have been renamed as rpl_malloc. */
7047 #undef malloc
7049 /* Thanks to Mike Haertel and Jim Avera for this test.
7050 Here is a matrix of mmap possibilities:
7051 mmap private not fixed
7052 mmap private fixed at somewhere currently unmapped
7053 mmap private fixed at somewhere already mapped
7054 mmap shared not fixed
7055 mmap shared fixed at somewhere currently unmapped
7056 mmap shared fixed at somewhere already mapped
7057 For private mappings, we should verify that changes cannot be read()
7058 back from the file, nor mmap's back from the file at a different
7059 address. (There have been systems where private was not correctly
7060 implemented like the infamous i386 svr4.0, and systems where the
7061 VM page cache was not coherent with the file system buffer cache
7062 like early versions of FreeBSD and possibly contemporary NetBSD.)
7063 For shared mappings, we should conversely verify that changes get
7064 propagated back to all the places they're supposed to be.
7066 Grep wants private fixed already mapped.
7067 The main things grep needs to know about mmap are:
7068 * does it exist and is it safe to write into the mmap'd area
7069 * how to use it (BSD variants) */
7071 #include <fcntl.h>
7072 #include <sys/mman.h>
7074 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7075 char *malloc ();
7076 #endif
7078 /* This mess was copied from the GNU getpagesize.h. */
7079 #ifndef HAVE_GETPAGESIZE
7080 # ifdef _SC_PAGESIZE
7081 # define getpagesize() sysconf(_SC_PAGESIZE)
7082 # else /* no _SC_PAGESIZE */
7083 # ifdef HAVE_SYS_PARAM_H
7084 # include <sys/param.h>
7085 # ifdef EXEC_PAGESIZE
7086 # define getpagesize() EXEC_PAGESIZE
7087 # else /* no EXEC_PAGESIZE */
7088 # ifdef NBPG
7089 # define getpagesize() NBPG * CLSIZE
7090 # ifndef CLSIZE
7091 # define CLSIZE 1
7092 # endif /* no CLSIZE */
7093 # else /* no NBPG */
7094 # ifdef NBPC
7095 # define getpagesize() NBPC
7096 # else /* no NBPC */
7097 # ifdef PAGESIZE
7098 # define getpagesize() PAGESIZE
7099 # endif /* PAGESIZE */
7100 # endif /* no NBPC */
7101 # endif /* no NBPG */
7102 # endif /* no EXEC_PAGESIZE */
7103 # else /* no HAVE_SYS_PARAM_H */
7104 # define getpagesize() 8192 /* punt totally */
7105 # endif /* no HAVE_SYS_PARAM_H */
7106 # endif /* no _SC_PAGESIZE */
7108 #endif /* no HAVE_GETPAGESIZE */
7111 main ()
7113 char *data, *data2, *data3;
7114 const char *cdata2;
7115 int i, pagesize;
7116 int fd, fd2;
7118 pagesize = getpagesize ();
7120 /* First, make a file with some known garbage in it. */
7121 data = (char *) malloc (pagesize);
7122 if (!data)
7123 return 1;
7124 for (i = 0; i < pagesize; ++i)
7125 *(data + i) = rand ();
7126 umask (0);
7127 fd = creat ("conftest.mmap", 0600);
7128 if (fd < 0)
7129 return 2;
7130 if (write (fd, data, pagesize) != pagesize)
7131 return 3;
7132 close (fd);
7134 /* Next, check that the tail of a page is zero-filled. File must have
7135 non-zero length, otherwise we risk SIGBUS for entire page. */
7136 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7137 if (fd2 < 0)
7138 return 4;
7139 cdata2 = "";
7140 if (write (fd2, cdata2, 1) != 1)
7141 return 5;
7142 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7143 if (data2 == MAP_FAILED)
7144 return 6;
7145 for (i = 0; i < pagesize; ++i)
7146 if (*(data2 + i))
7147 return 7;
7148 close (fd2);
7149 if (munmap (data2, pagesize))
7150 return 8;
7152 /* Next, try to mmap the file at a fixed address which already has
7153 something else allocated at it. If we can, also make sure that
7154 we see the same garbage. */
7155 fd = open ("conftest.mmap", O_RDWR);
7156 if (fd < 0)
7157 return 9;
7158 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7159 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7160 return 10;
7161 for (i = 0; i < pagesize; ++i)
7162 if (*(data + i) != *(data2 + i))
7163 return 11;
7165 /* Finally, make sure that changes to the mapped area do not
7166 percolate back to the file as seen by read(). (This is a bug on
7167 some variants of i386 svr4.0.) */
7168 for (i = 0; i < pagesize; ++i)
7169 *(data2 + i) = *(data2 + i) + 1;
7170 data3 = (char *) malloc (pagesize);
7171 if (!data3)
7172 return 12;
7173 if (read (fd, data3, pagesize) != pagesize)
7174 return 13;
7175 for (i = 0; i < pagesize; ++i)
7176 if (*(data + i) != *(data3 + i))
7177 return 14;
7178 close (fd);
7179 return 0;
7181 _ACEOF
7182 if ac_fn_c_try_run "$LINENO"; then :
7183 ac_cv_func_mmap_fixed_mapped=yes
7184 else
7185 ac_cv_func_mmap_fixed_mapped=no
7187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7188 conftest.$ac_objext conftest.beam conftest.$ac_ext
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7193 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7194 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7196 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7199 rm -f conftest.mmap conftest.txt
7204 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7205 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7206 aros_config_ldflags=""
7208 aros_shared_default=yes
7210 aros_shared_cflags="-fPIC"
7211 aros_shared_aflags=""
7212 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7213 aros_kernel_ldflags="-Wl,-rpath,./lib"
7215 aros_kernel_ar_flags="cr"
7216 aros_target_ar_flags="cr"
7217 aros_target_nm_flags="-C -ul"
7218 aros_target_strip_flags="--strip-unneeded -R.comment"
7220 aros_compiler_libs=
7221 aros_arch_libs=
7223 aros_target_genmap="-Wl,-Map -Xlinker"
7225 # Native flavour stuff
7226 aros_serial_debug="0"
7228 # Palm native flavour stuff
7229 aros_palm_debug_hack="0"
7231 # Unix flavour stuff
7232 aros_nesting_supervisor="0"
7234 # Collect-aros stuff: "-ius" to ignore undefined symbols
7235 ignore_undefined_symbols=""
7237 # Check for X11 by default
7238 need_x11="auto"
7240 #-----------------------------------------------------------------------------
7243 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7244 # it switched on by default, and we use the host compiler, so it compiles AROS
7245 # code with this enabled resulting in link failures as we don't have support
7246 # for it.
7248 # We use two methods to disable it. For the host compiler (used to compile
7249 # some hosted modules), we test to see if the compiler supports stack
7250 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7251 # work on all platforms.
7253 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7254 # (this is done unconditionally, as it should have no effect on compilers
7255 # without the stack protection feature). This may be specific to the way that
7256 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7257 # strong enough to disable it in a generic way though, so we'll live with it
7258 # until another vendor ships GCC with it enabled in a different way, and deal
7259 # with it then.
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7263 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7264 save_cflags="$CFLAGS"
7265 CFLAGS="$CFLAGS -fno-stack-protector"
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7270 main ()
7274 return 0;
7276 _ACEOF
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278 use_no_stack_protector="yes"
7279 else
7280 use_no_stack_protector="no"
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7284 $as_echo "$use_no_stack_protector" >&6; }
7285 if test "x-$use_no_stack_protector" = "x-yes" ; then
7286 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7288 CFLAGS="$save_cflags"
7290 #-----------------------------------------------------------------------------
7292 # Disable pointer-signedness warnings if the compiler recognises the option
7293 # (this only works for the host compiler at the moment)
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7296 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7297 save_cflags="$CFLAGS"
7298 CFLAGS="$CFLAGS -Wno-pointer-sign"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7303 main ()
7307 return 0;
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"; then :
7311 use_no_sign_warning="yes"
7312 else
7313 use_no_sign_warning="no"
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7317 $as_echo "$use_no_sign_warning" >&6; }
7318 if test "x-$use_no_sign_warning" = "x-yes" ; then
7319 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7321 CFLAGS="$save_cflags"
7323 #-----------------------------------------------------------------------------
7325 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7328 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7329 save_cflags="$CFLAGS"
7330 CFLAGS="$CFLAGS -fgnu89-inline"
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7335 main ()
7339 return 0;
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 use_gnu89_inline="yes"
7344 else
7345 use_gnu89_inline="no"
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7349 $as_echo "$use_gnu89_inline" >&6; }
7350 if test "x-$use_gnu89_inline" = "x-yes" ; then
7351 gnu89_inline="-fgnu89-inline"
7353 CFLAGS="$save_cflags"
7355 #-----------------------------------------------------------------------------
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7358 $as_echo_n "checking for type of build... " >&6; }
7359 # Check whether --enable-build_type was given.
7360 if test "${enable_build_type+set}" = set; then :
7361 enableval=$enable_build_type; build_type=$enableval
7362 else
7363 build_type="personal"
7367 if test "$build_type" = "nightly"; then
7368 build_type_string="NIGHTLY"
7369 elif test "$build_type" = "snapshot"; then
7370 build_type_string="SNAPSHOT"
7371 elif test "$build_type" = "milestone"; then
7372 build_type_string="MILESTONE"
7373 elif test "$build_type" = "release"; then
7374 build_type_string="RELEASE"
7375 else
7376 build_type_string="PERSONAL"
7377 build_type="personal"
7380 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7383 $as_echo "$build_type" >&6; }
7385 #-----------------------------------------------------------------------------
7386 all_debug_types="messages stack modules mungwall symbols"
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7389 $as_echo_n "checking which debug types to enable... " >&6; }
7390 # Check whether --enable-debug was given.
7391 if test "${enable_debug+set}" = set; then :
7392 enableval=$enable_debug; debug="$enableval"
7393 else
7394 debug=""
7398 if test "$debug" = "" -o "$debug" = "no"; then
7399 debug="none"
7400 elif test "$debug" = "yes"; then
7401 debug="all"
7404 if test "$debug" = "all" ; then
7405 debug="messages stack modules symbols"
7406 for d in $all_debug_types; do
7407 export aros_${d}_debug="1"
7408 done
7409 else
7410 for d in $all_debug_types; do
7411 export aros_${d}_debug="0"
7412 done
7415 if test "$debug" != "none"; then
7416 debug=`echo $debug | sed s/,/\ /g`
7417 for d in $debug; do
7418 found="0"
7419 for d2 in $all_debug_types; do
7420 if test "$d2" = "$d"; then
7421 found="1"
7422 break
7424 done
7425 if test "$found" = "0"; then
7426 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7428 export aros_${d}_debug="1"
7429 done
7430 aros_debug="yes"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7433 $as_echo "$debug" >&6; }
7435 if test "$aros_messages_debug" = "1"; then
7436 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7437 else
7438 aros_messages_debug=""
7440 if test "$aros_symbols_debug" = "1"; then
7441 aros_symbols_debug="-g"
7442 else
7443 aros_symbols_debug=""
7446 # These are the flags to pass when compiling debugged programs
7447 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7448 aros_debug_aflags=""
7449 aros_debug_ldflags="$aros_symbols_debug"
7451 #-----------------------------------------------------------------------------
7452 # Checking for distcc and ccache.
7454 # Always apply the transforms in this particular order. Basically you should
7455 # always run 'ccache distcc compiler' in that order for the best performance.
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7458 $as_echo_n "checking whether to enable distcc... " >&6; }
7459 # Check whether --enable-distcc was given.
7460 if test "${enable_distcc+set}" = set; then :
7461 enableval=$enable_distcc; distcc="$enableval"
7462 else
7463 distcc="no"
7466 if test "$distcc" != "" -a "$distcc" != "no"; then
7467 # AC_CHECK_PROG will print out the result in this case
7468 # Extract the first word of "distcc", so it can be a program name with args.
7469 set dummy distcc; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_path_DISTCC+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 case $DISTCC in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7495 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7497 esac
7499 DISTCC=$ac_cv_path_DISTCC
7500 if test -n "$DISTCC"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7502 $as_echo "$DISTCC" >&6; }
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7515 $as_echo_n "checking whether to enable ccache... " >&6; }
7516 # Check whether --enable-ccache was given.
7517 if test "${enable_ccache+set}" = set; then :
7518 enableval=$enable_ccache; ccache="$enableval"
7519 else
7520 ccache="no"
7523 if test "$ccache" != "" -a "$ccache" != "no"; then
7524 # AC_CHECK_PROG will print out the result in this case
7525 # Extract the first word of "ccache", so it can be a program name with args.
7526 set dummy ccache; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_CCACHE+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$CCACHE"; then
7533 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_CCACHE="ccache"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7546 done
7547 done
7548 IFS=$as_save_IFS
7552 CCACHE=$ac_cv_prog_CCACHE
7553 if test -n "$CCACHE"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7555 $as_echo "$CCACHE" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 #-----------------------------------------------------------------------------
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7569 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7571 # Check whether --with-kernel-gcc-version was given.
7572 if test "${with_kernel_gcc_version+set}" = set; then :
7573 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7574 else
7575 kernel_tool_version=""
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7579 $as_echo "$kernel_tool_version" >&6; }
7581 #-----------------------------------------------------------------------------
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7583 $as_echo_n "checking what optimization flags to use... " >&6; }
7585 # Check whether --with-optimization was given.
7586 if test "${with_optimization+set}" = set; then :
7587 withval=$with_optimization; optimization="$withval"
7588 else
7589 optimization="unknown"
7592 if test "$optimization" = "unknown"; then
7593 if test "$debug" != "none"; then
7594 optimization="-O0"
7595 else
7596 optimization="-O2"
7599 aros_config_cflags="$aros_config_cflags $optimization"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7601 $as_echo "$optimization" >&6; }
7603 #-----------------------------------------------------------------------------
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7605 $as_echo_n "checking what paranoia flags to use... " >&6; }
7607 # Check whether --with-paranoia was given.
7608 if test "${with_paranoia+set}" = set; then :
7609 withval=$with_paranoia; paranoia_flags="$withval"
7610 else
7611 paranoia_flags="default"
7614 if test "$paranoia_flags" = "default"; then
7615 paranoia_flags=""
7616 else if test "$paranoia_flags" = "yes"; then
7617 paranoia_flags="-Wall -Werror"
7618 fi fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7620 $as_echo "$paranoia_flags" >&6; }
7621 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7623 #-----------------------------------------------------------------------------
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7625 $as_echo_n "checking what target variant to enable... " >&6; }
7626 # Check whether --enable-target_variant was given.
7627 if test "${enable_target_variant+set}" = set; then :
7628 enableval=$enable_target_variant; target_variant=$enableval
7629 else
7630 target_variant=""
7633 if test "$target_variant" = ""; then
7634 aros_target_variant=""
7635 aros_target_suffix=""
7636 enableval="none"
7637 else
7638 aros_target_variant="$target_variant"
7639 aros_target_suffix="-$target_variant"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7642 $as_echo "$enableval" >&6; }
7644 #-----------------------------------------------------------------------------
7645 # Target-specific defaults. You can override then on a per-target basis.
7647 # Bootloader name. Currently used by PC target.
7648 target_bootloader="none"
7650 #-----------------------------------------------------------------------------
7651 # Additional options for some specific targets
7653 case "$aros_target_variant" in
7654 ios)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7656 $as_echo_n "checking XCode path... " >&6; }
7658 # Check whether --with-xcode was given.
7659 if test "${with_xcode+set}" = set; then :
7660 withval=$with_xcode; aros_xcode_path="$withval"
7661 else
7662 aros_xcode_path="/Developer"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7666 $as_echo "$aros_xcode_path" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7669 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7671 # Check whether --with-sdk-version was given.
7672 if test "${with_sdk_version+set}" = set; then :
7673 withval=$with_sdk_version; aros_sdk_version="$withval"
7674 else
7675 aros_sdk_version="4.1"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7679 $as_echo "$aros_sdk_version" >&6; }
7683 "android")
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7685 $as_echo_n "checking Android SDK path... " >&6; }
7687 # Check whether --with-sdk was given.
7688 if test "${with_sdk+set}" = set; then :
7689 withval=$with_sdk; aros_android_sdk="$withval"
7690 else
7691 aros_android_sdk=$default_android_sdk
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7695 $as_echo "$aros_android_sdk" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7698 $as_echo_n "checking Android NDK path... " >&6; }
7700 # Check whether --with-ndk was given.
7701 if test "${with_ndk+set}" = set; then :
7702 withval=$with_ndk; aros_android_ndk="$withval"
7703 else
7704 aros_android_ndk="none"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7708 $as_echo "$aros_android_ndk" >&6; }
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7711 $as_echo_n "checking what Android SDK version to use... " >&6; }
7713 # Check whether --with-sdk-version was given.
7714 if test "${with_sdk_version+set}" = set; then :
7715 withval=$with_sdk_version; aros_sdk_version="$withval"
7716 else
7717 aros_sdk_version="12"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7721 $as_echo "$aros_sdk_version" >&6; }
7723 if test "$aros_android_ndk" != "none"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7725 $as_echo_n "checking what Android NDK version to use... " >&6; }
7727 # Check whether --with-ndk-version was given.
7728 if test "${with_ndk_version+set}" = set; then :
7729 withval=$with_ndk_version; aros_ndk_version="$withval"
7730 else
7731 aros_ndk_version="9"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7735 $as_echo "$aros_ndk_version" >&6; }
7738 export PATH="$aros_android_sdk/tools:$PATH"
7739 # Extract the first word of "$android_tool", so it can be a program name with args.
7740 set dummy $android_tool; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_path_android_tool+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 case $android_tool in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7767 esac
7769 android_tool=$ac_cv_path_android_tool
7770 if test -n "$android_tool"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7772 $as_echo "$android_tool" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7779 if test "$android_tool" = ""; then
7780 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7783 aros_android_level=android-$aros_sdk_version
7784 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7785 echo "Platform $aros_android_level is not installed in your SDK"
7786 echo "Use --with-sdk-version=<API level number> to select another platform version"
7787 echo "You can check what plaform versions are installed in your SDK"
7788 echo "by examining contents of $aros_android_sdk/platforms directory"
7789 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7792 # Extract the first word of "ant", so it can be a program name with args.
7793 set dummy ant; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_path_ant+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 case $ant in
7800 [\\/]* | ?:[\\/]*)
7801 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7820 esac
7822 ant=$ac_cv_path_ant
7823 if test -n "$ant"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7825 $as_echo "$ant" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7832 if test "$ant" = ""; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7834 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7838 $as_echo_n "checking Build debug or release apk... " >&6; }
7840 # Check whether --with-apk-version was given.
7841 if test "${with_apk_version+set}" = set; then :
7842 withval=$with_apk_version; aros_android_antapk=$withval
7843 else
7844 aros_android_antapk=release
7847 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7848 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7851 $as_echo "$aros_android_antapk" >&6; }
7853 if test "$host_os" = "mingw32"; then
7854 android_tool="cmd //c $android_tool"
7858 esac
7860 #-----------------------------------------------------------------------------
7861 # External toolchains
7862 kernel_tool_prefix="none"
7863 aros_tool_prefix="none"
7864 elf_tool_prefix="${target_cpu}-elf-"
7866 # This is the target configuration switch.
7867 case "$target_os" in
7868 linux*)
7869 aros_target_arch="linux"
7870 aros_target_family="unix"
7871 case "$target_cpu" in
7872 *m68k*)
7873 aros_target_cpu="m68k"
7874 aros_object_format="m68kelf"
7875 aros_flavour="emulcompat"
7876 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7877 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7878 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7879 gcc_target_cpu="mc68000"
7881 *i?86*)
7882 aros_target_cpu="i386"
7883 aros_object_format="elf_i386"
7884 aros_flavour="emulation"
7885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7886 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7887 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7888 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7889 aros_config_ldflags="-m32 -march=i486"
7890 aros_kernel_ldflags="-Wl,-melf_i386"
7891 aros_default_wbdepth=8
7892 gcc_target_cpu="i386"
7893 pci_hidd_target="hidd-pci-linux"
7894 android_tool_dir_prefix="x86"
7895 android_tool_prefix="i686-android-linux"
7896 android_ndk_arch="x86"
7898 *x86_64*)
7899 aros_target_cpu="x86_64"
7900 aros_object_format="elf_x86_64"
7901 aros_flavour="emulation"
7902 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7903 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7904 aros_default_wbdepth=8
7905 pci_hidd_target="hidd-pci-linux"
7907 *powerpc*)
7908 aros_target_cpu="ppc"
7909 aros_object_format="elf32ppc"
7910 aros_flavour="emulation"
7911 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7912 aros_default_wbdepth=8
7913 gcc_target_cpu="ppc"
7915 # TODO
7916 # Same as powerpc, but I need this for the nightly build to work again.
7917 # Actually, the nightly should be made working with powerpc target.
7918 # That just was too much work for the moment, another week or two.
7919 *ppc*)
7920 aros_target_cpu="ppc"
7921 aros_object_format="elf32ppc"
7922 aros_flavour="emulation"
7923 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7924 aros_default_wbdepth=8
7925 gcc_target_cpu="ppc"
7927 *armhf*)
7928 aros_target_cpu="arm"
7929 target_cpu="arm"
7930 aros_object_format="armelf_aros"
7931 aros_flavour="emulation"
7932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7933 gcc_target_cpu="arm"
7934 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7935 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7936 aros_arch_libs="-laeabi"
7937 gcc_default_float_abi="hard"
7938 android_tool_dir_prefix="arm-linux-androideabi"
7939 android_tool_prefix="arm-linux-androideabi"
7940 android_ndk_arch="arm"
7941 kernel_tool_prefix="arm-linux-gnueabihf-"
7943 *arm*)
7944 aros_target_cpu="arm"
7945 aros_object_format="armelf_aros"
7946 aros_flavour="emulation"
7947 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7948 gcc_target_cpu="arm"
7949 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7950 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7951 aros_arch_libs="-laeabi"
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-gnueabi-"
7958 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7960 esac
7961 case "$aros_target_variant" in
7962 android)
7964 if test "$android_ndk_arch" = ""; then
7965 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7968 aros_default_wbwidth=320
7969 aros_default_wbheight=480
7970 if test "$aros_android_ndk" = "none"; then
7971 aros_kernel_cflags="-mandroid"
7972 aros_kernel_ldflags="-mandroid"
7973 CFLAGS="-mandroid"
7974 else
7975 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7976 kernel_tool_version=""
7977 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7978 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7979 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7980 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7981 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7983 need_x11=no
7984 unixgfx_hidd_target=kernel-hidd-androidgfx
7985 # Disable implicit PIC mode
7986 aros_target_cflags="$aros_target_cflags -fno-pic"
7987 kernel_tool_prefix="$android_tool_prefix-"
7989 esac
7993 aros_target_arch="pc"
7994 aros_shared_default="no"
7995 target_bootloader="grub2"
7996 case "$target_cpu" in
7997 *i?86*)
7998 aros_target_cpu="i386"
8001 if test "$aros_object_format" = "" ; then
8002 aros_object_format="elf_i386"
8004 aros_flavour="standalone"
8005 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8006 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8007 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8008 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8009 aros_config_ldflags="-m32 -march=i486"
8010 aros_kernel_ldflags="-Wl,-melf_i386"
8011 aros_default_wbwidth=640
8012 aros_default_wbheight=480
8013 gcc_target_cpu="i386"
8015 *x86_64*)
8016 aros_target_cpu="x86_64"
8017 aros_serial_debug=1
8018 if test "$aros_object_format" = "" ; then
8019 aros_object_format="elf_x86_64"
8021 aros_flavour="standalone"
8022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8023 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8024 aros_kernel_ldflags=""
8025 aros_default_wbwidth=640
8026 aros_default_wbheight=480
8029 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8031 esac
8034 prep)
8035 aros_target_arch="prep"
8036 aros_shared_default="no"
8037 aros_target_cpu="ppc"
8038 aros_object_format="elf32ppc"
8039 aros_flavour="ppcnative"
8040 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8041 aros_kernel_ldflags=""
8042 aros_default_wbwidth=640
8043 aros_default_wbheight=480
8044 gcc_target_cpu="ppc"
8047 freebsd*)
8048 aros_target_arch="freebsd"
8049 aros_target_family="unix"
8050 aros_target_cpu="i386"
8051 aros_flavour="emulation"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8053 gcc_target_cpu="i386"
8055 aros_target_strip_flags="-x"
8058 darwin*)
8059 aros_target_arch="darwin"
8060 aros_target_family="unix"
8061 aros_flavour="emulation"
8062 case "$target_cpu" in
8063 *i?86*)
8064 aros_ios_platform="iPhoneSimulator"
8065 aros_target_cpu="i386"
8066 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8067 aros_kernel_ldflags=""
8068 aros_macosx_version="10.4"
8069 aros_default_wbdepth=8
8070 gcc_target_cpu="i386"
8071 aros_object_format="elf_i386"
8072 aros_kernel_ar_flags="-cr"
8073 aros_target_strip_flags="-x"
8074 kernel_tool_flags="-m32"
8076 *x86_64*)
8077 aros_target_cpu="x86_64"
8078 aros_object_format="elf_x86_64"
8079 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8080 aros_macosx_version="10.6"
8081 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8082 aros_kernel_cflags="-m64"
8083 aros_kernel_ldflags="-m64"
8084 aros_target_cflags="-mcmodel=large"
8085 aros_default_wbdepth=8
8086 aros_kernel_ar="ar"
8087 aros_kernel_ar_flags="-cr"
8088 aros_kernel_ld="ld"
8089 aros_kernel_as="as"
8090 aros_kernel_ranlib="ranlib"
8091 aros_kernel_nm="nm"
8092 aros_kernel_strip="strip"
8093 kernel_tool_prefix="i686-apple-darwin10-"
8095 *ppc*)
8096 aros_target_cpu="ppc"
8097 aros_object_format="elf32ppc"
8098 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8099 aros_kernel_ldflags=""
8100 aros_macosx_version="10.0"
8101 aros_default_wbdepth=8
8102 gcc_target_cpu="ppc"
8103 aros_kernel_ar="ar"
8104 aros_kernel_ar_flags="-cr"
8105 aros_kernel_ld="ld -arch ppc"
8106 aros_kernel_as="as -arch ppc"
8107 aros_kernel_ranlib="ranlib -arch ppc"
8108 aros_kernel_nm="nm -arch ppc"
8109 aros_kernel_strip="strip -arch ppc"
8110 kernel_tool_prefix="powerpc-apple-darwin10-"
8112 *arm*)
8113 aros_ios_platform="iPhoneOS"
8114 aros_target_cpu="arm"
8115 aros_object_format="armelf_aros"
8116 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8117 aros_arch_libs="-laeabi"
8118 aros_default_wbdepth=8
8119 gcc_target_cpu="arm"
8120 aros_kernel_ar="ar"
8121 aros_kernel_ar_flags="-cr"
8122 aros_kernel_ld="ld -arch arm"
8123 aros_kernel_ranlib="ranlib -arch arm"
8124 kernel_tool_prefix="arm-apple-darwin10-"
8125 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8128 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8130 esac
8131 case "$aros_target_variant" in
8132 ios)
8133 aros_ios_version="3.0"
8134 aros_default_wbwidth=320
8135 aros_default_wbheight=480
8136 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8137 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8138 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8139 need_x11=no
8140 # This is here because it may depend on iOS or SDK version
8141 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8142 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8143 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8146 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8147 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8149 esac
8152 dragonfly*)
8153 aros_target_arch="dragonfly"
8154 aros_target_family="unix"
8155 aros_flavour="emulation"
8156 case "$target_cpu" in
8157 *i?86*)
8158 aros_target_cpu="i386"
8159 aros_object_format="elf_i386"
8160 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8162 *x86_64*)
8163 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8164 aros_target_cpu="x86_64"
8165 aros_object_format="elf_x86_64"
8166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8169 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8171 esac
8174 netbsd*)
8175 aros_target_arch="netbsd"
8176 aros_target_family="unix"
8177 case "$target_cpu" in
8178 *m68k*)
8179 aros_target_cpu="m68k"
8180 aros_object_format="m68kelf"
8181 aros_flavour="emulcompat"
8182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8183 gcc_target_cpu="mc68000"
8185 *i?86*)
8186 aros_target_cpu="i386"
8187 aros_object_format="elf_i386"
8188 aros_flavour="emulation"
8189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8190 aros_default_wbdepth=8
8191 gcc_target_cpu="i386"
8194 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8196 esac
8197 aros_target_genmap="-Wl,-M -Xlinker >"
8198 aros_flavour="emulation"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8202 openbsd*)
8203 aros_target_arch="openbsd"
8204 aros_target_family="unix"
8205 case "$target_cpu" in
8206 *i?86*)
8207 aros_target_cpu="i386"
8208 aros_object_format="elf_i386"
8209 aros_flavour="emulation"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8211 gcc_target_cpu="i386"
8214 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8216 esac
8217 aros_target_genmap="-Wl,-M -Xlinker >"
8218 aros_target_nm_flags="-u"
8219 aros_flavour="emulation"
8222 solaris*)
8223 aros_target_arch="solaris"
8224 aros_target_family="unix"
8225 case "$target_cpu" in
8226 *i?86*)
8227 aros_target_cpu="i386"
8228 aros_object_format="elf_i386"
8229 aros_flavour="emulation"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8231 aros_default_wbdepth=8
8232 gcc_target_cpu="i386"
8234 *sparc*)
8235 aros_target_cpu="sparc"
8236 aros_object_format="elf_sparc"
8237 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8238 gcc_target_cpu="sparc"
8241 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8243 esac
8244 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8245 aros_flavour="emulation"
8248 morphos*)
8249 aros_target_arch="morphos"
8250 aros_shared_default="no"
8251 aros_target_cpu="ppc"
8252 aros_object_format="elf_ppc"
8253 aros_flavour="nativecompat"
8254 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8255 gcc_target_cpu="ppc"
8258 sam440)
8259 aros_target_arch="sam440"
8260 aros_shared_default="no"
8261 aros_target_cpu="ppc"
8262 aros_object_format="elf32ppc"
8263 aros_flavour="ppcnative"
8264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8265 aros_kernel_ldflags=""
8266 aros_default_wbwidth=1024
8267 aros_default_wbheight=768
8268 aros_default_wbdepth=24
8269 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8270 gcc_target_cpu="powerpc"
8273 efika)
8274 aros_target_arch="efika"
8275 aros_shared_default="no"
8276 aros_target_cpu="arm"
8277 aros_object_format="armelf_aros"
8278 aros_flavour="standalone"
8279 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8280 aros_kernel_ldflags=""
8281 aros_default_wbwidth=1024
8282 aros_default_wbheight=600
8283 aros_arch_libs="-laeabi"
8284 gcc_default_cpu="armv7-a"
8285 gcc_default_fpu="vfpv3"
8286 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8287 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8288 case "$target_cpu" in
8289 *armhf*)
8290 gcc_default_float_abi="hard"
8291 target_cpu=arm
8292 aros_target_cpu=arm
8294 *arm*)
8295 gcc_default_float_abi="softfp"
8298 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8300 esac
8303 chrp)
8304 aros_target_arch="chrp"
8305 aros_shared_default="no"
8306 aros_target_cpu="ppc"
8307 aros_object_format="elf32ppc"
8308 aros_flavour="ppcnative"
8309 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8310 aros_kernel_ldflags=""
8311 aros_default_wbwidth=640
8312 aros_default_wbheight=480
8313 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8314 gcc_target_cpu="powerpc"
8315 case "$aros_target_variant" in
8316 efika)
8317 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8319 esac
8322 r*pi)
8323 aros_flavour="standalone"
8324 aros_target_arch="raspi"
8325 aros_target_cpu="arm"
8326 aros_object_format="armelf_aros"
8327 aros_shared_default="no"
8328 aros_arch_libs="-laeabi"
8330 gcc_default_cpu="armv6"
8331 gcc_default_cpu_tune="arm1176jzf-s"
8332 case "$target_cpu" in
8333 *armhf*)
8334 gcc_default_float_abi="hard"
8336 *arm*)
8337 gcc_default_float_abi="softfp"
8340 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8342 esac
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 if test "$target_variant" = ""; then
8365 as_fn_error $? "\"Please provide the target platform for sun4i with--enable-target-variant={platform}\"" "$LINENO" 5
8368 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8369 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8370 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8371 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8372 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8375 amiga*)
8376 aros_target_arch="amiga"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8378 aros_shared_default="no"
8380 case "$target_cpu" in
8381 *m68k*)
8382 # Check whether --enable-amigaos_compliance was given.
8383 if test "${enable_amigaos_compliance+set}" = set; then :
8384 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8387 aros_enable_mmu=no
8388 aros_target_cpu="m68k"
8389 aros_object_format="m68kelf"
8390 aros_flavour="standcompat"
8391 gcc_target_cpu="m68000"
8392 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8393 aros_config_aflags="$aros_config_aflags"
8394 aros_target_strip_flags="-R.comment --strip-debug"
8395 aros_default_wbwidth=640
8396 aros_default_wbheight=256
8397 aros_default_wbdepth=2
8399 *ppc*)
8400 aros_cpu="ppc"
8401 aros_flavour="native"
8402 gcc_target_cpu="ppc"
8405 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8407 esac
8410 mingw*)
8411 aros_target_arch="mingw32"
8412 aros_shared_default="no"
8413 aros_flavour="emulation"
8414 aros_shared_cflags=""
8415 need_crosstools="yes"
8416 need_dlopen="no"
8417 rescomp="windres"
8418 case "$target_cpu" in
8419 *i?86*)
8420 aros_target_cpu="i386"
8421 aros_object_format="elf_i386"
8422 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8423 aros_default_wbdepth=8
8424 gcc_target_cpu="i386"
8426 kernel_tool_prefix="i386-mingw32-"
8428 *x86_64*)
8429 aros_target_cpu="x86_64"
8430 aros_object_format="elf_x86_64"
8431 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8432 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8433 aros_default_wbdepth=8
8434 kernel_tool_prefix="x86_64-w64-mingw32-"
8436 *arm*)
8437 aros_target_cpu="arm"
8438 aros_object_format="armelf_aros"
8439 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8440 aros_arch_libs="-laeabi"
8441 aros_default_wbdepth=8
8442 gcc_target_cpu="arm"
8443 gcc_default_float_abi="soft"
8444 kernel_tool_prefix="arm-mingw32ce-"
8445 aros_default_wbwidth=160
8446 aros_default_wbheight=160
8449 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8451 esac
8452 if test $host_os = "cygwin"; then
8453 aros_kernel_cflags="-mno-cygwin"
8456 pp*)
8457 aros_target_arch="pp"
8458 aros_shared_default="no"
8459 case "$target_cpu" in
8460 *m68k*)
8461 aros_target_cpu="m68k"
8462 aros_object_format="m68kelf"
8463 aros_flavour="palmnative"
8464 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8465 aros_default_wbwidth=160
8466 aros_default_wbheight=160
8467 aros_default_wbdepth=1
8468 aros_target_ar_flags="cru"
8469 aros_compiler_libs="-lgcc1"
8470 aros_shared_default=no
8471 aros_shared_cflags="-fpic"
8472 aros_shared_aflags=""
8473 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8474 aros_kernel_ldflags="-Wl,-rpath,./lib"
8475 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8476 aros_debug_aflags=""
8477 aros_debug_ldflags="$aros_symbols_debug"
8478 aros_mungwall_debug="0"
8479 aros_modules_debug="0"
8480 gcc_target_cpu="mc68000"
8481 ignore_undefined_symbols="-ius"
8484 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8486 esac
8489 mac*)
8490 aros_target_arch="mac"
8491 aros_shared_default="no"
8492 case "$target_cpu" in
8493 *m68k*)
8494 aros_target_cpu="m68k"
8495 aros_object_format="m68kelf"
8496 aros_flavour="mac68knative"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8498 aros_default_wbwidth=512
8499 aros_default_wbheight=384
8500 aros_default_wbdepth=8
8501 aros_target_ar_flags="cru"
8502 aros_compiler_libs="-lgcc1"
8503 aros_shared_default=no
8504 aros_shared_cflags="-fpic"
8505 aros_shared_aflags=""
8506 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8507 aros_kernel_ldflags="-Wl,-rpath,./lib"
8508 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8509 aros_debug_aflags=""
8510 aros_debug_ldflags="$aros_symbols_debug"
8511 aros_mungwall_debug="0"
8512 aros_modules_debug="0"
8513 gcc_target_cpu="mc68000"
8514 ignore_undefined_symbols="-ius"
8517 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8519 esac
8523 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8525 esac
8527 #-----------------------------------------------------------------------------
8528 crosstools_guess=yes
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8531 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8533 # Check whether --with-kernel-toolchain-prefix was given.
8534 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8535 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8539 $as_echo "$kernel_tool_prefix" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8542 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8544 # Check whether --with-elf-toolchain-prefix was given.
8545 if test "${with_elf_toolchain_prefix+set}" = set; then :
8546 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8547 crosstools_guess=no
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8551 $as_echo "$elf_tool_prefix" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8554 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8556 # Check whether --with-aros-toolchain was given.
8557 if test "${with_aros_toolchain+set}" = set; then :
8558 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8559 crosstools_guess=no
8562 if test "$aros_tool_prefix" = "yes" ; then
8563 aros_tool_prefix=$aros_target_cpu-aros-
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8566 $as_echo "$aros_tool_prefix" >&6; }
8568 #-----------------------------------------------------------------------------
8569 # Checking if we should build crosstools..
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8571 $as_echo_n "checking whether to build crosstools... " >&6; }
8572 # Check whether --enable-crosstools was given.
8573 if test "${enable_crosstools+set}" = set; then :
8574 enableval=$enable_crosstools; crosstools="$enableval"
8575 else
8576 crosstools="$crosstools_guess"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8580 $as_echo "$crosstools" >&6; }
8582 if test "${crosstools}" = "yes"; then
8583 if test "${crosstools_guess}" = "no"; then
8584 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8589 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8591 # Check whether --with-aros-toolchain-install was given.
8592 if test "${with_aros_toolchain_install+set}" = set; then :
8593 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8596 if test "x$aros_toolchain_install" = "x"; then
8597 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8598 else
8599 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8600 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8603 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8605 # Helper to identify gcc version
8608 #-----------------------------------------------------------------------------
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8610 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8612 # Check whether --with-gcc-version was given.
8613 if test "${with_gcc_version+set}" = set; then :
8614 withval=$with_gcc_version; use_gcc_version="$withval"
8615 else
8616 use_gcc_version=""
8619 if test "$use_gcc_version" = ""; then
8620 if test "${crosstools}" = "no"; then
8621 if test "x$aros_toolchain_install" != "x"; then
8623 target_gcc_version=""
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8625 $as_echo_n "checking gcc version... " >&6; }
8626 if ${ax_cv_gcc_version+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8630 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8631 if test "x$ax_cv_gcc_version" = "x"; then :
8633 ax_cv_gcc_version=""
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8639 $as_echo "$ax_cv_gcc_version" >&6; }
8640 target_gcc_version=$ax_cv_gcc_version
8645 if test "$use_gcc_version" = ""; then
8646 target_gcc_version="4.6.4"
8648 else
8649 target_gcc_version="$use_gcc_version"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8652 $as_echo "$target_gcc_version" >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8655 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8656 # Check whether --enable-objc was given.
8657 if test "${enable_objc+set}" = set; then :
8658 enableval=$enable_objc; objc="$enableval"
8659 else
8660 objc="yes"
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8664 $as_echo "$objc" >&6; }
8665 if test "x$objc" = "xyes"; then
8666 objc_target="objc"
8667 else
8668 objc_target="no-objc"
8671 spec_obj_format="-m $aros_object_format"
8672 # Now process extra architecture-specific options.
8673 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8674 # as well as floating-point ABI.
8675 case "$aros_target_cpu" in
8676 *x86_64*)
8677 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8679 arm)
8680 if test "$gcc_default_cpu" = ""; then
8681 gcc_default_cpu="armv6"
8683 if test "$gcc_default_fpu" = ""; then
8684 gcc_default_fpu="vfp"
8686 if test "$gcc_default_float_abi" = ""; then
8687 gcc_default_float_abi="softfp"
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8691 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8693 # Check whether --with-cpu was given.
8694 if test "${with_cpu+set}" = set; then :
8695 withval=$with_cpu; aros_gcc_cpu="$withval"
8696 else
8697 aros_gcc_cpu=$gcc_default_cpu
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8701 $as_echo "$aros_gcc_cpu" >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8704 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8706 # Check whether --with-fpu was given.
8707 if test "${with_fpu+set}" = set; then :
8708 withval=$with_fpu; aros_gcc_fpu="$withval"
8709 else
8710 aros_gcc_fpu=$gcc_default_fpu
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8714 $as_echo "$aros_gcc_fpu" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8717 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8719 # Check whether --with-float was given.
8720 if test "${with_float+set}" = set; then :
8721 withval=$with_float; aros_gcc_float_abi="$withval"
8722 else
8723 aros_gcc_float_abi=$gcc_default_float_abi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8727 $as_echo "$aros_gcc_float_abi" >&6; }
8729 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8730 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8732 esac
8734 # Some architectures may need custom ELF specs.
8735 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8736 elf_specs_in=config/${aros_object_format}-specs.in
8737 else
8738 elf_specs_in=config/elf-specs.in
8741 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8742 # Since we override specs, we may need to put these defines there
8743 if test "$gcc_target_cpu" != ""; then
8744 gcc_target_cpu="-D__${gcc_target_cpu}__"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8748 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8750 # Check whether --with-portssources was given.
8751 if test "${with_portssources+set}" = set; then :
8752 withval=$with_portssources; with_portssrcdir=$withval
8753 else
8754 with_portssrcdir="default"
8757 if test "$with_portssrcdir" = "default"; then
8758 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8759 else
8760 AROS_PORTSSRCDIR="$with_portssrcdir"
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8763 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8766 $as_echo_n "checking which bootloader to use... " >&6; }
8768 # Check whether --with-bootloader was given.
8769 if test "${with_bootloader+set}" = set; then :
8770 withval=$with_bootloader; target_bootloader=$withval
8771 else
8772 target_bootloader=$target_bootloader
8775 if test "$target_bootloader" = "none"; then
8776 aros_target_bootloader=""
8777 else
8778 aros_target_bootloader="$target_bootloader"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8781 $as_echo "$target_bootloader" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8784 $as_echo_n "checking which icon-set to use... " >&6; }
8786 # Check whether --with-iconset was given.
8787 if test "${with_iconset+set}" = set; then :
8788 withval=$with_iconset; target_iconset=$withval
8789 else
8790 target_iconset="default"
8793 if test "$target_iconset" = "default"; then
8794 aros_target_iconset="Gorilla"
8795 target_iconset="default (Gorilla)"
8796 else
8797 aros_target_iconset="$target_iconset"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8800 $as_echo "$target_iconset" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8803 $as_echo_n "checking which GUI Theme to use... " >&6; }
8805 # Check whether --with-theme was given.
8806 if test "${with_theme+set}" = set; then :
8807 withval=$with_theme; target_guitheme=$withval
8808 else
8809 target_guitheme="default"
8812 if test "$target_guitheme" = "default"; then
8813 aros_target_guitheme="Ice"
8814 else
8815 aros_target_guitheme="$target_guitheme"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8818 $as_echo "$aros_target_guitheme" >&6; }
8820 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8821 # for target code)
8822 cross_compiling=no
8824 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8825 cross_compiling=yes
8828 if test "$aros_host_cpu" == "x86_64" ; then
8829 if test "$aros_target_cpu" == "i386" ; then
8830 cross_compiling=no
8834 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8835 if test "$aros_host_arch" != "$aros_target_arch" ; then
8836 cross_compiling=yes
8838 else
8839 if test "$host_cc_elf" = "no" ; then
8840 cross_compiling=yes
8844 if test "$cross_compiling" = "no" ; then
8845 kernel_tool_prefix=""
8846 if test "$host_cc_elf" = "yes" ; then
8847 elf_tool_prefix=""
8851 if test "$kernel_tool_version" != ""; then
8852 kernel_tool_version="-$kernel_tool_version"
8854 if test "$use_gcc_version" != ""; then
8855 target_tool_version="-$target_gcc_version"
8858 #######################################################################
8859 ## Compute what toolchains to use, and their paths ##
8860 #######################################################################
8862 # This takes, as input:
8863 # crosstools {yes,no}
8864 # kernel_tool_version {"",[version]}
8865 # target_tool_version {"",[version]}
8866 # kernel_tool_prefix {none,[some-arch-os-]}
8867 # target_tool_prefix ${aros_target_cpu}-aros-
8868 # aros_tool_prefix ${aros_target_cpu}-aros-
8870 # The output is
8871 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8872 # Where the 'kernel' binaries are located
8873 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8874 # Where the 'target' binaries are located
8875 # (not the symlink farm - that is aros_target_*!)
8877 # The rules are:
8878 # if crosstools then
8879 # if kernel_tools_prefix = "no-kernel-prefix-"
8880 # aros_kernel_* = crosstools cc paths
8881 # aros_kernel_cc = elf cc wrapper around crosstools cc
8882 # else
8883 # VALIDATE(${kernel_tools_prefix}*)
8884 # aros_kernel_* = ${kernel_tools_prefix}*
8885 # if ${kernel_tools_prefix}cc is an AROS gcc
8886 # aros_kernel_cc = ${kernel_tools_prefix}cc
8887 # else
8888 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8889 # fi
8890 # fi
8892 # orig_target_* = aros built crosstools
8893 # orig_target_cc = elf cc wrapper around crosstools cc
8894 # else
8895 # VALIDATE(${kernel_tools_prefix}*)
8897 # orig_target_* = aros_kernel_*
8898 # if aros_kernel_cc is an AROS gcc
8899 # orig_target_cc = aros_kernel_cc
8900 # else
8901 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8902 # fi
8903 # fi
8905 target_tool_prefix="${aros_target_cpu}-aros-"
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8908 $as_echo_n "checking which kernel tools... " >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8910 $as_echo "$kernel_tool_prefix" >&6; };
8912 if test "$kernel_tool_prefix" = "none" ; then
8913 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8914 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8916 else
8917 # Kernel tools required - find them
8918 # Note that 'normally', aros_kernel_* overrides will be
8919 # empty, unless specified in the per-arch sections above.
8920 if test "x$aros_kernel_cpp" = "x"; then
8921 aros_kernel_cpp=${kernel_tool_prefix}cpp
8924 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8925 if test "$cross_compiling" = "yes" ; then
8926 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8927 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 case $aros_kernel_cpp in
8934 [\\/]* | ?:[\\/]*)
8935 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8945 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8949 done
8950 done
8951 IFS=$as_save_IFS
8954 esac
8956 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8957 if test -n "$aros_kernel_cpp"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8959 $as_echo "$aros_kernel_cpp" >&6; }
8960 else
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8966 else
8967 if test "$GCC" = "yes"; then
8968 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8969 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8970 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 case $aros_kernel_cpp in
8977 [\\/]* | ?:[\\/]*)
8978 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in `dirname $aros_gcc_cpp`
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8992 done
8993 done
8994 IFS=$as_save_IFS
8997 esac
8999 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9000 if test -n "$aros_kernel_cpp"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9002 $as_echo "$aros_kernel_cpp" >&6; }
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9010 if test "$aros_kernel_cpp" = ""; then
9011 # Extract the first word of "cpp", so it can be a program name with args.
9012 set dummy cpp; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 case $aros_kernel_cpp in
9019 [\\/]* | ?:[\\/]*)
9020 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9034 done
9035 done
9036 IFS=$as_save_IFS
9039 esac
9041 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9042 if test -n "$aros_kernel_cpp"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9044 $as_echo "$aros_kernel_cpp" >&6; }
9045 else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9053 else
9054 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9055 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 case $aros_kernel_cpp in
9062 [\\/]* | ?:[\\/]*)
9063 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9077 done
9078 done
9079 IFS=$as_save_IFS
9082 esac
9084 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9085 if test -n "$aros_kernel_cpp"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9087 $as_echo "$aros_kernel_cpp" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9096 if test "$aros_kernel_cpp" = ""; then
9097 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9099 if test "x$aros_kernel_cc" = "x"; then
9100 aros_kernel_cc=${kernel_tool_prefix}gcc
9103 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9104 if test "$cross_compiling" = "yes" ; then
9105 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9106 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 $as_echo_n "checking for $ac_word... " >&6; }
9109 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 case $aros_kernel_cc in
9113 [\\/]* | ?:[\\/]*)
9114 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9128 done
9129 done
9130 IFS=$as_save_IFS
9133 esac
9135 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9136 if test -n "$aros_kernel_cc"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9138 $as_echo "$aros_kernel_cc" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9145 else
9146 if test "$GCC" = "yes"; then
9147 aros_gcc_cc=`$CC -print-prog-name=cc`
9148 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9149 set dummy `basename $aros_gcc_cc`; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 case $aros_kernel_cc in
9156 [\\/]* | ?:[\\/]*)
9157 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in `dirname $aros_gcc_cc`
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 break 2
9171 done
9172 done
9173 IFS=$as_save_IFS
9176 esac
9178 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9179 if test -n "$aros_kernel_cc"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9181 $as_echo "$aros_kernel_cc" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9189 if test "$aros_kernel_cc" = ""; then
9190 # Extract the first word of "cc", so it can be a program name with args.
9191 set dummy cc; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 case $aros_kernel_cc in
9198 [\\/]* | ?:[\\/]*)
9199 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9209 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211 break 2
9213 done
9214 done
9215 IFS=$as_save_IFS
9218 esac
9220 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9221 if test -n "$aros_kernel_cc"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9223 $as_echo "$aros_kernel_cc" >&6; }
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9232 else
9233 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9234 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 case $aros_kernel_cc in
9241 [\\/]* | ?:[\\/]*)
9242 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9256 done
9257 done
9258 IFS=$as_save_IFS
9261 esac
9263 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9264 if test -n "$aros_kernel_cc"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9266 $as_echo "$aros_kernel_cc" >&6; }
9267 else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9275 if test "$aros_kernel_cc" = ""; then
9276 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9278 if test "x$aros_kernel_cxx" = "x"; then
9279 aros_kernel_cxx=${kernel_tool_prefix}g++
9282 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9283 if test "$cross_compiling" = "yes" ; then
9284 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9285 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 case $aros_kernel_cxx in
9292 [\\/]* | ?:[\\/]*)
9293 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9307 done
9308 done
9309 IFS=$as_save_IFS
9312 esac
9314 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9315 if test -n "$aros_kernel_cxx"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9317 $as_echo "$aros_kernel_cxx" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9324 else
9325 if test "$GCC" = "yes"; then
9326 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9327 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9328 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 case $aros_kernel_cxx in
9335 [\\/]* | ?:[\\/]*)
9336 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in `dirname $aros_gcc_cxx`
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9355 esac
9357 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9358 if test -n "$aros_kernel_cxx"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9360 $as_echo "$aros_kernel_cxx" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9368 if test "$aros_kernel_cxx" = ""; then
9369 # Extract the first word of "cxx", so it can be a program name with args.
9370 set dummy cxx; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 case $aros_kernel_cxx in
9377 [\\/]* | ?:[\\/]*)
9378 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9397 esac
9399 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9400 if test -n "$aros_kernel_cxx"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9402 $as_echo "$aros_kernel_cxx" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9411 else
9412 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9413 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 $as_echo_n "checking for $ac_word... " >&6; }
9416 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 case $aros_kernel_cxx in
9420 [\\/]* | ?:[\\/]*)
9421 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9435 done
9436 done
9437 IFS=$as_save_IFS
9440 esac
9442 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9443 if test -n "$aros_kernel_cxx"; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9445 $as_echo "$aros_kernel_cxx" >&6; }
9446 else
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 $as_echo "no" >&6; }
9454 # If it's set, make sure it's really there
9455 if test "x$aros_kernel_cxx" != "x" ; then
9456 if test "$aros_kernel_cxx" = ""; then
9457 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9461 if test "$aros_kernel_ld" = ""; then
9462 if test "$cross_compiling" = "yes" ; then
9463 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9464 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 case $aros_kernel_ld in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9486 done
9487 done
9488 IFS=$as_save_IFS
9491 esac
9493 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9494 if test -n "$aros_kernel_ld"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9496 $as_echo "$aros_kernel_ld" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9503 else
9504 if test "$GCC" = "yes"; then
9505 aros_gcc_ld=`$CC -print-prog-name=ld`
9506 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9507 set dummy `basename $aros_gcc_ld`; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 case $aros_kernel_ld in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in `dirname $aros_gcc_ld`
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9534 esac
9536 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9537 if test -n "$aros_kernel_ld"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9539 $as_echo "$aros_kernel_ld" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 if test "$aros_kernel_ld" = ""; then
9548 # Extract the first word of "ld", so it can be a program name with args.
9549 set dummy ld; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 case $aros_kernel_ld in
9556 [\\/]* | ?:[\\/]*)
9557 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9567 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9571 done
9572 done
9573 IFS=$as_save_IFS
9576 esac
9578 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9579 if test -n "$aros_kernel_ld"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9581 $as_echo "$aros_kernel_ld" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9590 else
9591 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9592 set dummy $aros_kernel_ld; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 case $aros_kernel_ld in
9599 [\\/]* | ?:[\\/]*)
9600 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9610 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 break 2
9614 done
9615 done
9616 IFS=$as_save_IFS
9619 esac
9621 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9622 if test -n "$aros_kernel_ld"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9624 $as_echo "$aros_kernel_ld" >&6; }
9625 else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9633 if test "$aros_kernel_ld" = ""; then
9634 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9637 if test "$aros_kernel_as" = ""; then
9638 if test "$cross_compiling" = "yes" ; then
9639 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9640 set dummy ${kernel_tool_prefix}as; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_aros_kernel_as+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 case $aros_kernel_as in
9647 [\\/]* | ?:[\\/]*)
9648 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9667 esac
9669 aros_kernel_as=$ac_cv_path_aros_kernel_as
9670 if test -n "$aros_kernel_as"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9672 $as_echo "$aros_kernel_as" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9679 else
9680 if test "$GCC" = "yes"; then
9681 aros_gcc_as=`$CC -print-prog-name=as`
9682 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9683 set dummy `basename $aros_gcc_as`; ac_word=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if ${ac_cv_path_aros_kernel_as+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 case $aros_kernel_as in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in `dirname $aros_gcc_as`
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9705 done
9706 done
9707 IFS=$as_save_IFS
9710 esac
9712 aros_kernel_as=$ac_cv_path_aros_kernel_as
9713 if test -n "$aros_kernel_as"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9715 $as_echo "$aros_kernel_as" >&6; }
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9723 if test "$aros_kernel_as" = ""; then
9724 # Extract the first word of "as", so it can be a program name with args.
9725 set dummy as; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_path_aros_kernel_as+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 case $aros_kernel_as in
9732 [\\/]* | ?:[\\/]*)
9733 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9747 done
9748 done
9749 IFS=$as_save_IFS
9752 esac
9754 aros_kernel_as=$ac_cv_path_aros_kernel_as
9755 if test -n "$aros_kernel_as"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9757 $as_echo "$aros_kernel_as" >&6; }
9758 else
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9766 else
9767 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9768 set dummy $aros_kernel_as; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_path_aros_kernel_as+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 case $aros_kernel_as in
9775 [\\/]* | ?:[\\/]*)
9776 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9790 done
9791 done
9792 IFS=$as_save_IFS
9795 esac
9797 aros_kernel_as=$ac_cv_path_aros_kernel_as
9798 if test -n "$aros_kernel_as"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9800 $as_echo "$aros_kernel_as" >&6; }
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9809 if test "$aros_kernel_as" = ""; then
9810 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9813 if test "$aros_kernel_ar" = ""; then
9814 if test "$cross_compiling" = "yes" ; then
9815 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9816 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 case $aros_kernel_ar in
9823 [\\/]* | ?:[\\/]*)
9824 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9840 IFS=$as_save_IFS
9843 esac
9845 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9846 if test -n "$aros_kernel_ar"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9848 $as_echo "$aros_kernel_ar" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9855 else
9856 if test "$GCC" = "yes"; then
9857 aros_gcc_ar=`$CC -print-prog-name=ar`
9858 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9859 set dummy `basename $aros_gcc_ar`; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $aros_kernel_ar in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in `dirname $aros_gcc_ar`
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9886 esac
9888 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9889 if test -n "$aros_kernel_ar"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9891 $as_echo "$aros_kernel_ar" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9899 if test "$aros_kernel_ar" = ""; then
9900 # Extract the first word of "ar", so it can be a program name with args.
9901 set dummy ar; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 case $aros_kernel_ar in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9923 done
9924 done
9925 IFS=$as_save_IFS
9928 esac
9930 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9931 if test -n "$aros_kernel_ar"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9933 $as_echo "$aros_kernel_ar" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9942 else
9943 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9944 set dummy $aros_kernel_ar; ac_word=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 case $aros_kernel_ar in
9951 [\\/]* | ?:[\\/]*)
9952 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9966 done
9967 done
9968 IFS=$as_save_IFS
9971 esac
9973 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9974 if test -n "$aros_kernel_ar"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9976 $as_echo "$aros_kernel_ar" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9985 if test "$aros_kernel_ar" = ""; then
9986 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9989 if test "$aros_kernel_ranlib" = ""; then
9990 if test "$cross_compiling" = "yes" ; then
9991 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9992 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 case $aros_kernel_ranlib in
9999 [\\/]* | ?:[\\/]*)
10000 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10014 done
10015 done
10016 IFS=$as_save_IFS
10019 esac
10021 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10022 if test -n "$aros_kernel_ranlib"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10024 $as_echo "$aros_kernel_ranlib" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10031 else
10032 if test "$GCC" = "yes"; then
10033 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10034 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10035 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 case $aros_kernel_ranlib in
10042 [\\/]* | ?:[\\/]*)
10043 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in `dirname $aros_gcc_ranlib`
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10057 done
10058 done
10059 IFS=$as_save_IFS
10062 esac
10064 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10065 if test -n "$aros_kernel_ranlib"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10067 $as_echo "$aros_kernel_ranlib" >&6; }
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10075 if test "$aros_kernel_ranlib" = ""; then
10076 # Extract the first word of "ranlib", so it can be a program name with args.
10077 set dummy ranlib; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 case $aros_kernel_ranlib in
10084 [\\/]* | ?:[\\/]*)
10085 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10099 done
10100 done
10101 IFS=$as_save_IFS
10104 esac
10106 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10107 if test -n "$aros_kernel_ranlib"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10109 $as_echo "$aros_kernel_ranlib" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10118 else
10119 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10120 set dummy $aros_kernel_ranlib; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 case $aros_kernel_ranlib in
10127 [\\/]* | ?:[\\/]*)
10128 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132 for as_dir in $PATH
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10142 done
10143 done
10144 IFS=$as_save_IFS
10147 esac
10149 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10150 if test -n "$aros_kernel_ranlib"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10152 $as_echo "$aros_kernel_ranlib" >&6; }
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10161 if test "$aros_kernel_ranlib" = ""; then
10162 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10165 if test "$aros_kernel_nm" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10168 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 case $aros_kernel_nm in
10175 [\\/]* | ?:[\\/]*)
10176 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10190 done
10191 done
10192 IFS=$as_save_IFS
10195 esac
10197 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10198 if test -n "$aros_kernel_nm"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10200 $as_echo "$aros_kernel_nm" >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10207 else
10208 if test "$GCC" = "yes"; then
10209 aros_gcc_nm=`$CC -print-prog-name=nm`
10210 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10211 set dummy `basename $aros_gcc_nm`; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $aros_kernel_nm in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in `dirname $aros_gcc_nm`
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10233 done
10234 done
10235 IFS=$as_save_IFS
10238 esac
10240 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10241 if test -n "$aros_kernel_nm"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10243 $as_echo "$aros_kernel_nm" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_nm" = ""; then
10252 # Extract the first word of "nm", so it can be a program name with args.
10253 set dummy nm; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $aros_kernel_nm in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10271 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10280 esac
10282 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10283 if test -n "$aros_kernel_nm"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10285 $as_echo "$aros_kernel_nm" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10294 else
10295 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10296 set dummy $aros_kernel_nm; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 case $aros_kernel_nm in
10303 [\\/]* | ?:[\\/]*)
10304 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10323 esac
10325 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10326 if test -n "$aros_kernel_nm"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10328 $as_echo "$aros_kernel_nm" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10337 if test "$aros_kernel_nm" = ""; then
10338 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10341 if test "$aros_kernel_strip" = ""; then
10342 if test "$cross_compiling" = "yes" ; then
10343 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10344 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 case $aros_kernel_strip in
10351 [\\/]* | ?:[\\/]*)
10352 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10366 done
10367 done
10368 IFS=$as_save_IFS
10371 esac
10373 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10374 if test -n "$aros_kernel_strip"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10376 $as_echo "$aros_kernel_strip" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10383 else
10384 if test "$GCC" = "yes"; then
10385 aros_gcc_strip=`$CC -print-prog-name=strip`
10386 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10387 set dummy `basename $aros_gcc_strip`; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 case $aros_kernel_strip in
10394 [\\/]* | ?:[\\/]*)
10395 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in `dirname $aros_gcc_strip`
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10405 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 break 2
10409 done
10410 done
10411 IFS=$as_save_IFS
10414 esac
10416 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10417 if test -n "$aros_kernel_strip"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10419 $as_echo "$aros_kernel_strip" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10427 if test "$aros_kernel_strip" = ""; then
10428 # Extract the first word of "strip", so it can be a program name with args.
10429 set dummy strip; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 case $aros_kernel_strip in
10436 [\\/]* | ?:[\\/]*)
10437 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10451 done
10452 done
10453 IFS=$as_save_IFS
10456 esac
10458 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10459 if test -n "$aros_kernel_strip"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10461 $as_echo "$aros_kernel_strip" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10470 else
10471 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10472 set dummy $aros_kernel_strip; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 case $aros_kernel_strip in
10479 [\\/]* | ?:[\\/]*)
10480 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10499 esac
10501 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10502 if test -n "$aros_kernel_strip"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10504 $as_echo "$aros_kernel_strip" >&6; }
10505 else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10513 if test "$aros_kernel_strip" = ""; then
10514 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10517 # Objcopy and objdump are not required for the kernel
10518 # toolchain on many architectures.
10519 # So we'll look for them, but not make them strictly required.
10521 if test "$aros_kernel_objcopy" = ""; then
10522 if test "$cross_compiling" = "yes" ; then
10523 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10524 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 case $aros_kernel_objcopy in
10531 [\\/]* | ?:[\\/]*)
10532 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10551 esac
10553 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10554 if test -n "$aros_kernel_objcopy"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10556 $as_echo "$aros_kernel_objcopy" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10563 else
10564 if test "$GCC" = "yes"; then
10565 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10566 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10567 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $aros_kernel_objcopy in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in `dirname $aros_gcc_objcopy`
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10597 if test -n "$aros_kernel_objcopy"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10599 $as_echo "$aros_kernel_objcopy" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10607 if test "$aros_kernel_objcopy" = ""; then
10608 # Extract the first word of "objcopy", so it can be a program name with args.
10609 set dummy objcopy; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 case $aros_kernel_objcopy in
10616 [\\/]* | ?:[\\/]*)
10617 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10631 done
10632 done
10633 IFS=$as_save_IFS
10636 esac
10638 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10639 if test -n "$aros_kernel_objcopy"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10641 $as_echo "$aros_kernel_objcopy" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10650 else
10651 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10652 set dummy $aros_kernel_objcopy; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 case $aros_kernel_objcopy in
10659 [\\/]* | ?:[\\/]*)
10660 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10674 done
10675 done
10676 IFS=$as_save_IFS
10679 esac
10681 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10682 if test -n "$aros_kernel_objcopy"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10684 $as_echo "$aros_kernel_objcopy" >&6; }
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10694 if test "$aros_kernel_objdump" = ""; then
10695 if test "$cross_compiling" = "yes" ; then
10696 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10697 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 case $aros_kernel_objdump in
10704 [\\/]* | ?:[\\/]*)
10705 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10719 done
10720 done
10721 IFS=$as_save_IFS
10724 esac
10726 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10727 if test -n "$aros_kernel_objdump"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10729 $as_echo "$aros_kernel_objdump" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10736 else
10737 if test "$GCC" = "yes"; then
10738 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10739 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10740 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 case $aros_kernel_objdump in
10747 [\\/]* | ?:[\\/]*)
10748 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in `dirname $aros_gcc_objdump`
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10762 done
10763 done
10764 IFS=$as_save_IFS
10767 esac
10769 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10770 if test -n "$aros_kernel_objdump"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10772 $as_echo "$aros_kernel_objdump" >&6; }
10773 else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10780 if test "$aros_kernel_objdump" = ""; then
10781 # Extract the first word of "objdump", so it can be a program name with args.
10782 set dummy objdump; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 case $aros_kernel_objdump in
10789 [\\/]* | ?:[\\/]*)
10790 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10804 done
10805 done
10806 IFS=$as_save_IFS
10809 esac
10811 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10812 if test -n "$aros_kernel_objdump"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10814 $as_echo "$aros_kernel_objdump" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10823 else
10824 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10825 set dummy $aros_kernel_objdump; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 case $aros_kernel_objdump in
10832 [\\/]* | ?:[\\/]*)
10833 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10847 done
10848 done
10849 IFS=$as_save_IFS
10852 esac
10854 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10855 if test -n "$aros_kernel_objdump"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10857 $as_echo "$aros_kernel_objdump" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10866 if test "x${crosstools}" != "xyes" ; then
10867 if test "$aros_kernel_objcopy" = ""; then
10868 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10870 if test "$aros_kernel_objdump" = ""; then
10871 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10877 $as_echo_n "checking which target tools to use... " >&6; }
10878 if test "$crosstools" = "yes"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10880 $as_echo "$target_tool_prefix" >&6; }
10881 # We are building AROS crosstools
10882 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10883 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10884 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10885 orig_target_cpp="${tmp_tool_prefix}cpp"
10886 orig_target_ld="${tmp_tool_prefix}ld"
10887 orig_target_as="${tmp_tool_prefix}as"
10888 orig_target_ar="${tmp_tool_prefix}ar"
10889 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10890 orig_target_nm="${tmp_tool_prefix}nm"
10891 orig_target_strip="${tmp_tool_prefix}strip"
10892 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10893 orig_target_objdump="${tmp_tool_prefix}objdump"
10894 else
10895 # Determine whether AROS or ELF tools should be used
10896 if test "$aros_tool_prefix" = "none"; then
10897 aros_tool_prefix="${elf_tool_prefix}"
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10901 $as_echo "$aros_tool_prefix" >&6; }
10902 # We are *not* building AROS crosstools - use the AROS or ELF tools
10904 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10905 if test "$cross_compiling" = "yes" ; then
10906 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10907 set dummy ${target_tool_prefix}cpp; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_path_orig_target_cpp+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 case $orig_target_cpp in
10914 [\\/]* | ?:[\\/]*)
10915 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10929 done
10930 done
10931 IFS=$as_save_IFS
10934 esac
10936 orig_target_cpp=$ac_cv_path_orig_target_cpp
10937 if test -n "$orig_target_cpp"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10939 $as_echo "$orig_target_cpp" >&6; }
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10946 else
10947 if test "$GCC" = "yes"; then
10948 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10949 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10950 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if ${ac_cv_path_orig_target_cpp+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 case $orig_target_cpp in
10957 [\\/]* | ?:[\\/]*)
10958 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in `dirname $aros_gcc_cpp`
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10972 done
10973 done
10974 IFS=$as_save_IFS
10977 esac
10979 orig_target_cpp=$ac_cv_path_orig_target_cpp
10980 if test -n "$orig_target_cpp"; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10982 $as_echo "$orig_target_cpp" >&6; }
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10990 if test "$orig_target_cpp" = ""; then
10991 # Extract the first word of "cpp", so it can be a program name with args.
10992 set dummy cpp; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_path_orig_target_cpp+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 case $orig_target_cpp in
10999 [\\/]* | ?:[\\/]*)
11000 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11014 done
11015 done
11016 IFS=$as_save_IFS
11019 esac
11021 orig_target_cpp=$ac_cv_path_orig_target_cpp
11022 if test -n "$orig_target_cpp"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11024 $as_echo "$orig_target_cpp" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11033 else
11034 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11035 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_orig_target_cpp+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 case $orig_target_cpp in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11057 done
11058 done
11059 IFS=$as_save_IFS
11062 esac
11064 orig_target_cpp=$ac_cv_path_orig_target_cpp
11065 if test -n "$orig_target_cpp"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11067 $as_echo "$orig_target_cpp" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11076 if test "$orig_target_cpp" = ""; then
11077 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11080 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11081 if test "$cross_compiling" = "yes" ; then
11082 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11083 set dummy ${target_tool_prefix}gcc; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_orig_target_cc+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 case $orig_target_cc in
11090 [\\/]* | ?:[\\/]*)
11091 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11101 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11105 done
11106 done
11107 IFS=$as_save_IFS
11110 esac
11112 orig_target_cc=$ac_cv_path_orig_target_cc
11113 if test -n "$orig_target_cc"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11115 $as_echo "$orig_target_cc" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11122 else
11123 if test "$GCC" = "yes"; then
11124 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11125 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11126 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 $as_echo_n "checking for $ac_word... " >&6; }
11129 if ${ac_cv_path_orig_target_cc+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 case $orig_target_cc in
11133 [\\/]* | ?:[\\/]*)
11134 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in `dirname $aros_gcc_gcc`
11140 IFS=$as_save_IFS
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11148 done
11149 done
11150 IFS=$as_save_IFS
11153 esac
11155 orig_target_cc=$ac_cv_path_orig_target_cc
11156 if test -n "$orig_target_cc"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11158 $as_echo "$orig_target_cc" >&6; }
11159 else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11166 if test "$orig_target_cc" = ""; then
11167 # Extract the first word of "gcc", so it can be a program name with args.
11168 set dummy gcc; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if ${ac_cv_path_orig_target_cc+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 case $orig_target_cc in
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11190 done
11191 done
11192 IFS=$as_save_IFS
11195 esac
11197 orig_target_cc=$ac_cv_path_orig_target_cc
11198 if test -n "$orig_target_cc"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11200 $as_echo "$orig_target_cc" >&6; }
11201 else
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11209 else
11210 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11211 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_path_orig_target_cc+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 case $orig_target_cc in
11218 [\\/]* | ?:[\\/]*)
11219 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11233 done
11234 done
11235 IFS=$as_save_IFS
11238 esac
11240 orig_target_cc=$ac_cv_path_orig_target_cc
11241 if test -n "$orig_target_cc"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11243 $as_echo "$orig_target_cc" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11252 if test "$orig_target_cc" = ""; then
11253 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11256 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11257 if test "$cross_compiling" = "yes" ; then
11258 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11259 set dummy ${target_tool_prefix}g++; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if ${ac_cv_path_orig_target_cxx+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 case $orig_target_cxx in
11266 [\\/]* | ?:[\\/]*)
11267 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11281 done
11282 done
11283 IFS=$as_save_IFS
11286 esac
11288 orig_target_cxx=$ac_cv_path_orig_target_cxx
11289 if test -n "$orig_target_cxx"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11291 $as_echo "$orig_target_cxx" >&6; }
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11298 else
11299 if test "$GCC" = "yes"; then
11300 aros_gcc_g++=`$CC -print-prog-name=g++`
11301 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11302 set dummy `basename $aros_gcc_g++`; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_orig_target_cxx+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 case $orig_target_cxx in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in `dirname $aros_gcc_g++`
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11329 esac
11331 orig_target_cxx=$ac_cv_path_orig_target_cxx
11332 if test -n "$orig_target_cxx"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11334 $as_echo "$orig_target_cxx" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11342 if test "$orig_target_cxx" = ""; then
11343 # Extract the first word of "g++", so it can be a program name with args.
11344 set dummy g++; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_path_orig_target_cxx+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 case $orig_target_cxx in
11351 [\\/]* | ?:[\\/]*)
11352 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11366 done
11367 done
11368 IFS=$as_save_IFS
11371 esac
11373 orig_target_cxx=$ac_cv_path_orig_target_cxx
11374 if test -n "$orig_target_cxx"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11376 $as_echo "$orig_target_cxx" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11385 else
11386 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11387 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_path_orig_target_cxx+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 case $orig_target_cxx in
11394 [\\/]* | ?:[\\/]*)
11395 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11409 done
11410 done
11411 IFS=$as_save_IFS
11414 esac
11416 orig_target_cxx=$ac_cv_path_orig_target_cxx
11417 if test -n "$orig_target_cxx"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11419 $as_echo "$orig_target_cxx" >&6; }
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11428 if test "$orig_target_cxx" = ""; then
11429 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11432 if test "${aros_tool_prefix}ld" = ""; then
11433 if test "$cross_compiling" = "yes" ; then
11434 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11435 set dummy ${target_tool_prefix}gcc; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_path_orig_target_ld+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 case $orig_target_ld in
11442 [\\/]* | ?:[\\/]*)
11443 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11457 done
11458 done
11459 IFS=$as_save_IFS
11462 esac
11464 orig_target_ld=$ac_cv_path_orig_target_ld
11465 if test -n "$orig_target_ld"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11467 $as_echo "$orig_target_ld" >&6; }
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11474 else
11475 if test "$GCC" = "yes"; then
11476 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11477 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11478 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_path_orig_target_ld+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 case $orig_target_ld in
11485 [\\/]* | ?:[\\/]*)
11486 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in `dirname $aros_gcc_gcc`
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11500 done
11501 done
11502 IFS=$as_save_IFS
11505 esac
11507 orig_target_ld=$ac_cv_path_orig_target_ld
11508 if test -n "$orig_target_ld"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11510 $as_echo "$orig_target_ld" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 if test "$orig_target_ld" = ""; then
11519 # Extract the first word of "gcc", so it can be a program name with args.
11520 set dummy gcc; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if ${ac_cv_path_orig_target_ld+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 case $orig_target_ld in
11527 [\\/]* | ?:[\\/]*)
11528 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11542 done
11543 done
11544 IFS=$as_save_IFS
11547 esac
11549 orig_target_ld=$ac_cv_path_orig_target_ld
11550 if test -n "$orig_target_ld"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11552 $as_echo "$orig_target_ld" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11561 else
11562 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11563 set dummy ${aros_tool_prefix}ld; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_path_orig_target_ld+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 case $orig_target_ld in
11570 [\\/]* | ?:[\\/]*)
11571 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11585 done
11586 done
11587 IFS=$as_save_IFS
11590 esac
11592 orig_target_ld=$ac_cv_path_orig_target_ld
11593 if test -n "$orig_target_ld"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11595 $as_echo "$orig_target_ld" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11604 if test "$orig_target_ld" = ""; then
11605 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11608 if test "${aros_tool_prefix}as" = ""; then
11609 if test "$cross_compiling" = "yes" ; then
11610 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11611 set dummy ${target_tool_prefix}as; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if ${ac_cv_path_orig_target_as+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 case $orig_target_as in
11618 [\\/]* | ?:[\\/]*)
11619 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11629 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11633 done
11634 done
11635 IFS=$as_save_IFS
11638 esac
11640 orig_target_as=$ac_cv_path_orig_target_as
11641 if test -n "$orig_target_as"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11643 $as_echo "$orig_target_as" >&6; }
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11650 else
11651 if test "$GCC" = "yes"; then
11652 aros_gcc_as=`$CC -print-prog-name=as`
11653 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11654 set dummy `basename $aros_gcc_as`; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_path_orig_target_as+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 case $orig_target_as in
11661 [\\/]* | ?:[\\/]*)
11662 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in `dirname $aros_gcc_as`
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11676 done
11677 done
11678 IFS=$as_save_IFS
11681 esac
11683 orig_target_as=$ac_cv_path_orig_target_as
11684 if test -n "$orig_target_as"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11686 $as_echo "$orig_target_as" >&6; }
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11694 if test "$orig_target_as" = ""; then
11695 # Extract the first word of "as", so it can be a program name with args.
11696 set dummy as; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_orig_target_as+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 case $orig_target_as in
11703 [\\/]* | ?:[\\/]*)
11704 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11718 done
11719 done
11720 IFS=$as_save_IFS
11723 esac
11725 orig_target_as=$ac_cv_path_orig_target_as
11726 if test -n "$orig_target_as"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11728 $as_echo "$orig_target_as" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11737 else
11738 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11739 set dummy ${aros_tool_prefix}as; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_path_orig_target_as+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 case $orig_target_as in
11746 [\\/]* | ?:[\\/]*)
11747 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11761 done
11762 done
11763 IFS=$as_save_IFS
11766 esac
11768 orig_target_as=$ac_cv_path_orig_target_as
11769 if test -n "$orig_target_as"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11771 $as_echo "$orig_target_as" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11780 if test "$orig_target_as" = ""; then
11781 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11784 if test "${aros_tool_prefix}ar" = ""; then
11785 if test "$cross_compiling" = "yes" ; then
11786 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11787 set dummy ${target_tool_prefix}ar; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_orig_target_ar+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 case $orig_target_ar in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11809 done
11810 done
11811 IFS=$as_save_IFS
11814 esac
11816 orig_target_ar=$ac_cv_path_orig_target_ar
11817 if test -n "$orig_target_ar"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11819 $as_echo "$orig_target_ar" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11826 else
11827 if test "$GCC" = "yes"; then
11828 aros_gcc_ar=`$CC -print-prog-name=ar`
11829 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11830 set dummy `basename $aros_gcc_ar`; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if ${ac_cv_path_orig_target_ar+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 case $orig_target_ar in
11837 [\\/]* | ?:[\\/]*)
11838 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in `dirname $aros_gcc_ar`
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11852 done
11853 done
11854 IFS=$as_save_IFS
11857 esac
11859 orig_target_ar=$ac_cv_path_orig_target_ar
11860 if test -n "$orig_target_ar"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11862 $as_echo "$orig_target_ar" >&6; }
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11870 if test "$orig_target_ar" = ""; then
11871 # Extract the first word of "ar", so it can be a program name with args.
11872 set dummy ar; ac_word=$2
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874 $as_echo_n "checking for $ac_word... " >&6; }
11875 if ${ac_cv_path_orig_target_ar+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 case $orig_target_ar in
11879 [\\/]* | ?:[\\/]*)
11880 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH
11886 IFS=$as_save_IFS
11887 test -z "$as_dir" && as_dir=.
11888 for ac_exec_ext in '' $ac_executable_extensions; do
11889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11890 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 break 2
11894 done
11895 done
11896 IFS=$as_save_IFS
11899 esac
11901 orig_target_ar=$ac_cv_path_orig_target_ar
11902 if test -n "$orig_target_ar"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11904 $as_echo "$orig_target_ar" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11913 else
11914 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11915 set dummy ${aros_tool_prefix}ar; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_path_orig_target_ar+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 case $orig_target_ar in
11922 [\\/]* | ?:[\\/]*)
11923 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11933 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11937 done
11938 done
11939 IFS=$as_save_IFS
11942 esac
11944 orig_target_ar=$ac_cv_path_orig_target_ar
11945 if test -n "$orig_target_ar"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11947 $as_echo "$orig_target_ar" >&6; }
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11956 if test "$orig_target_ar" = ""; then
11957 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11960 if test "${aros_tool_prefix}ranlib" = ""; then
11961 if test "$cross_compiling" = "yes" ; then
11962 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11963 set dummy ${target_tool_prefix}ar; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 case $orig_target_ranlib in
11970 [\\/]* | ?:[\\/]*)
11971 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 break 2
11985 done
11986 done
11987 IFS=$as_save_IFS
11990 esac
11992 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11993 if test -n "$orig_target_ranlib"; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11995 $as_echo "$orig_target_ranlib" >&6; }
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
12002 else
12003 if test "$GCC" = "yes"; then
12004 aros_gcc_ar=`$CC -print-prog-name=ar`
12005 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12006 set dummy `basename $aros_gcc_ar`; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 case $orig_target_ranlib in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in `dirname $aros_gcc_ar`
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12033 esac
12035 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12036 if test -n "$orig_target_ranlib"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12038 $as_echo "$orig_target_ranlib" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12046 if test "$orig_target_ranlib" = ""; then
12047 # Extract the first word of "ar", so it can be a program name with args.
12048 set dummy ar; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 case $orig_target_ranlib in
12055 [\\/]* | ?:[\\/]*)
12056 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12070 done
12071 done
12072 IFS=$as_save_IFS
12075 esac
12077 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12078 if test -n "$orig_target_ranlib"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12080 $as_echo "$orig_target_ranlib" >&6; }
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12089 else
12090 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12091 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 case $orig_target_ranlib in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12113 done
12114 done
12115 IFS=$as_save_IFS
12118 esac
12120 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12121 if test -n "$orig_target_ranlib"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12123 $as_echo "$orig_target_ranlib" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12132 if test "$orig_target_ranlib" = ""; then
12133 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12136 if test "${aros_tool_prefix}nm" = ""; then
12137 if test "$cross_compiling" = "yes" ; then
12138 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12139 set dummy ${target_tool_prefix}nm; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_path_orig_target_nm+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 case $orig_target_nm in
12146 [\\/]* | ?:[\\/]*)
12147 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12157 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12161 done
12162 done
12163 IFS=$as_save_IFS
12166 esac
12168 orig_target_nm=$ac_cv_path_orig_target_nm
12169 if test -n "$orig_target_nm"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12171 $as_echo "$orig_target_nm" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12178 else
12179 if test "$GCC" = "yes"; then
12180 aros_gcc_nm=`$CC -print-prog-name=nm`
12181 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12182 set dummy `basename $aros_gcc_nm`; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if ${ac_cv_path_orig_target_nm+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 case $orig_target_nm in
12189 [\\/]* | ?:[\\/]*)
12190 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in `dirname $aros_gcc_nm`
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12204 done
12205 done
12206 IFS=$as_save_IFS
12209 esac
12211 orig_target_nm=$ac_cv_path_orig_target_nm
12212 if test -n "$orig_target_nm"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12214 $as_echo "$orig_target_nm" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12222 if test "$orig_target_nm" = ""; then
12223 # Extract the first word of "nm", so it can be a program name with args.
12224 set dummy nm; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_path_orig_target_nm+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 case $orig_target_nm in
12231 [\\/]* | ?:[\\/]*)
12232 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12246 done
12247 done
12248 IFS=$as_save_IFS
12251 esac
12253 orig_target_nm=$ac_cv_path_orig_target_nm
12254 if test -n "$orig_target_nm"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12256 $as_echo "$orig_target_nm" >&6; }
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12265 else
12266 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12267 set dummy ${aros_tool_prefix}nm; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_path_orig_target_nm+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 case $orig_target_nm in
12274 [\\/]* | ?:[\\/]*)
12275 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12289 done
12290 done
12291 IFS=$as_save_IFS
12294 esac
12296 orig_target_nm=$ac_cv_path_orig_target_nm
12297 if test -n "$orig_target_nm"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12299 $as_echo "$orig_target_nm" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12308 if test "$orig_target_nm" = ""; then
12309 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12312 if test "${aros_tool_prefix}strip" = ""; then
12313 if test "$cross_compiling" = "yes" ; then
12314 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12315 set dummy ${target_tool_prefix}strip; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_path_orig_target_strip+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 case $orig_target_strip in
12322 [\\/]* | ?:[\\/]*)
12323 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12337 done
12338 done
12339 IFS=$as_save_IFS
12342 esac
12344 orig_target_strip=$ac_cv_path_orig_target_strip
12345 if test -n "$orig_target_strip"; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12347 $as_echo "$orig_target_strip" >&6; }
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12354 else
12355 if test "$GCC" = "yes"; then
12356 aros_gcc_strip=`$CC -print-prog-name=strip`
12357 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12358 set dummy `basename $aros_gcc_strip`; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if ${ac_cv_path_orig_target_strip+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 case $orig_target_strip in
12365 [\\/]* | ?:[\\/]*)
12366 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in `dirname $aros_gcc_strip`
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12380 done
12381 done
12382 IFS=$as_save_IFS
12385 esac
12387 orig_target_strip=$ac_cv_path_orig_target_strip
12388 if test -n "$orig_target_strip"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12390 $as_echo "$orig_target_strip" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12398 if test "$orig_target_strip" = ""; then
12399 # Extract the first word of "strip", so it can be a program name with args.
12400 set dummy strip; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_path_orig_target_strip+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 case $orig_target_strip in
12407 [\\/]* | ?:[\\/]*)
12408 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12418 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 break 2
12422 done
12423 done
12424 IFS=$as_save_IFS
12427 esac
12429 orig_target_strip=$ac_cv_path_orig_target_strip
12430 if test -n "$orig_target_strip"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12432 $as_echo "$orig_target_strip" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12441 else
12442 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12443 set dummy ${aros_tool_prefix}strip; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_path_orig_target_strip+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 case $orig_target_strip in
12450 [\\/]* | ?:[\\/]*)
12451 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12465 done
12466 done
12467 IFS=$as_save_IFS
12470 esac
12472 orig_target_strip=$ac_cv_path_orig_target_strip
12473 if test -n "$orig_target_strip"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12475 $as_echo "$orig_target_strip" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12484 if test "$orig_target_strip" = ""; then
12485 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12488 if test "${aros_tool_prefix}objcopy" = ""; then
12489 if test "$cross_compiling" = "yes" ; then
12490 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12491 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $orig_target_objcopy in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12518 esac
12520 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12521 if test -n "$orig_target_objcopy"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12523 $as_echo "$orig_target_objcopy" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12530 else
12531 if test "$GCC" = "yes"; then
12532 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12533 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12534 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 case $orig_target_objcopy in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in `dirname $aros_gcc_objcopy`
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12556 done
12557 done
12558 IFS=$as_save_IFS
12561 esac
12563 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12564 if test -n "$orig_target_objcopy"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12566 $as_echo "$orig_target_objcopy" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12574 if test "$orig_target_objcopy" = ""; then
12575 # Extract the first word of "objcopy", so it can be a program name with args.
12576 set dummy objcopy; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 case $orig_target_objcopy in
12583 [\\/]* | ?:[\\/]*)
12584 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12598 done
12599 done
12600 IFS=$as_save_IFS
12603 esac
12605 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12606 if test -n "$orig_target_objcopy"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12608 $as_echo "$orig_target_objcopy" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12617 else
12618 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12619 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 case $orig_target_objcopy in
12626 [\\/]* | ?:[\\/]*)
12627 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12637 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12641 done
12642 done
12643 IFS=$as_save_IFS
12646 esac
12648 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12649 if test -n "$orig_target_objcopy"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12651 $as_echo "$orig_target_objcopy" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12660 if test "$orig_target_objcopy" = ""; then
12661 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12664 if test "${aros_tool_prefix}objdump" = ""; then
12665 if test "$cross_compiling" = "yes" ; then
12666 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12667 set dummy ${target_tool_prefix}objdump; ac_word=$2
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if ${ac_cv_path_orig_target_objdump+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 case $orig_target_objdump in
12674 [\\/]* | ?:[\\/]*)
12675 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12681 IFS=$as_save_IFS
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12685 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 break 2
12689 done
12690 done
12691 IFS=$as_save_IFS
12694 esac
12696 orig_target_objdump=$ac_cv_path_orig_target_objdump
12697 if test -n "$orig_target_objdump"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12699 $as_echo "$orig_target_objdump" >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12706 else
12707 if test "$GCC" = "yes"; then
12708 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12709 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12710 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if ${ac_cv_path_orig_target_objdump+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 case $orig_target_objdump in
12717 [\\/]* | ?:[\\/]*)
12718 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in `dirname $aros_gcc_objdump`
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12728 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 break 2
12732 done
12733 done
12734 IFS=$as_save_IFS
12737 esac
12739 orig_target_objdump=$ac_cv_path_orig_target_objdump
12740 if test -n "$orig_target_objdump"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12742 $as_echo "$orig_target_objdump" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12750 if test "$orig_target_objdump" = ""; then
12751 # Extract the first word of "objdump", so it can be a program name with args.
12752 set dummy objdump; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_orig_target_objdump+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 case $orig_target_objdump in
12759 [\\/]* | ?:[\\/]*)
12760 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12774 done
12775 done
12776 IFS=$as_save_IFS
12779 esac
12781 orig_target_objdump=$ac_cv_path_orig_target_objdump
12782 if test -n "$orig_target_objdump"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12784 $as_echo "$orig_target_objdump" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12793 else
12794 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12795 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_path_orig_target_objdump+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 case $orig_target_objdump in
12802 [\\/]* | ?:[\\/]*)
12803 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12822 esac
12824 orig_target_objdump=$ac_cv_path_orig_target_objdump
12825 if test -n "$orig_target_objdump"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12827 $as_echo "$orig_target_objdump" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12836 if test "$orig_target_objdump" = ""; then
12837 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12841 if test "$kernel_tool_prefix" = "none" ; then
12842 # No kernel tools specified
12843 # Assume target tools == kernel tools with ELF wrapper
12844 aros_kernel_cc=$orig_target_cc
12845 aros_kernel_cxx=$orig_target_cxx
12846 aros_kernel_cpp=$orig_target_cpp
12847 aros_kernel_ld=$orig_target_ld
12848 aros_kernel_as=$orig_target_as
12849 aros_kernel_ar=$orig_target_ar
12850 aros_kernel_ranlib=$orig_target_ranlib
12851 aros_kernel_nm=$orig_target_nm
12852 aros_kernel_strip=$orig_target_strip
12853 aros_kernel_objcopy=$orig_target_objcopy
12854 aros_kernel_objdump=$orig_target_objdump
12855 use_kernel_cc_wrapper=yes
12858 # At this point, all aros_kernel_* and aros_target_*
12859 # tools should be set up correctly
12861 CC="$aros_kernel_cc $kernel_tool_flags"
12862 CPP="$aros_kernel_cpp"
12864 #-----------------------------------------------------------------------------
12866 # Disable pointer-signedness warnings if the compiler recognises the option
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12869 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12870 save_cflags="$CFLAGS"
12871 if test "$crosstools" != "yes" ; then
12872 CFLAGS="$CFLAGS -Wno-pointer-sign"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12877 main ()
12881 return 0;
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 use_no_sign_warning="yes"
12886 else
12887 use_no_sign_warning="no"
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 else
12891 # we do know it is supported for the smallest version of gcc we are going to build
12892 # we assume it's also supported by later versions
12893 use_no_sign_warning=yes
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12896 $as_echo "$use_no_sign_warning" >&6; }
12897 if test "x-$use_no_sign_warning" = "x-yes" ; then
12898 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12900 CFLAGS="$save_cflags"
12902 #-----------------------------------------------------------------------------
12904 # Find all the tools we need to compile. This could be cross-compiling
12905 # though! If that is the case we use the GNU form of the target and
12906 # simply add this to the front of the binary name. This is rather simple,
12907 # but it should work under most circumstances.
12909 # The default tools are to use the same as the host, but only if the
12910 # host and target CPU are the same. With GCC this is normally enough.
12913 aros_cc_pre=""
12914 aros_shared_ld="$aros_host_ld"
12916 aros_target_mkdep="$aros_host_mkdep"
12918 # The default tools executables to be linked to.
12919 if test "$rescomp" != ""; then
12920 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12921 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 case $aros_kernel_rescomp in
12928 [\\/]* | ?:[\\/]*)
12929 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 break 2
12943 done
12944 done
12945 IFS=$as_save_IFS
12948 esac
12950 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12951 if test -n "$aros_kernel_rescomp"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12953 $as_echo "$aros_kernel_rescomp" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12960 if test "$aros_kernel_rescomp" = ""; then
12961 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12965 # Set up the sources for the symlink farm
12966 if test "$crosstools" = "yes"; then
12967 crosstools_target=tools-crosstools
12970 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12971 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12974 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12975 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12976 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12977 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12978 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12979 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12980 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12982 # aros_cc_pre is a variable that is added to the front of the compiler name
12983 # in the generated aros-gcc shell script. We need this to enable the cache
12984 # to work across cleaned builds. Also, support DISTCC using the correct
12985 # environment variable.
12988 if test "x${DISTCC}" != "x" ; then
12989 if test "x${CCACHE}" != "x" ; then
12990 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12991 else
12992 aros_cc_pre="${DISTCC} "
12994 else
12995 if test "x${CCACHE}" != "x" ; then
12996 aros_cc_pre="${CCACHE} "
13000 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13002 aros_target_nostdinc_cflags=-nostdinc
13004 aros_target_nostartup_ldflags=-nostartfiles
13006 aros_target_nix_ldflags=-nix
13008 aros_target_detach_ldflags=-detach
13010 aros_target_nostdlib_ldflags=-nostdlib
13013 # Target tools
13014 if test "$crosstools" != "yes"; then
13015 if test "$GCC" = "yes"; then
13016 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13018 else
13019 # We do not know which gcc version we are going to build and what we need to know
13020 # here is different for different versions so this will be set later during the
13021 # build of crosstools.
13022 aros_target_cc_path=@aros_target_cc_path@
13024 aros_target_cpp="${prefix}cpp"
13025 aros_target_cc="${prefix}gcc"
13026 aros_target_cxx="${prefix}g++"
13027 aros_target_as="${prefix}as"
13028 aros_target_ld="${prefix}ld"
13029 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13030 aros_target_objcopy="${prefix}objcopy"
13031 aros_target_objdump="${prefix}objdump"
13032 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13033 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13034 aros_target_strip="${prefix}strip"
13035 aros_plain_nm="${prefix}nm"
13036 aros_plain_ar="${prefix}ar"
13038 # Check whether --enable-includes was given.
13039 if test "${enable_includes+set}" = set; then :
13040 enableval=$enable_includes; aros_target_incl=$enable_includes
13041 else
13042 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13046 if test "$aros_kernel_includes" = ""; then
13047 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13048 aros_kernel_includes="-isystem $aros_target_incl"
13052 if test "$aros_kernel_includes" != "" ; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13054 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13055 if test "$aros_kernel_cc_includes" = "" ; then
13056 # Try to guess where the directory is.
13057 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13058 if test -d $aros_kernel_cc_includes; then
13059 # Check if there is also an include-fixed directory and add it
13060 # to kernel compiler's include path as it may contain some of
13061 # the headers we need.
13062 if test -d "$aros_kernel_cc_includes"-fixed; then
13063 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13065 # Check for specific includes directory. Neede for Ubuntu 11.10
13066 if test -d "/usr/include/i386-linux-gnu"; then
13067 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13069 else
13070 # The directory doesn't exist, we need to do some more work.
13071 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13073 # These are the headers we're looking for.
13074 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13075 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13076 zutil.h stdint.h"
13078 dirs=
13079 for h in $headers; do
13080 # Which other headers are needed by each of the above?
13081 deps=$(echo "#include <$h>" | \
13082 $aros_kernel_cc -E -M - 2>/dev/null | \
13083 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13085 # Copy all the needed headers to a directory beneath gendir.
13086 for d in $deps; do
13087 h=$(basename $d)
13088 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13089 sed -n "s,^.*/include\(/.*\),\1,p")
13090 ! test -d $dir && mkdir -p $dir
13091 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13092 done
13093 done
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13097 $as_echo "$aros_kernel_cc_includes" >&6; }
13098 # Adding -nostdinc to kernel includes as they are always used together.
13099 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13102 if test "$crosstools" != "yes"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13104 $as_echo_n "checking for the target compiler's include path... " >&6; }
13105 if test "$aros_target_cc_includes" = "" ; then
13106 #try to guess where the directory is
13107 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13108 if ! test -d $aros_target_cc_includes; then
13109 #the directory doesn't exist, we need to do some more work
13110 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13112 #these are the headers we're looking for
13113 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13114 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13115 zutil.h"
13117 dirs=
13118 for h in $headers; do
13119 #which other headers each of the above headers needs?
13120 deps=$(echo "#include <$h>" | \
13121 $orig_target_cc -E -M - 2>/dev/null | \
13122 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13124 #copy all the needed headers to a directory beneath gendir
13125 for d in $deps; do
13126 h=$(basename $d)
13127 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13128 sed -n "s,^.*/include\(/.*\),\1,p")
13129 ! test -d $dir && mkdir -p $dir
13130 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13131 done
13132 done
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13136 $as_echo "$aros_target_cc_includes" >&6; }
13137 else
13138 # We do not know which gcc version we are going to build and what we need to know
13139 # here is different for different versions so this will be set later during the
13140 # build of crosstools.
13141 aros_target_cc_includes=@aros_target_cc_includes@
13145 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13146 # On GCC >= 4.0 -iquote should be used
13149 save_cc="$CC"
13150 save_cflags="$CFLAGS"
13151 CFLAGS="-iquote."
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13153 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13154 if test "x-$crosstools" != "x-yes"; then
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13159 main ()
13163 return 0;
13165 _ACEOF
13166 if ac_fn_c_try_compile "$LINENO"; then :
13167 has_iquote="yes"
13168 else
13169 has_iquote="no"
13171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 else
13173 # we do know it is supported for the smallest version of gcc we are going to build
13174 # we assume it's also supported by later versions
13175 has_iquote=yes
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13178 $as_echo "$has_iquote" >&6; }
13179 if test "x-$has_iquote" = "x-yes" ; then
13180 host_cflags_iquote=-iquote
13181 host_cflags_iquote_end=
13182 else
13183 host_cflags_iquote=-I
13184 host_cflags_iquote_end=-I-
13186 kernel_cflags_iquote=$host_cflags_iquote
13187 kernel_cflags_iquote_end=$host_cflags_iquote_end
13188 if test "x-$cross_compiling" = "x-yes"; then
13189 CC="$aros_kernel_cc"
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13191 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13192 if test "x-$crosstools" != "x-yes"; then
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13197 main ()
13201 return 0;
13203 _ACEOF
13204 if ac_fn_c_try_compile "$LINENO"; then :
13205 use_no_stack_protector="yes"
13206 else
13207 use_no_stack_protector="no"
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 else
13211 # we do know it is supported for the smallest version of gcc we are going to build
13212 # we assume it's also supported by later versions
13213 use_no_stack_protector=yes
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13216 $as_echo "$use_no_stack_protector" >&6; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13218 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13219 if test "x-$crosstools" != "x-yes"; then
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13224 main ()
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 has_iquote="yes"
13233 else
13234 has_iquote="no"
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 else
13238 # we do know it is supported for the smallest version of gcc we are going to build
13239 # we assume it's also supported by later versions
13240 has_iquote=yes
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13243 $as_echo "$has_iquote" >&6; }
13244 if test "x-$has_iquote" = "x-yes" ; then
13245 kernel_cflags_iquote=-iquote
13246 kernel_cflags_iquote_end=
13247 else
13248 kernel_cflags_iquote=-I
13249 kernel_cflags_iquote_end=-I-
13252 aros_cflags_iquote=$kernel_cflags_iquote
13253 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13254 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13255 CC="$orig_target_cc"
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13257 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13258 if test "x-$crosstools" != "x-yes"; then
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13263 main ()
13267 return 0;
13269 _ACEOF
13270 if ac_fn_c_try_compile "$LINENO"; then :
13271 has_iquote="yes"
13272 else
13273 has_iquote="no"
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 else
13277 # we do know it is supported for the smallest version of gcc we are going to build
13278 # we assume it's also supported by later versions
13279 has_iquote=yes
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13282 $as_echo "$has_iquote" >&6; }
13283 if test "x-$has_iquote" = "x-yes" ; then
13284 aros_cflags_iquote=-iquote
13285 aros_cflags_iquote_end=
13286 else
13287 aros_cflags_iquote=-I
13288 aros_cflags_iquote_end=-I-
13291 if test "x-$use_no_stack_protector" = "x-yes" ; then
13292 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13296 #-----------------------------------------------------------------------------
13298 # Check if the target compiler supports some options used for delinting:
13299 # -Wunused-but-set-variable
13300 # -Warray-bounds
13301 # -Wenum-compare
13302 # -Wstrict-overflow
13303 # -Wformat-security
13305 if test "x-$crosstools" != "x-yes"; then
13306 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13307 CC="$orig_target_cc"
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13310 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13311 CFLAGS=-Wunused-but-set-variable
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13316 main ()
13320 return 0;
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 aros_unused_but_set_variable="yes"
13325 else
13326 aros_unused_but_set_variable="no"
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13330 $as_echo "$aros_unused_but_set_variable" >&6; }
13331 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13332 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13336 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13337 CFLAGS=-Warray-bounds
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13342 main ()
13346 return 0;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 aros_array_bounds="yes"
13351 else
13352 aros_array_bounds="no"
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13356 $as_echo "$aros_array_bounds" >&6; }
13357 if test "x-$aros_array_bounds" = "x-yes" ; then
13358 aros_cflags_array_bounds=-Wno-array-bounds
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13362 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13363 CFLAGS=-Wenum-compare
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13368 main ()
13372 return 0;
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 aros_enum_compare="yes"
13377 else
13378 aros_enum_compare="no"
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13382 $as_echo "$aros_enum_compare" >&6; }
13383 if test "x-$aros_enum_compare" = "x-yes" ; then
13384 aros_cflags_enum_compare=-Wno-enum-compare
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13388 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13389 CFLAGS=-Wstrict-overflow
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13394 main ()
13398 return 0;
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 aros_strict_overflow="yes"
13403 else
13404 aros_strict_overflow="no"
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13408 $as_echo "$aros_strict_overflow" >&6; }
13409 if test "x-$aros_strict_overflow" = "x-yes" ; then
13410 aros_cflags_strict_overflow=-Wno-strict-overflow
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13414 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13415 CFLAGS=-Wformat-security
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13420 main ()
13424 return 0;
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 aros_format_security="yes"
13429 else
13430 aros_format_security="no"
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13434 $as_echo "$aros_format_security" >&6; }
13435 if test "x-$aros_format_security" = "x-yes" ; then
13436 aros_cflags_format_security=-Wno-format-security
13438 else
13439 # We do not know which gcc version we are going to build and what we need to know
13440 # here is different for different versions so this will be set later during the
13441 # build of crosstools.
13442 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13443 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13444 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13445 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13446 aros_cflags_format_security=@aros_cflags_format_security@
13449 #-----------------------------------------------------------------------------
13451 # Check if we can explicitly choose older version of symbol hashing
13453 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13454 CC="$aros_kernel_cc"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13456 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 main ()
13465 return 0;
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 use_hash_style="yes"
13470 else
13471 use_hash_style="no"
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13476 $as_echo "$use_hash_style" >&6; }
13477 if test "x-$use_hash_style" = "x-yes" ; then
13478 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13480 CC="$save_cc"
13481 CFLAGS="$save_cflags"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13492 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13494 # Check whether --with-resolution was given.
13495 if test "${with_resolution+set}" = set; then :
13496 withval=$with_resolution; resolution=$withval
13497 else
13498 resolution=none
13501 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13502 if test "$resolution" = "yes" ; then
13503 resolution="none"
13505 if test "$resolution" = "no" ; then
13506 resolution="none"
13508 if test "$resolution" != "none" ; then
13509 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13510 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13511 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13514 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13515 aros_cv_default_wbwidth=$aros_default_wbwidth
13516 aros_cv_default_wbheight=$aros_default_wbheight
13517 aros_cv_default_wbdepth=$aros_default_wbdepth
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13520 $as_echo_n "checking if serial debug is enabled... " >&6; }
13522 # Check whether --with-serial-debug was given.
13523 if test "${with_serial_debug+set}" = set; then :
13524 withval=$with_serial_debug; serial_debug=$withval
13525 else
13526 serial_debug=none
13529 if test "$aros_serial_debug" = 0 ; then
13530 serial_debug_forced=""
13531 if test "$serial_debug" = "yes" ; then
13532 serial_debug="1"
13534 if test "$serial_debug" = "no" ; then
13535 serial_debug="none"
13537 else
13538 serial_debug_forced="(forced)"
13539 serial_debug=$aros_serial_debug
13541 if test "$serial_debug" != "none" ; then
13542 aros_serial_debug=$serial_debug
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13544 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13551 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13552 # Check whether --enable-palm_debug_hack was given.
13553 if test "${enable_palm_debug_hack+set}" = set; then :
13554 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13555 else
13556 palm_debug_hack="no"
13559 if test "$palm_debug_hack" = "yes" ; then
13560 aros_palm_debug_hack="1"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13563 $as_echo "$palm_debug_hack" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13566 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13567 # Check whether --enable-usb30_code was given.
13568 if test "${enable_usb30_code+set}" = set; then :
13569 enableval=$enable_usb30_code; usb30_code="yes"
13570 else
13571 usb30_code="no"
13574 if test "$usb30_code" = "yes" ; then
13575 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13576 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13579 $as_echo "$usb30_code" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13582 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13583 # Check whether --enable-nesting_supervisor was given.
13584 if test "${enable_nesting_supervisor+set}" = set; then :
13585 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13586 else
13587 nesting_supervisor="no"
13590 if test "$nesting_supervisor" = "yes" ; then
13591 aros_nesting_supervisor="1"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13594 $as_echo "$nesting_supervisor" >&6; }
13596 if test "$aros_enable_mmu" = "" ; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13598 $as_echo_n "checking if MMU support is enabled... " >&6; }
13599 # Check whether --enable-mmu was given.
13600 if test "${enable_mmu+set}" = set; then :
13601 enableval=$enable_mmu; aros_enable_mmu=$enableval
13602 else
13603 aros_enable_mmu="yes"
13606 if test "$aros_enable_mmu" = "" ; then
13607 aros_enable_mmu="yes"
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13610 $as_echo "$aros_enable_mmu" >&6; }
13612 if test "$aros_enable_mmu" = "no" ; then
13613 aros_enable_mmu="0"
13614 else
13615 aros_enable_mmu="1"
13619 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13621 if test "x-$need_dlopen" != "x-no" ; then
13622 save_libs="$LIBS"
13623 LIBS=""
13624 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13625 if test "x$ac_cv_func_dlopen" = xyes; then :
13626 have_dl="yes"
13627 else
13628 have_dl="no"
13631 if test "x-$have_dl" = "x-no" ; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13634 if ${ac_cv_lib_dl_dlopen+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-ldl $LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char dlopen ();
13650 main ()
13652 return dlopen ();
13654 return 0;
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 ac_cv_lib_dl_dlopen=yes
13659 else
13660 ac_cv_lib_dl_dlopen=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13667 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13668 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13669 have_dl="yes"
13670 aros_host_ldflags="$aros_host_ldflags -ldl"
13671 else
13672 have_dl="no"
13676 if test "x-$have_dl" = "x-no" ; then
13677 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13679 LIBS="$save_libs"
13683 # Check whether --enable-x11_hidd was given.
13684 if test "${enable_x11_hidd+set}" = set; then :
13685 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13686 else
13687 x11_hidd="$need_x11"
13690 case "x-$x11_hidd" in
13691 x-yes|x-no|x-auto) ;;
13692 *) x11_hidd="$need_x11" ;;
13693 esac
13695 ENABLE_X11=0
13697 if test "x-$x11_hidd" != "x-no" ; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13700 $as_echo_n "checking for X... " >&6; }
13703 # Check whether --with-x was given.
13704 if test "${with_x+set}" = set; then :
13705 withval=$with_x;
13708 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13709 if test "x$with_x" = xno; then
13710 # The user explicitly disabled X.
13711 have_x=disabled
13712 else
13713 case $x_includes,$x_libraries in #(
13714 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13715 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 # One or both of the vars are not set, and there is no cached value.
13719 ac_x_includes=no ac_x_libraries=no
13720 rm -f -r conftest.dir
13721 if mkdir conftest.dir; then
13722 cd conftest.dir
13723 cat >Imakefile <<'_ACEOF'
13724 incroot:
13725 @echo incroot='${INCROOT}'
13726 usrlibdir:
13727 @echo usrlibdir='${USRLIBDIR}'
13728 libdir:
13729 @echo libdir='${LIBDIR}'
13730 _ACEOF
13731 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13733 for ac_var in incroot usrlibdir libdir; do
13734 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13735 done
13736 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13737 for ac_extension in a so sl dylib la dll; do
13738 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13739 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13740 ac_im_usrlibdir=$ac_im_libdir; break
13742 done
13743 # Screen out bogus values from the imake configuration. They are
13744 # bogus both because they are the default anyway, and because
13745 # using them would break gcc on systems where it needs fixed includes.
13746 case $ac_im_incroot in
13747 /usr/include) ac_x_includes= ;;
13748 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13749 esac
13750 case $ac_im_usrlibdir in
13751 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13752 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13753 esac
13755 cd ..
13756 rm -f -r conftest.dir
13759 # Standard set of common directories for X headers.
13760 # Check X11 before X11Rn because it is often a symlink to the current release.
13761 ac_x_header_dirs='
13762 /usr/X11/include
13763 /usr/X11R7/include
13764 /usr/X11R6/include
13765 /usr/X11R5/include
13766 /usr/X11R4/include
13768 /usr/include/X11
13769 /usr/include/X11R7
13770 /usr/include/X11R6
13771 /usr/include/X11R5
13772 /usr/include/X11R4
13774 /usr/local/X11/include
13775 /usr/local/X11R7/include
13776 /usr/local/X11R6/include
13777 /usr/local/X11R5/include
13778 /usr/local/X11R4/include
13780 /usr/local/include/X11
13781 /usr/local/include/X11R7
13782 /usr/local/include/X11R6
13783 /usr/local/include/X11R5
13784 /usr/local/include/X11R4
13786 /usr/X386/include
13787 /usr/x386/include
13788 /usr/XFree86/include/X11
13790 /usr/include
13791 /usr/local/include
13792 /usr/unsupported/include
13793 /usr/athena/include
13794 /usr/local/x11r5/include
13795 /usr/lpp/Xamples/include
13797 /usr/openwin/include
13798 /usr/openwin/share/include'
13800 if test "$ac_x_includes" = no; then
13801 # Guess where to find include files, by looking for Xlib.h.
13802 # First, try using that file with no special directory specified.
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #include <X11/Xlib.h>
13806 _ACEOF
13807 if ac_fn_c_try_cpp "$LINENO"; then :
13808 # We can compile using X headers with no special include directory.
13809 ac_x_includes=
13810 else
13811 for ac_dir in $ac_x_header_dirs; do
13812 if test -r "$ac_dir/X11/Xlib.h"; then
13813 ac_x_includes=$ac_dir
13814 break
13816 done
13818 rm -f conftest.err conftest.i conftest.$ac_ext
13819 fi # $ac_x_includes = no
13821 if test "$ac_x_libraries" = no; then
13822 # Check for the libraries.
13823 # See if we find them without any special options.
13824 # Don't add to $LIBS permanently.
13825 ac_save_LIBS=$LIBS
13826 LIBS="-lX11 $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829 #include <X11/Xlib.h>
13831 main ()
13833 XrmInitialize ()
13835 return 0;
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 LIBS=$ac_save_LIBS
13840 # We can link X programs with no special library path.
13841 ac_x_libraries=
13842 else
13843 LIBS=$ac_save_LIBS
13844 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13846 # Don't even attempt the hair of trying to link an X program!
13847 for ac_extension in a so sl dylib la dll; do
13848 if test -r "$ac_dir/libX11.$ac_extension"; then
13849 ac_x_libraries=$ac_dir
13850 break 2
13852 done
13853 done
13855 rm -f core conftest.err conftest.$ac_objext \
13856 conftest$ac_exeext conftest.$ac_ext
13857 fi # $ac_x_libraries = no
13859 case $ac_x_includes,$ac_x_libraries in #(
13860 no,* | *,no | *\'*)
13861 # Didn't find X, or a directory has "'" in its name.
13862 ac_cv_have_x="have_x=no";; #(
13864 # Record where we found X for the cache.
13865 ac_cv_have_x="have_x=yes\
13866 ac_x_includes='$ac_x_includes'\
13867 ac_x_libraries='$ac_x_libraries'"
13868 esac
13870 ;; #(
13871 *) have_x=yes;;
13872 esac
13873 eval "$ac_cv_have_x"
13874 fi # $with_x != no
13876 if test "$have_x" != yes; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13878 $as_echo "$have_x" >&6; }
13879 no_x=yes
13880 else
13881 # If each of the values was on the command line, it overrides each guess.
13882 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13883 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13884 # Update the cache value to reflect the command line values.
13885 ac_cv_have_x="have_x=yes\
13886 ac_x_includes='$x_includes'\
13887 ac_x_libraries='$x_libraries'"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13889 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13893 x_cflags=
13894 for path in $x_libraries
13896 x_cflags="$x_cflags -L$path"
13897 done
13899 for path in $x_includes
13901 x_cflags="$x_cflags -I$path"
13902 done
13904 if test "x-$no_x" = "x-yes" ; then
13906 if test "x-$x11_hidd" != "x-auto" ; then
13907 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13910 else
13911 unixgfx_hidd_target=kernel-x11gfx
13912 ENABLE_X11=1
13914 # Check whether --enable-x11_shm was given.
13915 if test "${enable_x11_shm+set}" = set; then :
13916 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13917 else
13918 x11_hidd_shm="auto"
13921 case "x-$x11_hidd_shm" in
13922 x-yes|x-no|x-auto) ;;
13923 *) x11_hidd_shm="auto" ;;
13924 esac
13926 have_xshm=no
13928 if test "x-$x11_hidd_shm" != "x-no" ; then
13930 for ac_header in sys/ipc.h
13931 do :
13932 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13933 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13934 cat >>confdefs.h <<_ACEOF
13935 #define HAVE_SYS_IPC_H 1
13936 _ACEOF
13940 done
13942 for ac_header in sys/shm.h
13943 do :
13944 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13945 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_SYS_SHM_H 1
13948 _ACEOF
13952 done
13955 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13957 save_cflags="$CFLAGS"
13958 CFLAGS="$CFLAGS $x_cflags"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13960 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13961 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-lXext $LIBS"
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 /* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 char XShmQueryExtension ();
13977 main ()
13979 return XShmQueryExtension ();
13981 return 0;
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985 ac_cv_lib_Xext_XShmQueryExtension=yes
13986 else
13987 ac_cv_lib_Xext_XShmQueryExtension=no
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13994 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13995 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13996 have_xshm=yes
13999 CFLAGS="$save_cflags"
14003 if test "x-$have_xshm" = "x-yes" ; then
14004 DO_XSHM_SUPPORT="1"
14005 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14006 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14007 else
14008 DO_XSHM_SUPPORT="0"
14012 # Check whether --enable-x11_vidmode was given.
14013 if test "${enable_x11_vidmode+set}" = set; then :
14014 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14015 else
14016 x11_hidd_vidmode="auto"
14019 case "x-$x11_hidd_vidmode" in
14020 x-yes|x-no|x-auto) ;;
14021 *) x11_hidd_vidmode="auto" ;;
14022 esac
14024 have_vidmode=no
14026 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14028 save_cflags="$CFLAGS"
14029 CFLAGS="$CFLAGS $x_cflags"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14031 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14032 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lXxf86vm $LIBS"
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 char XF86VidModeQueryExtension ();
14048 main ()
14050 return XF86VidModeQueryExtension ();
14052 return 0;
14054 _ACEOF
14055 if ac_fn_c_try_link "$LINENO"; then :
14056 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14057 else
14058 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14065 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14066 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14067 have_vidmode=yes
14070 CFLAGS="$save_cflags"
14073 if test "x-$have_vidmode" = "x-yes" ; then
14074 DO_VIDMODE_SUPPORT="1"
14075 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14076 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14077 else
14078 DO_VIDMODE_SUPPORT="0"
14082 aros_host_x11_includes=$x_includes
14083 aros_host_x11_libdirs=$x_libraries
14087 # Check whether --enable-sdl_hidd was given.
14088 if test "${enable_sdl_hidd+set}" = set; then :
14089 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14090 else
14091 sdl_hidd="auto"
14094 case "x-$sdl_hidd" in
14095 x-yes|x-no|x-auto) ;;
14096 *) sdl_hidd="auto" ;;
14097 esac
14099 if test "x-$sdl_hidd" != "x-no" ; then
14102 # Check whether --with-sdl-prefix was given.
14103 if test "${with_sdl_prefix+set}" = set; then :
14104 withval=$with_sdl_prefix; sdl_prefix="$withval"
14105 else
14106 sdl_prefix=""
14110 # Check whether --with-sdl-exec-prefix was given.
14111 if test "${with_sdl_exec_prefix+set}" = set; then :
14112 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14113 else
14114 sdl_exec_prefix=""
14117 # Check whether --enable-sdltest was given.
14118 if test "${enable_sdltest+set}" = set; then :
14119 enableval=$enable_sdltest;
14120 else
14121 enable_sdltest=yes
14125 if test x$sdl_exec_prefix != x ; then
14126 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14127 if test x${SDL_CONFIG+set} != xset ; then
14128 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14131 if test x$sdl_prefix != x ; then
14132 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14133 if test x${SDL_CONFIG+set} != xset ; then
14134 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14138 as_save_PATH="$PATH"
14139 if test "x$prefix" != xNONE; then
14140 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14142 # Extract the first word of "sdl-config", so it can be a program name with args.
14143 set dummy sdl-config; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 case $SDL_CONFIG in
14150 [\\/]* | ?:[\\/]*)
14151 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14165 done
14166 done
14167 IFS=$as_save_IFS
14169 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14171 esac
14173 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14174 if test -n "$SDL_CONFIG"; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14176 $as_echo "$SDL_CONFIG" >&6; }
14177 else
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; }
14183 PATH="$as_save_PATH"
14184 min_sdl_version=1.2.10
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14186 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14187 no_sdl=""
14188 if test "$SDL_CONFIG" = "no" ; then
14189 no_sdl=yes
14190 else
14191 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14192 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14194 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14196 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14198 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14200 if test "x$enable_sdltest" = "xyes" ; then
14201 ac_save_CFLAGS="$CFLAGS"
14202 ac_save_CXXFLAGS="$CXXFLAGS"
14203 ac_save_LIBS="$LIBS"
14204 CFLAGS="$CFLAGS $SDL_CFLAGS"
14205 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14206 LIBS="$LIBS $SDL_LIBS"
14207 rm -f conf.sdltest
14208 if test "$cross_compiling" = yes; then :
14209 echo $ac_n "cross compiling; assumed OK... $ac_c"
14210 else
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14214 #include <stdio.h>
14215 #include <stdlib.h>
14216 #include <string.h>
14217 #include "SDL.h"
14219 char*
14220 my_strdup (char *str)
14222 char *new_str;
14224 if (str)
14226 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14227 strcpy (new_str, str);
14229 else
14230 new_str = NULL;
14232 return new_str;
14235 int main (int argc, char *argv[])
14237 int major, minor, micro;
14238 char *tmp_version;
14240 /* This hangs on some systems (?)
14241 system ("touch conf.sdltest");
14243 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14245 /* HP/UX 9 (%@#!) writes to sscanf strings */
14246 tmp_version = my_strdup("$min_sdl_version");
14247 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14248 printf("%s, bad version string\n", "$min_sdl_version");
14249 exit(1);
14252 if (($sdl_major_version > major) ||
14253 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14254 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14256 return 0;
14258 else
14260 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14261 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14262 printf("*** best to upgrade to the required version.\n");
14263 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14264 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14265 printf("*** config.cache before re-running configure\n");
14266 return 1;
14271 _ACEOF
14272 if ac_fn_c_try_run "$LINENO"; then :
14274 else
14275 no_sdl=yes
14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14278 conftest.$ac_objext conftest.beam conftest.$ac_ext
14281 CFLAGS="$ac_save_CFLAGS"
14282 CXXFLAGS="$ac_save_CXXFLAGS"
14283 LIBS="$ac_save_LIBS"
14286 if test "x$no_sdl" = x ; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14288 $as_echo "yes" >&6; }
14289 have_sdl="yes"
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14293 if test "$SDL_CONFIG" = "no" ; then
14294 echo "*** The sdl-config script installed by SDL could not be found"
14295 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14296 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14297 echo "*** full path to sdl-config."
14298 else
14299 if test -f conf.sdltest ; then
14301 else
14302 echo "*** Could not run SDL test program, checking why..."
14303 CFLAGS="$CFLAGS $SDL_CFLAGS"
14304 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14305 LIBS="$LIBS $SDL_LIBS"
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14309 #include <stdio.h>
14310 #include "SDL.h"
14312 int main(int argc, char *argv[])
14313 { return 0; }
14314 #undef main
14315 #define main K_and_R_C_main
14318 main ()
14320 return 0;
14322 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 echo "*** The test program compiled, but did not run. This usually means"
14327 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14328 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14329 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14330 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14331 echo "*** is required on your system"
14332 echo "***"
14333 echo "*** If you have an old version installed, it is best to remove it, although"
14334 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14335 else
14336 echo "*** The test program failed to compile or link. See the file config.log for the"
14337 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14338 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14339 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14341 rm -f core conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14343 CFLAGS="$ac_save_CFLAGS"
14344 CXXFLAGS="$ac_save_CXXFLAGS"
14345 LIBS="$ac_save_LIBS"
14348 SDL_CFLAGS=""
14349 SDL_LIBS=""
14350 have_sdl="no"
14354 rm -f conf.sdltest
14357 if test "x-$have_sdl" != "x-yes" ; then
14359 if test "x-$sdl_hidd" != "x-auto" ; then
14360 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14363 else
14364 sdl_hidd_target=kernel-hidd-sdl
14365 aros_host_sdl_cflags=SDL_CFLAGS
14366 aros_host_sdl_libs=SDL_LIBS
14370 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14371 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14376 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14377 oss_library_target=workbench-libs-oss-unix
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14383 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14384 # Check whether --enable-dbus was given.
14385 if test "${enable_dbus+set}" = set; then :
14386 enableval=$enable_dbus; dbus="yes"
14387 else
14388 dbus="no"
14391 if test "$dbus" = "yes" ; then
14392 ENABLE_DBUS=1
14393 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14394 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14395 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14396 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14397 else
14398 ENABLE_DBUS=0
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14401 $as_echo "$dbus" >&6; }
14403 if test "$use_kernel_cc_wrapper" = "yes" ; then
14404 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14407 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
14408 aros_target_toolchain=yes
14409 else
14410 aros_target_toolchain=no
14414 # Generic
14426 # Compatability with other Amiga-like operation systems
14429 # Host related
14457 # Target Related
14522 # Delinting target compiler flags
14529 # Graphics Related
14546 # Native version related
14549 # Palm native version related
14552 # Unix/Hosted version related
14555 # MMU related
14558 # Apple iOS related
14563 # ARM default GCC target related
14569 # Android related
14574 # DBUS related
14581 #X11 related
14584 # Debug related
14590 # Collect-aros stuff: "-ius" to ignore undefined symbols
14593 # C compiler related
14597 #ObjC compiler related
14600 # USB3.0 code
14603 case "$aros_flavour" in
14604 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14605 aros_flavour="emulation" ;;
14606 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14607 aros_flavour="emulation" ;;
14608 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14609 aros_flavour="standalone";;
14610 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14611 aros_flavour="standalone";;
14612 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14613 aros_flavour="native" ;;
14614 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14615 aros_flavour="native" ;;
14616 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14617 aros_flavour="linklib" ;;
14618 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14619 aros_flavour="palmnative" ;;
14620 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14621 aros_flavour="mac68knative" ;;
14622 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14623 aros_flavour="ppcnative" ;;
14624 esac
14626 if test ! -d ${aros_inc_dir} ; then
14627 ${MKDIR} ${aros_inc_dir}
14629 if test ! -d ${aros_geninc_dir} ; then
14630 ${MKDIR} ${aros_geninc_dir}
14632 if test ! -d ${aros_hostcfg_dir} ; then
14633 ${MKDIR} ${aros_hostcfg_dir}
14635 if test ! -d ${aros_targetcfg_dir} ; then
14636 ${MKDIR} ${aros_targetcfg_dir}
14638 if test ! -d ${aros_tools_dir} ; then
14639 ${MKDIR} ${aros_tools_dir}
14641 if test ! -d ${aros_scripts_dir} ; then
14642 ${MKDIR} ${aros_scripts_dir}
14645 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14648 ac_config_commands="$ac_config_commands compiler_executable"
14650 ac_config_commands="$ac_config_commands genmf_executable"
14653 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_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_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 ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14656 cat >confcache <<\_ACEOF
14657 # This file is a shell script that caches the results of configure
14658 # tests run on this system so they can be shared between configure
14659 # scripts and configure runs, see configure's option --config-cache.
14660 # It is not useful on other systems. If it contains results you don't
14661 # want to keep, you may remove or edit it.
14663 # config.status only pays attention to the cache file if you give it
14664 # the --recheck option to rerun configure.
14666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14668 # following values.
14670 _ACEOF
14672 # The following way of writing the cache mishandles newlines in values,
14673 # but we know of no workaround that is simple, portable, and efficient.
14674 # So, we kill variables containing newlines.
14675 # Ultrix sh set writes to stderr and can't be redirected directly,
14676 # and sets the high bit in the cache file unless we assign to the vars.
14678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14679 eval ac_val=\$$ac_var
14680 case $ac_val in #(
14681 *${as_nl}*)
14682 case $ac_var in #(
14683 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14685 esac
14686 case $ac_var in #(
14687 _ | IFS | as_nl) ;; #(
14688 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14689 *) { eval $ac_var=; unset $ac_var;} ;;
14690 esac ;;
14691 esac
14692 done
14694 (set) 2>&1 |
14695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14696 *${as_nl}ac_space=\ *)
14697 # `set' does not quote correctly, so add quotes: double-quote
14698 # substitution turns \\\\ into \\, and sed turns \\ into \.
14699 sed -n \
14700 "s/'/'\\\\''/g;
14701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14702 ;; #(
14704 # `set' quotes correctly as required by POSIX, so do not add quotes.
14705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14707 esac |
14708 sort
14710 sed '
14711 /^ac_cv_env_/b end
14712 t clear
14713 :clear
14714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14715 t end
14716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14717 :end' >>confcache
14718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14719 if test -w "$cache_file"; then
14720 if test "x$cache_file" != "x/dev/null"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14722 $as_echo "$as_me: updating cache $cache_file" >&6;}
14723 if test ! -f "$cache_file" || test -h "$cache_file"; then
14724 cat confcache >"$cache_file"
14725 else
14726 case $cache_file in #(
14727 */* | ?:*)
14728 mv -f confcache "$cache_file"$$ &&
14729 mv -f "$cache_file"$$ "$cache_file" ;; #(
14731 mv -f confcache "$cache_file" ;;
14732 esac
14735 else
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14737 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14740 rm -f confcache
14742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14743 # Let make expand exec_prefix.
14744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14746 DEFS=-DHAVE_CONFIG_H
14748 ac_libobjs=
14749 ac_ltlibobjs=
14751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14752 # 1. Remove the extension, and $U if already installed.
14753 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14754 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14756 # will be set to the directory where LIBOBJS objects are built.
14757 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14758 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14759 done
14760 LIBOBJS=$ac_libobjs
14762 LTLIBOBJS=$ac_ltlibobjs
14766 : "${CONFIG_STATUS=./config.status}"
14767 ac_write_fail=0
14768 ac_clean_files_save=$ac_clean_files
14769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14772 as_write_fail=0
14773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14774 #! $SHELL
14775 # Generated by $as_me.
14776 # Run this file to recreate the current configuration.
14777 # Compiler output produced by configure, useful for debugging
14778 # configure, is in config.log if it exists.
14780 debug=false
14781 ac_cs_recheck=false
14782 ac_cs_silent=false
14784 SHELL=\${CONFIG_SHELL-$SHELL}
14785 export SHELL
14786 _ASEOF
14787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14788 ## -------------------- ##
14789 ## M4sh Initialization. ##
14790 ## -------------------- ##
14792 # Be more Bourne compatible
14793 DUALCASE=1; export DUALCASE # for MKS sh
14794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14795 emulate sh
14796 NULLCMD=:
14797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14798 # is contrary to our usage. Disable this feature.
14799 alias -g '${1+"$@"}'='"$@"'
14800 setopt NO_GLOB_SUBST
14801 else
14802 case `(set -o) 2>/dev/null` in #(
14803 *posix*) :
14804 set -o posix ;; #(
14805 *) :
14807 esac
14811 as_nl='
14813 export as_nl
14814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14818 # Prefer a ksh shell builtin over an external printf program on Solaris,
14819 # but without wasting forks for bash or zsh.
14820 if test -z "$BASH_VERSION$ZSH_VERSION" \
14821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14822 as_echo='print -r --'
14823 as_echo_n='print -rn --'
14824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14825 as_echo='printf %s\n'
14826 as_echo_n='printf %s'
14827 else
14828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14830 as_echo_n='/usr/ucb/echo -n'
14831 else
14832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14833 as_echo_n_body='eval
14834 arg=$1;
14835 case $arg in #(
14836 *"$as_nl"*)
14837 expr "X$arg" : "X\\(.*\\)$as_nl";
14838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14839 esac;
14840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14842 export as_echo_n_body
14843 as_echo_n='sh -c $as_echo_n_body as_echo'
14845 export as_echo_body
14846 as_echo='sh -c $as_echo_body as_echo'
14849 # The user is always right.
14850 if test "${PATH_SEPARATOR+set}" != set; then
14851 PATH_SEPARATOR=:
14852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14854 PATH_SEPARATOR=';'
14859 # IFS
14860 # We need space, tab and new line, in precisely that order. Quoting is
14861 # there to prevent editors from complaining about space-tab.
14862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14863 # splitting by setting IFS to empty value.)
14864 IFS=" "" $as_nl"
14866 # Find who we are. Look in the path if we contain no directory separator.
14867 as_myself=
14868 case $0 in #((
14869 *[\\/]* ) as_myself=$0 ;;
14870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871 for as_dir in $PATH
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14876 done
14877 IFS=$as_save_IFS
14880 esac
14881 # We did not find ourselves, most probably we were run as `sh COMMAND'
14882 # in which case we are not to be found in the path.
14883 if test "x$as_myself" = x; then
14884 as_myself=$0
14886 if test ! -f "$as_myself"; then
14887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14888 exit 1
14891 # Unset variables that we do not need and which cause bugs (e.g. in
14892 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14893 # suppresses any "Segmentation fault" message there. '((' could
14894 # trigger a bug in pdksh 5.2.14.
14895 for as_var in BASH_ENV ENV MAIL MAILPATH
14896 do eval test x\${$as_var+set} = xset \
14897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14898 done
14899 PS1='$ '
14900 PS2='> '
14901 PS4='+ '
14903 # NLS nuisances.
14904 LC_ALL=C
14905 export LC_ALL
14906 LANGUAGE=C
14907 export LANGUAGE
14909 # CDPATH.
14910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14914 # ----------------------------------------
14915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14917 # script with STATUS, using 1 if that was 0.
14918 as_fn_error ()
14920 as_status=$1; test $as_status -eq 0 && as_status=1
14921 if test "$4"; then
14922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14925 $as_echo "$as_me: error: $2" >&2
14926 as_fn_exit $as_status
14927 } # as_fn_error
14930 # as_fn_set_status STATUS
14931 # -----------------------
14932 # Set $? to STATUS, without forking.
14933 as_fn_set_status ()
14935 return $1
14936 } # as_fn_set_status
14938 # as_fn_exit STATUS
14939 # -----------------
14940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14941 as_fn_exit ()
14943 set +e
14944 as_fn_set_status $1
14945 exit $1
14946 } # as_fn_exit
14948 # as_fn_unset VAR
14949 # ---------------
14950 # Portably unset VAR.
14951 as_fn_unset ()
14953 { eval $1=; unset $1;}
14955 as_unset=as_fn_unset
14956 # as_fn_append VAR VALUE
14957 # ----------------------
14958 # Append the text in VALUE to the end of the definition contained in VAR. Take
14959 # advantage of any shell optimizations that allow amortized linear growth over
14960 # repeated appends, instead of the typical quadratic growth present in naive
14961 # implementations.
14962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14963 eval 'as_fn_append ()
14965 eval $1+=\$2
14967 else
14968 as_fn_append ()
14970 eval $1=\$$1\$2
14972 fi # as_fn_append
14974 # as_fn_arith ARG...
14975 # ------------------
14976 # Perform arithmetic evaluation on the ARGs, and store the result in the
14977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14978 # must be portable across $(()) and expr.
14979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14980 eval 'as_fn_arith ()
14982 as_val=$(( $* ))
14984 else
14985 as_fn_arith ()
14987 as_val=`expr "$@" || test $? -eq 1`
14989 fi # as_fn_arith
14992 if expr a : '\(a\)' >/dev/null 2>&1 &&
14993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14994 as_expr=expr
14995 else
14996 as_expr=false
14999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15000 as_basename=basename
15001 else
15002 as_basename=false
15005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15006 as_dirname=dirname
15007 else
15008 as_dirname=false
15011 as_me=`$as_basename -- "$0" ||
15012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15013 X"$0" : 'X\(//\)$' \| \
15014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15015 $as_echo X/"$0" |
15016 sed '/^.*\/\([^/][^/]*\)\/*$/{
15017 s//\1/
15020 /^X\/\(\/\/\)$/{
15021 s//\1/
15024 /^X\/\(\/\).*/{
15025 s//\1/
15028 s/.*/./; q'`
15030 # Avoid depending upon Character Ranges.
15031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15034 as_cr_digits='0123456789'
15035 as_cr_alnum=$as_cr_Letters$as_cr_digits
15037 ECHO_C= ECHO_N= ECHO_T=
15038 case `echo -n x` in #(((((
15039 -n*)
15040 case `echo 'xy\c'` in
15041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15042 xy) ECHO_C='\c';;
15043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15044 ECHO_T=' ';;
15045 esac;;
15047 ECHO_N='-n';;
15048 esac
15050 rm -f conf$$ conf$$.exe conf$$.file
15051 if test -d conf$$.dir; then
15052 rm -f conf$$.dir/conf$$.file
15053 else
15054 rm -f conf$$.dir
15055 mkdir conf$$.dir 2>/dev/null
15057 if (echo >conf$$.file) 2>/dev/null; then
15058 if ln -s conf$$.file conf$$ 2>/dev/null; then
15059 as_ln_s='ln -s'
15060 # ... but there are two gotchas:
15061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15063 # In both cases, we have to default to `cp -pR'.
15064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15065 as_ln_s='cp -pR'
15066 elif ln conf$$.file conf$$ 2>/dev/null; then
15067 as_ln_s=ln
15068 else
15069 as_ln_s='cp -pR'
15071 else
15072 as_ln_s='cp -pR'
15074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15075 rmdir conf$$.dir 2>/dev/null
15078 # as_fn_mkdir_p
15079 # -------------
15080 # Create "$as_dir" as a directory, including parents if necessary.
15081 as_fn_mkdir_p ()
15084 case $as_dir in #(
15085 -*) as_dir=./$as_dir;;
15086 esac
15087 test -d "$as_dir" || eval $as_mkdir_p || {
15088 as_dirs=
15089 while :; do
15090 case $as_dir in #(
15091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15092 *) as_qdir=$as_dir;;
15093 esac
15094 as_dirs="'$as_qdir' $as_dirs"
15095 as_dir=`$as_dirname -- "$as_dir" ||
15096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097 X"$as_dir" : 'X\(//\)[^/]' \| \
15098 X"$as_dir" : 'X\(//\)$' \| \
15099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15100 $as_echo X"$as_dir" |
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15102 s//\1/
15105 /^X\(\/\/\)[^/].*/{
15106 s//\1/
15109 /^X\(\/\/\)$/{
15110 s//\1/
15113 /^X\(\/\).*/{
15114 s//\1/
15117 s/.*/./; q'`
15118 test -d "$as_dir" && break
15119 done
15120 test -z "$as_dirs" || eval "mkdir $as_dirs"
15121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15124 } # as_fn_mkdir_p
15125 if mkdir -p . 2>/dev/null; then
15126 as_mkdir_p='mkdir -p "$as_dir"'
15127 else
15128 test -d ./-p && rmdir ./-p
15129 as_mkdir_p=false
15133 # as_fn_executable_p FILE
15134 # -----------------------
15135 # Test if FILE is an executable regular file.
15136 as_fn_executable_p ()
15138 test -f "$1" && test -x "$1"
15139 } # as_fn_executable_p
15140 as_test_x='test -x'
15141 as_executable_p=as_fn_executable_p
15143 # Sed expression to map a string onto a valid CPP name.
15144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15146 # Sed expression to map a string onto a valid variable name.
15147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15150 exec 6>&1
15151 ## ----------------------------------- ##
15152 ## Main body of $CONFIG_STATUS script. ##
15153 ## ----------------------------------- ##
15154 _ASEOF
15155 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15158 # Save the log message, to keep $0 and so on meaningful, and to
15159 # report actual input values of CONFIG_FILES etc. instead of their
15160 # values after options handling.
15161 ac_log="
15162 This file was extended by $as_me, which was
15163 generated by GNU Autoconf 2.69. Invocation command line was
15165 CONFIG_FILES = $CONFIG_FILES
15166 CONFIG_HEADERS = $CONFIG_HEADERS
15167 CONFIG_LINKS = $CONFIG_LINKS
15168 CONFIG_COMMANDS = $CONFIG_COMMANDS
15169 $ $0 $@
15171 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15174 _ACEOF
15176 case $ac_config_files in *"
15177 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15178 esac
15180 case $ac_config_headers in *"
15181 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15182 esac
15185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15186 # Files that config.status was made for.
15187 config_files="$ac_config_files"
15188 config_headers="$ac_config_headers"
15189 config_commands="$ac_config_commands"
15191 _ACEOF
15193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15194 ac_cs_usage="\
15195 \`$as_me' instantiates files and other configuration actions
15196 from templates according to the current configuration. Unless the files
15197 and actions are specified as TAGs, all are instantiated by default.
15199 Usage: $0 [OPTION]... [TAG]...
15201 -h, --help print this help, then exit
15202 -V, --version print version number and configuration settings, then exit
15203 --config print configuration, then exit
15204 -q, --quiet, --silent
15205 do not print progress messages
15206 -d, --debug don't remove temporary files
15207 --recheck update $as_me by reconfiguring in the same conditions
15208 --file=FILE[:TEMPLATE]
15209 instantiate the configuration file FILE
15210 --header=FILE[:TEMPLATE]
15211 instantiate the configuration header FILE
15213 Configuration files:
15214 $config_files
15216 Configuration headers:
15217 $config_headers
15219 Configuration commands:
15220 $config_commands
15222 Report bugs to the package provider."
15224 _ACEOF
15225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15227 ac_cs_version="\\
15228 config.status
15229 configured by $0, generated by GNU Autoconf 2.69,
15230 with options \\"\$ac_cs_config\\"
15232 Copyright (C) 2012 Free Software Foundation, Inc.
15233 This config.status script is free software; the Free Software Foundation
15234 gives unlimited permission to copy, distribute and modify it."
15236 ac_pwd='$ac_pwd'
15237 srcdir='$srcdir'
15238 test -n "\$AWK" || AWK=awk
15239 _ACEOF
15241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242 # The default lists apply if the user does not specify any file.
15243 ac_need_defaults=:
15244 while test $# != 0
15246 case $1 in
15247 --*=?*)
15248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15250 ac_shift=:
15252 --*=)
15253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15254 ac_optarg=
15255 ac_shift=:
15258 ac_option=$1
15259 ac_optarg=$2
15260 ac_shift=shift
15262 esac
15264 case $ac_option in
15265 # Handling of the options.
15266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15267 ac_cs_recheck=: ;;
15268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15269 $as_echo "$ac_cs_version"; exit ;;
15270 --config | --confi | --conf | --con | --co | --c )
15271 $as_echo "$ac_cs_config"; exit ;;
15272 --debug | --debu | --deb | --de | --d | -d )
15273 debug=: ;;
15274 --file | --fil | --fi | --f )
15275 $ac_shift
15276 case $ac_optarg in
15277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15278 '') as_fn_error $? "missing file argument" ;;
15279 esac
15280 as_fn_append CONFIG_FILES " '$ac_optarg'"
15281 ac_need_defaults=false;;
15282 --header | --heade | --head | --hea )
15283 $ac_shift
15284 case $ac_optarg in
15285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15286 esac
15287 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15288 ac_need_defaults=false;;
15289 --he | --h)
15290 # Conflict between --help and --header
15291 as_fn_error $? "ambiguous option: \`$1'
15292 Try \`$0 --help' for more information.";;
15293 --help | --hel | -h )
15294 $as_echo "$ac_cs_usage"; exit ;;
15295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15297 ac_cs_silent=: ;;
15299 # This is an error.
15300 -*) as_fn_error $? "unrecognized option: \`$1'
15301 Try \`$0 --help' for more information." ;;
15303 *) as_fn_append ac_config_targets " $1"
15304 ac_need_defaults=false ;;
15306 esac
15307 shift
15308 done
15310 ac_configure_extra_args=
15312 if $ac_cs_silent; then
15313 exec 6>/dev/null
15314 ac_configure_extra_args="$ac_configure_extra_args --silent"
15317 _ACEOF
15318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15319 if \$ac_cs_recheck; then
15320 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15321 shift
15322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15323 CONFIG_SHELL='$SHELL'
15324 export CONFIG_SHELL
15325 exec "\$@"
15328 _ACEOF
15329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330 exec 5>>config.log
15332 echo
15333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15334 ## Running $as_me. ##
15335 _ASBOX
15336 $as_echo "$ac_log"
15337 } >&5
15339 _ACEOF
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342 # INIT-COMMANDS
15345 aros_host_exe_suffix=${aros_host_exe_suffix}
15346 aros_tools_dir=${aros_tools_dir}
15347 aros_target_cpu=${aros_target_cpu}
15348 aros_target_arch=${aros_target_arch}
15349 aros_target_suffix=${aros_target_suffix}
15350 orig_target_nm=${orig_target_nm}
15351 orig_target_as=${orig_target_as}
15352 orig_target_ar=${orig_target_ar}
15353 orig_target_ranlib=${orig_target_ranlib}
15354 orig_target_objdump=${orig_target_objdump}
15355 orig_target_objcopy=${orig_target_objcopy}
15356 orig_target_strip=${orig_target_strip}
15357 aros_kernel_ld=${aros_kernel_ld}
15360 aros_tools_dir=${aros_tools_dir}
15363 _ACEOF
15365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 # Handling of arguments.
15368 for ac_config_target in $ac_config_targets
15370 case $ac_config_target in
15371 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15372 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15373 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15374 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15375 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15376 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15377 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15378 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15379 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15380 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15381 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15382 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15383 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15384 "${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" ;;
15385 "${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" ;;
15386 "${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" ;;
15387 "${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" ;;
15388 "${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" ;;
15389 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15390 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15391 "${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" ;;
15393 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15394 esac
15395 done
15398 # If the user did not use the arguments to specify the items to instantiate,
15399 # then the envvar interface is used. Set only those that are not.
15400 # We use the long form for the default assignment because of an extremely
15401 # bizarre bug on SunOS 4.1.3.
15402 if $ac_need_defaults; then
15403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15405 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15408 # Have a temporary directory for convenience. Make it in the build tree
15409 # simply because there is no reason against having it here, and in addition,
15410 # creating and moving files from /tmp can sometimes cause problems.
15411 # Hook for its removal unless debugging.
15412 # Note that there is a small window in which the directory will not be cleaned:
15413 # after its creation but before its name has been assigned to `$tmp'.
15414 $debug ||
15416 tmp= ac_tmp=
15417 trap 'exit_status=$?
15418 : "${ac_tmp:=$tmp}"
15419 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15421 trap 'as_fn_exit 1' 1 2 13 15
15423 # Create a (secure) tmp directory for tmp files.
15426 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15427 test -d "$tmp"
15428 } ||
15430 tmp=./conf$$-$RANDOM
15431 (umask 077 && mkdir "$tmp")
15432 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15433 ac_tmp=$tmp
15435 # Set up the scripts for CONFIG_FILES section.
15436 # No need to generate them if there are no CONFIG_FILES.
15437 # This happens for instance with `./config.status config.h'.
15438 if test -n "$CONFIG_FILES"; then
15441 ac_cr=`echo X | tr X '\015'`
15442 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15443 # But we know of no other shell where ac_cr would be empty at this
15444 # point, so we can use a bashism as a fallback.
15445 if test "x$ac_cr" = x; then
15446 eval ac_cr=\$\'\\r\'
15448 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15449 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15450 ac_cs_awk_cr='\\r'
15451 else
15452 ac_cs_awk_cr=$ac_cr
15455 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15456 _ACEOF
15460 echo "cat >conf$$subs.awk <<_ACEOF" &&
15461 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15462 echo "_ACEOF"
15463 } >conf$$subs.sh ||
15464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15465 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15466 ac_delim='%!_!# '
15467 for ac_last_try in false false false false false :; do
15468 . ./conf$$subs.sh ||
15469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15471 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15472 if test $ac_delim_n = $ac_delim_num; then
15473 break
15474 elif $ac_last_try; then
15475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15476 else
15477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15479 done
15480 rm -f conf$$subs.sh
15482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15483 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15484 _ACEOF
15485 sed -n '
15487 s/^/S["/; s/!.*/"]=/
15490 s/^[^!]*!//
15491 :repl
15492 t repl
15493 s/'"$ac_delim"'$//
15494 t delim
15497 s/\(.\{148\}\)..*/\1/
15498 t more1
15499 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15502 b repl
15503 :more1
15504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15507 s/.\{148\}//
15508 t nl
15509 :delim
15511 s/\(.\{148\}\)..*/\1/
15512 t more2
15513 s/["\\]/\\&/g; s/^/"/; s/$/"/
15516 :more2
15517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15520 s/.\{148\}//
15521 t delim
15522 ' <conf$$subs.awk | sed '
15523 /^[^""]/{
15525 s/\n//
15527 ' >>$CONFIG_STATUS || ac_write_fail=1
15528 rm -f conf$$subs.awk
15529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15530 _ACAWK
15531 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15532 for (key in S) S_is_set[key] = 1
15533 FS = "\a"
15537 line = $ 0
15538 nfields = split(line, field, "@")
15539 substed = 0
15540 len = length(field[1])
15541 for (i = 2; i < nfields; i++) {
15542 key = field[i]
15543 keylen = length(key)
15544 if (S_is_set[key]) {
15545 value = S[key]
15546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15547 len += length(value) + length(field[++i])
15548 substed = 1
15549 } else
15550 len += 1 + keylen
15553 print line
15556 _ACAWK
15557 _ACEOF
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15560 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15561 else
15563 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15564 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15565 _ACEOF
15567 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15568 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15569 # trailing colons and then remove the whole line if VPATH becomes empty
15570 # (actually we leave an empty line to preserve line numbers).
15571 if test "x$srcdir" = x.; then
15572 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15574 s///
15575 s/^/:/
15576 s/[ ]*$/:/
15577 s/:\$(srcdir):/:/g
15578 s/:\${srcdir}:/:/g
15579 s/:@srcdir@:/:/g
15580 s/^:*//
15581 s/:*$//
15583 s/\(=[ ]*\).*/\1/
15585 s/\n//
15586 s/^[^=]*=[ ]*$//
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 fi # test -n "$CONFIG_FILES"
15593 # Set up the scripts for CONFIG_HEADERS section.
15594 # No need to generate them if there are no CONFIG_HEADERS.
15595 # This happens for instance with `./config.status Makefile'.
15596 if test -n "$CONFIG_HEADERS"; then
15597 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15598 BEGIN {
15599 _ACEOF
15601 # Transform confdefs.h into an awk script `defines.awk', embedded as
15602 # here-document in config.status, that substitutes the proper values into
15603 # config.h.in to produce config.h.
15605 # Create a delimiter string that does not exist in confdefs.h, to ease
15606 # handling of long lines.
15607 ac_delim='%!_!# '
15608 for ac_last_try in false false :; do
15609 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15610 if test -z "$ac_tt"; then
15611 break
15612 elif $ac_last_try; then
15613 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15614 else
15615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15617 done
15619 # For the awk script, D is an array of macro values keyed by name,
15620 # likewise P contains macro parameters if any. Preserve backslash
15621 # newline sequences.
15623 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15624 sed -n '
15625 s/.\{148\}/&'"$ac_delim"'/g
15626 t rset
15627 :rset
15628 s/^[ ]*#[ ]*define[ ][ ]*/ /
15629 t def
15631 :def
15632 s/\\$//
15633 t bsnl
15634 s/["\\]/\\&/g
15635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15636 D["\1"]=" \3"/p
15637 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15639 :bsnl
15640 s/["\\]/\\&/g
15641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15642 D["\1"]=" \3\\\\\\n"\\/p
15643 t cont
15644 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15645 t cont
15647 :cont
15649 s/.\{148\}/&'"$ac_delim"'/g
15650 t clear
15651 :clear
15652 s/\\$//
15653 t bsnlc
15654 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15656 :bsnlc
15657 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15658 b cont
15659 ' <confdefs.h | sed '
15660 s/'"$ac_delim"'/"\\\
15661 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15664 for (key in D) D_is_set[key] = 1
15665 FS = "\a"
15667 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15668 line = \$ 0
15669 split(line, arg, " ")
15670 if (arg[1] == "#") {
15671 defundef = arg[2]
15672 mac1 = arg[3]
15673 } else {
15674 defundef = substr(arg[1], 2)
15675 mac1 = arg[2]
15677 split(mac1, mac2, "(") #)
15678 macro = mac2[1]
15679 prefix = substr(line, 1, index(line, defundef) - 1)
15680 if (D_is_set[macro]) {
15681 # Preserve the white space surrounding the "#".
15682 print prefix "define", macro P[macro] D[macro]
15683 next
15684 } else {
15685 # Replace #undef with comments. This is necessary, for example,
15686 # in the case of _POSIX_SOURCE, which is predefined and required
15687 # on some systems where configure will not decide to define it.
15688 if (defundef == "undef") {
15689 print "/*", prefix defundef, macro, "*/"
15690 next
15694 { print }
15695 _ACAWK
15696 _ACEOF
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15699 fi # test -n "$CONFIG_HEADERS"
15702 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15703 shift
15704 for ac_tag
15706 case $ac_tag in
15707 :[FHLC]) ac_mode=$ac_tag; continue;;
15708 esac
15709 case $ac_mode$ac_tag in
15710 :[FHL]*:*);;
15711 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15712 :[FH]-) ac_tag=-:-;;
15713 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15714 esac
15715 ac_save_IFS=$IFS
15716 IFS=:
15717 set x $ac_tag
15718 IFS=$ac_save_IFS
15719 shift
15720 ac_file=$1
15721 shift
15723 case $ac_mode in
15724 :L) ac_source=$1;;
15725 :[FH])
15726 ac_file_inputs=
15727 for ac_f
15729 case $ac_f in
15730 -) ac_f="$ac_tmp/stdin";;
15731 *) # Look for the file first in the build tree, then in the source tree
15732 # (if the path is not absolute). The absolute path cannot be DOS-style,
15733 # because $ac_f cannot contain `:'.
15734 test -f "$ac_f" ||
15735 case $ac_f in
15736 [\\/$]*) false;;
15737 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15738 esac ||
15739 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15740 esac
15741 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15742 as_fn_append ac_file_inputs " '$ac_f'"
15743 done
15745 # Let's still pretend it is `configure' which instantiates (i.e., don't
15746 # use $as_me), people would be surprised to read:
15747 # /* config.h. Generated by config.status. */
15748 configure_input='Generated from '`
15749 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15750 `' by configure.'
15751 if test x"$ac_file" != x-; then
15752 configure_input="$ac_file. $configure_input"
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15754 $as_echo "$as_me: creating $ac_file" >&6;}
15756 # Neutralize special characters interpreted by sed in replacement strings.
15757 case $configure_input in #(
15758 *\&* | *\|* | *\\* )
15759 ac_sed_conf_input=`$as_echo "$configure_input" |
15760 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15761 *) ac_sed_conf_input=$configure_input;;
15762 esac
15764 case $ac_tag in
15765 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15767 esac
15769 esac
15771 ac_dir=`$as_dirname -- "$ac_file" ||
15772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15773 X"$ac_file" : 'X\(//\)[^/]' \| \
15774 X"$ac_file" : 'X\(//\)$' \| \
15775 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15776 $as_echo X"$ac_file" |
15777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15778 s//\1/
15781 /^X\(\/\/\)[^/].*/{
15782 s//\1/
15785 /^X\(\/\/\)$/{
15786 s//\1/
15789 /^X\(\/\).*/{
15790 s//\1/
15793 s/.*/./; q'`
15794 as_dir="$ac_dir"; as_fn_mkdir_p
15795 ac_builddir=.
15797 case "$ac_dir" in
15798 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15800 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15801 # A ".." for each directory in $ac_dir_suffix.
15802 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15803 case $ac_top_builddir_sub in
15804 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15805 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15806 esac ;;
15807 esac
15808 ac_abs_top_builddir=$ac_pwd
15809 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15810 # for backward compatibility:
15811 ac_top_builddir=$ac_top_build_prefix
15813 case $srcdir in
15814 .) # We are building in place.
15815 ac_srcdir=.
15816 ac_top_srcdir=$ac_top_builddir_sub
15817 ac_abs_top_srcdir=$ac_pwd ;;
15818 [\\/]* | ?:[\\/]* ) # Absolute name.
15819 ac_srcdir=$srcdir$ac_dir_suffix;
15820 ac_top_srcdir=$srcdir
15821 ac_abs_top_srcdir=$srcdir ;;
15822 *) # Relative name.
15823 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15824 ac_top_srcdir=$ac_top_build_prefix$srcdir
15825 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15826 esac
15827 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15830 case $ac_mode in
15833 # CONFIG_FILE
15836 _ACEOF
15838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839 # If the template does not know about datarootdir, expand it.
15840 # FIXME: This hack should be removed a few years after 2.60.
15841 ac_datarootdir_hack=; ac_datarootdir_seen=
15842 ac_sed_dataroot='
15843 /datarootdir/ {
15847 /@datadir@/p
15848 /@docdir@/p
15849 /@infodir@/p
15850 /@localedir@/p
15851 /@mandir@/p'
15852 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15853 *datarootdir*) ac_datarootdir_seen=yes;;
15854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15856 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15857 _ACEOF
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 ac_datarootdir_hack='
15860 s&@datadir@&$datadir&g
15861 s&@docdir@&$docdir&g
15862 s&@infodir@&$infodir&g
15863 s&@localedir@&$localedir&g
15864 s&@mandir@&$mandir&g
15865 s&\\\${datarootdir}&$datarootdir&g' ;;
15866 esac
15867 _ACEOF
15869 # Neutralize VPATH when `$srcdir' = `.'.
15870 # Shell code in configure.ac might set extrasub.
15871 # FIXME: do we really want to maintain this feature?
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 ac_sed_extra="$ac_vpsub
15874 $extrasub
15875 _ACEOF
15876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15879 s|@configure_input@|$ac_sed_conf_input|;t t
15880 s&@top_builddir@&$ac_top_builddir_sub&;t t
15881 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15882 s&@srcdir@&$ac_srcdir&;t t
15883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15884 s&@top_srcdir@&$ac_top_srcdir&;t t
15885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15886 s&@builddir@&$ac_builddir&;t t
15887 s&@abs_builddir@&$ac_abs_builddir&;t t
15888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15889 $ac_datarootdir_hack
15891 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15892 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15895 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15897 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15899 which seems to be undefined. Please make sure it is defined" >&5
15900 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15901 which seems to be undefined. Please make sure it is defined" >&2;}
15903 rm -f "$ac_tmp/stdin"
15904 case $ac_file in
15905 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15906 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15907 esac \
15908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15912 # CONFIG_HEADER
15914 if test x"$ac_file" != x-; then
15916 $as_echo "/* $configure_input */" \
15917 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15918 } >"$ac_tmp/config.h" \
15919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15920 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15922 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15923 else
15924 rm -f "$ac_file"
15925 mv "$ac_tmp/config.h" "$ac_file" \
15926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15928 else
15929 $as_echo "/* $configure_input */" \
15930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15931 || as_fn_error $? "could not create -" "$LINENO" 5
15935 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15936 $as_echo "$as_me: executing $ac_file commands" >&6;}
15938 esac
15941 case $ac_file$ac_mode in
15942 "compiler_executable":C)
15943 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15944 mkdir -p $prefix
15945 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15946 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15948 echo ${prefix2}
15949 echo ${prefix3}
15950 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15952 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15953 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15954 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15955 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15956 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15957 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15958 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15960 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15962 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15964 esac
15965 done # for ac_tag
15968 as_fn_exit 0
15969 _ACEOF
15970 ac_clean_files=$ac_clean_files_save
15972 test $ac_write_fail = 0 ||
15973 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15976 # configure is writing to config.log, and then calls config.status.
15977 # config.status does its own redirection, appending to config.log.
15978 # Unfortunately, on DOS this fails, as config.log is still kept open
15979 # by configure, so config.status won't be able to write to it; its
15980 # output is simply discarded. So we exec the FD to /dev/null,
15981 # effectively closing config.log, so it can be properly (re)opened and
15982 # appended to by config.status. When coming back to configure, we
15983 # need to make the FD available again.
15984 if test "$no_create" != yes; then
15985 ac_cs_success=:
15986 ac_config_status_args=
15987 test "$silent" = yes &&
15988 ac_config_status_args="$ac_config_status_args --quiet"
15989 exec 5>/dev/null
15990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15991 exec 5>>config.log
15992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15993 # would make configure fail if this is the last instruction.
15994 $ac_cs_success || as_fn_exit 1
15996 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15998 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16003 #XXX compatability...
16004 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16006 if test -n "$aros_shared_cflags" ; then
16007 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16008 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg