compiler/pthread: implement pthread_detach and pthread_getschedparam
[AROS.git] / configure
blobb0b67c6ee52e0cabebfb9f282b80534286d4b6db
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_target_strip_flags
673 aros_target_genmap
674 aros_debug_ldflags
675 aros_debug_aflags
676 aros_debug_cflags
677 aros_target_cflags
678 aros_kernel_ldflags
679 aros_kernel_objcflags
680 aros_kernel_includes
681 aros_kernel_cflags
682 aros_kernel_sysroot
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_config_sysroot
687 aros_shared_ldflags
688 aros_shared_aflags
689 aros_shared_cflags
690 aros_arch_libs
691 aros_compiler_libs
692 spec_obj_format
693 aros_object_format
694 aros_shared_ld
695 aros_shared_default
696 aros_target_nm
697 aros_target_strip
698 aros_target_objcopy
699 aros_target_objdump
700 aros_target_cc_path
701 aros_target_cc_includes
702 aros_target_ld
703 aros_target_as
704 aros_target_cpp
705 aros_target_cxx
706 aros_target_cc
707 aros_plain_ar
708 aros_plain_nm
709 aros_target_ranlib
710 aros_target_ar
711 aros_target_suffix
712 aros_target_variant
713 aros_target_cpu_mode
714 aros_target_cpu
715 aros_target_family
716 aros_target_arch
717 aros_target_bootloader
718 aros_target_iconset
719 aros_target_guitheme
720 aros_tools_dir
721 aros_host_lib_suffix
722 aros_host_exe_suffix
723 aros_host_mkargs
724 aros_host_mkdep
725 aros_host_debug
726 aros_host_ldflags
727 gnu89_inline
728 aros_host_cxxflags
729 aros_host_cflags
730 aros_host_make
731 aros_host_cxx
732 aros_host_cc
733 aros_host_cpp
734 aros_host_cpu
735 aros_host_arch
736 aros_cc_pre
737 aros_amigaos_compliance
738 AROS_PORTSSRCDIR
739 AROS_CROSSTOOLSDIR
740 SRCDIR
741 AROS_BUILDDIR_UNIX
742 AROS_BUILDDIR
743 aros_build_host
744 aros_target_toolchain
745 aros_flavour_uc
746 aros_flavour
747 aros_cpu
748 aros_arch
749 SDL_LIBS
750 SDL_CFLAGS
751 SDL_CONFIG
752 XMKMF
753 aros_cflags_iquote_end
754 aros_cflags_iquote
755 kernel_cflags_iquote_end
756 kernel_cflags_iquote
757 host_cflags_iquote_end
758 host_cflags_iquote
759 aros_target_nostdlib_ldflags
760 aros_target_detach_ldflags
761 aros_target_nix_ldflags
762 aros_target_nostartup_ldflags
763 aros_target_nostdinc_cflags
764 aros_kernel_rescomp
765 orig_target_objdump
766 orig_target_objcopy
767 orig_target_strip
768 orig_target_nm
769 orig_target_ranlib
770 orig_target_ar
771 orig_target_as
772 orig_target_ld
773 orig_target_cxx
774 orig_target_cc
775 orig_target_cpp
776 aros_kernel_objdump
777 aros_kernel_objcopy
778 aros_kernel_strip
779 aros_kernel_nm
780 aros_kernel_ranlib
781 aros_kernel_ar
782 aros_kernel_as
783 aros_kernel_ld
784 aros_kernel_cxx
785 aros_kernel_cc
786 aros_kernel_cpp
787 target_gcc_version
789 android_tool
790 CCACHE
791 DISTCC
792 LIBOBJS
793 EGREP
794 GREP
796 TEST
799 pkgpyexecdir
800 pyexecdir
801 pkgpythondir
802 pythondir
803 PYTHON_PLATFORM
804 PYTHON_EXEC_PREFIX
805 PYTHON_PREFIX
806 PYTHON_VERSION
807 PYTHON
808 PATCH
809 CHMOD
811 PPMTOILBM
812 PNGTOPNM
813 FLEX
814 BISON
817 UNIQ
818 SORT
819 TOUCH
820 MKDIR
821 ECHO
825 aros_host_strip
826 aros_host_ranlib
827 aros_host_ar
828 aros_host_automake
829 aros_host_autoheader
830 aros_host_autoconf
831 aros_host_aclocal
832 aros_host_ld
833 MMAKE
836 ac_ct_CC
837 CFLAGS
839 OBJEXT
840 EXEEXT
841 ac_ct_CXX
842 CPPFLAGS
843 LDFLAGS
844 CXXFLAGS
846 host_os
847 host_vendor
848 host_cpu
849 host
850 build_os
851 build_vendor
852 build_cpu
853 build
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL'
892 ac_subst_files=''
893 ac_user_opts='
894 enable_option_checking
895 enable_build_type
896 enable_debug
897 enable_distcc
898 enable_ccache
899 with_kernel_gcc_version
900 with_optimization
901 with_paranoia
902 enable_target_variant
903 with_xcode
904 with_sdk_version
905 with_sdk
906 with_ndk
907 with_ndk_version
908 with_apk_version
909 enable_amigaos_compliance
910 with_kernel_toolchain_prefix
911 with_elf_toolchain_prefix
912 with_aros_toolchain
913 enable_crosstools
914 with_aros_toolchain_install
915 with_binutils_version
916 with_gcc_version
917 enable_objc
918 enable_java
919 with_cpu
920 with_fpu
921 with_float
922 with_portssources
923 with_bootloader
924 with_iconset
925 with_theme
926 enable_includes
927 with_resolution
928 with_serial_debug
929 enable_palm_debug_hack
930 enable_usb30_code
931 enable_nesting_supervisor
932 enable_mmu
933 enable_x11_hidd
934 with_x
935 enable_x11_shm
936 enable_x11_vidmode
937 enable_sdl_hidd
938 with_sdl_prefix
939 with_sdl_exec_prefix
940 enable_sdltest
941 enable_dbus
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
947 CXXFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
953 CFLAGS
955 PYTHON
956 XMKMF'
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1018 case $ac_option in
1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *=) ac_optarg= ;;
1021 *) ac_optarg=yes ;;
1022 esac
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1028 ac_dashdash=yes ;;
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information"
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 esac
1365 done
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error $? "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error $? "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error $? "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking ...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 X features:
1555 --x-includes=DIR X include files are in DIR
1556 --x-libraries=DIR X library files are in DIR
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 _ACEOF
1564 if test -n "$ac_init_help"; then
1566 cat <<\_ACEOF
1568 Optional Features:
1569 --disable-option-checking ignore unrecognized --enable/--with options
1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1572 --enable-build-type=TYPE
1573 Select the build type. Available types are:
1574 personal, nightly, snapshot, milestone, release. Do
1575 NOT use this option unless you know what you are
1576 doing! (default=personal)
1577 --enable-debug=list Enable different types of debug. Commas or
1578 whitespaces can be used to separate the items in the
1579 list. Available types of debug are: all, none,
1580 messages, stack, mungwall, modules, symbols. If no
1581 list is provided then "all" is assumed.
1582 (default=none)
1583 --enable-distcc Use distcc as a front end to the compiler
1584 (default=no).
1585 --enable-ccache Use ccache as a front end to the compiler
1586 (default=no).
1587 --enable-target-variant=NAME
1588 Enable a specific target variant(default=none)
1589 --enable-amigaos-compliance=VERSION
1590 Enforce userspace AmigaOS compliance to a specific
1591 KickStart version (default=none).
1592 --disable-crosstools Do not build cross-compiler toolchain
1593 --enable-objc Enable Objectve-C support (default=no)
1594 --enable-java Enable Java support (default=no)
1595 --enable-includes=dir Alternative system include directory
1596 --enable-palm-debug-hack
1597 Enable palm debug output hack in palm native
1598 (default=no)
1599 --enable-usb30-code Enable usb3.0 code (default=no)
1600 --enable-nesting-supervisor
1601 Enable nesting supervisor support in unix
1602 (default=no)
1603 --disable-mmu Disable MMU support (default=enabled)
1604 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1605 --enable-x11-shm use X11 shared memory (default=auto)
1606 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1607 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1608 --disable-sdltest Do not try to compile and run a test SDL program
1609 --enable-dbus Enable DBUS support via dbus.library (default=no)
1611 Optional Packages:
1612 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1613 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1614 --with-kernel-gcc-version=VERSION
1615 Use gcc-VERSION for building bootstrap
1616 --with-optimization=FLAGS
1617 Use optimization flags FLAGS (default=-O2).
1618 --with-paranoia=FLAGS CC flags to enable paranoia
1619 --with-xcode=PATH Specify XCode path for iOS targets
1620 (default=/Developer).
1621 --with-sdk-version=VERSION
1622 Use iOS SDK version VERSION (default=4.1).
1623 --with-sdk=PATH Specify Android SDK path
1624 (default=$default_android_sdk).
1625 --with-ndk=PATH Specify Android NDK path (default=none).
1626 --with-sdk-version=LEVEL
1627 Use Android SDK for API LEVEL (default=12).
1628 --with-ndk-version=LEVEL
1629 Use Android NDK for API LEVEL (default=9).
1630 --with-apk-version=(release|debug)
1631 Which version of AROSBootstrap.apk to compile.
1632 Release version needs key for signing, debug version
1633 will only run in emulator. (default=release)
1634 --with-kernel-toolchain-prefix=...
1635 Specify crosscompile toolchain prefix for kernel
1636 objects
1637 --with-elf-toolchain-prefix=...
1638 Specify crosscompile toolchain prefix to wrap for
1639 AROS objects
1640 --with-aros-toolchain=PREFIX
1641 Specify prebuilt AROS toolchain. Use yes for default
1642 name
1643 --with-aros-toolchain-install=DIR
1644 Where to install or search for cross tools binaries
1645 --with-binutils-version=VERSION
1646 Use binutils-VERSION for building AROS
1647 --with-gcc-version=VERSION
1648 Use gcc-VERSION for building AROS
1649 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1650 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1651 --with-float=<spec> Specify floating point ABI
1652 (default=$gcc_default_float_abi).
1653 --with-portssources=DIR Where to download sourcecode for external ports
1654 --with-bootloader=NAME Use a specific bootloader
1655 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1656 --with-theme=NAME Use a specific GUI Theme
1657 --with-resolution=XRESxYRESxDEPTH
1658 Default resolution of the initial WorkbenchScreen
1659 --with-serial-debug Enable serial debug output in native (default=no)
1660 --with-x use the X Window System
1661 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1662 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1664 Some influential environment variables:
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1668 nonstandard directory <lib dir>
1669 LIBS libraries to pass to the linker, e.g. -l<library>
1670 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1671 you have headers in a nonstandard directory <include dir>
1672 CC C compiler command
1673 CFLAGS C compiler flags
1674 CPP C preprocessor
1675 PYTHON the Python interpreter
1676 XMKMF Path to xmkmf, Makefile generator for X Window System
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1692 ac_builddir=.
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1710 case $srcdir in
1711 .) # We are building in place.
1712 ac_srcdir=.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1734 else
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1738 done
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743 cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.69
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_cxx_try_compile
1796 # ac_fn_c_try_compile LINENO
1797 # --------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } > conftest.i && {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_cpp
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 else
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1945 else
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961 else
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 eval "$3=\$ac_header_compiler"
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_try_run LINENO
2005 # ----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2007 # that executables *can* be run.
2008 ac_fn_c_try_run ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { { ac_try="$ac_link"
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_link") 2>&5
2019 ac_status=$?
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2022 { { case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_try") 2>&5
2029 ac_status=$?
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; }; }; then :
2032 ac_retval=0
2033 else
2034 $as_echo "$as_me: program exited with status $ac_status" >&5
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 ac_retval=$ac_status
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2044 } # ac_fn_c_try_run
2046 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2047 # -------------------------------------------------------
2048 # Tests whether HEADER exists and can be compiled using the include files in
2049 # INCLUDES, setting the cache variable VAR accordingly.
2050 ac_fn_c_check_header_compile ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2061 #include <$2>
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_header_compile
2077 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2078 # ----------------------------------------------------
2079 # Tries to find if the field MEMBER exists in type AGGR, after including
2080 # INCLUDES, setting cache variable VAR accordingly.
2081 ac_fn_c_check_member ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2085 $as_echo_n "checking for $2.$3... " >&6; }
2086 if eval \${$4+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static $2 ac_aggr;
2096 if (ac_aggr.$3)
2097 return 0;
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$4=yes"
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 static $2 ac_aggr;
2112 if (sizeof ac_aggr.$3)
2113 return 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 eval "$4=yes"
2120 else
2121 eval "$4=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$4
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_member
2134 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2135 # ---------------------------------------------
2136 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 # accordingly.
2138 ac_fn_c_check_decl ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 as_decl_name=`echo $2|sed 's/ *(.*//'`
2142 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2144 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 #ifndef $as_decl_name
2155 #ifdef __cplusplus
2156 (void) $as_decl_use;
2157 #else
2158 (void) $as_decl_name;
2159 #endif
2160 #endif
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 eval "$3=yes"
2168 else
2169 eval "$3=no"
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_decl
2180 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2181 # -------------------------------------------
2182 # Tests whether TYPE exists after having included INCLUDES, setting cache
2183 # variable VAR accordingly.
2184 ac_fn_c_check_type ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \${$3+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 eval "$3=no"
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2197 main ()
2199 if (sizeof ($2))
2200 return 0;
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 if (sizeof (($2)))
2213 return 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2220 else
2221 eval "$3=yes"
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_type
2234 # ac_fn_c_check_func LINENO FUNC VAR
2235 # ----------------------------------
2236 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2237 ac_fn_c_check_func ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2247 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2249 #define $2 innocuous_$2
2251 /* System header to define __stub macros and hopefully few prototypes,
2252 which can conflict with char $2 (); below.
2253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2254 <limits.h> exists even on freestanding compilers. */
2256 #ifdef __STDC__
2257 # include <limits.h>
2258 #else
2259 # include <assert.h>
2260 #endif
2262 #undef $2
2264 /* Override any GCC internal prototype to avoid an error.
2265 Use char because int might match the return type of a GCC
2266 builtin and then its argument prototype would still apply. */
2267 #ifdef __cplusplus
2268 extern "C"
2269 #endif
2270 char $2 ();
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined __stub_$2 || defined __stub___$2
2275 choke me
2276 #endif
2279 main ()
2281 return $2 ();
2283 return 0;
2285 _ACEOF
2286 if ac_fn_c_try_link "$LINENO"; then :
2287 eval "$3=yes"
2288 else
2289 eval "$3=no"
2291 rm -f core conftest.err conftest.$ac_objext \
2292 conftest$ac_exeext conftest.$ac_ext
2294 eval ac_res=\$$3
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 } # ac_fn_c_check_func
2300 cat >config.log <<_ACEOF
2301 This file contains any messages produced by compilers while
2302 running configure, to aid debugging if configure makes a mistake.
2304 It was created by $as_me, which was
2305 generated by GNU Autoconf 2.69. Invocation command line was
2307 $ $0 $@
2309 _ACEOF
2310 exec 5>>config.log
2312 cat <<_ASUNAME
2313 ## --------- ##
2314 ## Platform. ##
2315 ## --------- ##
2317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2334 _ASUNAME
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 $as_echo "PATH: $as_dir"
2342 done
2343 IFS=$as_save_IFS
2345 } >&5
2347 cat >&5 <<_ACEOF
2350 ## ----------- ##
2351 ## Core tests. ##
2352 ## ----------- ##
2354 _ACEOF
2357 # Keep a trace of the command line.
2358 # Strip out --no-create and --no-recursion so they do not pile up.
2359 # Strip out --silent because we don't want to record it for future runs.
2360 # Also quote any args containing shell meta-characters.
2361 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_configure_args=
2363 ac_configure_args0=
2364 ac_configure_args1=
2365 ac_must_keep_next=false
2366 for ac_pass in 1 2
2368 for ac_arg
2370 case $ac_arg in
2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373 | -silent | --silent | --silen | --sile | --sil)
2374 continue ;;
2375 *\'*)
2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 esac
2378 case $ac_pass in
2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2381 as_fn_append ac_configure_args1 " '$ac_arg'"
2382 if test $ac_must_keep_next = true; then
2383 ac_must_keep_next=false # Got value, back to normal.
2384 else
2385 case $ac_arg in
2386 *=* | --config-cache | -C | -disable-* | --disable-* \
2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389 | -with-* | --with-* | -without-* | --without-* | --x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 esac
2394 -* ) ac_must_keep_next=true ;;
2395 esac
2397 as_fn_append ac_configure_args " '$ac_arg'"
2399 esac
2400 done
2401 done
2402 { ac_configure_args0=; unset ac_configure_args0;}
2403 { ac_configure_args1=; unset ac_configure_args1;}
2405 # When interrupted or exit'd, cleanup temporary files, and complete
2406 # config.log. We remove comments because anyway the quotes in there
2407 # would cause problems or look ugly.
2408 # WARNING: Use '\'' to represent an apostrophe within the trap.
2409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410 trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2413 echo
2415 $as_echo "## ---------------- ##
2416 ## Cache variables. ##
2417 ## ---------------- ##"
2418 echo
2419 # The following way of writing the cache mishandles newlines in values,
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in #(
2424 *${as_nl}*)
2425 case $ac_var in #(
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 esac
2429 case $ac_var in #(
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2433 esac ;;
2434 esac
2435 done
2436 (set) 2>&1 |
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2439 sed -n \
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 ;; #(
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2446 esac |
2447 sort
2449 echo
2451 $as_echo "## ----------------- ##
2452 ## Output variables. ##
2453 ## ----------------- ##"
2454 echo
2455 for ac_var in $ac_subst_vars
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 $as_echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
2465 if test -n "$ac_subst_files"; then
2466 $as_echo "## ------------------- ##
2467 ## File substitutions. ##
2468 ## ------------------- ##"
2469 echo
2470 for ac_var in $ac_subst_files
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2481 if test -s confdefs.h; then
2482 $as_echo "## ----------- ##
2483 ## confdefs.h. ##
2484 ## ----------- ##"
2485 echo
2486 cat confdefs.h
2487 echo
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2497 for ac_signal in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 done
2500 ac_signal=0
2502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2503 rm -f -r conftest* confdefs.h
2505 $as_echo "/* confdefs.h */" > confdefs.h
2507 # Predefined preprocessor variables.
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_NAME "$PACKAGE_NAME"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_STRING "$PACKAGE_STRING"
2523 _ACEOF
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527 _ACEOF
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_URL "$PACKAGE_URL"
2531 _ACEOF
2534 # Let the site file select an alternate cache file if it wants to.
2535 # Prefer an explicitly selected file to automatically selected ones.
2536 ac_site_file1=NONE
2537 ac_site_file2=NONE
2538 if test -n "$CONFIG_SITE"; then
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1=./$CONFIG_SITE;;
2542 */*) ac_site_file1=$CONFIG_SITE;;
2543 *) ac_site_file1=./$CONFIG_SITE;;
2544 esac
2545 elif test "x$prefix" != xNONE; then
2546 ac_site_file1=$prefix/share/config.site
2547 ac_site_file2=$prefix/etc/config.site
2548 else
2549 ac_site_file1=$ac_default_prefix/share/config.site
2550 ac_site_file2=$ac_default_prefix/etc/config.site
2552 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2554 test "x$ac_site_file" = xNONE && continue
2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2559 . "$ac_site_file" \
2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $? "failed to load site script $ac_site_file
2563 See \`config.log' for more details" "$LINENO" 5; }
2565 done
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2584 as_fn_append ac_header_list " stdlib.h"
2585 as_fn_append ac_header_list " unistd.h"
2586 as_fn_append ac_header_list " sys/param.h"
2587 # Check that the precious variables saved in the cache have kept the same
2588 # value.
2589 ac_cache_corrupted=false
2590 for ac_var in $ac_precious_vars; do
2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592 eval ac_new_set=\$ac_env_${ac_var}_set
2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594 eval ac_new_val=\$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2596 set,)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,set)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,);;
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w=`echo x $ac_old_val`
2609 ac_new_val_w=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted=:
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\$ac_old_val
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 fi;;
2624 esac
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2627 case $ac_new_val in
2628 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg=$ac_var=$ac_new_val ;;
2630 esac
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 esac
2636 done
2637 if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 ## -------------------- ##
2645 ## Main body of script. ##
2646 ## -------------------- ##
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 ac_aux_dir=
2657 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2658 if test -f "$ac_dir/install-sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install-sh -c"
2661 break
2662 elif test -f "$ac_dir/install.sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install.sh -c"
2665 break
2666 elif test -f "$ac_dir/shtool"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/shtool install -c"
2669 break
2671 done
2672 if test -z "$ac_aux_dir"; then
2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2676 # These three variables are undocumented and unsupported,
2677 # and are intended to be withdrawn in a future Autoconf release.
2678 # They can cause serious problems if a builder's source tree is in a directory
2679 # whose full name contains unusual characters.
2680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2686 # Check what host we are running on.
2687 # If a target is not suggested, we use this one.
2688 # Note that what we call a target, Autoconf calls a host.
2689 # Make sure we can run config.sub.
2690 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694 $as_echo_n "checking build system type... " >&6; }
2695 if ${ac_cv_build+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 ac_build_alias=$build_alias
2699 test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701 test "x$ac_build_alias" = x &&
2702 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2703 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708 $as_echo "$ac_cv_build" >&6; }
2709 case $ac_cv_build in
2710 *-*-*) ;;
2711 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2712 esac
2713 build=$ac_cv_build
2714 ac_save_IFS=$IFS; IFS='-'
2715 set x $ac_cv_build
2716 shift
2717 build_cpu=$1
2718 build_vendor=$2
2719 shift; shift
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2722 build_os=$*
2723 IFS=$ac_save_IFS
2724 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728 $as_echo_n "checking host system type... " >&6; }
2729 if ${ac_cv_host+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
2734 else
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2742 case $ac_cv_host in
2743 *-*-*) ;;
2744 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2745 esac
2746 host=$ac_cv_host
2747 ac_save_IFS=$IFS; IFS='-'
2748 set x $ac_cv_host
2749 shift
2750 host_cpu=$1
2751 host_vendor=$2
2752 shift; shift
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2755 host_os=$*
2756 IFS=$ac_save_IFS
2757 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2761 # Default version of gnu tools to use
2762 default_gcc_version="4.6.4"
2763 default_binutils_version="2.23.2"
2765 # The AROS target is slightly different to the normal GNU style
2766 # format. We don't have the middle part, and we reverse the order
2767 # of the $(CPU) and $(OS) bits.
2769 # Don't strip the version of the target yet, it might be
2770 # useful on some systems.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2773 $as_echo_n "checking for AROS style target... " >&6; }
2775 if test "$target" = "NONE" ; then
2776 target=$host_os-$host_cpu
2777 else
2778 if test "$target" = "" ; then
2779 target=$host_os-$host_cpu
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2783 $as_echo "$target" >&6; }
2785 if test "$host_os" = "mingw32" ; then
2786 PWDCMD="pwd -W"
2789 # Don't know where else to put this...
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2791 $as_echo_n "checking building AROS in... " >&6; }
2792 AROS_BUILDDIR=`${PWDCMD-pwd}`
2793 AROS_BUILDDIR_UNIX=${PWD}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2795 $as_echo "$AROS_BUILDDIR" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2798 $as_echo_n "checking AROS source in... " >&6; }
2799 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2800 SRCDIR=${srcpwd}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2802 $as_echo "$SRCDIR" >&6; }
2804 # Parse the target field into something useful.
2806 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2807 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2810 # Some debug output, to be removed again.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2812 $as_echo_n "checking for target system (debug output)... " >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2814 $as_echo "$target_os" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2816 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2818 $as_echo "$target_cpu" >&6; }
2820 aros_nominal_width=800
2821 aros_nominal_height=600
2822 aros_nominal_depth=4
2825 # The first step is to find the host binaries.
2826 # Check for a compiler.
2827 # Due to a bug in autoconf check for c++ compiler first.
2828 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2829 ac_ext=cpp
2830 ac_cpp='$CXXCPP $CPPFLAGS'
2831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2834 if test -z "$CXX"; then
2835 if test -n "$CCC"; then
2836 CXX=$CCC
2837 else
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CXX+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CXX"; then
2849 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2868 CXX=$ac_cv_prog_CXX
2869 if test -n "$CXX"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2871 $as_echo "$CXX" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2878 test -n "$CXX" && break
2879 done
2881 if test -z "$CXX"; then
2882 ac_ct_CXX=$CXX
2883 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CXX"; then
2893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_ac_ct_CXX="$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2908 IFS=$as_save_IFS
2912 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2913 if test -n "$ac_ct_CXX"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2915 $as_echo "$ac_ct_CXX" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$ac_ct_CXX" && break
2923 done
2925 if test "x$ac_ct_CXX" = x; then
2926 CXX="g++"
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CXX=$ac_ct_CXX
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2942 set X $ac_compile
2943 ac_compiler=$2
2944 for ac_option in --version -v -V -qversion; do
2945 { { ac_try="$ac_compiler $ac_option >&5"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953 ac_status=$?
2954 if test -s conftest.err; then
2955 sed '10a\
2956 ... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
2960 rm -f conftest.er1 conftest.err
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 done
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2969 main ()
2973 return 0;
2975 _ACEOF
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2980 # of exeext.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2982 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988 ac_rmfiles=
2989 for ac_file in $ac_files
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995 done
2996 rm -f $ac_rmfiles
2998 if { { ac_try="$ac_link_default"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3013 # Autoconf.
3014 for ac_file in $ac_files ''
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3036 break;;
3037 esac
3038 done
3039 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041 else
3042 ac_file=''
3044 if test -z "$ac_file"; then :
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error 77 "C++ compiler cannot create executables
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3059 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061 $as_echo "$ac_file" >&6; }
3062 ac_exeext=$ac_cv_exeext
3064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { { ac_try="$ac_link"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 # `rm'.
3083 for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091 done
3092 else
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details" "$LINENO" 5; }
3098 rm -f conftest conftest$ac_cv_exeext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100 $as_echo "$ac_cv_exeext" >&6; }
3102 rm -f conftest.$ac_ext
3103 EXEEXT=$ac_cv_exeext
3104 ac_exeext=$EXEEXT
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107 #include <stdio.h>
3109 main ()
3111 FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3115 return 0;
3117 _ACEOF
3118 ac_clean_files="$ac_clean_files conftest.out"
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 if test "$cross_compiling" != yes; then
3124 { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot run C++ compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details" "$LINENO" 5; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160 $as_echo "$cross_compiling" >&6; }
3162 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if ${ac_cv_objext+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199 done
3200 else
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of object files: cannot compile
3207 See \`config.log' for more details" "$LINENO" 5; }
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3214 ac_objext=$OBJEXT
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3217 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3231 return 0;
3233 _ACEOF
3234 if ac_fn_cxx_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236 else
3237 ac_compiler_gnu=no
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3244 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3246 GXX=yes
3247 else
3248 GXX=
3250 ac_test_CXXFLAGS=${CXXFLAGS+set}
3251 ac_save_CXXFLAGS=$CXXFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3253 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3254 if ${ac_cv_prog_cxx_g+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3258 ac_cxx_werror_flag=yes
3259 ac_cv_prog_cxx_g=no
3260 CXXFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 if ac_fn_cxx_try_compile "$LINENO"; then :
3273 ac_cv_prog_cxx_g=yes
3274 else
3275 CXXFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 if ac_fn_cxx_try_compile "$LINENO"; then :
3289 else
3290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3291 CXXFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 if ac_fn_cxx_try_compile "$LINENO"; then :
3304 ac_cv_prog_cxx_g=yes
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3314 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3315 if test "$ac_test_CXXFLAGS" = set; then
3316 CXXFLAGS=$ac_save_CXXFLAGS
3317 elif test $ac_cv_prog_cxx_g = yes; then
3318 if test "$GXX" = yes; then
3319 CXXFLAGS="-g -O2"
3320 else
3321 CXXFLAGS="-g"
3323 else
3324 if test "$GXX" = yes; then
3325 CXXFLAGS="-O2"
3326 else
3327 CXXFLAGS=
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3365 IFS=$as_save_IFS
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3380 if test -z "$ac_cv_prog_CC"; then
3381 ac_ct_CC=$CC
3382 # Extract the first word of "gcc", so it can be a program name with args.
3383 set dummy gcc; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$ac_ct_CC"; then
3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CC="gcc"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3403 done
3404 done
3405 IFS=$as_save_IFS
3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410 if test -n "$ac_ct_CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412 $as_echo "$ac_ct_CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3418 if test "x$ac_ct_CC" = x; then
3419 CC=""
3420 else
3421 case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427 CC=$ac_ct_CC
3429 else
3430 CC="$ac_cv_prog_CC"
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}cc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}cc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3474 if test -z "$CC"; then
3475 # Extract the first word of "cc", so it can be a program name with args.
3476 set dummy cc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 else
3485 ac_prog_rejected=no
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3494 ac_prog_rejected=yes
3495 continue
3497 ac_cv_prog_CC="cc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3505 if test $ac_prog_rejected = yes; then
3506 # We found a bogon in the path, so make sure we never use it.
3507 set dummy $ac_cv_prog_CC
3508 shift
3509 if test $# != 0; then
3510 # We chose a different compiler from the bogus one.
3511 # However, it has the same basename, so the bogon will be chosen
3512 # first if we set CC to just the basename; use the full file name.
3513 shift
3514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 for ac_prog in cl.exe
3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$CC" && break
3572 done
3574 if test -z "$CC"; then
3575 ac_ct_CC=$CC
3576 for ac_prog in cl.exe
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$ac_ct_CC" && break
3616 done
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "no acceptable C compiler found in \$PATH
3637 See \`config.log' for more details" "$LINENO" 5; }
3639 # Provide some information about the compiler.
3640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3641 set X $ac_compile
3642 ac_compiler=$2
3643 for ac_option in --version -v -V -qversion; do
3644 { { ac_try="$ac_compiler $ac_option >&5"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3652 ac_status=$?
3653 if test -s conftest.err; then
3654 sed '10a\
3655 ... rest of stderr output deleted ...
3656 10q' conftest.err >conftest.er1
3657 cat conftest.er1 >&5
3659 rm -f conftest.er1 conftest.err
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 done
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3666 if ${ac_cv_c_compiler_gnu+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main ()
3675 #ifndef __GNUC__
3676 choke me
3677 #endif
3680 return 0;
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_compiler_gnu=yes
3685 else
3686 ac_compiler_gnu=no
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696 else
3697 GCC=
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if ${ac_cv_prog_cc_g+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_g=yes
3723 else
3724 CFLAGS=""
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3729 main ()
3733 return 0;
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3738 else
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_c_werror_flag=$ac_save_c_werror_flag
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3763 $as_echo "$ac_cv_prog_cc_g" >&6; }
3764 if test "$ac_test_CFLAGS" = set; then
3765 CFLAGS=$ac_save_CFLAGS
3766 elif test $ac_cv_prog_cc_g = yes; then
3767 if test "$GCC" = yes; then
3768 CFLAGS="-g -O2"
3769 else
3770 CFLAGS="-g"
3772 else
3773 if test "$GCC" = yes; then
3774 CFLAGS="-O2"
3775 else
3776 CFLAGS=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3781 if ${ac_cv_prog_cc_c89+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 ac_cv_prog_cc_c89=no
3785 ac_save_CC=$CC
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <stdarg.h>
3789 #include <stdio.h>
3790 struct stat;
3791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3792 struct buf { int x; };
3793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3794 static char *e (p, i)
3795 char **p;
3796 int i;
3798 return p[i];
3800 static char *f (char * (*g) (char **, int), char **p, ...)
3802 char *s;
3803 va_list v;
3804 va_start (v,p);
3805 s = g (p, va_arg (v,int));
3806 va_end (v);
3807 return s;
3810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3811 function prototypes and stuff, but not '\xHH' hex character constants.
3812 These don't provoke an error unfortunately, instead are silently treated
3813 as 'x'. The following induces an error, until -std is added to get
3814 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3815 array size at least. It's necessary to write '\x00'==0 to get something
3816 that's true only with -std. */
3817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3820 inside strings and character constants. */
3821 #define FOO(x) 'x'
3822 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824 int test (int i, double x);
3825 struct s1 {int (*f) (int a);};
3826 struct s2 {int (*f) (double a);};
3827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 int argc;
3829 char **argv;
3831 main ()
3833 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 return 0;
3837 _ACEOF
3838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3839 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_c89=$ac_arg
3845 rm -f core conftest.err conftest.$ac_objext
3846 test "x$ac_cv_prog_cc_c89" != "xno" && break
3847 done
3848 rm -f conftest.$ac_ext
3849 CC=$ac_save_CC
3852 # AC_CACHE_VAL
3853 case "x$ac_cv_prog_cc_c89" in
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3856 $as_echo "none needed" >&6; } ;;
3857 xno)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3859 $as_echo "unsupported" >&6; } ;;
3861 CC="$CC $ac_cv_prog_cc_c89"
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3863 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3864 esac
3865 if test "x$ac_cv_prog_cc_c89" != xno; then :
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 case $ac_cv_prog_cc_stdc in #(
3876 no) :
3877 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3878 *) :
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3880 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3881 if ${ac_cv_prog_cc_c99+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 ac_cv_prog_cc_c99=no
3885 ac_save_CC=$CC
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 #include <stdarg.h>
3889 #include <stdbool.h>
3890 #include <stdlib.h>
3891 #include <wchar.h>
3892 #include <stdio.h>
3894 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3895 #define debug(...) fprintf (stderr, __VA_ARGS__)
3896 #define showlist(...) puts (#__VA_ARGS__)
3897 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3898 static void
3899 test_varargs_macros (void)
3901 int x = 1234;
3902 int y = 5678;
3903 debug ("Flag");
3904 debug ("X = %d\n", x);
3905 showlist (The first, second, and third items.);
3906 report (x>y, "x is %d but y is %d", x, y);
3909 // Check long long types.
3910 #define BIG64 18446744073709551615ull
3911 #define BIG32 4294967295ul
3912 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3913 #if !BIG_OK
3914 your preprocessor is broken;
3915 #endif
3916 #if BIG_OK
3917 #else
3918 your preprocessor is broken;
3919 #endif
3920 static long long int bignum = -9223372036854775807LL;
3921 static unsigned long long int ubignum = BIG64;
3923 struct incomplete_array
3925 int datasize;
3926 double data[];
3929 struct named_init {
3930 int number;
3931 const wchar_t *name;
3932 double average;
3935 typedef const char *ccp;
3937 static inline int
3938 test_restrict (ccp restrict text)
3940 // See if C++-style comments work.
3941 // Iterate through items via the restricted pointer.
3942 // Also check for declarations in for loops.
3943 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3944 continue;
3945 return 0;
3948 // Check varargs and va_copy.
3949 static void
3950 test_varargs (const char *format, ...)
3952 va_list args;
3953 va_start (args, format);
3954 va_list args_copy;
3955 va_copy (args_copy, args);
3957 const char *str;
3958 int number;
3959 float fnumber;
3961 while (*format)
3963 switch (*format++)
3965 case 's': // string
3966 str = va_arg (args_copy, const char *);
3967 break;
3968 case 'd': // int
3969 number = va_arg (args_copy, int);
3970 break;
3971 case 'f': // float
3972 fnumber = va_arg (args_copy, double);
3973 break;
3974 default:
3975 break;
3978 va_end (args_copy);
3979 va_end (args);
3983 main ()
3986 // Check bool.
3987 _Bool success = false;
3989 // Check restrict.
3990 if (test_restrict ("String literal") == 0)
3991 success = true;
3992 char *restrict newvar = "Another string";
3994 // Check varargs.
3995 test_varargs ("s, d' f .", "string", 65, 34.234);
3996 test_varargs_macros ();
3998 // Check flexible array members.
3999 struct incomplete_array *ia =
4000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4001 ia->datasize = 10;
4002 for (int i = 0; i < ia->datasize; ++i)
4003 ia->data[i] = i * 1.234;
4005 // Check named initializers.
4006 struct named_init ni = {
4007 .number = 34,
4008 .name = L"Test wide string",
4009 .average = 543.34343,
4012 ni.number = 58;
4014 int dynamic_array[ni.number];
4015 dynamic_array[ni.number - 1] = 543;
4017 // work around unused variable warnings
4018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4019 || dynamic_array[ni.number - 1] != 543);
4022 return 0;
4024 _ACEOF
4025 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_c99=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext
4032 test "x$ac_cv_prog_cc_c99" != "xno" && break
4033 done
4034 rm -f conftest.$ac_ext
4035 CC=$ac_save_CC
4038 # AC_CACHE_VAL
4039 case "x$ac_cv_prog_cc_c99" in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4043 xno)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4047 CC="$CC $ac_cv_prog_cc_c99"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4049 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4050 esac
4051 if test "x$ac_cv_prog_cc_c99" != xno; then :
4052 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if ${ac_cv_prog_cc_c89+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <stdarg.h>
4064 #include <stdio.h>
4065 struct stat;
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4070 char **p;
4071 int i;
4073 return p[i];
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4077 char *s;
4078 va_list v;
4079 va_start (v,p);
4080 s = g (p, va_arg (v,int));
4081 va_end (v);
4082 return s;
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4086 function prototypes and stuff, but not '\xHH' hex character constants.
4087 These don't provoke an error unfortunately, instead are silently treated
4088 as 'x'. The following induces an error, until -std is added to get
4089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4090 array size at least. It's necessary to write '\x00'==0 to get something
4091 that's true only with -std. */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095 inside strings and character constants. */
4096 #define FOO(x) 'x'
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 int argc;
4104 char **argv;
4106 main ()
4108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4110 return 0;
4112 _ACEOF
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c89=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132 xno)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4142 else
4143 ac_cv_prog_cc_stdc=no
4148 esac
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4150 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4151 if ${ac_cv_prog_cc_stdc+:} false; then :
4152 $as_echo_n "(cached) " >&6
4155 case $ac_cv_prog_cc_stdc in #(
4156 no) :
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;; #(
4159 '') :
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;; #(
4162 *) :
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4164 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4165 esac
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4173 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4174 # On Suns, sometimes $CPP names a directory.
4175 if test -n "$CPP" && test -d "$CPP"; then
4176 CPP=
4178 if test -z "$CPP"; then
4179 if ${ac_cv_prog_CPP+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 # Double quotes because CPP needs to be expanded
4183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4185 ac_preproc_ok=false
4186 for ac_c_preproc_warn_flag in '' yes
4188 # Use a header file that comes with gcc, so configuring glibc
4189 # with a fresh cross-compiler works.
4190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191 # <limits.h> exists even on freestanding compilers.
4192 # On the NeXT, cc -E runs the code through the compiler's parser,
4193 # not just through cpp. "Syntax error" is here to catch this case.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #ifdef __STDC__
4197 # include <limits.h>
4198 #else
4199 # include <assert.h>
4200 #endif
4201 Syntax error
4202 _ACEOF
4203 if ac_fn_c_try_cpp "$LINENO"; then :
4205 else
4206 # Broken: fails on valid input.
4207 continue
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: success on invalid input.
4219 continue
4220 else
4221 # Passes both tests.
4222 ac_preproc_ok=:
4223 break
4225 rm -f conftest.err conftest.i conftest.$ac_ext
4227 done
4228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4229 rm -f conftest.i conftest.err conftest.$ac_ext
4230 if $ac_preproc_ok; then :
4231 break
4234 done
4235 ac_cv_prog_CPP=$CPP
4238 CPP=$ac_cv_prog_CPP
4239 else
4240 ac_cv_prog_CPP=$CPP
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4243 $as_echo "$CPP" >&6; }
4244 ac_preproc_ok=false
4245 for ac_c_preproc_warn_flag in '' yes
4247 # Use a header file that comes with gcc, so configuring glibc
4248 # with a fresh cross-compiler works.
4249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 # <limits.h> exists even on freestanding compilers.
4251 # On the NeXT, cc -E runs the code through the compiler's parser,
4252 # not just through cpp. "Syntax error" is here to catch this case.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #ifdef __STDC__
4256 # include <limits.h>
4257 #else
4258 # include <assert.h>
4259 #endif
4260 Syntax error
4261 _ACEOF
4262 if ac_fn_c_try_cpp "$LINENO"; then :
4264 else
4265 # Broken: fails on valid input.
4266 continue
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether nonexistent headers
4271 # can be detected and how.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <ac_nonexistent.h>
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: success on invalid input.
4278 continue
4279 else
4280 # Passes both tests.
4281 ac_preproc_ok=:
4282 break
4284 rm -f conftest.err conftest.i conftest.$ac_ext
4286 done
4287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288 rm -f conftest.i conftest.err conftest.$ac_ext
4289 if $ac_preproc_ok; then :
4291 else
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4295 See \`config.log' for more details" "$LINENO" 5; }
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 # Check for a compatible awk
4306 for ac_prog in gawk nawk
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AWK+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$AWK"; then
4316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_AWK="$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 AWK=$ac_cv_prog_AWK
4336 if test -n "$AWK"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4338 $as_echo "$AWK" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$AWK" && break
4346 done
4348 if test "$AWK" = ""; then
4349 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4351 # Extract the first word of "mmake", so it can be a program name with args.
4352 set dummy mmake; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_MMAKE+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$MMAKE"; then
4359 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_MMAKE="mmake "
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 MMAKE=$ac_cv_prog_MMAKE
4379 if test -n "$MMAKE"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4381 $as_echo "$MMAKE" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4389 # Perform some default variable assignments. Note all of these will be
4390 # Regenerated from the script, so there is no need to cache them.
4392 aros_build_host=$host
4393 aros_host_cpp="$CPP"
4394 aros_host_cc="$CC"
4395 aros_host_cxx="$CXX"
4396 if test "$GCC" = "yes"; then
4397 aros_gcc_ld=`$CC -print-prog-name=ld`
4398 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4399 set dummy `basename $aros_gcc_ld`; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_path_aros_host_ld+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 case $aros_host_ld in
4406 [\\/]* | ?:[\\/]*)
4407 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in `dirname $aros_gcc_ld`
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4426 esac
4428 aros_host_ld=$ac_cv_path_aros_host_ld
4429 if test -n "$aros_host_ld"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4431 $as_echo "$aros_host_ld" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4439 if test "$aros_host_ld" = ""; then
4440 # Extract the first word of "ld", so it can be a program name with args.
4441 set dummy ld; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_aros_host_ld+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 case $aros_host_ld in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4468 esac
4470 aros_host_ld=$ac_cv_path_aros_host_ld
4471 if test -n "$aros_host_ld"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4473 $as_echo "$aros_host_ld" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4481 if test "$aros_host_ld" = ""; then
4482 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4484 aros_host_make="make"
4485 aros_host_cflags="$CFLAGS"
4486 aros_host_cxxflags="$CXXFLAGS"
4487 aros_host_ldflags="$LDFLAGS"
4488 aros_host_debug="-g -O0"
4489 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4490 aros_host_mkargs="--no-print-directory"
4491 aros_host_exe_suffix="$EXEEXT"
4492 aros_host_lib_suffix=""
4494 # Ignore all compliance, AROS ROMs = 0
4495 # KickStart v1.0 = 30
4496 # KickStart v1.3 = 34
4497 # KickStart v2.0 = 37
4498 # KickStart v3.0 = 39
4499 # KickStart v3.1 = 40
4500 # AmigaOS v3.5 = 44
4501 aros_amigaos_compliance=0
4503 for ac_prog in aclocal aclocal19 aclocal-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$aros_host_aclocal"; then
4513 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_aclocal="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4533 if test -n "$aros_host_aclocal"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4535 $as_echo "$aros_host_aclocal" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_aclocal" && break
4543 done
4545 for ac_prog in autoconf autoconf259 autoconf253
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$aros_host_autoconf"; then
4555 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_aros_host_autoconf="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4575 if test -n "$aros_host_autoconf"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4577 $as_echo "$aros_host_autoconf" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$aros_host_autoconf" && break
4585 done
4587 for ac_prog in autoheader autoheader259 autoheader253
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$aros_host_autoheader"; then
4597 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_aros_host_autoheader="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4617 if test -n "$aros_host_autoheader"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4619 $as_echo "$aros_host_autoheader" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$aros_host_autoheader" && break
4627 done
4629 for ac_prog in automake automake19 automake-1.9
4631 # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 set dummy $ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_aros_host_automake+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$aros_host_automake"; then
4639 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_aros_host_automake="$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 aros_host_automake=$ac_cv_prog_aros_host_automake
4659 if test -n "$aros_host_automake"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4661 $as_echo "$aros_host_automake" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 test -n "$aros_host_automake" && break
4669 done
4672 if test "$aros_host_aclocal" = ""; then
4673 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4675 if test "$aros_host_automake" = ""; then
4676 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4679 case "$aros_host_cc" in
4680 *clang*)
4681 aros_host_cc_pipe=""
4683 *gcc*)
4684 aros_host_cc_pipe="-pipe"
4686 icc)
4687 aros_host_cc_pipe=""
4690 aros_host_cc_pipe=""
4692 esac
4694 aros_kernel_cc_includes=""
4695 aros_target_cc_includes=""
4696 host_cc_elf=yes
4698 # ----------------------------------------------------------------------------------------
4699 # Host-specific defaults
4701 # This is the main host configuration section. It is where the host
4702 # can change the values of any variables it needs to change. We do
4703 # not look at anything that compiles to the target yet, we'll get
4704 # to that later.
4706 case "$host_os" in
4707 aros*)
4708 aros_host_arch="aros"
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4710 case "$host_cpu" in
4711 *i?86*)
4712 aros_host_cpu="i386"
4714 *x86_64*)
4715 aros_host_cpu="x86_64"
4717 *powerpc*)
4718 aros_host_cpu="ppc"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4722 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4723 aros_host_cpu="$host_cpu"
4725 esac
4728 linux*)
4729 aros_host_arch="linux"
4730 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4731 android_build_os="linux-x86"
4732 android_tool="android"
4733 default_android_sdk="/opt/android-sdk-linux_x86"
4734 case "$host_cpu" in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *x86_64*)
4739 aros_host_cpu="x86_64"
4741 *m68k*)
4742 aros_host_cpu="m68k"
4744 *powerpc*)
4745 aros_host_cpu="ppc"
4747 *arm*)
4748 aros_host_cpu="arm"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4752 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4753 aros_host_cpu="$host_cpu"
4755 esac
4758 freebsd*)
4759 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4760 aros_host_make="gmake"
4761 aros_host_arch="freebsd"
4762 aros_host_cpu="i386"
4764 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4766 case $host_os in
4767 freebsd[234]*)
4768 aros_object_format="elf_i386"
4772 aros_object_format="elf_i386_fbsd"
4774 esac
4778 darwin*)
4779 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4780 aros_host_arch="darwin"
4781 host_cc_elf=no
4782 if [ -z ${SED+x} ]; then SED="gsed"; fi
4783 android_build_os="darwin-x86"
4784 android_tool="android"
4785 default_android_sdk="/android-sdk-mac_x86"
4786 case "$host_cpu" in
4787 *i?86*)
4788 aros_host_cpu="i386"
4790 *x86_64*)
4791 aros_host_cpu="x86_64"
4793 *powerpc*)
4794 aros_host_cpu="ppc"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4798 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4799 aros_host_cpu="$host_cpu"
4801 esac
4803 aros_host_ldflags="$aros_host_ldflags -liconv"
4807 dragonfly*)
4808 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4809 aros_host_make="gmake"
4810 aros_host_arch="dragonfly"
4811 case $host_cpu in
4812 *i?86*)
4813 aros_host_cpu="i386"
4815 *amd64*)
4816 aros_host_cpu="x86_64"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4820 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4821 aros_host_cpu="$host_cpu"
4823 esac
4826 netbsd*)
4827 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4828 aros_host_make="gmake"
4829 aros_host_arch="netbsd"
4830 case "$host_cpu" in
4831 *i?86*)
4832 aros_host_cpu="i386"
4834 *m68k*)
4835 aros_host_cpu="m68k"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4839 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4840 aros_host_cpu="$host_cpu"
4842 esac
4843 aros_host_lib_suffix=".0.0"
4846 openbsd*)
4847 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4848 aros_host_make="gmake"
4849 aros_host_arch="openbsd"
4850 case "$host_cpu" in
4851 *i?86*)
4852 aros_host_cpu="i386"
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 solaris*)
4863 aros_host_arch="solaris"
4864 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4865 case "$host_cpu" in
4866 *i?86*)
4867 aros_host_cpu="i386"
4869 *sparc*)
4870 aros_host_cpu="sparc"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4875 aros_host_cpu="$host_cpu"
4877 esac
4880 morphos*)
4881 aros_host_arch="morphos"
4882 aros_host_cpu="ppc"
4883 host_cc_elf=no
4886 amiga*)
4887 aros_host_arch="amiga"
4888 host_cc_elf=no
4889 SORT="/gg/bin/sort"
4890 TEST="/gg/bin/test"
4891 UNIQ="/gg/bin/uniq"
4892 FOR="for"
4893 TOUCH="/gg/bin/touch"
4894 case "$host_cpu" in
4895 *m68k*)
4896 aros_host_cpu="m68k"
4898 *powerpc*)
4899 aros_host_cpu="ppc"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4903 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4904 aros_host_cpu="$host_cpu"
4906 esac
4909 cygwin*)
4910 aros_host_arch="cygwin"
4911 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4912 host_cc_elf=no
4913 android_build_os="windows"
4914 android_tool="android.bat"
4915 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4917 case "$host_cpu" in
4918 *i?86*)
4919 aros_host_cpu="i386"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4923 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4924 aros_host_cpu="$host_cpu"
4926 esac
4929 mingw32*)
4930 aros_host_arch="mingw32"
4931 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4932 host_cc_elf=no
4933 android_build_os="windows"
4934 android_tool="android.bat"
4935 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4937 case "$host_cpu" in
4938 *i?86*)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4941 $as_echo_n "checking for Windows native gcc target... " >&6; }
4942 host_cpu=`gcc -dumpmachine`
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4944 $as_echo "$host_cpu" >&6; }
4947 esac
4949 case "$host_cpu" in
4950 *i?86*)
4951 aros_host_cpu="i386"
4954 mingw32*)
4955 aros_host_cpu="i386"
4958 *x86_64*)
4959 aros_host_cpu="x86_64"
4960 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4965 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4966 aros_host_cpu="$host_cpu"
4968 esac
4971 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4973 esac
4975 # Extract the first word of "ar", so it can be a program name with args.
4976 set dummy ar; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_aros_host_ar+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$aros_host_ar"; then
4983 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_aros_host_ar="ar cr"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 aros_host_ar=$ac_cv_prog_aros_host_ar
5003 if test -n "$aros_host_ar"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5005 $as_echo "$aros_host_ar" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5012 if test "$aros_host_ar" = ""; then
5013 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5015 # Extract the first word of "ranlib", so it can be a program name with args.
5016 set dummy ranlib; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$aros_host_ranlib"; then
5023 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_aros_host_ranlib="ranlib "
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5043 if test -n "$aros_host_ranlib"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5045 $as_echo "$aros_host_ranlib" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 if test "$aros_host_ranlib" = ""; then
5053 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5055 # Extract the first word of "strip", so it can be a program name with args.
5056 set dummy strip; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_aros_host_strip+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$aros_host_strip"; then
5063 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_aros_host_strip="strip "
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 aros_host_strip=$ac_cv_prog_aros_host_strip
5083 if test -n "$aros_host_strip"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5085 $as_echo "$aros_host_strip" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 if test "$aros_host_strip" = ""; then
5093 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5096 # Extract the first word of "rm", so it can be a program name with args.
5097 set dummy rm; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_RM+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$RM"; then
5104 ac_cv_prog_RM="$RM" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_RM="rm -rf"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 RM=$ac_cv_prog_RM
5124 if test -n "$RM"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5126 $as_echo "$RM" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 if test "$RM" = ""; then
5134 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5136 # Extract the first word of "cp", so it can be a program name with args.
5137 set dummy cp; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_CP+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$CP"; then
5144 ac_cv_prog_CP="$CP" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_CP="cp "
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5163 CP=$ac_cv_prog_CP
5164 if test -n "$CP"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5166 $as_echo "$CP" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "$CP" = ""; then
5174 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5176 # Extract the first word of "mv", so it can be a program name with args.
5177 set dummy mv; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_MV+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$MV"; then
5184 ac_cv_prog_MV="$MV" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_MV="mv "
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 MV=$ac_cv_prog_MV
5204 if test -n "$MV"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5206 $as_echo "$MV" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 if test "$MV" = ""; then
5214 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5216 # Extract the first word of "echo", so it can be a program name with args.
5217 set dummy echo; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ECHO+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$ECHO"; then
5224 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ECHO="echo "
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 ECHO=$ac_cv_prog_ECHO
5244 if test -n "$ECHO"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5246 $as_echo "$ECHO" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 if test "$ECHO" = ""; then
5254 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5256 # Extract the first word of "mkdir", so it can be a program name with args.
5257 set dummy mkdir; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_MKDIR+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$MKDIR"; then
5264 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_MKDIR="mkdir -p"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 MKDIR=$ac_cv_prog_MKDIR
5284 if test -n "$MKDIR"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5286 $as_echo "$MKDIR" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 if test "$MKDIR" = ""; then
5294 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5296 # Extract the first word of "touch", so it can be a program name with args.
5297 set dummy touch; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_TOUCH+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$TOUCH"; then
5304 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_TOUCH="touch "
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 TOUCH=$ac_cv_prog_TOUCH
5324 if test -n "$TOUCH"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5326 $as_echo "$TOUCH" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5333 if test "$TOUCH" = ""; then
5334 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 # Extract the first word of "sort", so it can be a program name with args.
5337 set dummy sort; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_SORT+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$SORT"; then
5344 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_SORT="sort "
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5359 IFS=$as_save_IFS
5363 SORT=$ac_cv_prog_SORT
5364 if test -n "$SORT"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5366 $as_echo "$SORT" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 if test "$SORT" = ""; then
5374 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5376 # Extract the first word of "uniq", so it can be a program name with args.
5377 set dummy uniq; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_UNIQ+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$UNIQ"; then
5384 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_UNIQ="uniq "
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 UNIQ=$ac_cv_prog_UNIQ
5404 if test -n "$UNIQ"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5406 $as_echo "$UNIQ" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5413 if test "$UNIQ" = ""; then
5414 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5416 # Extract the first word of "true", so it can be a program name with args.
5417 set dummy true; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_NOP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$NOP"; then
5424 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_NOP="true "
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 NOP=$ac_cv_prog_NOP
5444 if test -n "$NOP"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5446 $as_echo "$NOP" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 if test "$NOP" = ""; then
5454 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5456 # Extract the first word of "cat", so it can be a program name with args.
5457 set dummy cat; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_CAT+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$CAT"; then
5464 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_CAT="cat "
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 CAT=$ac_cv_prog_CAT
5484 if test -n "$CAT"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5486 $as_echo "$CAT" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5493 if test "$CAT" = ""; then
5494 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5496 # Extract the first word of "bison", so it can be a program name with args.
5497 set dummy bison; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_BISON+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$BISON"; then
5504 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_BISON="bison "
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5523 BISON=$ac_cv_prog_BISON
5524 if test -n "$BISON"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5526 $as_echo "$BISON" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5533 if test "$BISON" = ""; then
5534 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5536 # Extract the first word of "flex", so it can be a program name with args.
5537 set dummy flex; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_FLEX+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$FLEX"; then
5544 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_FLEX="flex "
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5557 done
5558 done
5559 IFS=$as_save_IFS
5563 FLEX=$ac_cv_prog_FLEX
5564 if test -n "$FLEX"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5566 $as_echo "$FLEX" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 if test "$FLEX" = ""; then
5574 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5576 # Extract the first word of "pngtopnm", so it can be a program name with args.
5577 set dummy pngtopnm; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$PNGTOPNM"; then
5584 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_PNGTOPNM="pngtopnm "
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5597 done
5598 done
5599 IFS=$as_save_IFS
5603 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5604 if test -n "$PNGTOPNM"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5606 $as_echo "$PNGTOPNM" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 if test "$PNGTOPNM" = ""; then
5614 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5616 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5617 set dummy ppmtoilbm; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$PPMTOILBM"; then
5624 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5643 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5644 if test -n "$PPMTOILBM"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5646 $as_echo "$PPMTOILBM" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5653 if test "$PPMTOILBM" = ""; then
5654 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5656 # Extract the first word of "sed", so it can be a program name with args.
5657 set dummy sed; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_SED+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$SED"; then
5664 ac_cv_prog_SED="$SED" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_SED="sed "
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 SED=$ac_cv_prog_SED
5684 if test -n "$SED"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5686 $as_echo "$SED" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5693 if test "$SED" = ""; then
5694 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5696 # Extract the first word of "chmod", so it can be a program name with args.
5697 set dummy chmod; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_CHMOD+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$CHMOD"; then
5704 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_CHMOD="chmod "
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5723 CHMOD=$ac_cv_prog_CHMOD
5724 if test -n "$CHMOD"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5726 $as_echo "$CHMOD" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5733 if test "$CHMOD" = ""; then
5734 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5736 # Extract the first word of "patch", so it can be a program name with args.
5737 set dummy patch; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_PATCH+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$PATCH"; then
5744 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_PATCH="patch "
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5757 done
5758 done
5759 IFS=$as_save_IFS
5763 PATCH=$ac_cv_prog_PATCH
5764 if test -n "$PATCH"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5766 $as_echo "$PATCH" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5773 if test "$PATCH" = ""; then
5774 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5783 if test -n "$PYTHON"; then
5784 # If the user set $PYTHON, use it and don't search something else.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5786 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5787 prog="import sys
5788 # split strings by '.' and convert to numeric. Append some zeros
5789 # because we need at least 4 digits for the hex conversion.
5790 # map returns an iterator in Python 3.0 and a list in 2.x
5791 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5792 minverhex = 0
5793 # xrange is not present in Python 3.0 and range returns an iterator
5794 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5795 sys.exit(sys.hexversion < minverhex)"
5796 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5797 ($PYTHON -c "$prog") >&5 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5808 am_display_PYTHON=$PYTHON
5809 else
5810 # Otherwise, try each interpreter until we find one that satisfies
5811 # VERSION.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5813 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5814 if ${am_cv_pathless_PYTHON+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5818 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
5819 test "$am_cv_pathless_PYTHON" = none && break
5820 prog="import sys
5821 # split strings by '.' and convert to numeric. Append some zeros
5822 # because we need at least 4 digits for the hex conversion.
5823 # map returns an iterator in Python 3.0 and a list in 2.x
5824 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5825 minverhex = 0
5826 # xrange is not present in Python 3.0 and range returns an iterator
5827 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5828 sys.exit(sys.hexversion < minverhex)"
5829 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5830 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; then :
5834 break
5836 done
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5839 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5840 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5841 if test "$am_cv_pathless_PYTHON" = none; then
5842 PYTHON=:
5843 else
5844 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5845 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_path_PYTHON+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 case $PYTHON in
5852 [\\/]* | ?:[\\/]*)
5853 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5872 esac
5874 PYTHON=$ac_cv_path_PYTHON
5875 if test -n "$PYTHON"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5877 $as_echo "$PYTHON" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5885 am_display_PYTHON=$am_cv_pathless_PYTHON
5889 if test "$PYTHON" = :; then
5890 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5891 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5895 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5896 if ${am_cv_python_version+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5902 $as_echo "$am_cv_python_version" >&6; }
5903 PYTHON_VERSION=$am_cv_python_version
5907 PYTHON_PREFIX='${prefix}'
5909 PYTHON_EXEC_PREFIX='${exec_prefix}'
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5914 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5915 if ${am_cv_python_platform+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5921 $as_echo "$am_cv_python_platform" >&6; }
5922 PYTHON_PLATFORM=$am_cv_python_platform
5925 # Just factor out some code duplication.
5926 am_python_setup_sysconfig="\
5927 import sys
5928 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5929 # with python 3.x. See automake bug#10227.
5930 try:
5931 import sysconfig
5932 except ImportError:
5933 can_use_sysconfig = 0
5934 else:
5935 can_use_sysconfig = 1
5936 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5937 # <https://github.com/pypa/virtualenv/issues/118>
5938 try:
5939 from platform import python_implementation
5940 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5941 can_use_sysconfig = 0
5942 except ImportError:
5943 pass"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5947 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5948 if ${am_cv_python_pythondir+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test "x$prefix" = xNONE
5952 then
5953 am_py_prefix=$ac_default_prefix
5954 else
5955 am_py_prefix=$prefix
5957 am_cv_python_pythondir=`$PYTHON -c "
5958 $am_python_setup_sysconfig
5959 if can_use_sysconfig:
5960 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5961 else:
5962 from distutils import sysconfig
5963 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5964 sys.stdout.write(sitedir)"`
5965 case $am_cv_python_pythondir in
5966 $am_py_prefix*)
5967 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5968 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5971 case $am_py_prefix in
5972 /usr|/System*) ;;
5974 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5976 esac
5978 esac
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5982 $as_echo "$am_cv_python_pythondir" >&6; }
5983 pythondir=$am_cv_python_pythondir
5987 pkgpythondir=\${pythondir}/$PACKAGE
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5991 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5992 if ${am_cv_python_pyexecdir+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if test "x$exec_prefix" = xNONE
5996 then
5997 am_py_exec_prefix=$am_py_prefix
5998 else
5999 am_py_exec_prefix=$exec_prefix
6001 am_cv_python_pyexecdir=`$PYTHON -c "
6002 $am_python_setup_sysconfig
6003 if can_use_sysconfig:
6004 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6005 else:
6006 from distutils import sysconfig
6007 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6008 sys.stdout.write(sitedir)"`
6009 case $am_cv_python_pyexecdir in
6010 $am_py_exec_prefix*)
6011 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6012 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6015 case $am_py_exec_prefix in
6016 /usr|/System*) ;;
6018 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6020 esac
6022 esac
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6026 $as_echo "$am_cv_python_pyexecdir" >&6; }
6027 pyexecdir=$am_cv_python_pyexecdir
6031 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6041 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6042 if ${ac_cv_lib_png_png_read_png+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 ac_check_lib_save_LIBS=$LIBS
6046 LIBS="-lpng $LIBS"
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6050 /* Override any GCC internal prototype to avoid an error.
6051 Use char because int might match the return type of a GCC
6052 builtin and then its argument prototype would still apply. */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 char png_read_png ();
6058 main ()
6060 return png_read_png ();
6062 return 0;
6064 _ACEOF
6065 if ac_fn_c_try_link "$LINENO"; then :
6066 ac_cv_lib_png_png_read_png=yes
6067 else
6068 ac_cv_lib_png_png_read_png=no
6070 rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6075 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6076 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LIBPNG 1
6079 _ACEOF
6081 LIBS="-lpng $LIBS"
6085 if test "$ac_cv_lib_png_png_read_png" = ""; then
6086 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6089 FOR=for
6091 IF=if
6093 TEST=test
6095 CMP=cmp
6099 # Check for some includes for the X11 HIDD and the kernel
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6103 if ${ac_cv_path_GREP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -z "$GREP"; then
6107 ac_path_GREP_found=false
6108 # Loop through the user's path and test for each of PROGNAME-LIST
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_prog in grep ggrep; do
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6117 as_fn_executable_p "$ac_path_GREP" || continue
6118 # Check for GNU ac_path_GREP and select it if it is found.
6119 # Check for GNU $ac_path_GREP
6120 case `"$ac_path_GREP" --version 2>&1` in
6121 *GNU*)
6122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6124 ac_count=0
6125 $as_echo_n 0123456789 >"conftest.in"
6126 while :
6128 cat "conftest.in" "conftest.in" >"conftest.tmp"
6129 mv "conftest.tmp" "conftest.in"
6130 cp "conftest.in" "conftest.nl"
6131 $as_echo 'GREP' >> "conftest.nl"
6132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134 as_fn_arith $ac_count + 1 && ac_count=$as_val
6135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6136 # Best one so far, save it but keep looking for a better one
6137 ac_cv_path_GREP="$ac_path_GREP"
6138 ac_path_GREP_max=$ac_count
6140 # 10*(2^10) chars as input seems more than enough
6141 test $ac_count -gt 10 && break
6142 done
6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6144 esac
6146 $ac_path_GREP_found && break 3
6147 done
6148 done
6149 done
6150 IFS=$as_save_IFS
6151 if test -z "$ac_cv_path_GREP"; then
6152 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6154 else
6155 ac_cv_path_GREP=$GREP
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6160 $as_echo "$ac_cv_path_GREP" >&6; }
6161 GREP="$ac_cv_path_GREP"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6165 $as_echo_n "checking for egrep... " >&6; }
6166 if ${ac_cv_path_EGREP+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6170 then ac_cv_path_EGREP="$GREP -E"
6171 else
6172 if test -z "$EGREP"; then
6173 ac_path_EGREP_found=false
6174 # Loop through the user's path and test for each of PROGNAME-LIST
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_prog in egrep; do
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6183 as_fn_executable_p "$ac_path_EGREP" || continue
6184 # Check for GNU ac_path_EGREP and select it if it is found.
6185 # Check for GNU $ac_path_EGREP
6186 case `"$ac_path_EGREP" --version 2>&1` in
6187 *GNU*)
6188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6190 ac_count=0
6191 $as_echo_n 0123456789 >"conftest.in"
6192 while :
6194 cat "conftest.in" "conftest.in" >"conftest.tmp"
6195 mv "conftest.tmp" "conftest.in"
6196 cp "conftest.in" "conftest.nl"
6197 $as_echo 'EGREP' >> "conftest.nl"
6198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6200 as_fn_arith $ac_count + 1 && ac_count=$as_val
6201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6202 # Best one so far, save it but keep looking for a better one
6203 ac_cv_path_EGREP="$ac_path_EGREP"
6204 ac_path_EGREP_max=$ac_count
6206 # 10*(2^10) chars as input seems more than enough
6207 test $ac_count -gt 10 && break
6208 done
6209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6210 esac
6212 $ac_path_EGREP_found && break 3
6213 done
6214 done
6215 done
6216 IFS=$as_save_IFS
6217 if test -z "$ac_cv_path_EGREP"; then
6218 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 else
6221 ac_cv_path_EGREP=$EGREP
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6227 $as_echo "$ac_cv_path_EGREP" >&6; }
6228 EGREP="$ac_cv_path_EGREP"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6232 $as_echo_n "checking for ANSI C header files... " >&6; }
6233 if ${ac_cv_header_stdc+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6244 main ()
6248 return 0;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 ac_cv_header_stdc=yes
6253 else
6254 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <string.h>
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "memchr" >/dev/null 2>&1; then :
6268 else
6269 ac_cv_header_stdc=no
6271 rm -f conftest*
6275 if test $ac_cv_header_stdc = yes; then
6276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <stdlib.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then :
6285 else
6286 ac_cv_header_stdc=no
6288 rm -f conftest*
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then :
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <ctype.h>
6300 #include <stdlib.h>
6301 #if ((' ' & 0x0FF) == 0x020)
6302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 #else
6305 # define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6310 #endif
6312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 main ()
6316 int i;
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6320 return 2;
6321 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_run "$LINENO"; then :
6326 else
6327 ac_cv_header_stdc=no
6329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6330 conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6346 do :
6347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6351 cat >>confdefs.h <<_ACEOF
6352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6353 _ACEOF
6357 done
6360 for ac_header in sys/ipc.h sys/shm.h \
6361 sys/mmap.h sys/mman.h sysexits.h \
6362 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6364 do :
6365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6368 cat >>confdefs.h <<_ACEOF
6369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 _ACEOF
6374 done
6377 for ac_header in sys/mount.h
6378 do :
6379 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6381 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6382 cat >>confdefs.h <<_ACEOF
6383 #define HAVE_SYS_MOUNT_H 1
6384 _ACEOF
6388 done
6391 ac_header_dirent=no
6392 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6393 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6395 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6396 if eval \${$as_ac_Header+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <sys/types.h>
6402 #include <$ac_hdr>
6405 main ()
6407 if ((DIR *) 0)
6408 return 0;
6410 return 0;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_ac_Header=yes"
6415 else
6416 eval "$as_ac_Header=no"
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 eval ac_res=\$$as_ac_Header
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6422 $as_echo "$ac_res" >&6; }
6423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6426 _ACEOF
6428 ac_header_dirent=$ac_hdr; break
6431 done
6432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6433 if test $ac_header_dirent = dirent.h; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6435 $as_echo_n "checking for library containing opendir... " >&6; }
6436 if ${ac_cv_search_opendir+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 ac_func_search_save_LIBS=$LIBS
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6443 /* Override any GCC internal prototype to avoid an error.
6444 Use char because int might match the return type of a GCC
6445 builtin and then its argument prototype would still apply. */
6446 #ifdef __cplusplus
6447 extern "C"
6448 #endif
6449 char opendir ();
6451 main ()
6453 return opendir ();
6455 return 0;
6457 _ACEOF
6458 for ac_lib in '' dir; do
6459 if test -z "$ac_lib"; then
6460 ac_res="none required"
6461 else
6462 ac_res=-l$ac_lib
6463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 ac_cv_search_opendir=$ac_res
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext
6470 if ${ac_cv_search_opendir+:} false; then :
6471 break
6473 done
6474 if ${ac_cv_search_opendir+:} false; then :
6476 else
6477 ac_cv_search_opendir=no
6479 rm conftest.$ac_ext
6480 LIBS=$ac_func_search_save_LIBS
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6483 $as_echo "$ac_cv_search_opendir" >&6; }
6484 ac_res=$ac_cv_search_opendir
6485 if test "$ac_res" != no; then :
6486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6492 $as_echo_n "checking for library containing opendir... " >&6; }
6493 if ${ac_cv_search_opendir+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 ac_func_search_save_LIBS=$LIBS
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6500 /* Override any GCC internal prototype to avoid an error.
6501 Use char because int might match the return type of a GCC
6502 builtin and then its argument prototype would still apply. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 char opendir ();
6508 main ()
6510 return opendir ();
6512 return 0;
6514 _ACEOF
6515 for ac_lib in '' x; do
6516 if test -z "$ac_lib"; then
6517 ac_res="none required"
6518 else
6519 ac_res=-l$ac_lib
6520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6522 if ac_fn_c_try_link "$LINENO"; then :
6523 ac_cv_search_opendir=$ac_res
6525 rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext
6527 if ${ac_cv_search_opendir+:} false; then :
6528 break
6530 done
6531 if ${ac_cv_search_opendir+:} false; then :
6533 else
6534 ac_cv_search_opendir=no
6536 rm conftest.$ac_ext
6537 LIBS=$ac_func_search_save_LIBS
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6540 $as_echo "$ac_cv_search_opendir" >&6; }
6541 ac_res=$ac_cv_search_opendir
6542 if test "$ac_res" != no; then :
6543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6550 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6551 if ${ac_cv_header_stat_broken+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <sys/stat.h>
6559 #if defined S_ISBLK && defined S_IFDIR
6560 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6561 #endif
6563 #if defined S_ISBLK && defined S_IFCHR
6564 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6565 #endif
6567 #if defined S_ISLNK && defined S_IFREG
6568 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6569 #endif
6571 #if defined S_ISSOCK && defined S_IFREG
6572 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6573 #endif
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 ac_cv_header_stat_broken=no
6578 else
6579 ac_cv_header_stat_broken=yes
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6584 $as_echo "$ac_cv_header_stat_broken" >&6; }
6585 if test $ac_cv_header_stat_broken = yes; then
6587 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6592 $as_echo_n "checking for ANSI C header files... " >&6; }
6593 if ${ac_cv_header_stdc+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <stdlib.h>
6599 #include <stdarg.h>
6600 #include <string.h>
6601 #include <float.h>
6604 main ()
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 ac_cv_header_stdc=yes
6613 else
6614 ac_cv_header_stdc=no
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <string.h>
6624 _ACEOF
6625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626 $EGREP "memchr" >/dev/null 2>&1; then :
6628 else
6629 ac_cv_header_stdc=no
6631 rm -f conftest*
6635 if test $ac_cv_header_stdc = yes; then
6636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <stdlib.h>
6641 _ACEOF
6642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6643 $EGREP "free" >/dev/null 2>&1; then :
6645 else
6646 ac_cv_header_stdc=no
6648 rm -f conftest*
6652 if test $ac_cv_header_stdc = yes; then
6653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6654 if test "$cross_compiling" = yes; then :
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <ctype.h>
6660 #include <stdlib.h>
6661 #if ((' ' & 0x0FF) == 0x020)
6662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6664 #else
6665 # define ISLOWER(c) \
6666 (('a' <= (c) && (c) <= 'i') \
6667 || ('j' <= (c) && (c) <= 'r') \
6668 || ('s' <= (c) && (c) <= 'z'))
6669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6670 #endif
6672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6674 main ()
6676 int i;
6677 for (i = 0; i < 256; i++)
6678 if (XOR (islower (i), ISLOWER (i))
6679 || toupper (i) != TOUPPER (i))
6680 return 2;
6681 return 0;
6683 _ACEOF
6684 if ac_fn_c_try_run "$LINENO"; then :
6686 else
6687 ac_cv_header_stdc=no
6689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690 conftest.$ac_objext conftest.beam conftest.$ac_ext
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6696 $as_echo "$ac_cv_header_stdc" >&6; }
6697 if test $ac_cv_header_stdc = yes; then
6699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6704 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6705 if ${ac_cv_header_sys_wait_h+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <sys/wait.h>
6712 #ifndef WEXITSTATUS
6713 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6714 #endif
6715 #ifndef WIFEXITED
6716 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6717 #endif
6720 main ()
6722 int s;
6723 wait (&s);
6724 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6726 return 0;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 ac_cv_header_sys_wait_h=yes
6731 else
6732 ac_cv_header_sys_wait_h=no
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6737 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6738 if test $ac_cv_header_sys_wait_h = yes; then
6740 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6746 if ${ac_cv_header_time+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 #include <sys/time.h>
6753 #include <time.h>
6756 main ()
6758 if ((struct tm *) 0)
6759 return 0;
6761 return 0;
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_header_time=yes
6766 else
6767 ac_cv_header_time=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6772 $as_echo "$ac_cv_header_time" >&6; }
6773 if test $ac_cv_header_time = yes; then
6775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6779 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6780 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6784 _ACEOF
6787 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6792 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6793 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6797 _ACEOF
6800 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6802 else
6803 case " $LIBOBJS " in
6804 *" fileblocks.$ac_objext "* ) ;;
6805 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6807 esac
6812 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6813 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6815 cat >>confdefs.h <<_ACEOF
6816 #define HAVE_STRUCT_STAT_ST_RDEV 1
6817 _ACEOF
6820 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6826 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6827 if ${ac_cv_struct_tm+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 #include <time.h>
6836 main ()
6838 struct tm tm;
6839 int *p = &tm.tm_sec;
6840 return !p;
6842 return 0;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 ac_cv_struct_tm=time.h
6847 else
6848 ac_cv_struct_tm=sys/time.h
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6853 $as_echo "$ac_cv_struct_tm" >&6; }
6854 if test $ac_cv_struct_tm = sys/time.h; then
6856 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6860 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6861 #include <$ac_cv_struct_tm>
6864 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_STRUCT_TM_TM_ZONE 1
6868 _ACEOF
6873 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6875 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6877 else
6878 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6880 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6881 ac_have_decl=1
6882 else
6883 ac_have_decl=0
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_TZNAME $ac_have_decl
6888 _ACEOF
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6891 $as_echo_n "checking for tzname... " >&6; }
6892 if ${ac_cv_var_tzname+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <time.h>
6898 #if !HAVE_DECL_TZNAME
6899 extern char *tzname[];
6900 #endif
6903 main ()
6905 return tzname[0][0];
6907 return 0;
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911 ac_cv_var_tzname=yes
6912 else
6913 ac_cv_var_tzname=no
6915 rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6919 $as_echo "$ac_cv_var_tzname" >&6; }
6920 if test $ac_cv_var_tzname = yes; then
6922 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6927 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6928 if test "x$ac_cv_type_off_t" = xyes; then :
6930 else
6932 cat >>confdefs.h <<_ACEOF
6933 #define off_t long int
6934 _ACEOF
6938 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6939 if test "x$ac_cv_type_pid_t" = xyes; then :
6941 else
6943 cat >>confdefs.h <<_ACEOF
6944 #define pid_t int
6945 _ACEOF
6949 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6950 if test "x$ac_cv_type_size_t" = xyes; then :
6952 else
6954 cat >>confdefs.h <<_ACEOF
6955 #define size_t unsigned int
6956 _ACEOF
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6961 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6962 if ${ac_cv_type_uid_t+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 #include <sys/types.h>
6969 _ACEOF
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "uid_t" >/dev/null 2>&1; then :
6972 ac_cv_type_uid_t=yes
6973 else
6974 ac_cv_type_uid_t=no
6976 rm -f conftest*
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6980 $as_echo "$ac_cv_type_uid_t" >&6; }
6981 if test $ac_cv_type_uid_t = no; then
6983 $as_echo "#define uid_t int" >>confdefs.h
6986 $as_echo "#define gid_t int" >>confdefs.h
6991 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6992 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6996 _ACEOF
7002 # Look for some functions
7003 for ac_func in getpagesize kqueue statfs statvfs \
7004 clone kse_create rfork_thread thr_create sa_register \
7005 getcontext makecontext setcontext sigaltstack swapcontext
7006 do :
7007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7012 _ACEOF
7015 done
7021 for ac_header in $ac_header_list
7022 do :
7023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7027 cat >>confdefs.h <<_ACEOF
7028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7029 _ACEOF
7033 done
7042 for ac_func in getpagesize
7043 do :
7044 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7045 if test "x$ac_cv_func_getpagesize" = xyes; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_GETPAGESIZE 1
7048 _ACEOF
7051 done
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7054 $as_echo_n "checking for working mmap... " >&6; }
7055 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test "$cross_compiling" = yes; then :
7059 ac_cv_func_mmap_fixed_mapped=no
7060 else
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 /* malloc might have been renamed as rpl_malloc. */
7065 #undef malloc
7067 /* Thanks to Mike Haertel and Jim Avera for this test.
7068 Here is a matrix of mmap possibilities:
7069 mmap private not fixed
7070 mmap private fixed at somewhere currently unmapped
7071 mmap private fixed at somewhere already mapped
7072 mmap shared not fixed
7073 mmap shared fixed at somewhere currently unmapped
7074 mmap shared fixed at somewhere already mapped
7075 For private mappings, we should verify that changes cannot be read()
7076 back from the file, nor mmap's back from the file at a different
7077 address. (There have been systems where private was not correctly
7078 implemented like the infamous i386 svr4.0, and systems where the
7079 VM page cache was not coherent with the file system buffer cache
7080 like early versions of FreeBSD and possibly contemporary NetBSD.)
7081 For shared mappings, we should conversely verify that changes get
7082 propagated back to all the places they're supposed to be.
7084 Grep wants private fixed already mapped.
7085 The main things grep needs to know about mmap are:
7086 * does it exist and is it safe to write into the mmap'd area
7087 * how to use it (BSD variants) */
7089 #include <fcntl.h>
7090 #include <sys/mman.h>
7092 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7093 char *malloc ();
7094 #endif
7096 /* This mess was copied from the GNU getpagesize.h. */
7097 #ifndef HAVE_GETPAGESIZE
7098 # ifdef _SC_PAGESIZE
7099 # define getpagesize() sysconf(_SC_PAGESIZE)
7100 # else /* no _SC_PAGESIZE */
7101 # ifdef HAVE_SYS_PARAM_H
7102 # include <sys/param.h>
7103 # ifdef EXEC_PAGESIZE
7104 # define getpagesize() EXEC_PAGESIZE
7105 # else /* no EXEC_PAGESIZE */
7106 # ifdef NBPG
7107 # define getpagesize() NBPG * CLSIZE
7108 # ifndef CLSIZE
7109 # define CLSIZE 1
7110 # endif /* no CLSIZE */
7111 # else /* no NBPG */
7112 # ifdef NBPC
7113 # define getpagesize() NBPC
7114 # else /* no NBPC */
7115 # ifdef PAGESIZE
7116 # define getpagesize() PAGESIZE
7117 # endif /* PAGESIZE */
7118 # endif /* no NBPC */
7119 # endif /* no NBPG */
7120 # endif /* no EXEC_PAGESIZE */
7121 # else /* no HAVE_SYS_PARAM_H */
7122 # define getpagesize() 8192 /* punt totally */
7123 # endif /* no HAVE_SYS_PARAM_H */
7124 # endif /* no _SC_PAGESIZE */
7126 #endif /* no HAVE_GETPAGESIZE */
7129 main ()
7131 char *data, *data2, *data3;
7132 const char *cdata2;
7133 int i, pagesize;
7134 int fd, fd2;
7136 pagesize = getpagesize ();
7138 /* First, make a file with some known garbage in it. */
7139 data = (char *) malloc (pagesize);
7140 if (!data)
7141 return 1;
7142 for (i = 0; i < pagesize; ++i)
7143 *(data + i) = rand ();
7144 umask (0);
7145 fd = creat ("conftest.mmap", 0600);
7146 if (fd < 0)
7147 return 2;
7148 if (write (fd, data, pagesize) != pagesize)
7149 return 3;
7150 close (fd);
7152 /* Next, check that the tail of a page is zero-filled. File must have
7153 non-zero length, otherwise we risk SIGBUS for entire page. */
7154 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7155 if (fd2 < 0)
7156 return 4;
7157 cdata2 = "";
7158 if (write (fd2, cdata2, 1) != 1)
7159 return 5;
7160 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7161 if (data2 == MAP_FAILED)
7162 return 6;
7163 for (i = 0; i < pagesize; ++i)
7164 if (*(data2 + i))
7165 return 7;
7166 close (fd2);
7167 if (munmap (data2, pagesize))
7168 return 8;
7170 /* Next, try to mmap the file at a fixed address which already has
7171 something else allocated at it. If we can, also make sure that
7172 we see the same garbage. */
7173 fd = open ("conftest.mmap", O_RDWR);
7174 if (fd < 0)
7175 return 9;
7176 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7177 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7178 return 10;
7179 for (i = 0; i < pagesize; ++i)
7180 if (*(data + i) != *(data2 + i))
7181 return 11;
7183 /* Finally, make sure that changes to the mapped area do not
7184 percolate back to the file as seen by read(). (This is a bug on
7185 some variants of i386 svr4.0.) */
7186 for (i = 0; i < pagesize; ++i)
7187 *(data2 + i) = *(data2 + i) + 1;
7188 data3 = (char *) malloc (pagesize);
7189 if (!data3)
7190 return 12;
7191 if (read (fd, data3, pagesize) != pagesize)
7192 return 13;
7193 for (i = 0; i < pagesize; ++i)
7194 if (*(data + i) != *(data3 + i))
7195 return 14;
7196 close (fd);
7197 return 0;
7199 _ACEOF
7200 if ac_fn_c_try_run "$LINENO"; then :
7201 ac_cv_func_mmap_fixed_mapped=yes
7202 else
7203 ac_cv_func_mmap_fixed_mapped=no
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7206 conftest.$ac_objext conftest.beam conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7211 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7214 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7217 rm -f conftest.mmap conftest.txt
7222 aros_config_cflags="-Wall -Werror-implicit-function-declaration -Wno-parentheses"
7223 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7224 aros_config_ldflags=""
7226 aros_shared_default=yes
7228 aros_shared_cflags="-fPIC"
7229 aros_shared_aflags=""
7230 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7231 aros_kernel_ldflags="-Wl,-rpath,./lib"
7233 aros_kernel_ar_flags="cr"
7234 aros_target_ar_flags="cr"
7235 aros_target_nm_flags="-C -ul"
7236 aros_target_strip_flags="--strip-unneeded -R.comment"
7238 aros_compiler_libs=
7239 aros_arch_libs=
7241 aros_target_genmap="-Wl,-Map -Xlinker"
7243 # Native flavour stuff
7244 aros_serial_debug="0"
7246 # Palm native flavour stuff
7247 aros_palm_debug_hack="0"
7249 # Unix flavour stuff
7250 aros_nesting_supervisor="0"
7252 # Collect-aros stuff: "-ius" to ignore undefined symbols
7253 ignore_undefined_symbols=""
7255 # Check for X11 by default
7256 need_x11="auto"
7258 host_x_gfx=no
7259 host_sdl_gfx=no
7260 host_android_gfx=no
7262 #-----------------------------------------------------------------------------
7265 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7266 # it switched on by default, and we use the host compiler, so it compiles AROS
7267 # code with this enabled resulting in link failures as we don't have support
7268 # for it.
7270 # We use two methods to disable it. For the host compiler (used to compile
7271 # some hosted modules), we test to see if the compiler supports stack
7272 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7273 # work on all platforms.
7275 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7276 # (this is done unconditionally, as it should have no effect on compilers
7277 # without the stack protection feature). This may be specific to the way that
7278 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7279 # strong enough to disable it in a generic way though, so we'll live with it
7280 # until another vendor ships GCC with it enabled in a different way, and deal
7281 # with it then.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7285 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7286 save_cflags="$CFLAGS"
7287 CFLAGS="$CFLAGS -fno-stack-protector"
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7292 main ()
7296 return 0;
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 use_no_stack_protector="yes"
7301 else
7302 use_no_stack_protector="no"
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7306 $as_echo "$use_no_stack_protector" >&6; }
7307 if test "x-$use_no_stack_protector" = "x-yes" ; then
7308 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7310 CFLAGS="$save_cflags"
7312 #-----------------------------------------------------------------------------
7314 # Disable pointer-signedness warnings if the compiler recognises the option
7315 # (this only works for the host compiler at the moment)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7318 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7319 save_cflags="$CFLAGS"
7320 CFLAGS="$CFLAGS -Wno-pointer-sign"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 use_no_sign_warning="yes"
7334 else
7335 use_no_sign_warning="no"
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7339 $as_echo "$use_no_sign_warning" >&6; }
7340 if test "x-$use_no_sign_warning" = "x-yes" ; then
7341 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7343 CFLAGS="$save_cflags"
7345 #-----------------------------------------------------------------------------
7347 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7350 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7351 save_cflags="$CFLAGS"
7352 CFLAGS="$CFLAGS -fgnu89-inline"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7357 main ()
7361 return 0;
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365 use_gnu89_inline="yes"
7366 else
7367 use_gnu89_inline="no"
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7371 $as_echo "$use_gnu89_inline" >&6; }
7372 if test "x-$use_gnu89_inline" = "x-yes" ; then
7373 gnu89_inline="-fgnu89-inline"
7375 CFLAGS="$save_cflags"
7377 #-----------------------------------------------------------------------------
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7380 $as_echo_n "checking for type of build... " >&6; }
7381 # Check whether --enable-build_type was given.
7382 if test "${enable_build_type+set}" = set; then :
7383 enableval=$enable_build_type; build_type=$enableval
7384 else
7385 build_type="personal"
7389 if test "$build_type" = "nightly"; then
7390 build_type_string="NIGHTLY"
7391 elif test "$build_type" = "snapshot"; then
7392 build_type_string="SNAPSHOT"
7393 elif test "$build_type" = "milestone"; then
7394 build_type_string="MILESTONE"
7395 elif test "$build_type" = "release"; then
7396 build_type_string="RELEASE"
7397 else
7398 build_type_string="PERSONAL"
7399 build_type="personal"
7402 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7405 $as_echo "$build_type" >&6; }
7407 #-----------------------------------------------------------------------------
7408 all_debug_types="messages stack modules mungwall symbols"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7411 $as_echo_n "checking which debug types to enable... " >&6; }
7412 # Check whether --enable-debug was given.
7413 if test "${enable_debug+set}" = set; then :
7414 enableval=$enable_debug; debug="$enableval"
7415 else
7416 debug=""
7420 if test "$debug" = "" -o "$debug" = "no"; then
7421 debug="none"
7422 elif test "$debug" = "yes"; then
7423 debug="all"
7426 if test "$debug" = "all" ; then
7427 debug="messages stack modules symbols"
7428 for d in $all_debug_types; do
7429 export aros_${d}_debug="1"
7430 done
7431 else
7432 for d in $all_debug_types; do
7433 export aros_${d}_debug="0"
7434 done
7437 if test "$debug" != "none"; then
7438 debug=`echo $debug | sed s/,/\ /g`
7439 for d in $debug; do
7440 found="0"
7441 for d2 in $all_debug_types; do
7442 if test "$d2" = "$d"; then
7443 found="1"
7444 break
7446 done
7447 if test "$found" = "0"; then
7448 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7450 export aros_${d}_debug="1"
7451 done
7452 aros_debug="yes"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7455 $as_echo "$debug" >&6; }
7457 if test "$aros_messages_debug" = "1"; then
7458 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7459 else
7460 aros_messages_debug=""
7462 if test "$aros_symbols_debug" = "1"; then
7463 aros_symbols_debug="-g"
7464 else
7465 aros_symbols_debug=""
7468 # These are the flags to pass when compiling debugged programs
7469 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7470 aros_debug_aflags=""
7471 aros_debug_ldflags="$aros_symbols_debug"
7473 #-----------------------------------------------------------------------------
7474 # Checking for distcc and ccache.
7476 # Always apply the transforms in this particular order. Basically you should
7477 # always run 'ccache distcc compiler' in that order for the best performance.
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7480 $as_echo_n "checking whether to enable distcc... " >&6; }
7481 # Check whether --enable-distcc was given.
7482 if test "${enable_distcc+set}" = set; then :
7483 enableval=$enable_distcc; distcc="$enableval"
7484 else
7485 distcc="no"
7488 if test "$distcc" != "" -a "$distcc" != "no"; then
7489 # AC_CHECK_PROG will print out the result in this case
7490 # Extract the first word of "distcc", so it can be a program name with args.
7491 set dummy distcc; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_path_DISTCC+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 case $DISTCC in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7513 done
7514 done
7515 IFS=$as_save_IFS
7517 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7519 esac
7521 DISTCC=$ac_cv_path_DISTCC
7522 if test -n "$DISTCC"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7524 $as_echo "$DISTCC" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7537 $as_echo_n "checking whether to enable ccache... " >&6; }
7538 # Check whether --enable-ccache was given.
7539 if test "${enable_ccache+set}" = set; then :
7540 enableval=$enable_ccache; ccache="$enableval"
7541 else
7542 ccache="no"
7545 if test "$ccache" != "" -a "$ccache" != "no"; then
7546 # AC_CHECK_PROG will print out the result in this case
7547 # Extract the first word of "ccache", so it can be a program name with args.
7548 set dummy ccache; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_CCACHE+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$CCACHE"; then
7555 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_CCACHE="ccache"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7570 IFS=$as_save_IFS
7574 CCACHE=$ac_cv_prog_CCACHE
7575 if test -n "$CCACHE"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7577 $as_echo "$CCACHE" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7589 #-----------------------------------------------------------------------------
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7591 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7593 # Check whether --with-kernel-gcc-version was given.
7594 if test "${with_kernel_gcc_version+set}" = set; then :
7595 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7596 else
7597 kernel_tool_version=""
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7601 $as_echo "$kernel_tool_version" >&6; }
7603 #-----------------------------------------------------------------------------
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7605 $as_echo_n "checking what optimization flags to use... " >&6; }
7607 # Check whether --with-optimization was given.
7608 if test "${with_optimization+set}" = set; then :
7609 withval=$with_optimization; optimization="$withval"
7610 else
7611 optimization="unknown"
7614 if test "$optimization" = "unknown"; then
7615 if test "$debug" != "none"; then
7616 optimization="-O0"
7617 else
7618 optimization="-O2"
7621 aros_optimization_cflags="$optimization"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7623 $as_echo "$optimization" >&6; }
7625 #-----------------------------------------------------------------------------
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7627 $as_echo_n "checking what paranoia flags to use... " >&6; }
7629 # Check whether --with-paranoia was given.
7630 if test "${with_paranoia+set}" = set; then :
7631 withval=$with_paranoia; paranoia_flags="$withval"
7632 else
7633 paranoia_flags="default"
7636 if test "$paranoia_flags" = "default"; then
7637 paranoia_flags=""
7638 else if test "$paranoia_flags" = "yes"; then
7639 paranoia_flags="-Wall -Werror"
7640 fi fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7642 $as_echo "$paranoia_flags" >&6; }
7643 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7645 #-----------------------------------------------------------------------------
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7647 $as_echo_n "checking what target variant to enable... " >&6; }
7648 # Check whether --enable-target_variant was given.
7649 if test "${enable_target_variant+set}" = set; then :
7650 enableval=$enable_target_variant; target_variant=$enableval
7651 else
7652 target_variant=""
7655 if test "$target_variant" = ""; then
7656 aros_target_variant=""
7657 aros_target_suffix=""
7658 enableval="none"
7659 else
7660 aros_target_variant="$target_variant"
7661 aros_target_suffix="-$target_variant"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7664 $as_echo "$enableval" >&6; }
7666 #-----------------------------------------------------------------------------
7667 # Target-specific defaults. You can override then on a per-target basis.
7669 # Bootloader name. Currently used by PC target.
7670 target_bootloader="none"
7671 ENABLE_EXECSMP=
7673 #-----------------------------------------------------------------------------
7674 # Additional options for some specific targets
7676 case "$aros_target_variant" in
7677 ios)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7679 $as_echo_n "checking XCode path... " >&6; }
7681 # Check whether --with-xcode was given.
7682 if test "${with_xcode+set}" = set; then :
7683 withval=$with_xcode; aros_xcode_path="$withval"
7684 else
7685 aros_xcode_path="/Developer"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7689 $as_echo "$aros_xcode_path" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7692 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7694 # Check whether --with-sdk-version was given.
7695 if test "${with_sdk_version+set}" = set; then :
7696 withval=$with_sdk_version; aros_sdk_version="$withval"
7697 else
7698 aros_sdk_version="4.1"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7702 $as_echo "$aros_sdk_version" >&6; }
7706 "android")
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7708 $as_echo_n "checking Android SDK path... " >&6; }
7710 # Check whether --with-sdk was given.
7711 if test "${with_sdk+set}" = set; then :
7712 withval=$with_sdk; aros_android_sdk="$withval"
7713 else
7714 aros_android_sdk=$default_android_sdk
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7718 $as_echo "$aros_android_sdk" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7721 $as_echo_n "checking Android NDK path... " >&6; }
7723 # Check whether --with-ndk was given.
7724 if test "${with_ndk+set}" = set; then :
7725 withval=$with_ndk; aros_android_ndk="$withval"
7726 else
7727 aros_android_ndk="none"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7731 $as_echo "$aros_android_ndk" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7734 $as_echo_n "checking what Android SDK version to use... " >&6; }
7736 # Check whether --with-sdk-version was given.
7737 if test "${with_sdk_version+set}" = set; then :
7738 withval=$with_sdk_version; aros_sdk_version="$withval"
7739 else
7740 aros_sdk_version="12"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7744 $as_echo "$aros_sdk_version" >&6; }
7746 aros_android_level=android-$aros_sdk_version
7747 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7748 echo "Platform $aros_android_level is not installed in your SDK"
7749 echo "Use --with-sdk-version=<API level number> to select another platform version"
7750 echo "You can check what plaform versions are installed in your SDK"
7751 echo "by examining contents of $aros_android_sdk/platforms directory"
7752 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7755 export PATH="$aros_android_sdk/tools:$PATH"
7756 # Extract the first word of "$android_tool", so it can be a program name with args.
7757 set dummy $android_tool; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_path_android_tool+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 case $android_tool in
7764 [\\/]* | ?:[\\/]*)
7765 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7779 done
7780 done
7781 IFS=$as_save_IFS
7784 esac
7786 android_tool=$ac_cv_path_android_tool
7787 if test -n "$android_tool"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7789 $as_echo "$android_tool" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7796 if test "$android_tool" = ""; then
7797 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7800 if test "$aros_android_ndk" != "none"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7802 $as_echo_n "checking what Android NDK version to use... " >&6; }
7804 # Check whether --with-ndk-version was given.
7805 if test "${with_ndk_version+set}" = set; then :
7806 withval=$with_ndk_version; aros_ndk_version="$withval"
7807 else
7808 aros_ndk_version="9"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7812 $as_echo "$aros_ndk_version" >&6; }
7815 # Extract the first word of "ant", so it can be a program name with args.
7816 set dummy ant; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_path_ant+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 case $ant in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7843 esac
7845 ant=$ac_cv_path_ant
7846 if test -n "$ant"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7848 $as_echo "$ant" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7855 if test "$ant" = ""; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7857 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7861 $as_echo_n "checking Build debug or release apk... " >&6; }
7863 # Check whether --with-apk-version was given.
7864 if test "${with_apk_version+set}" = set; then :
7865 withval=$with_apk_version; aros_android_antapk=$withval
7866 else
7867 aros_android_antapk=release
7870 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7871 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7874 $as_echo "$aros_android_antapk" >&6; }
7876 if test "$host_os" = "mingw32"; then
7877 android_tool="cmd //c $android_tool"
7880 need_dlopen="no"
7883 esac
7885 #-----------------------------------------------------------------------------
7886 # External toolchains
7887 kernel_tool_prefix="none"
7888 aros_tool_prefix="none"
7889 elf_tool_prefix="${target_cpu}-elf-"
7891 # This is the target configuration switch.
7892 case "$target_os" in
7893 linux*)
7894 aros_target_arch="linux"
7895 aros_target_family="unix"
7896 case "$target_cpu" in
7897 *m68k*)
7898 aros_target_cpu="m68k"
7899 aros_object_format="m68kelf"
7900 aros_flavour="emulcompat"
7901 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7902 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7903 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7904 gcc_target_cpu="mc68000"
7906 *i?86*)
7907 aros_target_cpu="i386"
7908 aros_object_format="elf_i386"
7909 aros_flavour="emulation"
7910 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7911 aros_kernel_ldflags="-Wl,-melf_i386"
7912 aros_nominal_depth=8
7913 gcc_target_cpu="i386"
7914 pci_hidd_target="hidd-pci-linux"
7915 android_tool_dir_prefix="x86"
7916 android_tool_prefix="i686-android-linux"
7917 android_ndk_arch="x86"
7919 *x86_64*)
7920 aros_target_cpu="x86_64"
7921 aros_object_format="elf_x86_64"
7922 aros_flavour="emulation"
7923 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7924 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
7925 aros_nominal_depth=8
7926 pci_hidd_target="hidd-pci-linux"
7928 *powerpc*)
7929 aros_target_cpu="ppc"
7930 aros_object_format="elf32ppc"
7931 aros_flavour="emulation"
7932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7933 aros_nominal_depth=8
7934 gcc_target_cpu="ppc"
7936 # TODO
7937 # Same as powerpc, but I need this for the nightly build to work again.
7938 # Actually, the nightly should be made working with powerpc target.
7939 # That just was too much work for the moment, another week or two.
7940 *ppc*)
7941 aros_target_cpu="ppc"
7942 aros_object_format="elf32ppc"
7943 aros_flavour="emulation"
7944 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7945 aros_nominal_depth=8
7946 gcc_target_cpu="ppc"
7948 *armhf*)
7949 aros_target_cpu="arm"
7950 target_cpu="arm"
7951 aros_object_format="armelf_aros"
7952 aros_flavour="emulation"
7953 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7954 gcc_target_cpu="arm"
7955 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7956 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7957 aros_arch_libs="-laeabi"
7958 gcc_default_float_abi="hard"
7959 android_tool_dir_prefix="arm-linux-androideabi"
7960 android_tool_prefix="arm-linux-androideabi"
7961 android_ndk_arch="arm"
7962 kernel_tool_prefix="arm-linux-gnueabihf-"
7964 *arm*)
7965 aros_target_cpu="arm"
7966 aros_object_format="armelf_aros"
7967 aros_flavour="emulation"
7968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7969 gcc_target_cpu="arm"
7970 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7971 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7972 aros_arch_libs="-laeabi"
7973 android_tool_dir_prefix="arm-linux-androideabi"
7974 android_tool_prefix="arm-linux-androideabi"
7975 android_ndk_arch="arm"
7976 kernel_tool_prefix="arm-linux-gnueabi-"
7979 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7981 esac
7982 case "$aros_target_variant" in
7983 android)
7985 if test "$android_ndk_arch" = ""; then
7986 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7989 aros_nominal_width=320
7990 aros_nominal_height=480
7991 if test "$aros_android_ndk" = "none"; then
7992 aros_kernel_cflags="-mandroid"
7993 aros_kernel_ldflags="-mandroid"
7994 CFLAGS="-mandroid"
7995 else
7996 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7997 kernel_tool_version=""
7998 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7999 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8000 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8001 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8002 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8004 need_x11=no
8005 host_android_gfx=yes
8006 # Disable implicit PIC mode
8007 aros_target_cflags="$aros_target_cflags -fno-pic"
8008 kernel_tool_prefix="$android_tool_prefix-"
8010 esac
8014 aros_target_arch="pc"
8015 aros_shared_default="no"
8016 target_bootloader="grub2"
8017 case "$target_cpu" in
8018 *i?86*)
8019 aros_target_cpu="i386"
8022 if test "$aros_object_format" = "" ; then
8023 aros_object_format="elf_i386"
8025 aros_flavour="standalone"
8026 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8027 aros_kernel_ldflags="-Wl,-melf_i386"
8028 aros_nominal_width=640
8029 aros_nominal_height=480
8030 gcc_target_cpu="i386"
8032 *x86_64*)
8033 aros_target_cpu="x86_64"
8034 aros_serial_debug=1
8035 if test "$aros_object_format" = "" ; then
8036 aros_object_format="elf_x86_64"
8038 aros_flavour="standalone"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8040 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8041 aros_kernel_ldflags=""
8042 aros_nominal_width=640
8043 aros_nominal_height=480
8044 case "$aros_target_variant" in
8045 smp)
8046 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8048 esac
8051 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8053 esac
8056 prep)
8057 aros_target_arch="prep"
8058 aros_shared_default="no"
8059 aros_target_cpu="ppc"
8060 aros_object_format="elf32ppc"
8061 aros_flavour="ppcnative"
8062 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8063 aros_kernel_ldflags=""
8064 aros_nominal_width=640
8065 aros_nominal_height=480
8066 gcc_target_cpu="ppc"
8069 freebsd*)
8070 aros_target_arch="freebsd"
8071 aros_target_family="unix"
8072 aros_target_cpu="i386"
8073 aros_flavour="emulation"
8074 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8075 gcc_target_cpu="i386"
8077 aros_target_strip_flags="-x"
8080 darwin*)
8081 aros_target_arch="darwin"
8082 aros_target_family="unix"
8083 aros_flavour="emulation"
8084 case "$target_cpu" in
8085 *i?86*)
8086 aros_ios_platform="iPhoneSimulator"
8087 aros_target_cpu="i386"
8088 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8089 aros_kernel_ldflags=""
8090 aros_macosx_version="10.4"
8091 aros_nominal_depth=8
8092 gcc_target_cpu="i386"
8093 aros_object_format="elf_i386"
8094 aros_kernel_ar_flags="-cr"
8095 aros_target_strip_flags="-x"
8096 kernel_tool_flags="-m32"
8098 *x86_64*)
8099 aros_target_cpu="x86_64"
8100 aros_object_format="elf_x86_64"
8101 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8102 aros_macosx_version="10.6"
8103 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8104 aros_kernel_cflags="-m64"
8105 aros_kernel_ldflags="-m64"
8106 aros_target_cflags="-mcmodel=large"
8107 aros_nominal_depth=8
8108 aros_kernel_ar="ar"
8109 aros_kernel_ar_flags="-cr"
8110 aros_kernel_ld="ld"
8111 aros_kernel_as="as"
8112 aros_kernel_ranlib="ranlib"
8113 aros_kernel_nm="nm"
8114 aros_kernel_strip="strip"
8115 kernel_tool_prefix="i686-apple-darwin10-"
8117 *ppc*)
8118 aros_target_cpu="ppc"
8119 aros_object_format="elf32ppc"
8120 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8121 aros_kernel_ldflags=""
8122 aros_macosx_version="10.0"
8123 aros_nominal_depth=8
8124 gcc_target_cpu="ppc"
8125 aros_kernel_ar="ar"
8126 aros_kernel_ar_flags="-cr"
8127 aros_kernel_ld="ld -arch ppc"
8128 aros_kernel_as="as -arch ppc"
8129 aros_kernel_ranlib="ranlib -arch ppc"
8130 aros_kernel_nm="nm -arch ppc"
8131 aros_kernel_strip="strip -arch ppc"
8132 kernel_tool_prefix="powerpc-apple-darwin10-"
8134 *arm*)
8135 aros_ios_platform="iPhoneOS"
8136 aros_target_cpu="arm"
8137 aros_object_format="armelf_aros"
8138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8139 aros_arch_libs="-laeabi"
8140 aros_nominal_depth=8
8141 gcc_target_cpu="arm"
8142 aros_kernel_ar="ar"
8143 aros_kernel_ar_flags="-cr"
8144 aros_kernel_ld="ld -arch arm"
8145 aros_kernel_ranlib="ranlib -arch arm"
8146 kernel_tool_prefix="arm-apple-darwin10-"
8147 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8150 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8152 esac
8153 case "$aros_target_variant" in
8154 ios)
8155 aros_ios_version="3.0"
8156 aros_nominal_width=320
8157 aros_nominal_height=480
8158 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8159 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8160 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8161 need_x11=no
8162 # This is here because it may depend on iOS or SDK version
8163 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8164 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8165 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8168 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8169 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8171 esac
8174 dragonfly*)
8175 aros_target_arch="dragonfly"
8176 aros_target_family="unix"
8177 aros_flavour="emulation"
8178 case "$target_cpu" in
8179 *i?86*)
8180 aros_target_cpu="i386"
8181 aros_object_format="elf_i386"
8182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8184 *x86_64*)
8185 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8186 aros_target_cpu="x86_64"
8187 aros_object_format="elf_x86_64"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8191 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8193 esac
8196 netbsd*)
8197 aros_target_arch="netbsd"
8198 aros_target_family="unix"
8199 case "$target_cpu" in
8200 *m68k*)
8201 aros_target_cpu="m68k"
8202 aros_object_format="m68kelf"
8203 aros_flavour="emulcompat"
8204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8205 gcc_target_cpu="mc68000"
8207 *i?86*)
8208 aros_target_cpu="i386"
8209 aros_object_format="elf_i386"
8210 aros_flavour="emulation"
8211 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8212 aros_nominal_depth=8
8213 gcc_target_cpu="i386"
8216 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8218 esac
8219 aros_target_genmap="-Wl,-M -Xlinker >"
8220 aros_flavour="emulation"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8224 openbsd*)
8225 aros_target_arch="openbsd"
8226 aros_target_family="unix"
8227 case "$target_cpu" in
8228 *i?86*)
8229 aros_target_cpu="i386"
8230 aros_object_format="elf_i386"
8231 aros_flavour="emulation"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8233 gcc_target_cpu="i386"
8236 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8238 esac
8239 aros_target_genmap="-Wl,-M -Xlinker >"
8240 aros_target_nm_flags="-u"
8241 aros_flavour="emulation"
8244 solaris*)
8245 aros_target_arch="solaris"
8246 aros_target_family="unix"
8247 case "$target_cpu" in
8248 *i?86*)
8249 aros_target_cpu="i386"
8250 aros_object_format="elf_i386"
8251 aros_flavour="emulation"
8252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8253 aros_nominal_depth=8
8254 gcc_target_cpu="i386"
8256 *sparc*)
8257 aros_target_cpu="sparc"
8258 aros_object_format="elf_sparc"
8259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8260 gcc_target_cpu="sparc"
8263 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8265 esac
8266 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8267 aros_flavour="emulation"
8270 morphos*)
8271 aros_target_arch="morphos"
8272 aros_shared_default="no"
8273 aros_target_cpu="ppc"
8274 aros_object_format="elf_ppc"
8275 aros_flavour="nativecompat"
8276 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8277 gcc_target_cpu="ppc"
8280 sam440)
8281 aros_target_arch="sam440"
8282 aros_shared_default="no"
8283 aros_target_cpu="ppc"
8284 aros_object_format="elf32ppc"
8285 aros_flavour="ppcnative"
8286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8287 aros_kernel_ldflags=""
8288 aros_nominal_width=1024
8289 aros_nominal_height=768
8290 aros_nominal_depth=24
8291 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8292 gcc_target_cpu="powerpc"
8295 efika)
8296 aros_target_arch="efika"
8297 aros_shared_default="no"
8298 aros_target_cpu="arm"
8299 aros_object_format="armelf_aros"
8300 aros_flavour="standalone"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8302 aros_kernel_ldflags=""
8303 aros_nominal_width=1024
8304 aros_nominal_height=600
8305 aros_arch_libs="-laeabi"
8306 gcc_default_cpu="armv7-a"
8307 gcc_default_fpu="vfpv3"
8308 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8309 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8310 aros_optimization_cflags="$aros_optimization_cflags -Os"
8311 case "$target_cpu" in
8312 *armhf*)
8313 gcc_default_float_abi="hard"
8314 target_cpu=arm
8315 aros_target_cpu=arm
8317 *arm*)
8318 gcc_default_float_abi="softfp"
8321 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8323 esac
8326 chrp)
8327 aros_target_arch="chrp"
8328 aros_shared_default="no"
8329 aros_target_cpu="ppc"
8330 aros_object_format="elf32ppc"
8331 aros_flavour="ppcnative"
8332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8333 aros_kernel_ldflags=""
8334 aros_nominal_width=640
8335 aros_nominal_height=480
8336 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8337 gcc_target_cpu="powerpc"
8338 case "$aros_target_variant" in
8339 efika)
8340 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8342 esac
8345 r*pi)
8346 aros_flavour="standalone"
8347 aros_target_arch="raspi"
8348 aros_target_cpu="arm"
8349 aros_object_format="armelf_aros"
8350 aros_shared_default="no"
8351 aros_arch_libs="-laeabi"
8353 gcc_default_cpu="armv6zk"
8354 gcc_default_cpu_tune="arm1176jzf-s"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8357 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8358 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8359 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8360 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8361 case "$aros_target_variant" in
8362 smp)
8363 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8365 esac
8368 stm32f7_discovery)
8369 aros_flavour="standalone"
8370 aros_target_arch="stm32f7_discovery"
8371 aros_target_cpu="arm"
8372 aros_target_cpu_mode="thumb2"
8373 aros_object_format="armelf_aros"
8374 aros_shared_default="no"
8376 # stm32f7 has DSP opcode support
8377 gcc_default_cpu="armv7e-m"
8378 # gcc_default_cpu="armv7-m"
8379 gcc_default_cpu_tune="cortex-m7"
8380 gcc_default_fpu="fpv4-sp-d16"
8381 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8382 # gcc_default_fpu="fpv5-sp-d16"
8383 gcc_default_float_abi="hard"
8385 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8388 amiga*)
8389 aros_target_arch="amiga"
8390 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8391 aros_shared_default="no"
8393 case "$target_cpu" in
8394 *m68k*)
8395 # Check whether --enable-amigaos_compliance was given.
8396 if test "${enable_amigaos_compliance+set}" = set; then :
8397 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8400 aros_enable_mmu=no
8401 aros_target_cpu="m68k"
8402 aros_object_format="m68kelf"
8403 aros_flavour="standcompat"
8404 gcc_target_cpu="m68000"
8405 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8406 aros_optimization_cflags="$aros_optimization_cflags -Os"
8407 aros_config_aflags="$aros_config_aflags"
8408 aros_target_strip_flags="-R.comment --strip-debug"
8409 aros_nominal_width=640
8410 aros_nominal_height=256
8411 aros_nominal_depth=2
8413 *ppc*)
8414 aros_cpu="ppc"
8415 aros_flavour="native"
8416 gcc_target_cpu="ppc"
8419 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8421 esac
8424 mingw*)
8425 aros_target_arch="mingw32"
8426 aros_shared_default="no"
8427 aros_flavour="emulation"
8428 aros_shared_cflags=""
8429 need_crosstools="yes"
8430 need_dlopen="no"
8431 rescomp="windres"
8432 case "$target_cpu" in
8433 *i?86*)
8434 aros_target_cpu="i386"
8435 aros_object_format="elf_i386"
8436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8437 aros_nominal_depth=8
8438 gcc_target_cpu="i386"
8440 kernel_tool_prefix="i386-mingw32-"
8442 *x86_64*)
8443 aros_target_cpu="x86_64"
8444 aros_object_format="elf_x86_64"
8445 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8446 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8447 aros_nominal_depth=8
8448 kernel_tool_prefix="x86_64-w64-mingw32-"
8450 *arm*)
8451 aros_target_cpu="arm"
8452 aros_object_format="armelf_aros"
8453 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8454 aros_arch_libs="-laeabi"
8455 aros_nominal_depth=8
8456 gcc_target_cpu="arm"
8457 gcc_default_float_abi="soft"
8458 kernel_tool_prefix="arm-mingw32ce-"
8459 aros_nominal_width=160
8460 aros_nominal_height=160
8463 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8465 esac
8466 if test $host_os = "cygwin"; then
8467 aros_kernel_cflags="-mno-cygwin"
8470 pp*)
8471 aros_target_arch="pp"
8472 aros_shared_default="no"
8473 case "$target_cpu" in
8474 *m68k*)
8475 aros_target_cpu="m68k"
8476 aros_object_format="m68kelf"
8477 aros_flavour="palmnative"
8478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8479 aros_nominal_width=160
8480 aros_nominal_height=160
8481 aros_nominal_depth=1
8482 aros_target_ar_flags="cru"
8483 aros_compiler_libs="-lgcc1"
8484 aros_shared_default=no
8485 aros_shared_cflags="-fpic"
8486 aros_shared_aflags=""
8487 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8488 aros_kernel_ldflags="-Wl,-rpath,./lib"
8489 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8490 aros_debug_aflags=""
8491 aros_debug_ldflags="$aros_symbols_debug"
8492 aros_mungwall_debug="0"
8493 aros_modules_debug="0"
8494 gcc_target_cpu="mc68000"
8495 ignore_undefined_symbols="-ius"
8498 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8500 esac
8503 mac*)
8504 aros_target_arch="mac"
8505 aros_shared_default="no"
8506 case "$target_cpu" in
8507 *m68k*)
8508 aros_target_cpu="m68k"
8509 aros_object_format="m68kelf"
8510 aros_flavour="mac68knative"
8511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8512 aros_nominal_width=512
8513 aros_nominal_height=384
8514 aros_nominal_depth=8
8515 aros_target_ar_flags="cru"
8516 aros_compiler_libs="-lgcc1"
8517 aros_shared_default=no
8518 aros_shared_cflags="-fpic"
8519 aros_shared_aflags=""
8520 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8521 aros_kernel_ldflags="-Wl,-rpath,./lib"
8522 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8523 aros_debug_aflags=""
8524 aros_debug_ldflags="$aros_symbols_debug"
8525 aros_mungwall_debug="0"
8526 aros_modules_debug="0"
8527 gcc_target_cpu="mc68000"
8528 ignore_undefined_symbols="-ius"
8531 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8533 esac
8537 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8539 esac
8541 #-----------------------------------------------------------------------------
8542 crosstools_guess="yes"
8543 aros_target_toolchain="no"
8544 aros_config_sysroot=""
8545 aros_kernel_sysroot=""
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8548 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8550 # Check whether --with-kernel-toolchain-prefix was given.
8551 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8552 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8556 $as_echo "$kernel_tool_prefix" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8559 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8561 # Check whether --with-elf-toolchain-prefix was given.
8562 if test "${with_elf_toolchain_prefix+set}" = set; then :
8563 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8564 crosstools_guess="no"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8568 $as_echo "$elf_tool_prefix" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8571 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8573 # Check whether --with-aros-toolchain was given.
8574 if test "${with_aros_toolchain+set}" = set; then :
8575 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8576 crosstools_guess="no"
8579 if test "$aros_tool_prefix" = "yes" ; then
8580 aros_tool_prefix=$aros_target_cpu-aros-
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8583 $as_echo "$aros_tool_prefix" >&6; }
8585 #-----------------------------------------------------------------------------
8586 # Checking if we should build crosstools..
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8588 $as_echo_n "checking whether to build crosstools... " >&6; }
8589 # Check whether --enable-crosstools was given.
8590 if test "${enable_crosstools+set}" = set; then :
8591 enableval=$enable_crosstools; crosstools="$enableval"
8592 else
8593 crosstools="$crosstools_guess"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8597 $as_echo "$crosstools" >&6; }
8599 if test "${crosstools}" = "yes"; then
8600 if test "${crosstools_guess}" = "no"; then
8601 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8605 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8606 aros_target_toolchain="yes"
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8610 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8612 # Check whether --with-aros-toolchain-install was given.
8613 if test "${with_aros_toolchain_install+set}" = set; then :
8614 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8617 if test "x$aros_toolchain_install" = "x"; then
8618 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8619 else
8620 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8621 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8622 if test "$crosstools_guess" = "no" ; then
8623 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8625 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8626 aros_kernel_sysroot = $aros_config_sysroot
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8631 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8633 #-----------------------------------------------------------------------------
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8635 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8637 # Check whether --with-binutils-version was given.
8638 if test "${with_binutils_version+set}" = set; then :
8639 withval=$with_binutils_version; use_binutils_version="$withval"
8640 else
8641 use_binutils_version=""
8644 if test "$use_binutils_version" = ""; then
8645 target_binutils_version="$default_binutils_version"
8646 else
8647 target_binutils_version="$use_binutils_version"
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8650 $as_echo "$target_binutils_version" >&6; }
8653 # Helper to identify gcc version
8656 #-----------------------------------------------------------------------------
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8658 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8660 # Check whether --with-gcc-version was given.
8661 if test "${with_gcc_version+set}" = set; then :
8662 withval=$with_gcc_version; use_gcc_version="$withval"
8663 else
8664 use_gcc_version=""
8667 if test "$use_gcc_version" = ""; then
8668 if test "${crosstools}" = "no"; then
8669 if test "x$aros_toolchain_install" != "x"; then
8671 target_gcc_version=""
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8673 $as_echo_n "checking gcc version... " >&6; }
8674 if ${ax_cv_gcc_version+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8678 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8679 if test "x$ax_cv_gcc_version" = "x"; then :
8681 ax_cv_gcc_version=""
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8687 $as_echo "$ax_cv_gcc_version" >&6; }
8688 target_gcc_version=$ax_cv_gcc_version
8693 if test "$use_gcc_version" = ""; then
8694 target_gcc_version="$default_gcc_version"
8696 else
8697 target_gcc_version="$use_gcc_version"
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8700 $as_echo "$target_gcc_version" >&6; }
8702 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8703 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8704 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8706 gcc_fix_bitfields="false"
8707 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8708 gcc_fix_bitfields="true"
8709 else
8710 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8711 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8712 gcc_fix_bitfields="true"
8717 if test "$gcc_fix_bitfields" = "true" ; then
8718 case "$aros_target_cpu" in
8719 *x86_64*)
8720 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8721 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8723 i386)
8724 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8725 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8727 esac
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8731 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8732 # Check whether --enable-objc was given.
8733 if test "${enable_objc+set}" = set; then :
8734 enableval=$enable_objc; objc="$enableval"
8735 else
8736 objc="no"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8740 $as_echo "$objc" >&6; }
8741 if test "x$objc" = "xyes"; then
8742 objc_target="$objc"
8743 else
8744 objc_target="no-objc"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8748 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8749 # Check whether --enable-java was given.
8750 if test "${enable_java+set}" = set; then :
8751 enableval=$enable_java; java="$enableval"
8752 else
8753 java="no"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8757 $as_echo "$java" >&6; }
8758 if test "x$java" != "xno"; then
8759 java_target="$java"
8760 else
8761 java_target="no-java"
8764 spec_obj_format="-m $aros_object_format"
8765 # Now process extra architecture-specific options.
8766 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8767 # as well as floating-point ABI.
8768 case "$aros_target_cpu" in
8769 *x86_64*)
8770 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8772 arm*)
8773 if test "$gcc_default_cpu" = ""; then
8774 gcc_default_cpu="armv6"
8776 if test "$gcc_default_fpu" = ""; then
8777 gcc_default_fpu="vfp"
8779 if test "$gcc_default_float_abi" = ""; then
8780 if test "$target_cpu" = "armhf"; then
8781 gcc_default_float_abi="hard"
8782 else
8783 gcc_default_float_abi="softfp"
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8788 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8790 # Check whether --with-cpu was given.
8791 if test "${with_cpu+set}" = set; then :
8792 withval=$with_cpu; aros_gcc_cpu="$withval"
8793 else
8794 aros_gcc_cpu=$gcc_default_cpu
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8798 $as_echo "$aros_gcc_cpu" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8801 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8803 # Check whether --with-fpu was given.
8804 if test "${with_fpu+set}" = set; then :
8805 withval=$with_fpu; aros_gcc_fpu="$withval"
8806 else
8807 aros_gcc_fpu=$gcc_default_fpu
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8811 $as_echo "$aros_gcc_fpu" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8814 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8816 # Check whether --with-float was given.
8817 if test "${with_float+set}" = set; then :
8818 withval=$with_float; aros_gcc_float_abi="$withval"
8819 else
8820 aros_gcc_float_abi=$gcc_default_float_abi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8824 $as_echo "$aros_gcc_float_abi" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8827 $as_echo_n "checking Which ARM mode to use... " >&6; }
8828 if test "$aros_target_cpu_mode" = ""; then
8829 aros_target_cpu_mode="arm32"
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8831 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8834 $as_echo "$aros_target_cpu_mode" >&6; }
8837 case "$aros_target_cpu_mode" in
8838 arm32)
8839 gcc_default_mode="arm"
8840 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8842 arm64)
8843 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
8845 thumb)
8846 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8848 thumb1)
8849 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8851 thumb2)
8852 gcc_default_mode="thumb"
8853 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
8854 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8857 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
8859 esac
8861 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8862 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8864 i386)
8865 aros_isa_flags="-m32 -march=i486"
8866 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8867 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8869 esac
8871 # Some architectures may need custom ELF specs.
8872 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8873 elf_specs_in=config/${aros_object_format}-specs.in
8874 else
8875 elf_specs_in=config/elf-specs.in
8878 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8879 # Since we override specs, we may need to put these defines there
8880 if test "$gcc_target_cpu" != ""; then
8881 gcc_target_cpu="-D__${gcc_target_cpu}__"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8885 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8887 # Check whether --with-portssources was given.
8888 if test "${with_portssources+set}" = set; then :
8889 withval=$with_portssources; with_portssrcdir=$withval
8890 else
8891 with_portssrcdir="default"
8894 if test "$with_portssrcdir" = "default"; then
8895 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8896 else
8897 AROS_PORTSSRCDIR="$with_portssrcdir"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8900 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8903 $as_echo_n "checking which bootloader to use... " >&6; }
8905 # Check whether --with-bootloader was given.
8906 if test "${with_bootloader+set}" = set; then :
8907 withval=$with_bootloader; target_bootloader=$withval
8908 else
8909 target_bootloader=$target_bootloader
8912 if test "$target_bootloader" = "none"; then
8913 aros_target_bootloader=""
8914 else
8915 aros_target_bootloader="$target_bootloader"
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8918 $as_echo "$target_bootloader" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8921 $as_echo_n "checking which icon-set to use... " >&6; }
8923 # Check whether --with-iconset was given.
8924 if test "${with_iconset+set}" = set; then :
8925 withval=$with_iconset; target_iconset=$withval
8926 else
8927 target_iconset="default"
8930 if test "$target_iconset" = "default"; then
8931 aros_target_iconset="Gorilla"
8932 target_iconset="default (Gorilla)"
8933 else
8934 aros_target_iconset="$target_iconset"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8937 $as_echo "$target_iconset" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8940 $as_echo_n "checking which GUI Theme to use... " >&6; }
8942 # Check whether --with-theme was given.
8943 if test "${with_theme+set}" = set; then :
8944 withval=$with_theme; target_guitheme=$withval
8945 else
8946 target_guitheme="default"
8949 if test "$target_guitheme" = "default"; then
8950 aros_target_guitheme="Ice"
8951 else
8952 aros_target_guitheme="$target_guitheme"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8955 $as_echo "$aros_target_guitheme" >&6; }
8957 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8958 # for target code)
8959 cross_compiling=no
8961 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8962 cross_compiling=yes
8965 if test "$aros_host_cpu" == "x86_64" ; then
8966 if test "$aros_target_cpu" == "i386" ; then
8967 cross_compiling=no
8971 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8972 if test "$aros_host_arch" != "$aros_target_arch" ; then
8973 cross_compiling=yes
8975 else
8976 if test "$host_cc_elf" = "no" ; then
8977 cross_compiling=yes
8981 if test "$cross_compiling" = "no" ; then
8982 kernel_tool_prefix=""
8983 if test "$host_cc_elf" = "yes" ; then
8984 elf_tool_prefix=""
8988 if test "$kernel_tool_version" != ""; then
8989 kernel_tool_version="-$kernel_tool_version"
8992 #######################################################################
8993 ## Compute what toolchains to use, and their paths ##
8994 #######################################################################
8996 # This takes, as input:
8997 # crosstools {yes,no}
8998 # kernel_tool_version {"",[version]}
8999 # target_tool_version {"",[version]}
9000 # kernel_tool_prefix {none,[some-arch-os-]}
9001 # target_tool_prefix ${aros_target_cpu}-aros-
9002 # aros_tool_prefix ${aros_target_cpu}-aros-
9004 # The output is
9005 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9006 # Where the 'kernel' binaries are located
9007 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9008 # Where the 'target' binaries are located
9009 # (not the symlink farm - that is aros_target_*!)
9011 # The rules are:
9012 # if crosstools then
9013 # if kernel_tools_prefix = "no-kernel-prefix-"
9014 # aros_kernel_* = crosstools cc paths
9015 # aros_kernel_cc = elf cc wrapper around crosstools cc
9016 # else
9017 # VALIDATE(${kernel_tools_prefix}*)
9018 # aros_kernel_* = ${kernel_tools_prefix}*
9019 # if ${kernel_tools_prefix}cc is an AROS gcc
9020 # aros_kernel_cc = ${kernel_tools_prefix}cc
9021 # else
9022 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9023 # fi
9024 # fi
9026 # orig_target_* = aros built crosstools
9027 # orig_target_cc = elf cc wrapper around crosstools cc
9028 # else
9029 # VALIDATE(${kernel_tools_prefix}*)
9031 # orig_target_* = aros_kernel_*
9032 # if aros_kernel_cc is an AROS gcc
9033 # orig_target_cc = aros_kernel_cc
9034 # else
9035 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9036 # fi
9037 # fi
9039 target_tool_prefix="${aros_target_cpu}-aros-"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9042 $as_echo_n "checking which kernel tools... " >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9044 $as_echo "$kernel_tool_prefix" >&6; };
9046 if test "$kernel_tool_prefix" = "none" ; then
9047 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9048 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9050 else
9051 # Kernel tools required - find them
9052 # Note that 'normally', aros_kernel_* overrides will be
9053 # empty, unless specified in the per-arch sections above.
9054 if test "x$aros_kernel_cpp" = "x"; then
9055 aros_kernel_cpp=${kernel_tool_prefix}cpp
9058 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9059 if test "$cross_compiling" = "yes" ; then
9060 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9061 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 case $aros_kernel_cpp in
9068 [\\/]* | ?:[\\/]*)
9069 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9083 done
9084 done
9085 IFS=$as_save_IFS
9088 esac
9090 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9091 if test -n "$aros_kernel_cpp"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9093 $as_echo "$aros_kernel_cpp" >&6; }
9094 else
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9100 else
9101 if test "$GCC" = "yes"; then
9102 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9103 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9104 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 case $aros_kernel_cpp in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in `dirname $aros_gcc_cpp`
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9131 esac
9133 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9134 if test -n "$aros_kernel_cpp"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9136 $as_echo "$aros_kernel_cpp" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9144 if test "$aros_kernel_cpp" = ""; then
9145 # Extract the first word of "cpp", so it can be a program name with args.
9146 set dummy cpp; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 case $aros_kernel_cpp in
9153 [\\/]* | ?:[\\/]*)
9154 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9168 done
9169 done
9170 IFS=$as_save_IFS
9173 esac
9175 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9176 if test -n "$aros_kernel_cpp"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9178 $as_echo "$aros_kernel_cpp" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9187 else
9188 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9189 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 case $aros_kernel_cpp in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9216 esac
9218 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9219 if test -n "$aros_kernel_cpp"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9221 $as_echo "$aros_kernel_cpp" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9230 if test "$aros_kernel_cpp" = ""; then
9231 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9233 if test "x$aros_kernel_cc" = "x"; then
9234 aros_kernel_cc=${kernel_tool_prefix}gcc
9237 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9238 if test "$cross_compiling" = "yes" ; then
9239 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9240 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 case $aros_kernel_cc in
9247 [\\/]* | ?:[\\/]*)
9248 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 break 2
9262 done
9263 done
9264 IFS=$as_save_IFS
9267 esac
9269 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9270 if test -n "$aros_kernel_cc"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9272 $as_echo "$aros_kernel_cc" >&6; }
9273 else
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9279 else
9280 if test "$GCC" = "yes"; then
9281 aros_gcc_cc=`$CC -print-prog-name=cc`
9282 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9283 set dummy `basename $aros_gcc_cc`; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 case $aros_kernel_cc in
9290 [\\/]* | ?:[\\/]*)
9291 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in `dirname $aros_gcc_cc`
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9305 done
9306 done
9307 IFS=$as_save_IFS
9310 esac
9312 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9313 if test -n "$aros_kernel_cc"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9315 $as_echo "$aros_kernel_cc" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9323 if test "$aros_kernel_cc" = ""; then
9324 # Extract the first word of "cc", so it can be a program name with args.
9325 set dummy cc; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 case $aros_kernel_cc in
9332 [\\/]* | ?:[\\/]*)
9333 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9352 esac
9354 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9355 if test -n "$aros_kernel_cc"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9357 $as_echo "$aros_kernel_cc" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9366 else
9367 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9368 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 $as_echo_n "checking for $ac_word... " >&6; }
9371 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 case $aros_kernel_cc in
9375 [\\/]* | ?:[\\/]*)
9376 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380 for as_dir in $PATH
9382 IFS=$as_save_IFS
9383 test -z "$as_dir" && as_dir=.
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388 break 2
9390 done
9391 done
9392 IFS=$as_save_IFS
9395 esac
9397 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9398 if test -n "$aros_kernel_cc"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9400 $as_echo "$aros_kernel_cc" >&6; }
9401 else
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9409 if test "$aros_kernel_cc" = ""; then
9410 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9412 if test "x$aros_kernel_cxx" = "x"; then
9413 aros_kernel_cxx=${kernel_tool_prefix}g++
9416 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9417 if test "$cross_compiling" = "yes" ; then
9418 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9419 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $aros_kernel_cxx in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9446 esac
9448 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9449 if test -n "$aros_kernel_cxx"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9451 $as_echo "$aros_kernel_cxx" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9458 else
9459 if test "$GCC" = "yes"; then
9460 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9461 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9462 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 case $aros_kernel_cxx in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in `dirname $aros_gcc_cxx`
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9486 IFS=$as_save_IFS
9489 esac
9491 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9492 if test -n "$aros_kernel_cxx"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9494 $as_echo "$aros_kernel_cxx" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9502 if test "$aros_kernel_cxx" = ""; then
9503 # Extract the first word of "cxx", so it can be a program name with args.
9504 set dummy cxx; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 case $aros_kernel_cxx in
9511 [\\/]* | ?:[\\/]*)
9512 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in $PATH
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9526 done
9527 done
9528 IFS=$as_save_IFS
9531 esac
9533 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9534 if test -n "$aros_kernel_cxx"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9536 $as_echo "$aros_kernel_cxx" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9545 else
9546 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9547 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 case $aros_kernel_cxx in
9554 [\\/]* | ?:[\\/]*)
9555 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9565 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9569 done
9570 done
9571 IFS=$as_save_IFS
9574 esac
9576 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9577 if test -n "$aros_kernel_cxx"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9579 $as_echo "$aros_kernel_cxx" >&6; }
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9588 # If it's set, make sure it's really there
9589 if test "x$aros_kernel_cxx" != "x" ; then
9590 if test "$aros_kernel_cxx" = ""; then
9591 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9595 if test "$aros_kernel_ld" = ""; then
9596 if test "$cross_compiling" = "yes" ; then
9597 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9598 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 case $aros_kernel_ld in
9605 [\\/]* | ?:[\\/]*)
9606 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9625 esac
9627 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9628 if test -n "$aros_kernel_ld"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9630 $as_echo "$aros_kernel_ld" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9637 else
9638 if test "$GCC" = "yes"; then
9639 aros_gcc_ld=`$CC -print-prog-name=ld`
9640 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9641 set dummy `basename $aros_gcc_ld`; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 case $aros_kernel_ld in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in `dirname $aros_gcc_ld`
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9668 esac
9670 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9671 if test -n "$aros_kernel_ld"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9673 $as_echo "$aros_kernel_ld" >&6; }
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9681 if test "$aros_kernel_ld" = ""; then
9682 # Extract the first word of "ld", so it can be a program name with args.
9683 set dummy ld; 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_ld+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 case $aros_kernel_ld in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_path_aros_kernel_ld="$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_ld=$ac_cv_path_aros_kernel_ld
9713 if test -n "$aros_kernel_ld"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9715 $as_echo "$aros_kernel_ld" >&6; }
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9724 else
9725 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9726 set dummy $aros_kernel_ld; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 case $aros_kernel_ld in
9733 [\\/]* | ?:[\\/]*)
9734 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9753 esac
9755 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9756 if test -n "$aros_kernel_ld"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9758 $as_echo "$aros_kernel_ld" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9767 if test "$aros_kernel_ld" = ""; then
9768 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9771 if test "$aros_kernel_as" = ""; then
9772 if test "$cross_compiling" = "yes" ; then
9773 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9774 set dummy ${kernel_tool_prefix}as; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if ${ac_cv_path_aros_kernel_as+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 case $aros_kernel_as in
9781 [\\/]* | ?:[\\/]*)
9782 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9796 done
9797 done
9798 IFS=$as_save_IFS
9801 esac
9803 aros_kernel_as=$ac_cv_path_aros_kernel_as
9804 if test -n "$aros_kernel_as"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9806 $as_echo "$aros_kernel_as" >&6; }
9807 else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9813 else
9814 if test "$GCC" = "yes"; then
9815 aros_gcc_as=`$CC -print-prog-name=as`
9816 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9817 set dummy `basename $aros_gcc_as`; ac_word=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if ${ac_cv_path_aros_kernel_as+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 case $aros_kernel_as in
9824 [\\/]* | ?:[\\/]*)
9825 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in `dirname $aros_gcc_as`
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9835 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9839 done
9840 done
9841 IFS=$as_save_IFS
9844 esac
9846 aros_kernel_as=$ac_cv_path_aros_kernel_as
9847 if test -n "$aros_kernel_as"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9849 $as_echo "$aros_kernel_as" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9857 if test "$aros_kernel_as" = ""; then
9858 # Extract the first word of "as", so it can be a program name with args.
9859 set dummy as; 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_as+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $aros_kernel_as in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
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_as="$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_as=$ac_cv_path_aros_kernel_as
9889 if test -n "$aros_kernel_as"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9891 $as_echo "$aros_kernel_as" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9900 else
9901 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9902 set dummy $aros_kernel_as; ac_word=$2
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904 $as_echo_n "checking for $ac_word... " >&6; }
9905 if ${ac_cv_path_aros_kernel_as+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 case $aros_kernel_as in
9909 [\\/]* | ?:[\\/]*)
9910 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914 for as_dir in $PATH
9916 IFS=$as_save_IFS
9917 test -z "$as_dir" && as_dir=.
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9920 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922 break 2
9924 done
9925 done
9926 IFS=$as_save_IFS
9929 esac
9931 aros_kernel_as=$ac_cv_path_aros_kernel_as
9932 if test -n "$aros_kernel_as"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9934 $as_echo "$aros_kernel_as" >&6; }
9935 else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9943 if test "$aros_kernel_as" = ""; then
9944 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9947 if test "$aros_kernel_ar" = ""; then
9948 if test "$cross_compiling" = "yes" ; then
9949 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9950 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 case $aros_kernel_ar in
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9972 done
9973 done
9974 IFS=$as_save_IFS
9977 esac
9979 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9980 if test -n "$aros_kernel_ar"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9982 $as_echo "$aros_kernel_ar" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9989 else
9990 if test "$GCC" = "yes"; then
9991 aros_gcc_ar=`$CC -print-prog-name=ar`
9992 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9993 set dummy `basename $aros_gcc_ar`; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 case $aros_kernel_ar in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in `dirname $aros_gcc_ar`
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10020 esac
10022 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10023 if test -n "$aros_kernel_ar"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10025 $as_echo "$aros_kernel_ar" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10033 if test "$aros_kernel_ar" = ""; then
10034 # Extract the first word of "ar", so it can be a program name with args.
10035 set dummy ar; 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_ar+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 case $aros_kernel_ar in
10042 [\\/]* | ?:[\\/]*)
10043 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
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_ar="$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_ar=$ac_cv_path_aros_kernel_ar
10065 if test -n "$aros_kernel_ar"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10067 $as_echo "$aros_kernel_ar" >&6; }
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10076 else
10077 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10078 set dummy $aros_kernel_ar; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 case $aros_kernel_ar in
10085 [\\/]* | ?:[\\/]*)
10086 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10102 IFS=$as_save_IFS
10105 esac
10107 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10108 if test -n "$aros_kernel_ar"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10110 $as_echo "$aros_kernel_ar" >&6; }
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10119 if test "$aros_kernel_ar" = ""; then
10120 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10123 if test "$aros_kernel_ranlib" = ""; then
10124 if test "$cross_compiling" = "yes" ; then
10125 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10126 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 case $aros_kernel_ranlib in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10148 done
10149 done
10150 IFS=$as_save_IFS
10153 esac
10155 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10156 if test -n "$aros_kernel_ranlib"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10158 $as_echo "$aros_kernel_ranlib" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10165 else
10166 if test "$GCC" = "yes"; then
10167 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10168 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10169 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 case $aros_kernel_ranlib in
10176 [\\/]* | ?:[\\/]*)
10177 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in `dirname $aros_gcc_ranlib`
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10191 done
10192 done
10193 IFS=$as_save_IFS
10196 esac
10198 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10199 if test -n "$aros_kernel_ranlib"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10201 $as_echo "$aros_kernel_ranlib" >&6; }
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10209 if test "$aros_kernel_ranlib" = ""; then
10210 # Extract the first word of "ranlib", so it can be a program name with args.
10211 set dummy ranlib; 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_ranlib+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $aros_kernel_ranlib in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
10241 if test -n "$aros_kernel_ranlib"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10243 $as_echo "$aros_kernel_ranlib" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10252 else
10253 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10254 set dummy $aros_kernel_ranlib; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 case $aros_kernel_ranlib in
10261 [\\/]* | ?:[\\/]*)
10262 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10276 done
10277 done
10278 IFS=$as_save_IFS
10281 esac
10283 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10284 if test -n "$aros_kernel_ranlib"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10286 $as_echo "$aros_kernel_ranlib" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10295 if test "$aros_kernel_ranlib" = ""; then
10296 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10299 if test "$aros_kernel_nm" = ""; then
10300 if test "$cross_compiling" = "yes" ; then
10301 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10302 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 case $aros_kernel_nm in
10309 [\\/]* | ?:[\\/]*)
10310 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10324 done
10325 done
10326 IFS=$as_save_IFS
10329 esac
10331 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10332 if test -n "$aros_kernel_nm"; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10334 $as_echo "$aros_kernel_nm" >&6; }
10335 else
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10341 else
10342 if test "$GCC" = "yes"; then
10343 aros_gcc_nm=`$CC -print-prog-name=nm`
10344 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10345 set dummy `basename $aros_gcc_nm`; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 case $aros_kernel_nm in
10352 [\\/]* | ?:[\\/]*)
10353 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in `dirname $aros_gcc_nm`
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10367 done
10368 done
10369 IFS=$as_save_IFS
10372 esac
10374 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10375 if test -n "$aros_kernel_nm"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10377 $as_echo "$aros_kernel_nm" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10385 if test "$aros_kernel_nm" = ""; then
10386 # Extract the first word of "nm", so it can be a program name with args.
10387 set dummy nm; 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_nm+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 case $aros_kernel_nm in
10394 [\\/]* | ?:[\\/]*)
10395 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
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_nm="$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_nm=$ac_cv_path_aros_kernel_nm
10417 if test -n "$aros_kernel_nm"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10419 $as_echo "$aros_kernel_nm" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10428 else
10429 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10430 set dummy $aros_kernel_nm; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 case $aros_kernel_nm in
10437 [\\/]* | ?:[\\/]*)
10438 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10448 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 break 2
10452 done
10453 done
10454 IFS=$as_save_IFS
10457 esac
10459 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10460 if test -n "$aros_kernel_nm"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10462 $as_echo "$aros_kernel_nm" >&6; }
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10471 if test "$aros_kernel_nm" = ""; then
10472 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10475 if test "$aros_kernel_strip" = ""; then
10476 if test "$cross_compiling" = "yes" ; then
10477 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10478 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 case $aros_kernel_strip in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10505 esac
10507 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10508 if test -n "$aros_kernel_strip"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10510 $as_echo "$aros_kernel_strip" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10517 else
10518 if test "$GCC" = "yes"; then
10519 aros_gcc_strip=`$CC -print-prog-name=strip`
10520 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10521 set dummy `basename $aros_gcc_strip`; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 case $aros_kernel_strip in
10528 [\\/]* | ?:[\\/]*)
10529 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in `dirname $aros_gcc_strip`
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10543 done
10544 done
10545 IFS=$as_save_IFS
10548 esac
10550 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10551 if test -n "$aros_kernel_strip"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10553 $as_echo "$aros_kernel_strip" >&6; }
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10561 if test "$aros_kernel_strip" = ""; then
10562 # Extract the first word of "strip", so it can be a program name with args.
10563 set dummy strip; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 case $aros_kernel_strip in
10570 [\\/]* | ?:[\\/]*)
10571 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10585 done
10586 done
10587 IFS=$as_save_IFS
10590 esac
10592 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10593 if test -n "$aros_kernel_strip"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10595 $as_echo "$aros_kernel_strip" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10604 else
10605 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10606 set dummy $aros_kernel_strip; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 case $aros_kernel_strip in
10613 [\\/]* | ?:[\\/]*)
10614 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10628 done
10629 done
10630 IFS=$as_save_IFS
10633 esac
10635 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10636 if test -n "$aros_kernel_strip"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10638 $as_echo "$aros_kernel_strip" >&6; }
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10647 if test "$aros_kernel_strip" = ""; then
10648 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10651 # Objcopy and objdump are not required for the kernel
10652 # toolchain on many architectures.
10653 # So we'll look for them, but not make them strictly required.
10655 if test "$aros_kernel_objcopy" = ""; then
10656 if test "$cross_compiling" = "yes" ; then
10657 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10658 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 case $aros_kernel_objcopy in
10665 [\\/]* | ?:[\\/]*)
10666 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10680 done
10681 done
10682 IFS=$as_save_IFS
10685 esac
10687 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10688 if test -n "$aros_kernel_objcopy"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10690 $as_echo "$aros_kernel_objcopy" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10697 else
10698 if test "$GCC" = "yes"; then
10699 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10700 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10701 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 case $aros_kernel_objcopy in
10708 [\\/]* | ?:[\\/]*)
10709 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in `dirname $aros_gcc_objcopy`
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10723 done
10724 done
10725 IFS=$as_save_IFS
10728 esac
10730 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10731 if test -n "$aros_kernel_objcopy"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10733 $as_echo "$aros_kernel_objcopy" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10741 if test "$aros_kernel_objcopy" = ""; then
10742 # Extract the first word of "objcopy", so it can be a program name with args.
10743 set dummy objcopy; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 case $aros_kernel_objcopy in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10770 esac
10772 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10773 if test -n "$aros_kernel_objcopy"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10775 $as_echo "$aros_kernel_objcopy" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10784 else
10785 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10786 set dummy $aros_kernel_objcopy; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788 $as_echo_n "checking for $ac_word... " >&6; }
10789 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 case $aros_kernel_objcopy in
10793 [\\/]* | ?:[\\/]*)
10794 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10808 done
10809 done
10810 IFS=$as_save_IFS
10813 esac
10815 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10816 if test -n "$aros_kernel_objcopy"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10818 $as_echo "$aros_kernel_objcopy" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10828 if test "$aros_kernel_objdump" = ""; then
10829 if test "$cross_compiling" = "yes" ; then
10830 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10831 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 case $aros_kernel_objdump in
10838 [\\/]* | ?:[\\/]*)
10839 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10845 IFS=$as_save_IFS
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10849 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 break 2
10853 done
10854 done
10855 IFS=$as_save_IFS
10858 esac
10860 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10861 if test -n "$aros_kernel_objdump"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10863 $as_echo "$aros_kernel_objdump" >&6; }
10864 else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10870 else
10871 if test "$GCC" = "yes"; then
10872 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10873 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10874 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 case $aros_kernel_objdump in
10881 [\\/]* | ?:[\\/]*)
10882 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in `dirname $aros_gcc_objdump`
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10896 done
10897 done
10898 IFS=$as_save_IFS
10901 esac
10903 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10904 if test -n "$aros_kernel_objdump"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10906 $as_echo "$aros_kernel_objdump" >&6; }
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10914 if test "$aros_kernel_objdump" = ""; then
10915 # Extract the first word of "objdump", so it can be a program name with args.
10916 set dummy objdump; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $aros_kernel_objdump in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10946 if test -n "$aros_kernel_objdump"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10948 $as_echo "$aros_kernel_objdump" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10957 else
10958 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10959 set dummy $aros_kernel_objdump; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 case $aros_kernel_objdump in
10966 [\\/]* | ?:[\\/]*)
10967 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10981 done
10982 done
10983 IFS=$as_save_IFS
10986 esac
10988 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10989 if test -n "$aros_kernel_objdump"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10991 $as_echo "$aros_kernel_objdump" >&6; }
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
11000 if test "x${crosstools}" != "xyes" ; then
11001 if test "$aros_kernel_objcopy" = ""; then
11002 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11004 if test "$aros_kernel_objdump" = ""; then
11005 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11011 $as_echo_n "checking which target tools to use... " >&6; }
11012 if test "$aros_target_toolchain" = "yes"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
11014 $as_echo "$target_tool_prefix" >&6; }
11015 # We are building AROS crosstools
11016 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11017 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
11018 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
11019 orig_target_cpp="${tmp_tool_prefix}cpp"
11020 orig_target_ld="${tmp_tool_prefix}ld"
11021 orig_target_as="${tmp_tool_prefix}as"
11022 orig_target_ar="${tmp_tool_prefix}ar"
11023 orig_target_ranlib="${tmp_tool_prefix}ranlib"
11024 orig_target_nm="${tmp_tool_prefix}nm"
11025 orig_target_strip="${tmp_tool_prefix}strip"
11026 orig_target_objcopy="${tmp_tool_prefix}objcopy"
11027 orig_target_objdump="${tmp_tool_prefix}objdump"
11028 else
11029 # Determine whether AROS or ELF tools should be used
11030 if test "$aros_tool_prefix" = "none"; then
11031 aros_tool_prefix="${elf_tool_prefix}"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11035 $as_echo "$aros_tool_prefix" >&6; }
11036 # We are *not* building AROS crosstools - use the AROS or ELF tools
11038 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
11039 if test "$cross_compiling" = "yes" ; then
11040 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11041 set dummy ${target_tool_prefix}cpp; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if ${ac_cv_path_orig_target_cpp+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $orig_target_cpp in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11068 esac
11070 orig_target_cpp=$ac_cv_path_orig_target_cpp
11071 if test -n "$orig_target_cpp"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11073 $as_echo "$orig_target_cpp" >&6; }
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11080 else
11081 if test "$GCC" = "yes"; then
11082 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11083 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11084 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_path_orig_target_cpp+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 case $orig_target_cpp in
11091 [\\/]* | ?:[\\/]*)
11092 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in `dirname $aros_gcc_cpp`
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11111 esac
11113 orig_target_cpp=$ac_cv_path_orig_target_cpp
11114 if test -n "$orig_target_cpp"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11116 $as_echo "$orig_target_cpp" >&6; }
11117 else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11124 if test "$orig_target_cpp" = ""; then
11125 # Extract the first word of "cpp", so it can be a program name with args.
11126 set dummy cpp; 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_cpp+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 case $orig_target_cpp in
11133 [\\/]* | ?:[\\/]*)
11134 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
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_cpp="$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_cpp=$ac_cv_path_orig_target_cpp
11156 if test -n "$orig_target_cpp"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11158 $as_echo "$orig_target_cpp" >&6; }
11159 else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11167 else
11168 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11169 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_path_orig_target_cpp+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 case $orig_target_cpp in
11176 [\\/]* | ?:[\\/]*)
11177 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11193 IFS=$as_save_IFS
11196 esac
11198 orig_target_cpp=$ac_cv_path_orig_target_cpp
11199 if test -n "$orig_target_cpp"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11201 $as_echo "$orig_target_cpp" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11210 if test "$orig_target_cpp" = ""; then
11211 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11214 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11215 if test "$cross_compiling" = "yes" ; then
11216 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11217 set dummy ${target_tool_prefix}gcc; ac_word=$2
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 $as_echo_n "checking for $ac_word... " >&6; }
11220 if ${ac_cv_path_orig_target_cc+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 case $orig_target_cc in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11239 done
11240 done
11241 IFS=$as_save_IFS
11244 esac
11246 orig_target_cc=$ac_cv_path_orig_target_cc
11247 if test -n "$orig_target_cc"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11249 $as_echo "$orig_target_cc" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11256 else
11257 if test "$GCC" = "yes"; then
11258 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11259 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11260 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_path_orig_target_cc+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 case $orig_target_cc in
11267 [\\/]* | ?:[\\/]*)
11268 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in `dirname $aros_gcc_gcc`
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11282 done
11283 done
11284 IFS=$as_save_IFS
11287 esac
11289 orig_target_cc=$ac_cv_path_orig_target_cc
11290 if test -n "$orig_target_cc"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11292 $as_echo "$orig_target_cc" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11300 if test "$orig_target_cc" = ""; then
11301 # Extract the first word of "gcc", so it can be a program name with args.
11302 set dummy gcc; 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_cc+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 case $orig_target_cc in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
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_cc="$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_cc=$ac_cv_path_orig_target_cc
11332 if test -n "$orig_target_cc"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11334 $as_echo "$orig_target_cc" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11343 else
11344 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11345 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_path_orig_target_cc+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 case $orig_target_cc in
11352 [\\/]* | ?:[\\/]*)
11353 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11372 esac
11374 orig_target_cc=$ac_cv_path_orig_target_cc
11375 if test -n "$orig_target_cc"; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11377 $as_echo "$orig_target_cc" >&6; }
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11386 if test "$orig_target_cc" = ""; then
11387 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11390 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11391 if test "$cross_compiling" = "yes" ; then
11392 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11393 set dummy ${target_tool_prefix}g++; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_orig_target_cxx+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 case $orig_target_cxx in
11400 [\\/]* | ?:[\\/]*)
11401 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11415 done
11416 done
11417 IFS=$as_save_IFS
11420 esac
11422 orig_target_cxx=$ac_cv_path_orig_target_cxx
11423 if test -n "$orig_target_cxx"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11425 $as_echo "$orig_target_cxx" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11432 else
11433 if test "$GCC" = "yes"; then
11434 aros_gcc_g++=`$CC -print-prog-name=g++`
11435 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11436 set dummy `basename $aros_gcc_g++`; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_path_orig_target_cxx+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 case $orig_target_cxx in
11443 [\\/]* | ?:[\\/]*)
11444 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in `dirname $aros_gcc_g++`
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11458 done
11459 done
11460 IFS=$as_save_IFS
11463 esac
11465 orig_target_cxx=$ac_cv_path_orig_target_cxx
11466 if test -n "$orig_target_cxx"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11468 $as_echo "$orig_target_cxx" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11476 if test "$orig_target_cxx" = ""; then
11477 # Extract the first word of "g++", so it can be a program name with args.
11478 set dummy g++; 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_cxx+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 case $orig_target_cxx in
11485 [\\/]* | ?:[\\/]*)
11486 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
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_cxx="$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_cxx=$ac_cv_path_orig_target_cxx
11508 if test -n "$orig_target_cxx"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11510 $as_echo "$orig_target_cxx" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11519 else
11520 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11521 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if ${ac_cv_path_orig_target_cxx+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 case $orig_target_cxx in
11528 [\\/]* | ?:[\\/]*)
11529 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11543 done
11544 done
11545 IFS=$as_save_IFS
11548 esac
11550 orig_target_cxx=$ac_cv_path_orig_target_cxx
11551 if test -n "$orig_target_cxx"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11553 $as_echo "$orig_target_cxx" >&6; }
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11562 if test "$orig_target_cxx" = ""; then
11563 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11566 if test "${aros_tool_prefix}ld" = ""; then
11567 if test "$cross_compiling" = "yes" ; then
11568 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11569 set dummy ${target_tool_prefix}gcc; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_path_orig_target_ld+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 case $orig_target_ld in
11576 [\\/]* | ?:[\\/]*)
11577 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11587 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 break 2
11591 done
11592 done
11593 IFS=$as_save_IFS
11596 esac
11598 orig_target_ld=$ac_cv_path_orig_target_ld
11599 if test -n "$orig_target_ld"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11601 $as_echo "$orig_target_ld" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11608 else
11609 if test "$GCC" = "yes"; then
11610 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11611 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11612 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if ${ac_cv_path_orig_target_ld+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 case $orig_target_ld in
11619 [\\/]* | ?:[\\/]*)
11620 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in `dirname $aros_gcc_gcc`
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11634 done
11635 done
11636 IFS=$as_save_IFS
11639 esac
11641 orig_target_ld=$ac_cv_path_orig_target_ld
11642 if test -n "$orig_target_ld"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11644 $as_echo "$orig_target_ld" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11652 if test "$orig_target_ld" = ""; then
11653 # Extract the first word of "gcc", so it can be a program name with args.
11654 set dummy gcc; 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_ld+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 case $orig_target_ld in
11661 [\\/]* | ?:[\\/]*)
11662 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_path_orig_target_ld="$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_ld=$ac_cv_path_orig_target_ld
11684 if test -n "$orig_target_ld"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11686 $as_echo "$orig_target_ld" >&6; }
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11695 else
11696 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11697 set dummy ${aros_tool_prefix}ld; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_orig_target_ld+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 case $orig_target_ld in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11719 done
11720 done
11721 IFS=$as_save_IFS
11724 esac
11726 orig_target_ld=$ac_cv_path_orig_target_ld
11727 if test -n "$orig_target_ld"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11729 $as_echo "$orig_target_ld" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11738 if test "$orig_target_ld" = ""; then
11739 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11742 if test "${aros_tool_prefix}as" = ""; then
11743 if test "$cross_compiling" = "yes" ; then
11744 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11745 set dummy ${target_tool_prefix}as; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_orig_target_as+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 case $orig_target_as in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11767 done
11768 done
11769 IFS=$as_save_IFS
11772 esac
11774 orig_target_as=$ac_cv_path_orig_target_as
11775 if test -n "$orig_target_as"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11777 $as_echo "$orig_target_as" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11784 else
11785 if test "$GCC" = "yes"; then
11786 aros_gcc_as=`$CC -print-prog-name=as`
11787 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11788 set dummy `basename $aros_gcc_as`; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_path_orig_target_as+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 case $orig_target_as in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in `dirname $aros_gcc_as`
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11810 done
11811 done
11812 IFS=$as_save_IFS
11815 esac
11817 orig_target_as=$ac_cv_path_orig_target_as
11818 if test -n "$orig_target_as"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11820 $as_echo "$orig_target_as" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test "$orig_target_as" = ""; then
11829 # Extract the first word of "as", so it can be a program name with args.
11830 set dummy as; 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_as+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 case $orig_target_as in
11837 [\\/]* | ?:[\\/]*)
11838 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
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_as="$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_as=$ac_cv_path_orig_target_as
11860 if test -n "$orig_target_as"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11862 $as_echo "$orig_target_as" >&6; }
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11871 else
11872 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11873 set dummy ${aros_tool_prefix}as; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_path_orig_target_as+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 case $orig_target_as in
11880 [\\/]* | ?:[\\/]*)
11881 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893 break 2
11895 done
11896 done
11897 IFS=$as_save_IFS
11900 esac
11902 orig_target_as=$ac_cv_path_orig_target_as
11903 if test -n "$orig_target_as"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11905 $as_echo "$orig_target_as" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11914 if test "$orig_target_as" = ""; then
11915 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11918 if test "${aros_tool_prefix}ar" = ""; then
11919 if test "$cross_compiling" = "yes" ; then
11920 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11921 set dummy ${target_tool_prefix}ar; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_path_orig_target_ar+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 case $orig_target_ar in
11928 [\\/]* | ?:[\\/]*)
11929 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11943 done
11944 done
11945 IFS=$as_save_IFS
11948 esac
11950 orig_target_ar=$ac_cv_path_orig_target_ar
11951 if test -n "$orig_target_ar"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11953 $as_echo "$orig_target_ar" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11960 else
11961 if test "$GCC" = "yes"; then
11962 aros_gcc_ar=`$CC -print-prog-name=ar`
11963 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11964 set dummy `basename $aros_gcc_ar`; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_path_orig_target_ar+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 case $orig_target_ar in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in `dirname $aros_gcc_ar`
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11986 done
11987 done
11988 IFS=$as_save_IFS
11991 esac
11993 orig_target_ar=$ac_cv_path_orig_target_ar
11994 if test -n "$orig_target_ar"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11996 $as_echo "$orig_target_ar" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12004 if test "$orig_target_ar" = ""; then
12005 # Extract the first word of "ar", so it can be a program name with args.
12006 set dummy 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_ar+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 case $orig_target_ar in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
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_ar="$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_ar=$ac_cv_path_orig_target_ar
12036 if test -n "$orig_target_ar"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12038 $as_echo "$orig_target_ar" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12047 else
12048 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
12049 set dummy ${aros_tool_prefix}ar; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_orig_target_ar+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case $orig_target_ar in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12071 done
12072 done
12073 IFS=$as_save_IFS
12076 esac
12078 orig_target_ar=$ac_cv_path_orig_target_ar
12079 if test -n "$orig_target_ar"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12081 $as_echo "$orig_target_ar" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12090 if test "$orig_target_ar" = ""; then
12091 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12094 if test "${aros_tool_prefix}ranlib" = ""; then
12095 if test "$cross_compiling" = "yes" ; then
12096 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12097 set dummy ${target_tool_prefix}ar; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 case $orig_target_ranlib in
12104 [\\/]* | ?:[\\/]*)
12105 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12115 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12119 done
12120 done
12121 IFS=$as_save_IFS
12124 esac
12126 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12127 if test -n "$orig_target_ranlib"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12129 $as_echo "$orig_target_ranlib" >&6; }
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12136 else
12137 if test "$GCC" = "yes"; then
12138 aros_gcc_ar=`$CC -print-prog-name=ar`
12139 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12140 set dummy `basename $aros_gcc_ar`; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 case $orig_target_ranlib in
12147 [\\/]* | ?:[\\/]*)
12148 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in `dirname $aros_gcc_ar`
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12167 esac
12169 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12170 if test -n "$orig_target_ranlib"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12172 $as_echo "$orig_target_ranlib" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12180 if test "$orig_target_ranlib" = ""; then
12181 # Extract the first word of "ar", so it can be a program name with args.
12182 set dummy ar; 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_ranlib+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 case $orig_target_ranlib in
12189 [\\/]* | ?:[\\/]*)
12190 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
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_ranlib="$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_ranlib=$ac_cv_path_orig_target_ranlib
12212 if test -n "$orig_target_ranlib"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12214 $as_echo "$orig_target_ranlib" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12223 else
12224 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12225 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 case $orig_target_ranlib in
12232 [\\/]* | ?:[\\/]*)
12233 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12247 done
12248 done
12249 IFS=$as_save_IFS
12252 esac
12254 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12255 if test -n "$orig_target_ranlib"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12257 $as_echo "$orig_target_ranlib" >&6; }
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12266 if test "$orig_target_ranlib" = ""; then
12267 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12270 if test "${aros_tool_prefix}nm" = ""; then
12271 if test "$cross_compiling" = "yes" ; then
12272 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12273 set dummy ${target_tool_prefix}nm; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_path_orig_target_nm+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 case $orig_target_nm in
12280 [\\/]* | ?:[\\/]*)
12281 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12300 esac
12302 orig_target_nm=$ac_cv_path_orig_target_nm
12303 if test -n "$orig_target_nm"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12305 $as_echo "$orig_target_nm" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12312 else
12313 if test "$GCC" = "yes"; then
12314 aros_gcc_nm=`$CC -print-prog-name=nm`
12315 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12316 set dummy `basename $aros_gcc_nm`; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_path_orig_target_nm+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 case $orig_target_nm in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in `dirname $aros_gcc_nm`
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12343 esac
12345 orig_target_nm=$ac_cv_path_orig_target_nm
12346 if test -n "$orig_target_nm"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12348 $as_echo "$orig_target_nm" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test "$orig_target_nm" = ""; then
12357 # Extract the first word of "nm", so it can be a program name with args.
12358 set dummy nm; 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_nm+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 case $orig_target_nm in
12365 [\\/]* | ?:[\\/]*)
12366 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
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_nm="$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_nm=$ac_cv_path_orig_target_nm
12388 if test -n "$orig_target_nm"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12390 $as_echo "$orig_target_nm" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12399 else
12400 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12401 set dummy ${aros_tool_prefix}nm; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if ${ac_cv_path_orig_target_nm+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 case $orig_target_nm in
12408 [\\/]* | ?:[\\/]*)
12409 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12423 done
12424 done
12425 IFS=$as_save_IFS
12428 esac
12430 orig_target_nm=$ac_cv_path_orig_target_nm
12431 if test -n "$orig_target_nm"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12433 $as_echo "$orig_target_nm" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12442 if test "$orig_target_nm" = ""; then
12443 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12446 if test "${aros_tool_prefix}strip" = ""; then
12447 if test "$cross_compiling" = "yes" ; then
12448 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12449 set dummy ${target_tool_prefix}strip; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_path_orig_target_strip+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 case $orig_target_strip in
12456 [\\/]* | ?:[\\/]*)
12457 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12476 esac
12478 orig_target_strip=$ac_cv_path_orig_target_strip
12479 if test -n "$orig_target_strip"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12481 $as_echo "$orig_target_strip" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12488 else
12489 if test "$GCC" = "yes"; then
12490 aros_gcc_strip=`$CC -print-prog-name=strip`
12491 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12492 set dummy `basename $aros_gcc_strip`; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_orig_target_strip+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 case $orig_target_strip in
12499 [\\/]* | ?:[\\/]*)
12500 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in `dirname $aros_gcc_strip`
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12514 done
12515 done
12516 IFS=$as_save_IFS
12519 esac
12521 orig_target_strip=$ac_cv_path_orig_target_strip
12522 if test -n "$orig_target_strip"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12524 $as_echo "$orig_target_strip" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12532 if test "$orig_target_strip" = ""; then
12533 # Extract the first word of "strip", so it can be a program name with args.
12534 set dummy strip; 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_strip+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 case $orig_target_strip in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
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_strip="$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_strip=$ac_cv_path_orig_target_strip
12564 if test -n "$orig_target_strip"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12566 $as_echo "$orig_target_strip" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12575 else
12576 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12577 set dummy ${aros_tool_prefix}strip; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_orig_target_strip+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $orig_target_strip in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12599 done
12600 done
12601 IFS=$as_save_IFS
12604 esac
12606 orig_target_strip=$ac_cv_path_orig_target_strip
12607 if test -n "$orig_target_strip"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12609 $as_echo "$orig_target_strip" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12618 if test "$orig_target_strip" = ""; then
12619 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12622 if test "${aros_tool_prefix}objcopy" = ""; then
12623 if test "$cross_compiling" = "yes" ; then
12624 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12625 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 case $orig_target_objcopy in
12632 [\\/]* | ?:[\\/]*)
12633 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12652 esac
12654 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12655 if test -n "$orig_target_objcopy"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12657 $as_echo "$orig_target_objcopy" >&6; }
12658 else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12664 else
12665 if test "$GCC" = "yes"; then
12666 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12667 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12668 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 case $orig_target_objcopy in
12675 [\\/]* | ?:[\\/]*)
12676 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in `dirname $aros_gcc_objcopy`
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12686 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12695 esac
12697 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12698 if test -n "$orig_target_objcopy"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12700 $as_echo "$orig_target_objcopy" >&6; }
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12708 if test "$orig_target_objcopy" = ""; then
12709 # Extract the first word of "objcopy", so it can be a program name with args.
12710 set dummy objcopy; 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_objcopy+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 case $orig_target_objcopy in
12717 [\\/]* | ?:[\\/]*)
12718 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $PATH
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_objcopy="$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_objcopy=$ac_cv_path_orig_target_objcopy
12740 if test -n "$orig_target_objcopy"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12742 $as_echo "$orig_target_objcopy" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12751 else
12752 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12753 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 case $orig_target_objcopy in
12760 [\\/]* | ?:[\\/]*)
12761 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12775 done
12776 done
12777 IFS=$as_save_IFS
12780 esac
12782 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12783 if test -n "$orig_target_objcopy"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12785 $as_echo "$orig_target_objcopy" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12794 if test "$orig_target_objcopy" = ""; then
12795 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12798 if test "${aros_tool_prefix}objdump" = ""; then
12799 if test "$cross_compiling" = "yes" ; then
12800 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12801 set dummy ${target_tool_prefix}objdump; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 $as_echo_n "checking for $ac_word... " >&6; }
12804 if ${ac_cv_path_orig_target_objdump+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 case $orig_target_objdump in
12808 [\\/]* | ?:[\\/]*)
12809 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12819 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 break 2
12823 done
12824 done
12825 IFS=$as_save_IFS
12828 esac
12830 orig_target_objdump=$ac_cv_path_orig_target_objdump
12831 if test -n "$orig_target_objdump"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12833 $as_echo "$orig_target_objdump" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12840 else
12841 if test "$GCC" = "yes"; then
12842 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12843 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12844 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_path_orig_target_objdump+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 case $orig_target_objdump in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in `dirname $aros_gcc_objdump`
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12871 esac
12873 orig_target_objdump=$ac_cv_path_orig_target_objdump
12874 if test -n "$orig_target_objdump"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12876 $as_echo "$orig_target_objdump" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12884 if test "$orig_target_objdump" = ""; then
12885 # Extract the first word of "objdump", so it can be a program name with args.
12886 set dummy objdump; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if ${ac_cv_path_orig_target_objdump+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 case $orig_target_objdump in
12893 [\\/]* | ?:[\\/]*)
12894 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12904 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 break 2
12908 done
12909 done
12910 IFS=$as_save_IFS
12913 esac
12915 orig_target_objdump=$ac_cv_path_orig_target_objdump
12916 if test -n "$orig_target_objdump"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12918 $as_echo "$orig_target_objdump" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12927 else
12928 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12929 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931 $as_echo_n "checking for $ac_word... " >&6; }
12932 if ${ac_cv_path_orig_target_objdump+:} false; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 case $orig_target_objdump in
12936 [\\/]* | ?:[\\/]*)
12937 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12953 IFS=$as_save_IFS
12956 esac
12958 orig_target_objdump=$ac_cv_path_orig_target_objdump
12959 if test -n "$orig_target_objdump"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12961 $as_echo "$orig_target_objdump" >&6; }
12962 else
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 $as_echo "no" >&6; }
12970 if test "$orig_target_objdump" = ""; then
12971 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12975 if test "$kernel_tool_prefix" = "none" ; then
12976 # No kernel tools specified
12977 # Assume target tools == kernel tools with ELF wrapper
12978 aros_kernel_cc=$orig_target_cc
12979 aros_kernel_cxx=$orig_target_cxx
12980 aros_kernel_cpp=$orig_target_cpp
12981 aros_kernel_ld=$orig_target_ld
12982 aros_kernel_as=$orig_target_as
12983 aros_kernel_ar=$orig_target_ar
12984 aros_kernel_ranlib=$orig_target_ranlib
12985 aros_kernel_nm=$orig_target_nm
12986 aros_kernel_strip=$orig_target_strip
12987 aros_kernel_objcopy=$orig_target_objcopy
12988 aros_kernel_objdump=$orig_target_objdump
12989 use_kernel_cc_wrapper=yes
12992 # At this point, all aros_kernel_* and aros_target_*
12993 # tools should be set up correctly
12995 CC="$aros_kernel_cc $kernel_tool_flags"
12996 CPP="$aros_kernel_cpp"
12998 #-----------------------------------------------------------------------------
13000 # Disable pointer-signedness warnings if the compiler recognises the option
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
13003 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
13004 save_cflags="$CFLAGS"
13005 if test "$crosstools" != "yes" ; then
13006 CFLAGS="$CFLAGS -Wno-pointer-sign"
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13011 main ()
13015 return 0;
13017 _ACEOF
13018 if ac_fn_c_try_compile "$LINENO"; then :
13019 use_no_sign_warning="yes"
13020 else
13021 use_no_sign_warning="no"
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 else
13025 # we do know it is supported for the smallest version of gcc we are going to build
13026 # we assume it's also supported by later versions
13027 use_no_sign_warning=yes
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
13030 $as_echo "$use_no_sign_warning" >&6; }
13031 if test "x-$use_no_sign_warning" = "x-yes" ; then
13032 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
13034 CFLAGS="$save_cflags"
13036 #-----------------------------------------------------------------------------
13038 # Find all the tools we need to compile. This could be cross-compiling
13039 # though! If that is the case we use the GNU form of the target and
13040 # simply add this to the front of the binary name. This is rather simple,
13041 # but it should work under most circumstances.
13043 # The default tools are to use the same as the host, but only if the
13044 # host and target CPU are the same. With GCC this is normally enough.
13047 aros_cc_pre=""
13048 aros_shared_ld="$aros_host_ld"
13050 aros_target_mkdep="$aros_host_mkdep"
13052 # The default tools executables to be linked to.
13053 if test "$rescomp" != ""; then
13054 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13055 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057 $as_echo_n "checking for $ac_word... " >&6; }
13058 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 case $aros_kernel_rescomp in
13062 [\\/]* | ?:[\\/]*)
13063 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13077 done
13078 done
13079 IFS=$as_save_IFS
13082 esac
13084 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13085 if test -n "$aros_kernel_rescomp"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13087 $as_echo "$aros_kernel_rescomp" >&6; }
13088 else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13094 if test "$aros_kernel_rescomp" = ""; then
13095 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13099 # Set up the sources for the symlink farm
13100 if test "$crosstools" = "yes"; then
13101 crosstools_target=tools-crosstools
13104 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13105 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13107 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13108 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13109 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13110 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13111 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13112 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13113 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13115 # aros_cc_pre is a variable that is added to the front of the compiler name
13116 # in the generated aros-gcc shell script. We need this to enable the cache
13117 # to work across cleaned builds. Also, support DISTCC using the correct
13118 # environment variable.
13121 if test "x${DISTCC}" != "x" ; then
13122 if test "x${CCACHE}" != "x" ; then
13123 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13124 else
13125 aros_cc_pre="${DISTCC} "
13127 else
13128 if test "x${CCACHE}" != "x" ; then
13129 aros_cc_pre="${CCACHE} "
13133 aros_target_nostdinc_cflags=-nostdinc
13135 aros_target_nostartup_ldflags=-nostartfiles
13137 aros_target_nix_ldflags=-nix
13139 aros_target_detach_ldflags=-detach
13141 aros_target_nostdlib_ldflags=-nostdlib
13144 # Target tools
13145 if test "$aros_target_toolchain" != "yes"; then
13146 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13147 if test "$GCC" = "yes"; then
13148 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13150 else
13151 # We do not know which gcc version we are going to build and what we need to know
13152 # here is different for different versions so this will be set later during the
13153 # build of crosstools.
13154 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13155 aros_target_cc_path=@aros_target_cc_path@
13157 aros_target_cpp="${prefix}cpp"
13158 aros_target_cc="${prefix}gcc"
13159 aros_target_cxx="${prefix}g++"
13160 aros_target_as="${prefix}as"
13161 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13162 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13163 aros_target_objcopy="${prefix}objcopy"
13164 aros_target_objdump="${prefix}objdump"
13165 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13166 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13167 aros_target_strip="${prefix}strip"
13168 aros_plain_nm="${prefix}nm"
13169 aros_plain_ar="${prefix}ar"
13171 # Check whether --enable-includes was given.
13172 if test "${enable_includes+set}" = set; then :
13173 enableval=$enable_includes; aros_target_incl=$enable_includes
13174 else
13175 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13179 if test "$aros_kernel_includes" = ""; then
13180 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13181 aros_kernel_includes="-isystem $aros_target_incl"
13185 if test "$aros_kernel_includes" != "" ; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13187 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13188 if test "$aros_kernel_cc_includes" = "" ; then
13189 # Try to guess where the directory is.
13190 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13191 if test -d $aros_kernel_cc_includes; then
13192 # Check if there is also an include-fixed directory and add it
13193 # to kernel compiler's include path as it may contain some of
13194 # the headers we need.
13195 if test -d "$aros_kernel_cc_includes"-fixed; then
13196 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13198 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13199 case ${host_cpu} in
13200 i[3456]86)
13201 host_cpu_glibc=i386
13204 host_cpu_glibc=${host_cpu}
13206 esac
13207 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13208 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13210 else
13211 # The directory doesn't exist, we need to do some more work.
13212 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13214 # These are the headers we're looking for.
13215 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13216 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13217 zutil.h stdint.h"
13219 dirs=
13220 for h in $headers; do
13221 # Which other headers are needed by each of the above?
13222 deps=$(echo "#include <$h>" | \
13223 $aros_kernel_cc -E -M - 2>/dev/null | \
13224 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13226 # Copy all the needed headers to a directory beneath gendir.
13227 for d in $deps; do
13228 h=$(basename $d)
13229 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13230 sed -n "s,^.*/include\(/.*\),\1,p")
13231 ! test -d $dir && mkdir -p $dir
13232 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13233 done
13234 done
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13238 $as_echo "$aros_kernel_cc_includes" >&6; }
13239 # Adding -nostdinc to kernel includes as they are always used together.
13240 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13243 if test "$crosstools" != "yes"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13245 $as_echo_n "checking for the target compiler's include path... " >&6; }
13246 if test "$aros_target_cc_includes" = "" ; then
13247 #try to guess where the directory is
13248 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13249 if ! test -d $aros_target_cc_includes; then
13250 #the directory doesn't exist, we need to do some more work
13251 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13253 #these are the headers we're looking for
13254 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13255 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13256 zutil.h"
13258 dirs=
13259 for h in $headers; do
13260 #which other headers each of the above headers needs?
13261 deps=$(echo "#include <$h>" | \
13262 $orig_target_cc -E -M - 2>/dev/null | \
13263 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13265 #copy all the needed headers to a directory beneath gendir
13266 for d in $deps; do
13267 h=$(basename $d)
13268 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13269 sed -n "s,^.*/include\(/.*\),\1,p")
13270 ! test -d $dir && mkdir -p $dir
13271 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13272 done
13273 done
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13277 $as_echo "$aros_target_cc_includes" >&6; }
13278 else
13279 # We do not know which gcc version we are going to build and what we need to know
13280 # here is different for different versions so this will be set later during the
13281 # build of crosstools.
13282 aros_target_cc_includes=@aros_target_cc_includes@
13286 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13287 # On GCC >= 4.0 -iquote should be used
13290 save_cc="$CC"
13291 save_cflags="$CFLAGS"
13292 CFLAGS="-iquote."
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13294 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13295 if test "x-$crosstools" != "x-yes"; then
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13300 main ()
13304 return 0;
13306 _ACEOF
13307 if ac_fn_c_try_compile "$LINENO"; then :
13308 has_iquote="yes"
13309 else
13310 has_iquote="no"
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 else
13314 # we do know it is supported for the smallest version of gcc we are going to build
13315 # we assume it's also supported by later versions
13316 has_iquote=yes
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13319 $as_echo "$has_iquote" >&6; }
13320 if test "x-$has_iquote" = "x-yes" ; then
13321 host_cflags_iquote=-iquote
13322 host_cflags_iquote_end=
13323 else
13324 host_cflags_iquote=-I
13325 host_cflags_iquote_end=-I-
13327 kernel_cflags_iquote=$host_cflags_iquote
13328 kernel_cflags_iquote_end=$host_cflags_iquote_end
13329 if test "x-$cross_compiling" = "x-yes"; then
13330 CC="$aros_kernel_cc"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13332 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13333 if test "x-$crosstools" != "x-yes"; then
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13338 main ()
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346 use_no_stack_protector="yes"
13347 else
13348 use_no_stack_protector="no"
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 else
13352 # we do know it is supported for the smallest version of gcc we are going to build
13353 # we assume it's also supported by later versions
13354 use_no_stack_protector=yes
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13357 $as_echo "$use_no_stack_protector" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13359 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13360 if test "x-$crosstools" != "x-yes"; then
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13365 main ()
13369 return 0;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 has_iquote="yes"
13374 else
13375 has_iquote="no"
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 else
13379 # we do know it is supported for the smallest version of gcc we are going to build
13380 # we assume it's also supported by later versions
13381 has_iquote=yes
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13384 $as_echo "$has_iquote" >&6; }
13385 if test "x-$has_iquote" = "x-yes" ; then
13386 kernel_cflags_iquote=-iquote
13387 kernel_cflags_iquote_end=
13388 else
13389 kernel_cflags_iquote=-I
13390 kernel_cflags_iquote_end=-I-
13393 aros_cflags_iquote=$kernel_cflags_iquote
13394 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13395 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13396 CC="$orig_target_cc"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13398 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13399 if test "x-$crosstools" != "x-yes"; then
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13404 main ()
13408 return 0;
13410 _ACEOF
13411 if ac_fn_c_try_compile "$LINENO"; then :
13412 has_iquote="yes"
13413 else
13414 has_iquote="no"
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 else
13418 # we do know it is supported for the smallest version of gcc we are going to build
13419 # we assume it's also supported by later versions
13420 has_iquote=yes
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13423 $as_echo "$has_iquote" >&6; }
13424 if test "x-$has_iquote" = "x-yes" ; then
13425 aros_cflags_iquote=-iquote
13426 aros_cflags_iquote_end=
13427 else
13428 aros_cflags_iquote=-I
13429 aros_cflags_iquote_end=-I-
13432 if test "x-$use_no_stack_protector" = "x-yes" ; then
13433 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13436 #-----------------------------------------------------------------------------
13438 # Check if we can explicitly choose older version of symbol hashing
13440 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13441 CC="$aros_kernel_cc"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13443 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13448 main ()
13452 return 0;
13454 _ACEOF
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 use_hash_style="yes"
13457 else
13458 use_hash_style="no"
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13463 $as_echo "$use_hash_style" >&6; }
13464 if test "x-$use_hash_style" = "x-yes" ; then
13465 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13467 CC="$save_cc"
13468 CFLAGS="$save_cflags"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13479 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13481 # Check whether --with-resolution was given.
13482 if test "${with_resolution+set}" = set; then :
13483 withval=$with_resolution; resolution=$withval
13484 else
13485 resolution=none
13488 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13489 if test "$resolution" = "yes" ; then
13490 resolution="none"
13492 if test "$resolution" = "no" ; then
13493 resolution="none"
13495 if test "$resolution" != "none" ; then
13496 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13497 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13498 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13501 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13502 aros_cv_nominal_width=$aros_nominal_width
13503 aros_cv_nominal_height=$aros_nominal_height
13504 aros_cv_nominal_depth=$aros_nominal_depth
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13507 $as_echo_n "checking if serial debug is enabled... " >&6; }
13509 # Check whether --with-serial-debug was given.
13510 if test "${with_serial_debug+set}" = set; then :
13511 withval=$with_serial_debug; serial_debug=$withval
13512 else
13513 serial_debug=none
13516 if test "$aros_serial_debug" = 0 ; then
13517 serial_debug_forced=""
13518 if test "$serial_debug" = "yes" ; then
13519 serial_debug="1"
13521 if test "$serial_debug" = "no" ; then
13522 serial_debug="none"
13524 else
13525 serial_debug_forced="(forced)"
13526 serial_debug=$aros_serial_debug
13528 if test "$serial_debug" != "none" ; then
13529 aros_serial_debug=$serial_debug
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13531 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13532 else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13538 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13539 # Check whether --enable-palm_debug_hack was given.
13540 if test "${enable_palm_debug_hack+set}" = set; then :
13541 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13542 else
13543 palm_debug_hack="no"
13546 if test "$palm_debug_hack" = "yes" ; then
13547 aros_palm_debug_hack="1"
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13550 $as_echo "$palm_debug_hack" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13553 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13554 # Check whether --enable-usb30_code was given.
13555 if test "${enable_usb30_code+set}" = set; then :
13556 enableval=$enable_usb30_code; usb30_code="yes"
13557 else
13558 usb30_code="no"
13561 if test "$usb30_code" = "yes" ; then
13562 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13563 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13566 $as_echo "$usb30_code" >&6; }
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13569 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13570 # Check whether --enable-nesting_supervisor was given.
13571 if test "${enable_nesting_supervisor+set}" = set; then :
13572 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13573 else
13574 nesting_supervisor="no"
13577 if test "$nesting_supervisor" = "yes" ; then
13578 aros_nesting_supervisor="1"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13581 $as_echo "$nesting_supervisor" >&6; }
13583 if test "$aros_enable_mmu" = "" ; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13585 $as_echo_n "checking if MMU support is enabled... " >&6; }
13586 # Check whether --enable-mmu was given.
13587 if test "${enable_mmu+set}" = set; then :
13588 enableval=$enable_mmu; aros_enable_mmu=$enableval
13589 else
13590 aros_enable_mmu="yes"
13593 if test "$aros_enable_mmu" = "" ; then
13594 aros_enable_mmu="yes"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13597 $as_echo "$aros_enable_mmu" >&6; }
13599 if test "$aros_enable_mmu" = "no" ; then
13600 aros_enable_mmu="0"
13601 else
13602 aros_enable_mmu="1"
13606 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13608 if test "x-$need_dlopen" != "x-no" ; then
13609 save_libs="$LIBS"
13610 LIBS=""
13611 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13612 if test "x$ac_cv_func_dlopen" = xyes; then :
13613 have_dl="yes"
13614 else
13615 have_dl="no"
13618 if test "x-$have_dl" = "x-no" ; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13621 if ${ac_cv_lib_dl_dlopen+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 ac_check_lib_save_LIBS=$LIBS
13625 LIBS="-ldl $LIBS"
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char dlopen ();
13637 main ()
13639 return dlopen ();
13641 return 0;
13643 _ACEOF
13644 if ac_fn_c_try_link "$LINENO"; then :
13645 ac_cv_lib_dl_dlopen=yes
13646 else
13647 ac_cv_lib_dl_dlopen=no
13649 rm -f core conftest.err conftest.$ac_objext \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13654 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13655 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13656 have_dl="yes"
13657 aros_host_ldflags="$aros_host_ldflags -ldl"
13658 else
13659 have_dl="no"
13663 if test "x-$have_dl" = "x-no" ; then
13664 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13666 LIBS="$save_libs"
13670 # Check whether --enable-x11_hidd was given.
13671 if test "${enable_x11_hidd+set}" = set; then :
13672 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13673 else
13674 x11_hidd="$need_x11"
13677 case "x-$x11_hidd" in
13678 x-yes|x-no|x-auto) ;;
13679 *) x11_hidd="$need_x11" ;;
13680 esac
13682 ENABLE_X11=0
13684 if test "x-$x11_hidd" != "x-no" ; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13687 $as_echo_n "checking for X... " >&6; }
13690 # Check whether --with-x was given.
13691 if test "${with_x+set}" = set; then :
13692 withval=$with_x;
13695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13696 if test "x$with_x" = xno; then
13697 # The user explicitly disabled X.
13698 have_x=disabled
13699 else
13700 case $x_includes,$x_libraries in #(
13701 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13702 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 # One or both of the vars are not set, and there is no cached value.
13706 ac_x_includes=no ac_x_libraries=no
13707 rm -f -r conftest.dir
13708 if mkdir conftest.dir; then
13709 cd conftest.dir
13710 cat >Imakefile <<'_ACEOF'
13711 incroot:
13712 @echo incroot='${INCROOT}'
13713 usrlibdir:
13714 @echo usrlibdir='${USRLIBDIR}'
13715 libdir:
13716 @echo libdir='${LIBDIR}'
13717 _ACEOF
13718 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13720 for ac_var in incroot usrlibdir libdir; do
13721 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13722 done
13723 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13724 for ac_extension in a so sl dylib la dll; do
13725 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13726 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13727 ac_im_usrlibdir=$ac_im_libdir; break
13729 done
13730 # Screen out bogus values from the imake configuration. They are
13731 # bogus both because they are the default anyway, and because
13732 # using them would break gcc on systems where it needs fixed includes.
13733 case $ac_im_incroot in
13734 /usr/include) ac_x_includes= ;;
13735 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13736 esac
13737 case $ac_im_usrlibdir in
13738 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13739 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13740 esac
13742 cd ..
13743 rm -f -r conftest.dir
13746 # Standard set of common directories for X headers.
13747 # Check X11 before X11Rn because it is often a symlink to the current release.
13748 ac_x_header_dirs='
13749 /usr/X11/include
13750 /usr/X11R7/include
13751 /usr/X11R6/include
13752 /usr/X11R5/include
13753 /usr/X11R4/include
13755 /usr/include/X11
13756 /usr/include/X11R7
13757 /usr/include/X11R6
13758 /usr/include/X11R5
13759 /usr/include/X11R4
13761 /usr/local/X11/include
13762 /usr/local/X11R7/include
13763 /usr/local/X11R6/include
13764 /usr/local/X11R5/include
13765 /usr/local/X11R4/include
13767 /usr/local/include/X11
13768 /usr/local/include/X11R7
13769 /usr/local/include/X11R6
13770 /usr/local/include/X11R5
13771 /usr/local/include/X11R4
13773 /usr/X386/include
13774 /usr/x386/include
13775 /usr/XFree86/include/X11
13777 /usr/include
13778 /usr/local/include
13779 /usr/unsupported/include
13780 /usr/athena/include
13781 /usr/local/x11r5/include
13782 /usr/lpp/Xamples/include
13784 /usr/openwin/include
13785 /usr/openwin/share/include'
13787 if test "$ac_x_includes" = no; then
13788 # Guess where to find include files, by looking for Xlib.h.
13789 # First, try using that file with no special directory specified.
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <X11/Xlib.h>
13793 _ACEOF
13794 if ac_fn_c_try_cpp "$LINENO"; then :
13795 # We can compile using X headers with no special include directory.
13796 ac_x_includes=
13797 else
13798 for ac_dir in $ac_x_header_dirs; do
13799 if test -r "$ac_dir/X11/Xlib.h"; then
13800 ac_x_includes=$ac_dir
13801 break
13803 done
13805 rm -f conftest.err conftest.i conftest.$ac_ext
13806 fi # $ac_x_includes = no
13808 if test "$ac_x_libraries" = no; then
13809 # Check for the libraries.
13810 # See if we find them without any special options.
13811 # Don't add to $LIBS permanently.
13812 ac_save_LIBS=$LIBS
13813 LIBS="-lX11 $LIBS"
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <X11/Xlib.h>
13818 main ()
13820 XrmInitialize ()
13822 return 0;
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"; then :
13826 LIBS=$ac_save_LIBS
13827 # We can link X programs with no special library path.
13828 ac_x_libraries=
13829 else
13830 LIBS=$ac_save_LIBS
13831 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13833 # Don't even attempt the hair of trying to link an X program!
13834 for ac_extension in a so sl dylib la dll; do
13835 if test -r "$ac_dir/libX11.$ac_extension"; then
13836 ac_x_libraries=$ac_dir
13837 break 2
13839 done
13840 done
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 fi # $ac_x_libraries = no
13846 case $ac_x_includes,$ac_x_libraries in #(
13847 no,* | *,no | *\'*)
13848 # Didn't find X, or a directory has "'" in its name.
13849 ac_cv_have_x="have_x=no";; #(
13851 # Record where we found X for the cache.
13852 ac_cv_have_x="have_x=yes\
13853 ac_x_includes='$ac_x_includes'\
13854 ac_x_libraries='$ac_x_libraries'"
13855 esac
13857 ;; #(
13858 *) have_x=yes;;
13859 esac
13860 eval "$ac_cv_have_x"
13861 fi # $with_x != no
13863 if test "$have_x" != yes; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13865 $as_echo "$have_x" >&6; }
13866 no_x=yes
13867 else
13868 # If each of the values was on the command line, it overrides each guess.
13869 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13870 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13871 # Update the cache value to reflect the command line values.
13872 ac_cv_have_x="have_x=yes\
13873 ac_x_includes='$x_includes'\
13874 ac_x_libraries='$x_libraries'"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13876 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13880 x_cflags=
13881 for path in $x_libraries
13883 x_cflags="$x_cflags -L$path"
13884 done
13886 for path in $x_includes
13888 x_cflags="$x_cflags -I$path"
13889 done
13891 if test "x-$no_x" = "x-yes" ; then
13893 if test "x-$x11_hidd" != "x-auto" ; then
13894 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13897 else
13898 host_x_gfx=yes
13899 ENABLE_X11=1
13901 # Check whether --enable-x11_shm was given.
13902 if test "${enable_x11_shm+set}" = set; then :
13903 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13904 else
13905 x11_hidd_shm="auto"
13908 case "x-$x11_hidd_shm" in
13909 x-yes|x-no|x-auto) ;;
13910 *) x11_hidd_shm="auto" ;;
13911 esac
13913 have_xshm=no
13915 if test "x-$x11_hidd_shm" != "x-no" ; then
13917 for ac_header in sys/ipc.h
13918 do :
13919 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13920 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_SYS_IPC_H 1
13923 _ACEOF
13927 done
13929 for ac_header in sys/shm.h
13930 do :
13931 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_SYS_SHM_H 1
13935 _ACEOF
13939 done
13942 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13944 save_cflags="$CFLAGS"
13945 CFLAGS="$CFLAGS $x_cflags"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13947 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13948 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lXext $LIBS"
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13959 #ifdef __cplusplus
13960 extern "C"
13961 #endif
13962 char XShmQueryExtension ();
13964 main ()
13966 return XShmQueryExtension ();
13968 return 0;
13970 _ACEOF
13971 if ac_fn_c_try_link "$LINENO"; then :
13972 ac_cv_lib_Xext_XShmQueryExtension=yes
13973 else
13974 ac_cv_lib_Xext_XShmQueryExtension=no
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13978 LIBS=$ac_check_lib_save_LIBS
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13981 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13982 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13983 have_xshm=yes
13986 CFLAGS="$save_cflags"
13990 if test "x-$have_xshm" = "x-yes" ; then
13991 DO_XSHM_SUPPORT="1"
13992 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13993 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13994 else
13995 DO_XSHM_SUPPORT="0"
13999 # Check whether --enable-x11_vidmode was given.
14000 if test "${enable_x11_vidmode+set}" = set; then :
14001 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14002 else
14003 x11_hidd_vidmode="auto"
14006 case "x-$x11_hidd_vidmode" in
14007 x-yes|x-no|x-auto) ;;
14008 *) x11_hidd_vidmode="auto" ;;
14009 esac
14011 have_vidmode=no
14013 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14015 save_cflags="$CFLAGS"
14016 CFLAGS="$CFLAGS $x_cflags"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14018 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14019 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 ac_check_lib_save_LIBS=$LIBS
14023 LIBS="-lXxf86vm $LIBS"
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14027 /* Override any GCC internal prototype to avoid an error.
14028 Use char because int might match the return type of a GCC
14029 builtin and then its argument prototype would still apply. */
14030 #ifdef __cplusplus
14031 extern "C"
14032 #endif
14033 char XF86VidModeQueryExtension ();
14035 main ()
14037 return XF86VidModeQueryExtension ();
14039 return 0;
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14044 else
14045 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_check_lib_save_LIBS
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14052 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14053 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14054 have_vidmode=yes
14057 CFLAGS="$save_cflags"
14060 if test "x-$have_vidmode" = "x-yes" ; then
14061 DO_VIDMODE_SUPPORT="1"
14062 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14063 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14064 else
14065 DO_VIDMODE_SUPPORT="0"
14069 aros_host_x11_includes=$x_includes
14070 aros_host_x11_libdirs=$x_libraries
14074 # Check whether --enable-sdl_hidd was given.
14075 if test "${enable_sdl_hidd+set}" = set; then :
14076 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14077 else
14078 sdl_hidd="auto"
14081 case "x-$sdl_hidd" in
14082 x-yes|x-no|x-auto) ;;
14083 *) sdl_hidd="auto" ;;
14084 esac
14086 if test "x-$sdl_hidd" != "x-no" ; then
14088 SDL_VERSION=1.2.5
14090 # Check whether --with-sdl-prefix was given.
14091 if test "${with_sdl_prefix+set}" = set; then :
14092 withval=$with_sdl_prefix; sdl_prefix="$withval"
14093 else
14094 sdl_prefix=""
14098 # Check whether --with-sdl-exec-prefix was given.
14099 if test "${with_sdl_exec_prefix+set}" = set; then :
14100 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14101 else
14102 sdl_exec_prefix=""
14105 # Check whether --enable-sdltest was given.
14106 if test "${enable_sdltest+set}" = set; then :
14107 enableval=$enable_sdltest;
14108 else
14109 enable_sdltest=yes
14113 if test x$sdl_exec_prefix != x ; then
14114 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14115 if test x${SDL_CONFIG+set} != xset ; then
14116 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14119 if test x$sdl_prefix != x ; then
14120 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14121 if test x${SDL_CONFIG+set} != xset ; then
14122 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14126 as_save_PATH="$PATH"
14127 if test "x$prefix" != xNONE; then
14128 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14130 # Extract the first word of "sdl-config", so it can be a program name with args.
14131 set dummy sdl-config; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133 $as_echo_n "checking for $ac_word... " >&6; }
14134 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 case $SDL_CONFIG in
14138 [\\/]* | ?:[\\/]*)
14139 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14155 IFS=$as_save_IFS
14157 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14159 esac
14161 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14162 if test -n "$SDL_CONFIG"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14164 $as_echo "$SDL_CONFIG" >&6; }
14165 else
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14171 PATH="$as_save_PATH"
14172 min_sdl_version=$SDL_VERSION
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14174 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14175 no_sdl=""
14176 if test "$SDL_CONFIG" = "no" ; then
14177 no_sdl=yes
14178 else
14179 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14180 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14182 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14183 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14184 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14185 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14186 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14187 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14188 if test "x$enable_sdltest" = "xyes" ; then
14189 ac_save_CFLAGS="$CFLAGS"
14190 ac_save_CXXFLAGS="$CXXFLAGS"
14191 ac_save_LIBS="$LIBS"
14192 CFLAGS="$CFLAGS $SDL_CFLAGS"
14193 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14194 LIBS="$LIBS $SDL_LIBS"
14195 rm -f conf.sdltest
14196 if test "$cross_compiling" = yes; then :
14197 echo $ac_n "cross compiling; assumed OK... $ac_c"
14198 else
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14202 #include <stdio.h>
14203 #include <stdlib.h>
14204 #include <string.h>
14205 #include "SDL.h"
14207 char*
14208 my_strdup (char *str)
14210 char *new_str;
14212 if (str)
14214 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14215 strcpy (new_str, str);
14217 else
14218 new_str = NULL;
14220 return new_str;
14223 int main (int argc, char *argv[])
14225 int major, minor, micro;
14226 char *tmp_version;
14228 /* This hangs on some systems (?)
14229 system ("touch conf.sdltest");
14231 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14233 /* HP/UX 9 (%@#!) writes to sscanf strings */
14234 tmp_version = my_strdup("$min_sdl_version");
14235 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14236 printf("%s, bad version string\n", "$min_sdl_version");
14237 exit(1);
14240 if (($sdl_major_version > major) ||
14241 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14242 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14244 return 0;
14246 else
14248 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14249 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14250 printf("*** best to upgrade to the required version.\n");
14251 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14252 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14253 printf("*** config.cache before re-running configure\n");
14254 return 1;
14259 _ACEOF
14260 if ac_fn_c_try_run "$LINENO"; then :
14262 else
14263 no_sdl=yes
14265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14266 conftest.$ac_objext conftest.beam conftest.$ac_ext
14269 CFLAGS="$ac_save_CFLAGS"
14270 CXXFLAGS="$ac_save_CXXFLAGS"
14271 LIBS="$ac_save_LIBS"
14274 if test "x$no_sdl" = x ; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14276 $as_echo "yes" >&6; }
14277 have_sdl="yes"
14278 else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 $as_echo "no" >&6; }
14281 if test "$SDL_CONFIG" = "no" ; then
14282 echo "*** The sdl-config script installed by SDL could not be found"
14283 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14284 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14285 echo "*** full path to sdl-config."
14286 else
14287 if test -f conf.sdltest ; then
14289 else
14290 echo "*** Could not run SDL test program, checking why..."
14291 CFLAGS="$CFLAGS $SDL_CFLAGS"
14292 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14293 LIBS="$LIBS $SDL_LIBS"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 #include <stdio.h>
14298 #include "SDL.h"
14300 int main(int argc, char *argv[])
14301 { return 0; }
14302 #undef main
14303 #define main K_and_R_C_main
14306 main ()
14308 return 0;
14310 return 0;
14312 _ACEOF
14313 if ac_fn_c_try_link "$LINENO"; then :
14314 echo "*** The test program compiled, but did not run. This usually means"
14315 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14316 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14317 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14318 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14319 echo "*** is required on your system"
14320 echo "***"
14321 echo "*** If you have an old version installed, it is best to remove it, although"
14322 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14323 else
14324 echo "*** The test program failed to compile or link. See the file config.log for the"
14325 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14326 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14327 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 CFLAGS="$ac_save_CFLAGS"
14332 CXXFLAGS="$ac_save_CXXFLAGS"
14333 LIBS="$ac_save_LIBS"
14336 SDL_CFLAGS=""
14337 SDL_LIBS=""
14338 have_sdl="no"
14342 rm -f conf.sdltest
14345 if test "x-$have_sdl" != "x-yes" ; then
14347 if test "x-$sdl_hidd" != "x-auto" ; then
14348 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14351 else
14352 host_sdl_gfx=yes
14353 aros_host_sdl_cflags=$SDL_CFLAGS
14354 aros_host_sdl_libs=$SDL_LIBS
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14362 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14363 # Check whether --enable-dbus was given.
14364 if test "${enable_dbus+set}" = set; then :
14365 enableval=$enable_dbus; dbus="yes"
14366 else
14367 dbus="no"
14370 if test "$dbus" = "yes" ; then
14371 ENABLE_DBUS=1
14372 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14373 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14374 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14375 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14376 else
14377 ENABLE_DBUS=0
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14380 $as_echo "$dbus" >&6; }
14382 if test "$use_kernel_cc_wrapper" = "yes" ; then
14383 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14387 # Generic
14400 # Compatability with other Amiga-like operation systems
14403 # Host related
14431 # Target Related
14502 # Hosted Graphics Related
14520 # Native version related
14524 # Palm native version related
14527 # Unix/Hosted version related
14530 # MMU related
14533 # Apple iOS related
14538 # ARM default GCC target related
14545 # Android related
14550 # DBUS related
14557 #X11 related
14560 # Debug related
14566 # Collect-aros stuff: "-ius" to ignore undefined symbols
14569 # C compiler related
14574 #ObjC compiler related
14577 #Java related
14580 # USB3.0 code
14583 case "$aros_flavour" in
14584 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14585 aros_flavour="emulation" ;;
14586 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14587 aros_flavour="emulation" ;;
14588 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14589 aros_flavour="standalone";;
14590 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14591 aros_flavour="standalone";;
14592 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14593 aros_flavour="native" ;;
14594 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14595 aros_flavour="native" ;;
14596 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14597 aros_flavour="linklib" ;;
14598 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14599 aros_flavour="palmnative" ;;
14600 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14601 aros_flavour="mac68knative" ;;
14602 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14603 aros_flavour="ppcnative" ;;
14604 esac
14606 if test ! -d ${aros_inc_dir} ; then
14607 ${MKDIR} ${aros_inc_dir}
14609 if test ! -d ${aros_geninc_dir} ; then
14610 ${MKDIR} ${aros_geninc_dir}
14612 if test ! -d ${aros_hostcfg_dir} ; then
14613 ${MKDIR} ${aros_hostcfg_dir}
14615 if test ! -d ${aros_targetcfg_dir} ; then
14616 ${MKDIR} ${aros_targetcfg_dir}
14618 if test ! -d ${aros_tools_dir} ; then
14619 ${MKDIR} ${aros_tools_dir}
14621 if test ! -d ${aros_scripts_dir} ; then
14622 ${MKDIR} ${aros_scripts_dir}
14625 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14628 # Generic build tools (metamake, etc)
14629 ac_config_commands="$ac_config_commands genmf-executable-support"
14631 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14634 # Binutils
14635 ac_config_commands="$ac_config_commands binutils-support"
14637 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14640 # Bare Elf support script and spec
14641 if test "${use_kernel_cc_wrapper}" = "yes"; then
14642 ac_config_commands="$ac_config_commands elf-compiler-support"
14644 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
14648 # Host compiler support scripts and spec
14649 if test "${aros_target_toolchain}" = "no"; then
14650 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14652 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14656 # Android support
14657 if test "$aros_target_variant" == "android"; then
14658 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14662 # cmake helper
14663 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14666 cat >confcache <<\_ACEOF
14667 # This file is a shell script that caches the results of configure
14668 # tests run on this system so they can be shared between configure
14669 # scripts and configure runs, see configure's option --config-cache.
14670 # It is not useful on other systems. If it contains results you don't
14671 # want to keep, you may remove or edit it.
14673 # config.status only pays attention to the cache file if you give it
14674 # the --recheck option to rerun configure.
14676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14678 # following values.
14680 _ACEOF
14682 # The following way of writing the cache mishandles newlines in values,
14683 # but we know of no workaround that is simple, portable, and efficient.
14684 # So, we kill variables containing newlines.
14685 # Ultrix sh set writes to stderr and can't be redirected directly,
14686 # and sets the high bit in the cache file unless we assign to the vars.
14688 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14689 eval ac_val=\$$ac_var
14690 case $ac_val in #(
14691 *${as_nl}*)
14692 case $ac_var in #(
14693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14695 esac
14696 case $ac_var in #(
14697 _ | IFS | as_nl) ;; #(
14698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14699 *) { eval $ac_var=; unset $ac_var;} ;;
14700 esac ;;
14701 esac
14702 done
14704 (set) 2>&1 |
14705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14706 *${as_nl}ac_space=\ *)
14707 # `set' does not quote correctly, so add quotes: double-quote
14708 # substitution turns \\\\ into \\, and sed turns \\ into \.
14709 sed -n \
14710 "s/'/'\\\\''/g;
14711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14712 ;; #(
14714 # `set' quotes correctly as required by POSIX, so do not add quotes.
14715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14717 esac |
14718 sort
14720 sed '
14721 /^ac_cv_env_/b end
14722 t clear
14723 :clear
14724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14725 t end
14726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14727 :end' >>confcache
14728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14729 if test -w "$cache_file"; then
14730 if test "x$cache_file" != "x/dev/null"; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14732 $as_echo "$as_me: updating cache $cache_file" >&6;}
14733 if test ! -f "$cache_file" || test -h "$cache_file"; then
14734 cat confcache >"$cache_file"
14735 else
14736 case $cache_file in #(
14737 */* | ?:*)
14738 mv -f confcache "$cache_file"$$ &&
14739 mv -f "$cache_file"$$ "$cache_file" ;; #(
14741 mv -f confcache "$cache_file" ;;
14742 esac
14745 else
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14747 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14750 rm -f confcache
14752 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14753 # Let make expand exec_prefix.
14754 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14756 DEFS=-DHAVE_CONFIG_H
14758 ac_libobjs=
14759 ac_ltlibobjs=
14761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14762 # 1. Remove the extension, and $U if already installed.
14763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14766 # will be set to the directory where LIBOBJS objects are built.
14767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14769 done
14770 LIBOBJS=$ac_libobjs
14772 LTLIBOBJS=$ac_ltlibobjs
14776 : "${CONFIG_STATUS=./config.status}"
14777 ac_write_fail=0
14778 ac_clean_files_save=$ac_clean_files
14779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14782 as_write_fail=0
14783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14784 #! $SHELL
14785 # Generated by $as_me.
14786 # Run this file to recreate the current configuration.
14787 # Compiler output produced by configure, useful for debugging
14788 # configure, is in config.log if it exists.
14790 debug=false
14791 ac_cs_recheck=false
14792 ac_cs_silent=false
14794 SHELL=\${CONFIG_SHELL-$SHELL}
14795 export SHELL
14796 _ASEOF
14797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14798 ## -------------------- ##
14799 ## M4sh Initialization. ##
14800 ## -------------------- ##
14802 # Be more Bourne compatible
14803 DUALCASE=1; export DUALCASE # for MKS sh
14804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14805 emulate sh
14806 NULLCMD=:
14807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14808 # is contrary to our usage. Disable this feature.
14809 alias -g '${1+"$@"}'='"$@"'
14810 setopt NO_GLOB_SUBST
14811 else
14812 case `(set -o) 2>/dev/null` in #(
14813 *posix*) :
14814 set -o posix ;; #(
14815 *) :
14817 esac
14821 as_nl='
14823 export as_nl
14824 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14825 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14828 # Prefer a ksh shell builtin over an external printf program on Solaris,
14829 # but without wasting forks for bash or zsh.
14830 if test -z "$BASH_VERSION$ZSH_VERSION" \
14831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14832 as_echo='print -r --'
14833 as_echo_n='print -rn --'
14834 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14835 as_echo='printf %s\n'
14836 as_echo_n='printf %s'
14837 else
14838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14840 as_echo_n='/usr/ucb/echo -n'
14841 else
14842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14843 as_echo_n_body='eval
14844 arg=$1;
14845 case $arg in #(
14846 *"$as_nl"*)
14847 expr "X$arg" : "X\\(.*\\)$as_nl";
14848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14849 esac;
14850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14852 export as_echo_n_body
14853 as_echo_n='sh -c $as_echo_n_body as_echo'
14855 export as_echo_body
14856 as_echo='sh -c $as_echo_body as_echo'
14859 # The user is always right.
14860 if test "${PATH_SEPARATOR+set}" != set; then
14861 PATH_SEPARATOR=:
14862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14864 PATH_SEPARATOR=';'
14869 # IFS
14870 # We need space, tab and new line, in precisely that order. Quoting is
14871 # there to prevent editors from complaining about space-tab.
14872 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14873 # splitting by setting IFS to empty value.)
14874 IFS=" "" $as_nl"
14876 # Find who we are. Look in the path if we contain no directory separator.
14877 as_myself=
14878 case $0 in #((
14879 *[\\/]* ) as_myself=$0 ;;
14880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14886 done
14887 IFS=$as_save_IFS
14890 esac
14891 # We did not find ourselves, most probably we were run as `sh COMMAND'
14892 # in which case we are not to be found in the path.
14893 if test "x$as_myself" = x; then
14894 as_myself=$0
14896 if test ! -f "$as_myself"; then
14897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14898 exit 1
14901 # Unset variables that we do not need and which cause bugs (e.g. in
14902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14903 # suppresses any "Segmentation fault" message there. '((' could
14904 # trigger a bug in pdksh 5.2.14.
14905 for as_var in BASH_ENV ENV MAIL MAILPATH
14906 do eval test x\${$as_var+set} = xset \
14907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14908 done
14909 PS1='$ '
14910 PS2='> '
14911 PS4='+ '
14913 # NLS nuisances.
14914 LC_ALL=C
14915 export LC_ALL
14916 LANGUAGE=C
14917 export LANGUAGE
14919 # CDPATH.
14920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14923 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14924 # ----------------------------------------
14925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14927 # script with STATUS, using 1 if that was 0.
14928 as_fn_error ()
14930 as_status=$1; test $as_status -eq 0 && as_status=1
14931 if test "$4"; then
14932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14935 $as_echo "$as_me: error: $2" >&2
14936 as_fn_exit $as_status
14937 } # as_fn_error
14940 # as_fn_set_status STATUS
14941 # -----------------------
14942 # Set $? to STATUS, without forking.
14943 as_fn_set_status ()
14945 return $1
14946 } # as_fn_set_status
14948 # as_fn_exit STATUS
14949 # -----------------
14950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14951 as_fn_exit ()
14953 set +e
14954 as_fn_set_status $1
14955 exit $1
14956 } # as_fn_exit
14958 # as_fn_unset VAR
14959 # ---------------
14960 # Portably unset VAR.
14961 as_fn_unset ()
14963 { eval $1=; unset $1;}
14965 as_unset=as_fn_unset
14966 # as_fn_append VAR VALUE
14967 # ----------------------
14968 # Append the text in VALUE to the end of the definition contained in VAR. Take
14969 # advantage of any shell optimizations that allow amortized linear growth over
14970 # repeated appends, instead of the typical quadratic growth present in naive
14971 # implementations.
14972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14973 eval 'as_fn_append ()
14975 eval $1+=\$2
14977 else
14978 as_fn_append ()
14980 eval $1=\$$1\$2
14982 fi # as_fn_append
14984 # as_fn_arith ARG...
14985 # ------------------
14986 # Perform arithmetic evaluation on the ARGs, and store the result in the
14987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14988 # must be portable across $(()) and expr.
14989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14990 eval 'as_fn_arith ()
14992 as_val=$(( $* ))
14994 else
14995 as_fn_arith ()
14997 as_val=`expr "$@" || test $? -eq 1`
14999 fi # as_fn_arith
15002 if expr a : '\(a\)' >/dev/null 2>&1 &&
15003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15004 as_expr=expr
15005 else
15006 as_expr=false
15009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15010 as_basename=basename
15011 else
15012 as_basename=false
15015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15016 as_dirname=dirname
15017 else
15018 as_dirname=false
15021 as_me=`$as_basename -- "$0" ||
15022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15023 X"$0" : 'X\(//\)$' \| \
15024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15025 $as_echo X/"$0" |
15026 sed '/^.*\/\([^/][^/]*\)\/*$/{
15027 s//\1/
15030 /^X\/\(\/\/\)$/{
15031 s//\1/
15034 /^X\/\(\/\).*/{
15035 s//\1/
15038 s/.*/./; q'`
15040 # Avoid depending upon Character Ranges.
15041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15044 as_cr_digits='0123456789'
15045 as_cr_alnum=$as_cr_Letters$as_cr_digits
15047 ECHO_C= ECHO_N= ECHO_T=
15048 case `echo -n x` in #(((((
15049 -n*)
15050 case `echo 'xy\c'` in
15051 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15052 xy) ECHO_C='\c';;
15053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15054 ECHO_T=' ';;
15055 esac;;
15057 ECHO_N='-n';;
15058 esac
15060 rm -f conf$$ conf$$.exe conf$$.file
15061 if test -d conf$$.dir; then
15062 rm -f conf$$.dir/conf$$.file
15063 else
15064 rm -f conf$$.dir
15065 mkdir conf$$.dir 2>/dev/null
15067 if (echo >conf$$.file) 2>/dev/null; then
15068 if ln -s conf$$.file conf$$ 2>/dev/null; then
15069 as_ln_s='ln -s'
15070 # ... but there are two gotchas:
15071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15073 # In both cases, we have to default to `cp -pR'.
15074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15075 as_ln_s='cp -pR'
15076 elif ln conf$$.file conf$$ 2>/dev/null; then
15077 as_ln_s=ln
15078 else
15079 as_ln_s='cp -pR'
15081 else
15082 as_ln_s='cp -pR'
15084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15085 rmdir conf$$.dir 2>/dev/null
15088 # as_fn_mkdir_p
15089 # -------------
15090 # Create "$as_dir" as a directory, including parents if necessary.
15091 as_fn_mkdir_p ()
15094 case $as_dir in #(
15095 -*) as_dir=./$as_dir;;
15096 esac
15097 test -d "$as_dir" || eval $as_mkdir_p || {
15098 as_dirs=
15099 while :; do
15100 case $as_dir in #(
15101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15102 *) as_qdir=$as_dir;;
15103 esac
15104 as_dirs="'$as_qdir' $as_dirs"
15105 as_dir=`$as_dirname -- "$as_dir" ||
15106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15107 X"$as_dir" : 'X\(//\)[^/]' \| \
15108 X"$as_dir" : 'X\(//\)$' \| \
15109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15110 $as_echo X"$as_dir" |
15111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15112 s//\1/
15115 /^X\(\/\/\)[^/].*/{
15116 s//\1/
15119 /^X\(\/\/\)$/{
15120 s//\1/
15123 /^X\(\/\).*/{
15124 s//\1/
15127 s/.*/./; q'`
15128 test -d "$as_dir" && break
15129 done
15130 test -z "$as_dirs" || eval "mkdir $as_dirs"
15131 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15134 } # as_fn_mkdir_p
15135 if mkdir -p . 2>/dev/null; then
15136 as_mkdir_p='mkdir -p "$as_dir"'
15137 else
15138 test -d ./-p && rmdir ./-p
15139 as_mkdir_p=false
15143 # as_fn_executable_p FILE
15144 # -----------------------
15145 # Test if FILE is an executable regular file.
15146 as_fn_executable_p ()
15148 test -f "$1" && test -x "$1"
15149 } # as_fn_executable_p
15150 as_test_x='test -x'
15151 as_executable_p=as_fn_executable_p
15153 # Sed expression to map a string onto a valid CPP name.
15154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15156 # Sed expression to map a string onto a valid variable name.
15157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15160 exec 6>&1
15161 ## ----------------------------------- ##
15162 ## Main body of $CONFIG_STATUS script. ##
15163 ## ----------------------------------- ##
15164 _ASEOF
15165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # Save the log message, to keep $0 and so on meaningful, and to
15169 # report actual input values of CONFIG_FILES etc. instead of their
15170 # values after options handling.
15171 ac_log="
15172 This file was extended by $as_me, which was
15173 generated by GNU Autoconf 2.69. Invocation command line was
15175 CONFIG_FILES = $CONFIG_FILES
15176 CONFIG_HEADERS = $CONFIG_HEADERS
15177 CONFIG_LINKS = $CONFIG_LINKS
15178 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 $ $0 $@
15181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15184 _ACEOF
15186 case $ac_config_files in *"
15187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15188 esac
15190 case $ac_config_headers in *"
15191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15192 esac
15195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15196 # Files that config.status was made for.
15197 config_files="$ac_config_files"
15198 config_headers="$ac_config_headers"
15199 config_commands="$ac_config_commands"
15201 _ACEOF
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 ac_cs_usage="\
15205 \`$as_me' instantiates files and other configuration actions
15206 from templates according to the current configuration. Unless the files
15207 and actions are specified as TAGs, all are instantiated by default.
15209 Usage: $0 [OPTION]... [TAG]...
15211 -h, --help print this help, then exit
15212 -V, --version print version number and configuration settings, then exit
15213 --config print configuration, then exit
15214 -q, --quiet, --silent
15215 do not print progress messages
15216 -d, --debug don't remove temporary files
15217 --recheck update $as_me by reconfiguring in the same conditions
15218 --file=FILE[:TEMPLATE]
15219 instantiate the configuration file FILE
15220 --header=FILE[:TEMPLATE]
15221 instantiate the configuration header FILE
15223 Configuration files:
15224 $config_files
15226 Configuration headers:
15227 $config_headers
15229 Configuration commands:
15230 $config_commands
15232 Report bugs to the package provider."
15234 _ACEOF
15235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15236 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15237 ac_cs_version="\\
15238 config.status
15239 configured by $0, generated by GNU Autoconf 2.69,
15240 with options \\"\$ac_cs_config\\"
15242 Copyright (C) 2012 Free Software Foundation, Inc.
15243 This config.status script is free software; the Free Software Foundation
15244 gives unlimited permission to copy, distribute and modify it."
15246 ac_pwd='$ac_pwd'
15247 srcdir='$srcdir'
15248 test -n "\$AWK" || AWK=awk
15249 _ACEOF
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 # The default lists apply if the user does not specify any file.
15253 ac_need_defaults=:
15254 while test $# != 0
15256 case $1 in
15257 --*=?*)
15258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15260 ac_shift=:
15262 --*=)
15263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15264 ac_optarg=
15265 ac_shift=:
15268 ac_option=$1
15269 ac_optarg=$2
15270 ac_shift=shift
15272 esac
15274 case $ac_option in
15275 # Handling of the options.
15276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15277 ac_cs_recheck=: ;;
15278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15279 $as_echo "$ac_cs_version"; exit ;;
15280 --config | --confi | --conf | --con | --co | --c )
15281 $as_echo "$ac_cs_config"; exit ;;
15282 --debug | --debu | --deb | --de | --d | -d )
15283 debug=: ;;
15284 --file | --fil | --fi | --f )
15285 $ac_shift
15286 case $ac_optarg in
15287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15288 '') as_fn_error $? "missing file argument" ;;
15289 esac
15290 as_fn_append CONFIG_FILES " '$ac_optarg'"
15291 ac_need_defaults=false;;
15292 --header | --heade | --head | --hea )
15293 $ac_shift
15294 case $ac_optarg in
15295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15296 esac
15297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15298 ac_need_defaults=false;;
15299 --he | --h)
15300 # Conflict between --help and --header
15301 as_fn_error $? "ambiguous option: \`$1'
15302 Try \`$0 --help' for more information.";;
15303 --help | --hel | -h )
15304 $as_echo "$ac_cs_usage"; exit ;;
15305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15307 ac_cs_silent=: ;;
15309 # This is an error.
15310 -*) as_fn_error $? "unrecognized option: \`$1'
15311 Try \`$0 --help' for more information." ;;
15313 *) as_fn_append ac_config_targets " $1"
15314 ac_need_defaults=false ;;
15316 esac
15317 shift
15318 done
15320 ac_configure_extra_args=
15322 if $ac_cs_silent; then
15323 exec 6>/dev/null
15324 ac_configure_extra_args="$ac_configure_extra_args --silent"
15327 _ACEOF
15328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15329 if \$ac_cs_recheck; then
15330 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15331 shift
15332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15333 CONFIG_SHELL='$SHELL'
15334 export CONFIG_SHELL
15335 exec "\$@"
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15340 exec 5>>config.log
15342 echo
15343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15344 ## Running $as_me. ##
15345 _ASBOX
15346 $as_echo "$ac_log"
15347 } >&5
15349 _ACEOF
15350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352 # INIT-COMMANDS
15354 aros_tools_dir=${aros_tools_dir}
15357 aros_host_exe_suffix=${aros_host_exe_suffix}
15358 aros_tools_dir=${aros_tools_dir}
15359 aros_target_cpu=${aros_target_cpu}
15360 aros_target_arch=${aros_target_arch}
15361 aros_target_suffix=${aros_target_suffix}
15362 orig_target_nm=${orig_target_nm}
15363 orig_target_as=${orig_target_as}
15364 orig_target_ar=${orig_target_ar}
15365 orig_target_ranlib=${orig_target_ranlib}
15366 orig_target_objdump=${orig_target_objdump}
15367 orig_target_objcopy=${orig_target_objcopy}
15368 orig_target_strip=${orig_target_strip}
15369 aros_kernel_ld=${aros_kernel_ld}
15373 aros_host_exe_suffix=${aros_host_exe_suffix}
15374 aros_tools_dir=${aros_tools_dir}
15375 aros_target_cpu=${aros_target_cpu}
15376 aros_target_arch=${aros_target_arch}
15377 aros_target_suffix=${aros_target_suffix}
15378 aros_kernel_ld=${aros_kernel_ld}
15382 aros_host_exe_suffix=${aros_host_exe_suffix}
15383 aros_tools_dir=${aros_tools_dir}
15384 aros_target_cpu=${aros_target_cpu}
15385 aros_target_arch=${aros_target_arch}
15386 aros_target_suffix=${aros_target_suffix}
15390 _ACEOF
15392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15394 # Handling of arguments.
15395 for ac_config_target in $ac_config_targets
15397 case $ac_config_target in
15398 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15399 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15401 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15402 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15403 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15404 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15405 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15406 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15407 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15408 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15409 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15410 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15411 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15412 "${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" ;;
15413 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15414 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15415 "${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" ;;
15416 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15417 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15418 "${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" ;;
15419 "${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" ;;
15420 "${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" ;;
15421 "${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" ;;
15422 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15424 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15425 esac
15426 done
15429 # If the user did not use the arguments to specify the items to instantiate,
15430 # then the envvar interface is used. Set only those that are not.
15431 # We use the long form for the default assignment because of an extremely
15432 # bizarre bug on SunOS 4.1.3.
15433 if $ac_need_defaults; then
15434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15439 # Have a temporary directory for convenience. Make it in the build tree
15440 # simply because there is no reason against having it here, and in addition,
15441 # creating and moving files from /tmp can sometimes cause problems.
15442 # Hook for its removal unless debugging.
15443 # Note that there is a small window in which the directory will not be cleaned:
15444 # after its creation but before its name has been assigned to `$tmp'.
15445 $debug ||
15447 tmp= ac_tmp=
15448 trap 'exit_status=$?
15449 : "${ac_tmp:=$tmp}"
15450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15452 trap 'as_fn_exit 1' 1 2 13 15
15454 # Create a (secure) tmp directory for tmp files.
15457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15458 test -d "$tmp"
15459 } ||
15461 tmp=./conf$$-$RANDOM
15462 (umask 077 && mkdir "$tmp")
15463 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15464 ac_tmp=$tmp
15466 # Set up the scripts for CONFIG_FILES section.
15467 # No need to generate them if there are no CONFIG_FILES.
15468 # This happens for instance with `./config.status config.h'.
15469 if test -n "$CONFIG_FILES"; then
15472 ac_cr=`echo X | tr X '\015'`
15473 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15474 # But we know of no other shell where ac_cr would be empty at this
15475 # point, so we can use a bashism as a fallback.
15476 if test "x$ac_cr" = x; then
15477 eval ac_cr=\$\'\\r\'
15479 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15480 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15481 ac_cs_awk_cr='\\r'
15482 else
15483 ac_cs_awk_cr=$ac_cr
15486 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15487 _ACEOF
15491 echo "cat >conf$$subs.awk <<_ACEOF" &&
15492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15493 echo "_ACEOF"
15494 } >conf$$subs.sh ||
15495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15497 ac_delim='%!_!# '
15498 for ac_last_try in false false false false false :; do
15499 . ./conf$$subs.sh ||
15500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15503 if test $ac_delim_n = $ac_delim_num; then
15504 break
15505 elif $ac_last_try; then
15506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15507 else
15508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15510 done
15511 rm -f conf$$subs.sh
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15515 _ACEOF
15516 sed -n '
15518 s/^/S["/; s/!.*/"]=/
15521 s/^[^!]*!//
15522 :repl
15523 t repl
15524 s/'"$ac_delim"'$//
15525 t delim
15528 s/\(.\{148\}\)..*/\1/
15529 t more1
15530 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15533 b repl
15534 :more1
15535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15538 s/.\{148\}//
15539 t nl
15540 :delim
15542 s/\(.\{148\}\)..*/\1/
15543 t more2
15544 s/["\\]/\\&/g; s/^/"/; s/$/"/
15547 :more2
15548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15551 s/.\{148\}//
15552 t delim
15553 ' <conf$$subs.awk | sed '
15554 /^[^""]/{
15556 s/\n//
15558 ' >>$CONFIG_STATUS || ac_write_fail=1
15559 rm -f conf$$subs.awk
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 _ACAWK
15562 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15563 for (key in S) S_is_set[key] = 1
15564 FS = "\a"
15568 line = $ 0
15569 nfields = split(line, field, "@")
15570 substed = 0
15571 len = length(field[1])
15572 for (i = 2; i < nfields; i++) {
15573 key = field[i]
15574 keylen = length(key)
15575 if (S_is_set[key]) {
15576 value = S[key]
15577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15578 len += length(value) + length(field[++i])
15579 substed = 1
15580 } else
15581 len += 1 + keylen
15584 print line
15587 _ACAWK
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15592 else
15594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15596 _ACEOF
15598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15600 # trailing colons and then remove the whole line if VPATH becomes empty
15601 # (actually we leave an empty line to preserve line numbers).
15602 if test "x$srcdir" = x.; then
15603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15605 s///
15606 s/^/:/
15607 s/[ ]*$/:/
15608 s/:\$(srcdir):/:/g
15609 s/:\${srcdir}:/:/g
15610 s/:@srcdir@:/:/g
15611 s/^:*//
15612 s/:*$//
15614 s/\(=[ ]*\).*/\1/
15616 s/\n//
15617 s/^[^=]*=[ ]*$//
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 fi # test -n "$CONFIG_FILES"
15624 # Set up the scripts for CONFIG_HEADERS section.
15625 # No need to generate them if there are no CONFIG_HEADERS.
15626 # This happens for instance with `./config.status Makefile'.
15627 if test -n "$CONFIG_HEADERS"; then
15628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15629 BEGIN {
15630 _ACEOF
15632 # Transform confdefs.h into an awk script `defines.awk', embedded as
15633 # here-document in config.status, that substitutes the proper values into
15634 # config.h.in to produce config.h.
15636 # Create a delimiter string that does not exist in confdefs.h, to ease
15637 # handling of long lines.
15638 ac_delim='%!_!# '
15639 for ac_last_try in false false :; do
15640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15641 if test -z "$ac_tt"; then
15642 break
15643 elif $ac_last_try; then
15644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15645 else
15646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15648 done
15650 # For the awk script, D is an array of macro values keyed by name,
15651 # likewise P contains macro parameters if any. Preserve backslash
15652 # newline sequences.
15654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15655 sed -n '
15656 s/.\{148\}/&'"$ac_delim"'/g
15657 t rset
15658 :rset
15659 s/^[ ]*#[ ]*define[ ][ ]*/ /
15660 t def
15662 :def
15663 s/\\$//
15664 t bsnl
15665 s/["\\]/\\&/g
15666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15667 D["\1"]=" \3"/p
15668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15670 :bsnl
15671 s/["\\]/\\&/g
15672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15673 D["\1"]=" \3\\\\\\n"\\/p
15674 t cont
15675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15676 t cont
15678 :cont
15680 s/.\{148\}/&'"$ac_delim"'/g
15681 t clear
15682 :clear
15683 s/\\$//
15684 t bsnlc
15685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15687 :bsnlc
15688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15689 b cont
15690 ' <confdefs.h | sed '
15691 s/'"$ac_delim"'/"\\\
15692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 for (key in D) D_is_set[key] = 1
15696 FS = "\a"
15698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15699 line = \$ 0
15700 split(line, arg, " ")
15701 if (arg[1] == "#") {
15702 defundef = arg[2]
15703 mac1 = arg[3]
15704 } else {
15705 defundef = substr(arg[1], 2)
15706 mac1 = arg[2]
15708 split(mac1, mac2, "(") #)
15709 macro = mac2[1]
15710 prefix = substr(line, 1, index(line, defundef) - 1)
15711 if (D_is_set[macro]) {
15712 # Preserve the white space surrounding the "#".
15713 print prefix "define", macro P[macro] D[macro]
15714 next
15715 } else {
15716 # Replace #undef with comments. This is necessary, for example,
15717 # in the case of _POSIX_SOURCE, which is predefined and required
15718 # on some systems where configure will not decide to define it.
15719 if (defundef == "undef") {
15720 print "/*", prefix defundef, macro, "*/"
15721 next
15725 { print }
15726 _ACAWK
15727 _ACEOF
15728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15730 fi # test -n "$CONFIG_HEADERS"
15733 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15734 shift
15735 for ac_tag
15737 case $ac_tag in
15738 :[FHLC]) ac_mode=$ac_tag; continue;;
15739 esac
15740 case $ac_mode$ac_tag in
15741 :[FHL]*:*);;
15742 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15743 :[FH]-) ac_tag=-:-;;
15744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15745 esac
15746 ac_save_IFS=$IFS
15747 IFS=:
15748 set x $ac_tag
15749 IFS=$ac_save_IFS
15750 shift
15751 ac_file=$1
15752 shift
15754 case $ac_mode in
15755 :L) ac_source=$1;;
15756 :[FH])
15757 ac_file_inputs=
15758 for ac_f
15760 case $ac_f in
15761 -) ac_f="$ac_tmp/stdin";;
15762 *) # Look for the file first in the build tree, then in the source tree
15763 # (if the path is not absolute). The absolute path cannot be DOS-style,
15764 # because $ac_f cannot contain `:'.
15765 test -f "$ac_f" ||
15766 case $ac_f in
15767 [\\/$]*) false;;
15768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15769 esac ||
15770 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15771 esac
15772 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15773 as_fn_append ac_file_inputs " '$ac_f'"
15774 done
15776 # Let's still pretend it is `configure' which instantiates (i.e., don't
15777 # use $as_me), people would be surprised to read:
15778 # /* config.h. Generated by config.status. */
15779 configure_input='Generated from '`
15780 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15781 `' by configure.'
15782 if test x"$ac_file" != x-; then
15783 configure_input="$ac_file. $configure_input"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15785 $as_echo "$as_me: creating $ac_file" >&6;}
15787 # Neutralize special characters interpreted by sed in replacement strings.
15788 case $configure_input in #(
15789 *\&* | *\|* | *\\* )
15790 ac_sed_conf_input=`$as_echo "$configure_input" |
15791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15792 *) ac_sed_conf_input=$configure_input;;
15793 esac
15795 case $ac_tag in
15796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15798 esac
15800 esac
15802 ac_dir=`$as_dirname -- "$ac_file" ||
15803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15804 X"$ac_file" : 'X\(//\)[^/]' \| \
15805 X"$ac_file" : 'X\(//\)$' \| \
15806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15807 $as_echo X"$ac_file" |
15808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15809 s//\1/
15812 /^X\(\/\/\)[^/].*/{
15813 s//\1/
15816 /^X\(\/\/\)$/{
15817 s//\1/
15820 /^X\(\/\).*/{
15821 s//\1/
15824 s/.*/./; q'`
15825 as_dir="$ac_dir"; as_fn_mkdir_p
15826 ac_builddir=.
15828 case "$ac_dir" in
15829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15832 # A ".." for each directory in $ac_dir_suffix.
15833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15834 case $ac_top_builddir_sub in
15835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15837 esac ;;
15838 esac
15839 ac_abs_top_builddir=$ac_pwd
15840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15841 # for backward compatibility:
15842 ac_top_builddir=$ac_top_build_prefix
15844 case $srcdir in
15845 .) # We are building in place.
15846 ac_srcdir=.
15847 ac_top_srcdir=$ac_top_builddir_sub
15848 ac_abs_top_srcdir=$ac_pwd ;;
15849 [\\/]* | ?:[\\/]* ) # Absolute name.
15850 ac_srcdir=$srcdir$ac_dir_suffix;
15851 ac_top_srcdir=$srcdir
15852 ac_abs_top_srcdir=$srcdir ;;
15853 *) # Relative name.
15854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15855 ac_top_srcdir=$ac_top_build_prefix$srcdir
15856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15857 esac
15858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15861 case $ac_mode in
15864 # CONFIG_FILE
15867 _ACEOF
15869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870 # If the template does not know about datarootdir, expand it.
15871 # FIXME: This hack should be removed a few years after 2.60.
15872 ac_datarootdir_hack=; ac_datarootdir_seen=
15873 ac_sed_dataroot='
15874 /datarootdir/ {
15878 /@datadir@/p
15879 /@docdir@/p
15880 /@infodir@/p
15881 /@localedir@/p
15882 /@mandir@/p'
15883 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15884 *datarootdir*) ac_datarootdir_seen=yes;;
15885 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15887 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 ac_datarootdir_hack='
15891 s&@datadir@&$datadir&g
15892 s&@docdir@&$docdir&g
15893 s&@infodir@&$infodir&g
15894 s&@localedir@&$localedir&g
15895 s&@mandir@&$mandir&g
15896 s&\\\${datarootdir}&$datarootdir&g' ;;
15897 esac
15898 _ACEOF
15900 # Neutralize VPATH when `$srcdir' = `.'.
15901 # Shell code in configure.ac might set extrasub.
15902 # FIXME: do we really want to maintain this feature?
15903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15904 ac_sed_extra="$ac_vpsub
15905 $extrasub
15906 _ACEOF
15907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15910 s|@configure_input@|$ac_sed_conf_input|;t t
15911 s&@top_builddir@&$ac_top_builddir_sub&;t t
15912 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15913 s&@srcdir@&$ac_srcdir&;t t
15914 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15915 s&@top_srcdir@&$ac_top_srcdir&;t t
15916 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15917 s&@builddir@&$ac_builddir&;t t
15918 s&@abs_builddir@&$ac_abs_builddir&;t t
15919 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15920 $ac_datarootdir_hack
15922 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15923 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15925 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15926 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15928 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15930 which seems to be undefined. Please make sure it is defined" >&5
15931 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15932 which seems to be undefined. Please make sure it is defined" >&2;}
15934 rm -f "$ac_tmp/stdin"
15935 case $ac_file in
15936 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15937 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15938 esac \
15939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15943 # CONFIG_HEADER
15945 if test x"$ac_file" != x-; then
15947 $as_echo "/* $configure_input */" \
15948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15949 } >"$ac_tmp/config.h" \
15950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15951 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15953 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15954 else
15955 rm -f "$ac_file"
15956 mv "$ac_tmp/config.h" "$ac_file" \
15957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15959 else
15960 $as_echo "/* $configure_input */" \
15961 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15962 || as_fn_error $? "could not create -" "$LINENO" 5
15966 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15967 $as_echo "$as_me: executing $ac_file commands" >&6;}
15969 esac
15972 case $ac_file$ac_mode in
15973 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15974 "binutils-support":C)
15975 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15976 mkdir -p $prefix
15977 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15979 chmod a+x ${prefix2}-ld
15981 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15982 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15983 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15984 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15985 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15986 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15987 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15989 "elf-compiler-support":C)
15990 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15991 mkdir -p $prefix
15992 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15994 chmod a+x ${prefix2}-gcc
15996 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
15998 "host-compiler-wrapper-support":C)
15999 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16000 mkdir -p $prefix
16001 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16003 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16006 esac
16007 done # for ac_tag
16010 as_fn_exit 0
16011 _ACEOF
16012 ac_clean_files=$ac_clean_files_save
16014 test $ac_write_fail = 0 ||
16015 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16018 # configure is writing to config.log, and then calls config.status.
16019 # config.status does its own redirection, appending to config.log.
16020 # Unfortunately, on DOS this fails, as config.log is still kept open
16021 # by configure, so config.status won't be able to write to it; its
16022 # output is simply discarded. So we exec the FD to /dev/null,
16023 # effectively closing config.log, so it can be properly (re)opened and
16024 # appended to by config.status. When coming back to configure, we
16025 # need to make the FD available again.
16026 if test "$no_create" != yes; then
16027 ac_cs_success=:
16028 ac_config_status_args=
16029 test "$silent" = yes &&
16030 ac_config_status_args="$ac_config_status_args --quiet"
16031 exec 5>/dev/null
16032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16033 exec 5>>config.log
16034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16035 # would make configure fail if this is the last instruction.
16036 $ac_cs_success || as_fn_exit 1
16038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16045 #XXX compatability...
16046 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16048 if test -n "$aros_shared_cflags" ; then
16049 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16050 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg