use the cpp_cpu spec
[AROS.git] / configure
blobff4735e0792c594553fbaeebd4c6fcf957cfa5d7
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 gcc_target_cpu
628 ignore_undefined_symbols
629 aros_modules_debug
630 aros_stack_debug
631 aros_mungwall_debug
632 aros_debug
633 ENABLE_X11
634 KERNEL_DBUS_INCLUDES
635 KERNEL_DBUS_KOBJ
636 DBUS_LIBFLAGS
637 DBUS_CFLAGS
638 ENABLE_DBUS
639 aros_android_antapk
640 aros_android_level
641 gcc_default_float_abi
642 gcc_default_fpu
643 gcc_default_cpu_tune
644 gcc_default_cpu
645 aros_ios_sdk
646 aros_ios_version
647 aros_ios_platform
648 aros_enable_mmu
649 aros_nesting_supervisor
650 aros_palm_debug_hack
651 aros_serial_debug
652 aros_host_sdl_libs
653 aros_host_sdl_cflags
654 aros_host_x11_libdirs
655 aros_host_x11_includes
656 DO_VIDMODE_SUPPORT
657 DO_XSHM_SUPPORT
658 aros_default_wbdepth
659 aros_default_wbheight
660 aros_default_wbwidth
661 oss_library_target
662 pci_hidd_target
663 sdl_hidd_target
664 unixgfx_hidd_target
665 aros_cflags_format_security
666 aros_cflags_strict_overflow
667 aros_cflags_enum_compare
668 aros_cflags_array_bounds
669 aros_cflags_unused_but_set_variable
670 crosstools_cxx_target
671 crosstools_target
672 aros_isa_flags
673 aros_optimization_cflags
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cflags
679 aros_target_cflags
680 aros_kernel_ldflags
681 aros_kernel_objcflags
682 aros_kernel_includes
683 aros_kernel_cflags
684 aros_shared_ldflags
685 aros_shared_aflags
686 aros_shared_cflags
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_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
714 aros_target_family
715 aros_target_arch
716 aros_target_bootloader
717 aros_target_iconset
718 aros_target_guitheme
719 aros_tools_dir
720 aros_host_lib_suffix
721 aros_host_exe_suffix
722 aros_host_mkargs
723 aros_host_mkdep
724 aros_host_debug
725 aros_host_ldflags
726 gnu89_inline
727 aros_host_cxxflags
728 aros_host_cflags
729 aros_host_make
730 aros_host_cxx
731 aros_host_cc
732 aros_host_cpp
733 aros_host_cpu
734 aros_host_arch
735 aros_cc_pre
736 aros_amigaos_compliance
737 AROS_PORTSSRCDIR
738 AROS_CROSSTOOLSDIR
739 SRCDIR
740 AROS_BUILDDIR_UNIX
741 AROS_BUILDDIR
742 aros_target_toolchain
743 aros_flavour_uc
744 aros_flavour
745 aros_cpu
746 aros_arch
747 SDL_LIBS
748 SDL_CFLAGS
749 SDL_CONFIG
750 XMKMF
751 aros_cflags_iquote_end
752 aros_cflags_iquote
753 kernel_cflags_iquote_end
754 kernel_cflags_iquote
755 host_cflags_iquote_end
756 host_cflags_iquote
757 aros_target_nostdlib_ldflags
758 aros_target_detach_ldflags
759 aros_target_nix_ldflags
760 aros_target_nostartup_ldflags
761 aros_target_nostdinc_cflags
762 aros_kernel_rescomp
763 orig_target_objdump
764 orig_target_objcopy
765 orig_target_strip
766 orig_target_nm
767 orig_target_ranlib
768 orig_target_ar
769 orig_target_as
770 orig_target_ld
771 orig_target_cxx
772 orig_target_cc
773 orig_target_cpp
774 aros_kernel_objdump
775 aros_kernel_objcopy
776 aros_kernel_strip
777 aros_kernel_nm
778 aros_kernel_ranlib
779 aros_kernel_ar
780 aros_kernel_as
781 aros_kernel_ld
782 aros_kernel_cxx
783 aros_kernel_cc
784 aros_kernel_cpp
785 target_gcc_version
787 android_tool
788 CCACHE
789 DISTCC
790 LIBOBJS
791 EGREP
792 GREP
794 TEST
797 pkgpyexecdir
798 pyexecdir
799 pkgpythondir
800 pythondir
801 PYTHON_PLATFORM
802 PYTHON_EXEC_PREFIX
803 PYTHON_PREFIX
804 PYTHON_VERSION
805 PYTHON
806 PATCH
807 CHMOD
809 PPMTOILBM
810 PNGTOPNM
811 FLEX
812 BISON
815 UNIQ
816 SORT
817 TOUCH
818 MKDIR
819 ECHO
823 aros_host_strip
824 aros_host_ranlib
825 aros_host_ar
826 aros_host_automake
827 aros_host_autoheader
828 aros_host_autoconf
829 aros_host_aclocal
830 aros_host_ld
831 MMAKE
834 ac_ct_CC
835 CFLAGS
837 OBJEXT
838 EXEEXT
839 ac_ct_CXX
840 CPPFLAGS
841 LDFLAGS
842 CXXFLAGS
844 host_os
845 host_vendor
846 host_cpu
847 host
848 build_os
849 build_vendor
850 build_cpu
851 build
852 target_alias
853 host_alias
854 build_alias
855 LIBS
856 ECHO_T
857 ECHO_N
858 ECHO_C
859 DEFS
860 mandir
861 localedir
862 libdir
863 psdir
864 pdfdir
865 dvidir
866 htmldir
867 infodir
868 docdir
869 oldincludedir
870 includedir
871 localstatedir
872 sharedstatedir
873 sysconfdir
874 datadir
875 datarootdir
876 libexecdir
877 sbindir
878 bindir
879 program_transform_name
880 prefix
881 exec_prefix
882 PACKAGE_URL
883 PACKAGE_BUGREPORT
884 PACKAGE_STRING
885 PACKAGE_VERSION
886 PACKAGE_TARNAME
887 PACKAGE_NAME
888 PATH_SEPARATOR
889 SHELL'
890 ac_subst_files=''
891 ac_user_opts='
892 enable_option_checking
893 enable_build_type
894 enable_debug
895 enable_distcc
896 enable_ccache
897 with_kernel_gcc_version
898 with_optimization
899 with_paranoia
900 enable_target_variant
901 with_xcode
902 with_sdk_version
903 with_sdk
904 with_ndk
905 with_ndk_version
906 with_apk_version
907 enable_amigaos_compliance
908 with_kernel_toolchain_prefix
909 with_elf_toolchain_prefix
910 with_aros_toolchain
911 enable_crosstools
912 with_aros_toolchain_install
913 with_gcc_version
914 enable_objc
915 enable_java
916 with_cpu
917 with_fpu
918 with_float
919 with_portssources
920 with_bootloader
921 with_iconset
922 with_theme
923 enable_includes
924 with_resolution
925 with_serial_debug
926 enable_palm_debug_hack
927 enable_usb30_code
928 enable_nesting_supervisor
929 enable_mmu
930 enable_x11_hidd
931 with_x
932 enable_x11_shm
933 enable_x11_vidmode
934 enable_sdl_hidd
935 with_sdl_prefix
936 with_sdl_exec_prefix
937 enable_sdltest
938 enable_dbus
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
944 CXXFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
950 CFLAGS
952 PYTHON
953 XMKMF'
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1015 case $ac_option in
1016 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *=) ac_optarg= ;;
1018 *) ac_optarg=yes ;;
1019 esac
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1025 ac_dashdash=yes ;;
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361 esac
1362 done
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417 test "$silent" = yes && exec 6>/dev/null
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1446 /^X\(\/\/\)$/{
1447 s//\1/
1450 /^X\(\/\).*/{
1451 s//\1/
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1459 else
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1488 # Report the --help message.
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures this package to adapt to many kinds of systems.
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1501 Defaults for the options are specified in brackets.
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1525 For better control, use the options below.
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547 _ACEOF
1549 cat <<\_ACEOF
1551 X features:
1552 --x-includes=DIR X include files are in DIR
1553 --x-libraries=DIR X library files are in DIR
1555 System types:
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1561 if test -n "$ac_init_help"; then
1563 cat <<\_ACEOF
1565 Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-build-type=TYPE
1570 Select the build type. Available types are:
1571 personal, nightly, snapshot, milestone, release. Do
1572 NOT use this option unless you know what you are
1573 doing! (default=personal)
1574 --enable-debug=list Enable different types of debug. Commas or
1575 whitespaces can be used to separate the items in the
1576 list. Available types of debug are: all, none,
1577 messages, stack, mungwall, modules, symbols. If no
1578 list is provided then "all" is assumed.
1579 (default=none)
1580 --enable-distcc Use distcc as a front end to the compiler
1581 (default=no).
1582 --enable-ccache Use ccache as a front end to the compiler
1583 (default=no).
1584 --enable-target-variant=NAME
1585 Enable a specific target variant(default=none)
1586 --enable-amigaos-compliance=VERSION
1587 Enforce userspace AmigaOS compliance to a specific
1588 KickStart version (default=none).
1589 --disable-crosstools Do not build cross-compiler toolchain
1590 --enable-objc Enable Objectve-C support (default=yes)
1591 --enable-java Enable Java support (default=no)
1592 --enable-includes=dir Alternative system include directory
1593 --enable-palm-debug-hack
1594 Enable palm debug output hack in palm native
1595 (default=no)
1596 --enable-usb30-code Enable usb3.0 code (default=no)
1597 --enable-nesting-supervisor
1598 Enable nesting supervisor support in unix
1599 (default=no)
1600 --disable-mmu Disable MMU support (default=enabled)
1601 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1602 --enable-x11-shm use X11 shared memory (default=auto)
1603 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1604 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1605 --disable-sdltest Do not try to compile and run a test SDL program
1606 --enable-dbus Enable DBUS support via dbus.library (default=no)
1608 Optional Packages:
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-kernel-gcc-version=VERSION
1612 Use gcc-VERSION for building bootstrap
1613 --with-optimization=FLAGS
1614 Use optimization flags FLAGS (default=-O2).
1615 --with-paranoia=FLAGS CC flags to enable paranoia
1616 --with-xcode=PATH Specify XCode path for iOS targets
1617 (default=/Developer).
1618 --with-sdk-version=VERSION
1619 Use iOS SDK version VERSION (default=4.1).
1620 --with-sdk=PATH Specify Android SDK path
1621 (default=$default_android_sdk).
1622 --with-ndk=PATH Specify Android NDK path (default=none).
1623 --with-sdk-version=LEVEL
1624 Use Android SDK for API LEVEL (default=12).
1625 --with-ndk-version=LEVEL
1626 Use Android NDK for API LEVEL (default=9).
1627 --with-apk-version=(release|debug)
1628 Which version of AROSBootstrap.apk to compile.
1629 Release version needs key for signing, debug version
1630 will only run in emulator. (default=release)
1631 --with-kernel-toolchain-prefix=...
1632 Specify crosscompile toolchain prefix for kernel
1633 objects
1634 --with-elf-toolchain-prefix=...
1635 Specify crosscompile toolchain prefix to wrap for
1636 AROS objects
1637 --with-aros-toolchain=PREFIX
1638 Specify prebuilt AROS toolchain. Use yes for default
1639 name
1640 --with-aros-toolchain-install=DIR
1641 Where to install or search for cross tools binaries
1642 --with-gcc-version=VERSION
1643 Use gcc-VERSION for building AROS
1644 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1645 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1646 --with-float=<spec> Specify floating point ABI
1647 (default=$gcc_default_float_abi).
1648 --with-portssources=DIR Where to download sourcecode for external ports
1649 --with-bootloader=NAME Use a specific bootloader
1650 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1651 --with-theme=NAME Use a specific GUI Theme
1652 --with-resolution=XRESxYRESxDEPTH
1653 Default resolution of the initial WorkbenchScreen
1654 --with-serial-debug Enable serial debug output in native (default=no)
1655 --with-x use the X Window System
1656 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1657 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1659 Some influential environment variables:
1660 CXX C++ compiler command
1661 CXXFLAGS C++ compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CC C compiler command
1668 CFLAGS C compiler flags
1669 CPP C preprocessor
1670 PYTHON the Python interpreter
1671 XMKMF Path to xmkmf, Makefile generator for X Window System
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1676 Report bugs to the package provider.
1677 _ACEOF
1678 ac_status=$?
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
1687 ac_builddir=.
1689 case "$ac_dir" in
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699 esac
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1705 case $srcdir in
1706 .) # We are building in place.
1707 ac_srcdir=.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 esac
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1729 else
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1733 done
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1738 cat <<\_ACEOF
1739 configure
1740 generated by GNU Autoconf 2.69
1742 Copyright (C) 2012 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1745 _ACEOF
1746 exit
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1753 # ac_fn_cxx_try_compile LINENO
1754 # ----------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_cxx_try_compile
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_compile
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_cpp ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_cpp
1866 # ac_fn_c_try_link LINENO
1867 # -----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_link ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext conftest$ac_exeext
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest$ac_exeext && {
1892 test "$cross_compiling" = yes ||
1893 test -x conftest$ac_exeext
1894 }; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_retval=1
1902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904 # interfere with the next link command; also delete a directory that is
1905 # left behind by Apple's compiler. We do this before executing the actions.
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1910 } # ac_fn_c_try_link
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if eval \${$3+:} false; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval \${$3+:} false; then :
1924 $as_echo_n "(cached) " >&6
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1940 else
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1956 else
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.i conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 yes:no: )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 no:yes:* )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=\$ac_header_compiler"
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2039 } # ac_fn_c_try_run
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_header_compile
2072 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2073 # ----------------------------------------------------
2074 # Tries to find if the field MEMBER exists in type AGGR, after including
2075 # INCLUDES, setting cache variable VAR accordingly.
2076 ac_fn_c_check_member ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2080 $as_echo_n "checking for $2.$3... " >&6; }
2081 if eval \${$4+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static $2 ac_aggr;
2091 if (ac_aggr.$3)
2092 return 0;
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 eval "$4=yes"
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static $2 ac_aggr;
2107 if (sizeof ac_aggr.$3)
2108 return 0;
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$4=yes"
2115 else
2116 eval "$4=no"
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 eval ac_res=\$$4
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_member
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2130 # ---------------------------------------------
2131 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132 # accordingly.
2133 ac_fn_c_check_decl ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 #ifndef $as_decl_name
2150 #ifdef __cplusplus
2151 (void) $as_decl_use;
2152 #else
2153 (void) $as_decl_name;
2154 #endif
2155 #endif
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$3=yes"
2163 else
2164 eval "$3=no"
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_decl
2175 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2176 # -------------------------------------------
2177 # Tests whether TYPE exists after having included INCLUDES, setting cache
2178 # variable VAR accordingly.
2179 ac_fn_c_check_type ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if eval \${$3+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 eval "$3=no"
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 main ()
2194 if (sizeof ($2))
2195 return 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 if (sizeof (($2)))
2208 return 0;
2210 return 0;
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2215 else
2216 eval "$3=yes"
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 } # ac_fn_c_check_type
2229 # ac_fn_c_check_func LINENO FUNC VAR
2230 # ----------------------------------
2231 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2232 ac_fn_c_check_func ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2244 #define $2 innocuous_$2
2246 /* System header to define __stub macros and hopefully few prototypes,
2247 which can conflict with char $2 (); below.
2248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2249 <limits.h> exists even on freestanding compilers. */
2251 #ifdef __STDC__
2252 # include <limits.h>
2253 #else
2254 # include <assert.h>
2255 #endif
2257 #undef $2
2259 /* Override any GCC internal prototype to avoid an error.
2260 Use char because int might match the return type of a GCC
2261 builtin and then its argument prototype would still apply. */
2262 #ifdef __cplusplus
2263 extern "C"
2264 #endif
2265 char $2 ();
2266 /* The GNU C library defines this for functions which it implements
2267 to always fail with ENOSYS. Some functions are actually named
2268 something starting with __ and the normal name is an alias. */
2269 #if defined __stub_$2 || defined __stub___$2
2270 choke me
2271 #endif
2274 main ()
2276 return $2 ();
2278 return 0;
2280 _ACEOF
2281 if ac_fn_c_try_link "$LINENO"; then :
2282 eval "$3=yes"
2283 else
2284 eval "$3=no"
2286 rm -f core conftest.err conftest.$ac_objext \
2287 conftest$ac_exeext conftest.$ac_ext
2289 eval ac_res=\$$3
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 } # ac_fn_c_check_func
2295 cat >config.log <<_ACEOF
2296 This file contains any messages produced by compilers while
2297 running configure, to aid debugging if configure makes a mistake.
2299 It was created by $as_me, which was
2300 generated by GNU Autoconf 2.69. Invocation command line was
2302 $ $0 $@
2304 _ACEOF
2305 exec 5>>config.log
2307 cat <<_ASUNAME
2308 ## --------- ##
2309 ## Platform. ##
2310 ## --------- ##
2312 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2313 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2314 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2315 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2316 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2319 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2321 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2322 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2323 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2324 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2325 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2326 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2327 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329 _ASUNAME
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 $as_echo "PATH: $as_dir"
2337 done
2338 IFS=$as_save_IFS
2340 } >&5
2342 cat >&5 <<_ACEOF
2345 ## ----------- ##
2346 ## Core tests. ##
2347 ## ----------- ##
2349 _ACEOF
2352 # Keep a trace of the command line.
2353 # Strip out --no-create and --no-recursion so they do not pile up.
2354 # Strip out --silent because we don't want to record it for future runs.
2355 # Also quote any args containing shell meta-characters.
2356 # Make two passes to allow for proper duplicate-argument suppression.
2357 ac_configure_args=
2358 ac_configure_args0=
2359 ac_configure_args1=
2360 ac_must_keep_next=false
2361 for ac_pass in 1 2
2363 for ac_arg
2365 case $ac_arg in
2366 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2368 | -silent | --silent | --silen | --sile | --sil)
2369 continue ;;
2370 *\'*)
2371 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 esac
2373 case $ac_pass in
2374 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 as_fn_append ac_configure_args1 " '$ac_arg'"
2377 if test $ac_must_keep_next = true; then
2378 ac_must_keep_next=false # Got value, back to normal.
2379 else
2380 case $ac_arg in
2381 *=* | --config-cache | -C | -disable-* | --disable-* \
2382 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2383 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2384 | -with-* | --with-* | -without-* | --without-* | --x)
2385 case "$ac_configure_args0 " in
2386 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2387 esac
2389 -* ) ac_must_keep_next=true ;;
2390 esac
2392 as_fn_append ac_configure_args " '$ac_arg'"
2394 esac
2395 done
2396 done
2397 { ac_configure_args0=; unset ac_configure_args0;}
2398 { ac_configure_args1=; unset ac_configure_args1;}
2400 # When interrupted or exit'd, cleanup temporary files, and complete
2401 # config.log. We remove comments because anyway the quotes in there
2402 # would cause problems or look ugly.
2403 # WARNING: Use '\'' to represent an apostrophe within the trap.
2404 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2405 trap 'exit_status=$?
2406 # Save into config.log some information that might help in debugging.
2408 echo
2410 $as_echo "## ---------------- ##
2411 ## Cache variables. ##
2412 ## ---------------- ##"
2413 echo
2414 # The following way of writing the cache mishandles newlines in values,
2416 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2417 eval ac_val=\$$ac_var
2418 case $ac_val in #(
2419 *${as_nl}*)
2420 case $ac_var in #(
2421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2423 esac
2424 case $ac_var in #(
2425 _ | IFS | as_nl) ;; #(
2426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2427 *) { eval $ac_var=; unset $ac_var;} ;;
2428 esac ;;
2429 esac
2430 done
2431 (set) 2>&1 |
2432 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2433 *${as_nl}ac_space=\ *)
2434 sed -n \
2435 "s/'\''/'\''\\\\'\'''\''/g;
2436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2437 ;; #(
2439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 esac |
2442 sort
2444 echo
2446 $as_echo "## ----------------- ##
2447 ## Output variables. ##
2448 ## ----------------- ##"
2449 echo
2450 for ac_var in $ac_subst_vars
2452 eval ac_val=\$$ac_var
2453 case $ac_val in
2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455 esac
2456 $as_echo "$ac_var='\''$ac_val'\''"
2457 done | sort
2458 echo
2460 if test -n "$ac_subst_files"; then
2461 $as_echo "## ------------------- ##
2462 ## File substitutions. ##
2463 ## ------------------- ##"
2464 echo
2465 for ac_var in $ac_subst_files
2467 eval ac_val=\$$ac_var
2468 case $ac_val in
2469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470 esac
2471 $as_echo "$ac_var='\''$ac_val'\''"
2472 done | sort
2473 echo
2476 if test -s confdefs.h; then
2477 $as_echo "## ----------- ##
2478 ## confdefs.h. ##
2479 ## ----------- ##"
2480 echo
2481 cat confdefs.h
2482 echo
2484 test "$ac_signal" != 0 &&
2485 $as_echo "$as_me: caught signal $ac_signal"
2486 $as_echo "$as_me: exit $exit_status"
2487 } >&5
2488 rm -f core *.core core.conftest.* &&
2489 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2490 exit $exit_status
2492 for ac_signal in 1 2 13 15; do
2493 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2494 done
2495 ac_signal=0
2497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2498 rm -f -r conftest* confdefs.h
2500 $as_echo "/* confdefs.h */" > confdefs.h
2502 # Predefined preprocessor variables.
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_NAME "$PACKAGE_NAME"
2506 _ACEOF
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2510 _ACEOF
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_STRING "$PACKAGE_STRING"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_URL "$PACKAGE_URL"
2526 _ACEOF
2529 # Let the site file select an alternate cache file if it wants to.
2530 # Prefer an explicitly selected file to automatically selected ones.
2531 ac_site_file1=NONE
2532 ac_site_file2=NONE
2533 if test -n "$CONFIG_SITE"; then
2534 # We do not want a PATH search for config.site.
2535 case $CONFIG_SITE in #((
2536 -*) ac_site_file1=./$CONFIG_SITE;;
2537 */*) ac_site_file1=$CONFIG_SITE;;
2538 *) ac_site_file1=./$CONFIG_SITE;;
2539 esac
2540 elif test "x$prefix" != xNONE; then
2541 ac_site_file1=$prefix/share/config.site
2542 ac_site_file2=$prefix/etc/config.site
2543 else
2544 ac_site_file1=$ac_default_prefix/share/config.site
2545 ac_site_file2=$ac_default_prefix/etc/config.site
2547 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549 test "x$ac_site_file" = xNONE && continue
2550 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2552 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2553 sed 's/^/| /' "$ac_site_file" >&5
2554 . "$ac_site_file" \
2555 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 as_fn_error $? "failed to load site script $ac_site_file
2558 See \`config.log' for more details" "$LINENO" 5; }
2560 done
2562 if test -r "$cache_file"; then
2563 # Some versions of bash will fail to source /dev/null (special files
2564 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2565 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2567 $as_echo "$as_me: loading cache $cache_file" >&6;}
2568 case $cache_file in
2569 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2570 *) . "./$cache_file";;
2571 esac
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2575 $as_echo "$as_me: creating cache $cache_file" >&6;}
2576 >$cache_file
2579 as_fn_append ac_header_list " stdlib.h"
2580 as_fn_append ac_header_list " unistd.h"
2581 as_fn_append ac_header_list " sys/param.h"
2582 # Check that the precious variables saved in the cache have kept the same
2583 # value.
2584 ac_cache_corrupted=false
2585 for ac_var in $ac_precious_vars; do
2586 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587 eval ac_new_set=\$ac_env_${ac_var}_set
2588 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589 eval ac_new_val=\$ac_env_${ac_var}_value
2590 case $ac_old_set,$ac_new_set in
2591 set,)
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2593 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2595 ,set)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2597 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2598 ac_cache_corrupted=: ;;
2599 ,);;
2601 if test "x$ac_old_val" != "x$ac_new_val"; then
2602 # differences in whitespace do not lead to failure.
2603 ac_old_val_w=`echo x $ac_old_val`
2604 ac_new_val_w=`echo x $ac_new_val`
2605 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2607 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2608 ac_cache_corrupted=:
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2611 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2612 eval $ac_var=\$ac_old_val
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2615 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2617 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2618 fi;;
2619 esac
2620 # Pass precious variables to config.status.
2621 if test "$ac_new_set" = set; then
2622 case $ac_new_val in
2623 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624 *) ac_arg=$ac_var=$ac_new_val ;;
2625 esac
2626 case " $ac_configure_args " in
2627 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2628 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2629 esac
2631 done
2632 if $ac_cache_corrupted; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2637 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639 ## -------------------- ##
2640 ## Main body of script. ##
2641 ## -------------------- ##
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 ac_aux_dir=
2652 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2653 if test -f "$ac_dir/install-sh"; then
2654 ac_aux_dir=$ac_dir
2655 ac_install_sh="$ac_aux_dir/install-sh -c"
2656 break
2657 elif test -f "$ac_dir/install.sh"; then
2658 ac_aux_dir=$ac_dir
2659 ac_install_sh="$ac_aux_dir/install.sh -c"
2660 break
2661 elif test -f "$ac_dir/shtool"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/shtool install -c"
2664 break
2666 done
2667 if test -z "$ac_aux_dir"; then
2668 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2671 # These three variables are undocumented and unsupported,
2672 # and are intended to be withdrawn in a future Autoconf release.
2673 # They can cause serious problems if a builder's source tree is in a directory
2674 # whose full name contains unusual characters.
2675 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2676 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2677 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2681 # Check what host we are running on.
2682 # If a target is not suggested, we use this one.
2683 # Note that what we call a target, Autoconf calls a host.
2684 # Make sure we can run config.sub.
2685 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2686 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2689 $as_echo_n "checking build system type... " >&6; }
2690 if ${ac_cv_build+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 ac_build_alias=$build_alias
2694 test "x$ac_build_alias" = x &&
2695 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2696 test "x$ac_build_alias" = x &&
2697 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2698 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2703 $as_echo "$ac_cv_build" >&6; }
2704 case $ac_cv_build in
2705 *-*-*) ;;
2706 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2707 esac
2708 build=$ac_cv_build
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_build
2711 shift
2712 build_cpu=$1
2713 build_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 build_os=$*
2718 IFS=$ac_save_IFS
2719 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2723 $as_echo_n "checking host system type... " >&6; }
2724 if ${ac_cv_host+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test "x$host_alias" = x; then
2728 ac_cv_host=$ac_cv_build
2729 else
2730 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2731 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2736 $as_echo "$ac_cv_host" >&6; }
2737 case $ac_cv_host in
2738 *-*-*) ;;
2739 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2740 esac
2741 host=$ac_cv_host
2742 ac_save_IFS=$IFS; IFS='-'
2743 set x $ac_cv_host
2744 shift
2745 host_cpu=$1
2746 host_vendor=$2
2747 shift; shift
2748 # Remember, the first character of IFS is used to create $*,
2749 # except with old shells:
2750 host_os=$*
2751 IFS=$ac_save_IFS
2752 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2756 # The AROS target is slightly different to the normal GNU style
2757 # format. We don't have the middle part, and we reverse the order
2758 # of the $(CPU) and $(OS) bits.
2760 # Don't strip the version of the target yet, it might be
2761 # useful on some systems.
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2764 $as_echo_n "checking for AROS style target... " >&6; }
2766 if test "$target" = "NONE" ; then
2767 target=$host_os-$host_cpu
2768 else
2769 if test "$target" = "" ; then
2770 target=$host_os-$host_cpu
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2774 $as_echo "$target" >&6; }
2776 if test "$host_os" = "mingw32" ; then
2777 PWDCMD="pwd -W"
2780 # Don't know where else to put this...
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2782 $as_echo_n "checking building AROS in... " >&6; }
2783 AROS_BUILDDIR=`${PWDCMD-pwd}`
2784 AROS_BUILDDIR_UNIX=${PWD}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2786 $as_echo "$AROS_BUILDDIR" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2789 $as_echo_n "checking AROS source in... " >&6; }
2790 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2791 SRCDIR=${srcpwd}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2793 $as_echo "$SRCDIR" >&6; }
2795 # Parse the target field into something useful.
2797 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2798 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2801 # Some debug output, to be removed again.
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2803 $as_echo_n "checking for target system (debug output)... " >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2805 $as_echo "$target_os" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2807 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2809 $as_echo "$target_cpu" >&6; }
2811 aros_default_wbwidth=800
2812 aros_default_wbheight=600
2813 aros_default_wbdepth=4
2816 # The first step is to find the host binaries.
2817 # Check for a compiler.
2818 # Due to a bug in autoconf check for c++ compiler first.
2819 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2820 ac_ext=cpp
2821 ac_cpp='$CXXCPP $CPPFLAGS'
2822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2825 if test -z "$CXX"; then
2826 if test -n "$CCC"; then
2827 CXX=$CCC
2828 else
2829 if test -n "$ac_tool_prefix"; then
2830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_CXX+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CXX"; then
2840 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 CXX=$ac_cv_prog_CXX
2860 if test -n "$CXX"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2862 $as_echo "$CXX" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2869 test -n "$CXX" && break
2870 done
2872 if test -z "$CXX"; then
2873 ac_ct_CXX=$CXX
2874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$ac_ct_CXX"; then
2884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_CXX="$ac_prog"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2903 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2904 if test -n "$ac_ct_CXX"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2906 $as_echo "$ac_ct_CXX" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2913 test -n "$ac_ct_CXX" && break
2914 done
2916 if test "x$ac_ct_CXX" = x; then
2917 CXX="g++"
2918 else
2919 case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 CXX=$ac_ct_CXX
2931 # Provide some information about the compiler.
2932 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2933 set X $ac_compile
2934 ac_compiler=$2
2935 for ac_option in --version -v -V -qversion; do
2936 { { ac_try="$ac_compiler $ac_option >&5"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2944 ac_status=$?
2945 if test -s conftest.err; then
2946 sed '10a\
2947 ... rest of stderr output deleted ...
2948 10q' conftest.err >conftest.er1
2949 cat conftest.er1 >&5
2951 rm -f conftest.er1 conftest.err
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }
2954 done
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h. */
2960 main ()
2964 return 0;
2966 _ACEOF
2967 ac_clean_files_save=$ac_clean_files
2968 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2969 # Try to create an executable without -o first, disregard a.out.
2970 # It will help us diagnose broken compilers, and finding out an intuition
2971 # of exeext.
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2973 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2974 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2976 # The possible output files:
2977 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979 ac_rmfiles=
2980 for ac_file in $ac_files
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2985 esac
2986 done
2987 rm -f $ac_rmfiles
2989 if { { ac_try="$ac_link_default"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_link_default") 2>&5
2997 ac_status=$?
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }; then :
3000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3001 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3002 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3003 # so that the user can short-circuit this test for compilers unknown to
3004 # Autoconf.
3005 for ac_file in $ac_files ''
3007 test -f "$ac_file" || continue
3008 case $ac_file in
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011 [ab].out )
3012 # We found the default executable, but exeext='' is most
3013 # certainly right.
3014 break;;
3015 *.* )
3016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017 then :; else
3018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 # We set ac_cv_exeext here because the later test for it is not
3021 # safe: cross compilers may not add the suffix if given an `-o'
3022 # argument, so we may need to know it at that point already.
3023 # Even if this section looks crufty: it has the advantage of
3024 # actually working.
3025 break;;
3027 break;;
3028 esac
3029 done
3030 test "$ac_cv_exeext" = no && ac_cv_exeext=
3032 else
3033 ac_file=''
3035 if test -z "$ac_file"; then :
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error 77 "C++ compiler cannot create executables
3044 See \`config.log' for more details" "$LINENO" 5; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 $as_echo "yes" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3050 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3052 $as_echo "$ac_file" >&6; }
3053 ac_exeext=$ac_cv_exeext
3055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3056 ac_clean_files=$ac_clean_files_save
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3058 $as_echo_n "checking for suffix of executables... " >&6; }
3059 if { { ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; then :
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 # `rm'.
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 break;;
3080 * ) break;;
3081 esac
3082 done
3083 else
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details" "$LINENO" 5; }
3089 rm -f conftest conftest$ac_cv_exeext
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3091 $as_echo "$ac_cv_exeext" >&6; }
3093 rm -f conftest.$ac_ext
3094 EXEEXT=$ac_cv_exeext
3095 ac_exeext=$EXEEXT
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3098 #include <stdio.h>
3100 main ()
3102 FILE *f = fopen ("conftest.out", "w");
3103 return ferror (f) || fclose (f) != 0;
3106 return 0;
3108 _ACEOF
3109 ac_clean_files="$ac_clean_files conftest.out"
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3113 $as_echo_n "checking whether we are cross compiling... " >&6; }
3114 if test "$cross_compiling" != yes; then
3115 { { ac_try="$ac_link"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_link") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3126 if { ac_try='./conftest$ac_cv_exeext'
3127 { { case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; }; then
3137 cross_compiling=no
3138 else
3139 if test "$cross_compiling" = maybe; then
3140 cross_compiling=yes
3141 else
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error $? "cannot run C++ compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details" "$LINENO" 5; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3151 $as_echo "$cross_compiling" >&6; }
3153 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3156 $as_echo_n "checking for suffix of object files... " >&6; }
3157 if ${ac_cv_objext+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3164 main ()
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.o conftest.obj
3172 if { { ac_try="$ac_compile"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compile") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 for ac_file in conftest.o conftest.obj conftest.*; do
3184 test -f "$ac_file" || continue;
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3188 break;;
3189 esac
3190 done
3191 else
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details" "$LINENO" 5; }
3200 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3203 $as_echo "$ac_cv_objext" >&6; }
3204 OBJEXT=$ac_cv_objext
3205 ac_objext=$OBJEXT
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3207 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3208 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3217 #ifndef __GNUC__
3218 choke me
3219 #endif
3222 return 0;
3224 _ACEOF
3225 if ac_fn_cxx_try_compile "$LINENO"; then :
3226 ac_compiler_gnu=yes
3227 else
3228 ac_compiler_gnu=no
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3235 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3236 if test $ac_compiler_gnu = yes; then
3237 GXX=yes
3238 else
3239 GXX=
3241 ac_test_CXXFLAGS=${CXXFLAGS+set}
3242 ac_save_CXXFLAGS=$CXXFLAGS
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3244 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3245 if ${ac_cv_prog_cxx_g+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3249 ac_cxx_werror_flag=yes
3250 ac_cv_prog_cxx_g=no
3251 CXXFLAGS="-g"
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 if ac_fn_cxx_try_compile "$LINENO"; then :
3264 ac_cv_prog_cxx_g=yes
3265 else
3266 CXXFLAGS=""
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 if ac_fn_cxx_try_compile "$LINENO"; then :
3280 else
3281 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3282 CXXFLAGS="-g"
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 if ac_fn_cxx_try_compile "$LINENO"; then :
3295 ac_cv_prog_cxx_g=yes
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3305 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3306 if test "$ac_test_CXXFLAGS" = set; then
3307 CXXFLAGS=$ac_save_CXXFLAGS
3308 elif test $ac_cv_prog_cxx_g = yes; then
3309 if test "$GXX" = yes; then
3310 CXXFLAGS="-g -O2"
3311 else
3312 CXXFLAGS="-g"
3314 else
3315 if test "$GXX" = yes; then
3316 CXXFLAGS="-O2"
3317 else
3318 CXXFLAGS=
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3354 done
3355 done
3356 IFS=$as_save_IFS
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3371 if test -z "$ac_cv_prog_CC"; then
3372 ac_ct_CC=$CC
3373 # Extract the first word of "gcc", so it can be a program name with args.
3374 set dummy gcc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="gcc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3396 IFS=$as_save_IFS
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3409 if test "x$ac_ct_CC" = x; then
3410 CC=""
3411 else
3412 case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418 CC=$ac_ct_CC
3420 else
3421 CC="$ac_cv_prog_CC"
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}cc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="${ac_tool_prefix}cc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 done
3449 IFS=$as_save_IFS
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3465 if test -z "$CC"; then
3466 # Extract the first word of "cc", so it can be a program name with args.
3467 set dummy cc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 ac_prog_rejected=no
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3485 ac_prog_rejected=yes
3486 continue
3488 ac_cv_prog_CC="cc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3492 done
3493 done
3494 IFS=$as_save_IFS
3496 if test $ac_prog_rejected = yes; then
3497 # We found a bogon in the path, so make sure we never use it.
3498 set dummy $ac_cv_prog_CC
3499 shift
3500 if test $# != 0; then
3501 # We chose a different compiler from the bogus one.
3502 # However, it has the same basename, so the bogon will be chosen
3503 # first if we set CC to just the basename; use the full file name.
3504 shift
3505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3521 if test -z "$CC"; then
3522 if test -n "$ac_tool_prefix"; then
3523 for ac_prog in cl.exe
3525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3548 IFS=$as_save_IFS
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3562 test -n "$CC" && break
3563 done
3565 if test -z "$CC"; then
3566 ac_ct_CC=$CC
3567 for ac_prog in cl.exe
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_ac_ct_CC="$ac_prog"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3590 done
3591 done
3592 IFS=$as_save_IFS
3596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597 if test -n "$ac_ct_CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599 $as_echo "$ac_ct_CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3606 test -n "$ac_ct_CC" && break
3607 done
3609 if test "x$ac_ct_CC" = x; then
3610 CC=""
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618 CC=$ac_ct_CC
3625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "no acceptable C compiler found in \$PATH
3628 See \`config.log' for more details" "$LINENO" 5; }
3630 # Provide some information about the compiler.
3631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3632 set X $ac_compile
3633 ac_compiler=$2
3634 for ac_option in --version -v -V -qversion; do
3635 { { ac_try="$ac_compiler $ac_option >&5"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643 ac_status=$?
3644 if test -s conftest.err; then
3645 sed '10a\
3646 ... rest of stderr output deleted ...
3647 10q' conftest.err >conftest.er1
3648 cat conftest.er1 >&5
3650 rm -f conftest.er1 conftest.err
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653 done
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3656 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3657 if ${ac_cv_c_compiler_gnu+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3664 main ()
3666 #ifndef __GNUC__
3667 choke me
3668 #endif
3671 return 0;
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_compiler_gnu=yes
3676 else
3677 ac_compiler_gnu=no
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3684 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3685 if test $ac_compiler_gnu = yes; then
3686 GCC=yes
3687 else
3688 GCC=
3690 ac_test_CFLAGS=${CFLAGS+set}
3691 ac_save_CFLAGS=$CFLAGS
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3693 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3694 if ${ac_cv_prog_cc_g+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 ac_save_c_werror_flag=$ac_c_werror_flag
3698 ac_c_werror_flag=yes
3699 ac_cv_prog_cc_g=no
3700 CFLAGS="-g"
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_prog_cc_g=yes
3714 else
3715 CFLAGS=""
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3720 main ()
3724 return 0;
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3729 else
3730 ac_c_werror_flag=$ac_save_c_werror_flag
3731 CFLAGS="-g"
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3736 main ()
3740 return 0;
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_g=yes
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_c_werror_flag=$ac_save_c_werror_flag
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3754 $as_echo "$ac_cv_prog_cc_g" >&6; }
3755 if test "$ac_test_CFLAGS" = set; then
3756 CFLAGS=$ac_save_CFLAGS
3757 elif test $ac_cv_prog_cc_g = yes; then
3758 if test "$GCC" = yes; then
3759 CFLAGS="-g -O2"
3760 else
3761 CFLAGS="-g"
3763 else
3764 if test "$GCC" = yes; then
3765 CFLAGS="-O2"
3766 else
3767 CFLAGS=
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3771 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3772 if ${ac_cv_prog_cc_c89+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_cv_prog_cc_c89=no
3776 ac_save_CC=$CC
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 #include <stdarg.h>
3780 #include <stdio.h>
3781 struct stat;
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3786 char **p;
3787 int i;
3789 return p[i];
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3793 char *s;
3794 va_list v;
3795 va_start (v,p);
3796 s = g (p, va_arg (v,int));
3797 va_end (v);
3798 return s;
3801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3802 function prototypes and stuff, but not '\xHH' hex character constants.
3803 These don't provoke an error unfortunately, instead are silently treated
3804 as 'x'. The following induces an error, until -std is added to get
3805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3806 array size at least. It's necessary to write '\x00'==0 to get something
3807 that's true only with -std. */
3808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3811 inside strings and character constants. */
3812 #define FOO(x) 'x'
3813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3815 int test (int i, double x);
3816 struct s1 {int (*f) (int a);};
3817 struct s2 {int (*f) (double a);};
3818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3819 int argc;
3820 char **argv;
3822 main ()
3824 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3826 return 0;
3828 _ACEOF
3829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832 CC="$ac_save_CC $ac_arg"
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_cv_prog_cc_c89=$ac_arg
3836 rm -f core conftest.err conftest.$ac_objext
3837 test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 done
3839 rm -f conftest.$ac_ext
3840 CC=$ac_save_CC
3843 # AC_CACHE_VAL
3844 case "x$ac_cv_prog_cc_c89" in
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3847 $as_echo "none needed" >&6; } ;;
3848 xno)
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3850 $as_echo "unsupported" >&6; } ;;
3852 CC="$CC $ac_cv_prog_cc_c89"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3855 esac
3856 if test "x$ac_cv_prog_cc_c89" != xno; then :
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 case $ac_cv_prog_cc_stdc in #(
3867 no) :
3868 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3869 *) :
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3871 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3872 if ${ac_cv_prog_cc_c99+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 ac_cv_prog_cc_c99=no
3876 ac_save_CC=$CC
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <stdarg.h>
3880 #include <stdbool.h>
3881 #include <stdlib.h>
3882 #include <wchar.h>
3883 #include <stdio.h>
3885 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3886 #define debug(...) fprintf (stderr, __VA_ARGS__)
3887 #define showlist(...) puts (#__VA_ARGS__)
3888 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3889 static void
3890 test_varargs_macros (void)
3892 int x = 1234;
3893 int y = 5678;
3894 debug ("Flag");
3895 debug ("X = %d\n", x);
3896 showlist (The first, second, and third items.);
3897 report (x>y, "x is %d but y is %d", x, y);
3900 // Check long long types.
3901 #define BIG64 18446744073709551615ull
3902 #define BIG32 4294967295ul
3903 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3904 #if !BIG_OK
3905 your preprocessor is broken;
3906 #endif
3907 #if BIG_OK
3908 #else
3909 your preprocessor is broken;
3910 #endif
3911 static long long int bignum = -9223372036854775807LL;
3912 static unsigned long long int ubignum = BIG64;
3914 struct incomplete_array
3916 int datasize;
3917 double data[];
3920 struct named_init {
3921 int number;
3922 const wchar_t *name;
3923 double average;
3926 typedef const char *ccp;
3928 static inline int
3929 test_restrict (ccp restrict text)
3931 // See if C++-style comments work.
3932 // Iterate through items via the restricted pointer.
3933 // Also check for declarations in for loops.
3934 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3935 continue;
3936 return 0;
3939 // Check varargs and va_copy.
3940 static void
3941 test_varargs (const char *format, ...)
3943 va_list args;
3944 va_start (args, format);
3945 va_list args_copy;
3946 va_copy (args_copy, args);
3948 const char *str;
3949 int number;
3950 float fnumber;
3952 while (*format)
3954 switch (*format++)
3956 case 's': // string
3957 str = va_arg (args_copy, const char *);
3958 break;
3959 case 'd': // int
3960 number = va_arg (args_copy, int);
3961 break;
3962 case 'f': // float
3963 fnumber = va_arg (args_copy, double);
3964 break;
3965 default:
3966 break;
3969 va_end (args_copy);
3970 va_end (args);
3974 main ()
3977 // Check bool.
3978 _Bool success = false;
3980 // Check restrict.
3981 if (test_restrict ("String literal") == 0)
3982 success = true;
3983 char *restrict newvar = "Another string";
3985 // Check varargs.
3986 test_varargs ("s, d' f .", "string", 65, 34.234);
3987 test_varargs_macros ();
3989 // Check flexible array members.
3990 struct incomplete_array *ia =
3991 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3992 ia->datasize = 10;
3993 for (int i = 0; i < ia->datasize; ++i)
3994 ia->data[i] = i * 1.234;
3996 // Check named initializers.
3997 struct named_init ni = {
3998 .number = 34,
3999 .name = L"Test wide string",
4000 .average = 543.34343,
4003 ni.number = 58;
4005 int dynamic_array[ni.number];
4006 dynamic_array[ni.number - 1] = 543;
4008 // work around unused variable warnings
4009 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4010 || dynamic_array[ni.number - 1] != 543);
4013 return 0;
4015 _ACEOF
4016 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4018 CC="$ac_save_CC $ac_arg"
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_c99=$ac_arg
4022 rm -f core conftest.err conftest.$ac_objext
4023 test "x$ac_cv_prog_cc_c99" != "xno" && break
4024 done
4025 rm -f conftest.$ac_ext
4026 CC=$ac_save_CC
4029 # AC_CACHE_VAL
4030 case "x$ac_cv_prog_cc_c99" in
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4033 $as_echo "none needed" >&6; } ;;
4034 xno)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036 $as_echo "unsupported" >&6; } ;;
4038 CC="$CC $ac_cv_prog_cc_c99"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4040 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4041 esac
4042 if test "x$ac_cv_prog_cc_c99" != xno; then :
4043 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047 if ${ac_cv_prog_cc_c89+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 struct stat;
4057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4058 struct buf { int x; };
4059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4060 static char *e (p, i)
4061 char **p;
4062 int i;
4064 return p[i];
4066 static char *f (char * (*g) (char **, int), char **p, ...)
4068 char *s;
4069 va_list v;
4070 va_start (v,p);
4071 s = g (p, va_arg (v,int));
4072 va_end (v);
4073 return s;
4076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4077 function prototypes and stuff, but not '\xHH' hex character constants.
4078 These don't provoke an error unfortunately, instead are silently treated
4079 as 'x'. The following induces an error, until -std is added to get
4080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4081 array size at least. It's necessary to write '\x00'==0 to get something
4082 that's true only with -std. */
4083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4086 inside strings and character constants. */
4087 #define FOO(x) 'x'
4088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090 int test (int i, double x);
4091 struct s1 {int (*f) (int a);};
4092 struct s2 {int (*f) (double a);};
4093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 int argc;
4095 char **argv;
4097 main ()
4099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4101 return 0;
4103 _ACEOF
4104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109 ac_cv_prog_cc_c89=$ac_arg
4111 rm -f core conftest.err conftest.$ac_objext
4112 test "x$ac_cv_prog_cc_c89" != "xno" && break
4113 done
4114 rm -f conftest.$ac_ext
4115 CC=$ac_save_CC
4118 # AC_CACHE_VAL
4119 case "x$ac_cv_prog_cc_c89" in
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4122 $as_echo "none needed" >&6; } ;;
4123 xno)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4125 $as_echo "unsupported" >&6; } ;;
4127 CC="$CC $ac_cv_prog_cc_c89"
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4130 esac
4131 if test "x$ac_cv_prog_cc_c89" != xno; then :
4132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4133 else
4134 ac_cv_prog_cc_stdc=no
4139 esac
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4141 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4142 if ${ac_cv_prog_cc_stdc+:} false; then :
4143 $as_echo_n "(cached) " >&6
4146 case $ac_cv_prog_cc_stdc in #(
4147 no) :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149 $as_echo "unsupported" >&6; } ;; #(
4150 '') :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4152 $as_echo "none needed" >&6; } ;; #(
4153 *) :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4155 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4156 esac
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4167 CPP=
4169 if test -z "$CPP"; then
4170 if ${ac_cv_prog_CPP+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 # Double quotes because CPP needs to be expanded
4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176 ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #ifdef __STDC__
4188 # include <limits.h>
4189 #else
4190 # include <assert.h>
4191 #endif
4192 Syntax error
4193 _ACEOF
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4196 else
4197 # Broken: fails on valid input.
4198 continue
4200 rm -f conftest.err conftest.i conftest.$ac_ext
4202 # OK, works on sane cases. Now check whether nonexistent headers
4203 # can be detected and how.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <ac_nonexistent.h>
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209 # Broken: success on invalid input.
4210 continue
4211 else
4212 # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4218 done
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.i conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then :
4222 break
4225 done
4226 ac_cv_prog_CPP=$CPP
4229 CPP=$ac_cv_prog_CPP
4230 else
4231 ac_cv_prog_CPP=$CPP
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4234 $as_echo "$CPP" >&6; }
4235 ac_preproc_ok=false
4236 for ac_c_preproc_warn_flag in '' yes
4238 # Use a header file that comes with gcc, so configuring glibc
4239 # with a fresh cross-compiler works.
4240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241 # <limits.h> exists even on freestanding compilers.
4242 # On the NeXT, cc -E runs the code through the compiler's parser,
4243 # not just through cpp. "Syntax error" is here to catch this case.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #ifdef __STDC__
4247 # include <limits.h>
4248 #else
4249 # include <assert.h>
4250 #endif
4251 Syntax error
4252 _ACEOF
4253 if ac_fn_c_try_cpp "$LINENO"; then :
4255 else
4256 # Broken: fails on valid input.
4257 continue
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4261 # OK, works on sane cases. Now check whether nonexistent headers
4262 # can be detected and how.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4266 _ACEOF
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4268 # Broken: success on invalid input.
4269 continue
4270 else
4271 # Passes both tests.
4272 ac_preproc_ok=:
4273 break
4275 rm -f conftest.err conftest.i conftest.$ac_ext
4277 done
4278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279 rm -f conftest.i conftest.err conftest.$ac_ext
4280 if $ac_preproc_ok; then :
4282 else
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details" "$LINENO" 5; }
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 # Check for a compatible awk
4297 for ac_prog in gawk nawk
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_AWK+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$AWK"; then
4307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_AWK="$ac_prog"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4326 AWK=$ac_cv_prog_AWK
4327 if test -n "$AWK"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4329 $as_echo "$AWK" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4336 test -n "$AWK" && break
4337 done
4339 if test "$AWK" = ""; then
4340 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4342 # Extract the first word of "mmake", so it can be a program name with args.
4343 set dummy mmake; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if ${ac_cv_prog_MMAKE+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$MMAKE"; then
4350 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_MMAKE="mmake "
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 MMAKE=$ac_cv_prog_MMAKE
4370 if test -n "$MMAKE"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4372 $as_echo "$MMAKE" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4380 # Perform some default variable assignments. Note all of these will be
4381 # Regenerated from the script, so there is no need to cache them.
4383 aros_host_cpp="$CPP"
4384 aros_host_cc="$CC"
4385 aros_host_cxx="$CXX"
4386 if test "$GCC" = "yes"; then
4387 aros_gcc_ld=`$CC -print-prog-name=ld`
4388 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4389 set dummy `basename $aros_gcc_ld`; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if ${ac_cv_path_aros_host_ld+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 case $aros_host_ld in
4396 [\\/]* | ?:[\\/]*)
4397 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in `dirname $aros_gcc_ld`
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4416 esac
4418 aros_host_ld=$ac_cv_path_aros_host_ld
4419 if test -n "$aros_host_ld"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4421 $as_echo "$aros_host_ld" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4429 if test "$aros_host_ld" = ""; then
4430 # Extract the first word of "ld", so it can be a program name with args.
4431 set dummy ld; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_path_aros_host_ld+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 case $aros_host_ld in
4438 [\\/]* | ?:[\\/]*)
4439 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4458 esac
4460 aros_host_ld=$ac_cv_path_aros_host_ld
4461 if test -n "$aros_host_ld"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4463 $as_echo "$aros_host_ld" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4471 if test "$aros_host_ld" = ""; then
4472 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4474 aros_host_make="make"
4475 aros_host_cflags="$CFLAGS"
4476 aros_host_cxxflags="$CXXFLAGS"
4477 aros_host_ldflags="$LDFLAGS"
4478 aros_host_debug="-g -O0"
4479 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4480 aros_host_mkargs="--no-print-directory"
4481 aros_host_exe_suffix="$EXEEXT"
4482 aros_host_lib_suffix=""
4484 # Ignore all compliance, AROS ROMs = 0
4485 # KickStart v1.0 = 30
4486 # KickStart v1.3 = 34
4487 # KickStart v2.0 = 37
4488 # KickStart v3.0 = 39
4489 # KickStart v3.1 = 40
4490 # AmigaOS v3.5 = 44
4491 aros_amigaos_compliance=0
4493 for ac_prog in aclocal aclocal19 aclocal-1.9
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$aros_host_aclocal"; then
4503 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_aros_host_aclocal="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4523 if test -n "$aros_host_aclocal"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4525 $as_echo "$aros_host_aclocal" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$aros_host_aclocal" && break
4533 done
4535 for ac_prog in autoconf autoconf259 autoconf253
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538 set dummy $ac_prog; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test -n "$aros_host_autoconf"; then
4545 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_aros_host_autoconf="$ac_prog"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4565 if test -n "$aros_host_autoconf"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4567 $as_echo "$aros_host_autoconf" >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4574 test -n "$aros_host_autoconf" && break
4575 done
4577 for ac_prog in autoheader autoheader259 autoheader253
4579 # Extract the first word of "$ac_prog", so it can be a program name with args.
4580 set dummy $ac_prog; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$aros_host_autoheader"; then
4587 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_prog_aros_host_autoheader="$ac_prog"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4606 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4607 if test -n "$aros_host_autoheader"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4609 $as_echo "$aros_host_autoheader" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4616 test -n "$aros_host_autoheader" && break
4617 done
4619 for ac_prog in automake automake19 automake-1.9
4621 # Extract the first word of "$ac_prog", so it can be a program name with args.
4622 set dummy $ac_prog; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_aros_host_automake+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$aros_host_automake"; then
4629 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_aros_host_automake="$ac_prog"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 aros_host_automake=$ac_cv_prog_aros_host_automake
4649 if test -n "$aros_host_automake"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4651 $as_echo "$aros_host_automake" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4658 test -n "$aros_host_automake" && break
4659 done
4662 if test "$aros_host_aclocal" = ""; then
4663 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4665 if test "$aros_host_automake" = ""; then
4666 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4669 case "$aros_host_cc" in
4670 *gcc*)
4671 aros_host_cc_pipe="-pipe"
4673 icc)
4674 aros_host_cc_pipe=""
4677 aros_host_cc_pipe=""
4679 esac
4681 aros_kernel_cc_includes=""
4682 aros_target_cc_includes=""
4683 host_cc_elf=yes
4685 # ----------------------------------------------------------------------------------------
4686 # Host-specific defaults
4688 # This is the main host configuration section. It is where the host
4689 # can change the values of any variables it needs to change. We do
4690 # not look at anything that compiles to the target yet, we'll get
4691 # to that later.
4693 case "$host_os" in
4694 aros*)
4695 aros_host_arch="aros"
4696 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4697 case "$host_cpu" in
4698 *i?86*)
4699 aros_host_cpu="i386"
4701 *x86_64*)
4702 aros_host_cpu="x86_64"
4704 *powerpc*)
4705 aros_host_cpu="ppc"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4709 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4710 aros_host_cpu="$host_cpu"
4712 esac
4715 linux*)
4716 aros_host_arch="linux"
4717 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4718 android_build_os="linux-x86"
4719 android_tool="android"
4720 default_android_sdk="/opt/android-sdk-linux_x86"
4721 case "$host_cpu" in
4722 *i?86*)
4723 aros_host_cpu="i386"
4725 *x86_64*)
4726 aros_host_cpu="x86_64"
4728 *m68k*)
4729 aros_host_cpu="m68k"
4731 *powerpc*)
4732 aros_host_cpu="ppc"
4734 *arm*)
4735 aros_host_cpu="arm"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4739 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4740 aros_host_cpu="$host_cpu"
4742 esac
4745 freebsd*)
4746 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4747 aros_host_make="gmake"
4748 aros_host_arch="freebsd"
4749 aros_host_cpu="i386"
4751 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4753 case $host_os in
4754 freebsd[234]*)
4755 aros_object_format="elf_i386"
4759 aros_object_format="elf_i386_fbsd"
4761 esac
4765 darwin*)
4766 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4767 aros_host_arch="darwin"
4768 host_cc_elf=no
4769 SED="gsed"
4770 android_build_os="darwin-x86"
4771 android_tool="android"
4772 default_android_sdk="/android-sdk-mac_x86"
4773 case "$host_cpu" in
4774 *i?86*)
4775 aros_host_cpu="i386"
4777 *x86_64*)
4778 aros_host_cpu="x86_64"
4780 *powerpc*)
4781 aros_host_cpu="ppc"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4785 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4786 aros_host_cpu="$host_cpu"
4788 esac
4790 aros_host_ldflags="$aros_host_ldflags -liconv"
4794 dragonfly*)
4795 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4796 aros_host_make="gmake"
4797 aros_host_arch="dragonfly"
4798 case $host_cpu in
4799 *i?86*)
4800 aros_host_cpu="i386"
4802 *amd64*)
4803 aros_host_cpu="x86_64"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4807 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4808 aros_host_cpu="$host_cpu"
4810 esac
4813 netbsd*)
4814 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4815 aros_host_make="gmake"
4816 aros_host_arch="netbsd"
4817 case "$host_cpu" in
4818 *i?86*)
4819 aros_host_cpu="i386"
4821 *m68k*)
4822 aros_host_cpu="m68k"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4826 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4827 aros_host_cpu="$host_cpu"
4829 esac
4830 aros_host_lib_suffix=".0.0"
4833 openbsd*)
4834 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4835 aros_host_make="gmake"
4836 aros_host_arch="openbsd"
4837 case "$host_cpu" in
4838 *i?86*)
4839 aros_host_cpu="i386"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4843 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4844 aros_host_cpu="$host_cpu"
4846 esac
4849 solaris*)
4850 aros_host_arch="solaris"
4851 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4852 case "$host_cpu" in
4853 *i?86*)
4854 aros_host_cpu="i386"
4856 *sparc*)
4857 aros_host_cpu="sparc"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4861 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4862 aros_host_cpu="$host_cpu"
4864 esac
4867 morphos*)
4868 aros_host_arch="morphos"
4869 aros_host_cpu="ppc"
4870 host_cc_elf=no
4873 amiga*)
4874 aros_host_arch="amiga"
4875 host_cc_elf=no
4876 SORT="/gg/bin/sort"
4877 TEST="/gg/bin/test"
4878 UNIQ="/gg/bin/uniq"
4879 FOR="for"
4880 TOUCH="/gg/bin/touch"
4881 case "$host_cpu" in
4882 *m68k*)
4883 aros_host_cpu="m68k"
4885 *powerpc*)
4886 aros_host_cpu="ppc"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4890 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4891 aros_host_cpu="$host_cpu"
4893 esac
4896 cygwin*)
4897 aros_host_arch="cygwin"
4898 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4899 host_cc_elf=no
4900 android_build_os="windows"
4901 android_tool="android.bat"
4902 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4904 case "$host_cpu" in
4905 *i?86*)
4906 aros_host_cpu="i386"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu="$host_cpu"
4913 esac
4916 mingw32*)
4917 aros_host_arch="mingw32"
4918 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4919 host_cc_elf=no
4920 android_build_os="windows"
4921 android_tool="android.bat"
4922 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4924 case "$host_cpu" in
4925 *i?86*)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4928 $as_echo_n "checking for Windows native gcc target... " >&6; }
4929 host_cpu=`gcc -dumpmachine`
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4931 $as_echo "$host_cpu" >&6; }
4934 esac
4936 case "$host_cpu" in
4937 *i?86*)
4938 aros_host_cpu="i386"
4941 mingw32*)
4942 aros_host_cpu="i386"
4945 *x86_64*)
4946 aros_host_cpu="x86_64"
4947 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4952 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4953 aros_host_cpu="$host_cpu"
4955 esac
4958 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4960 esac
4962 # Extract the first word of "ar", so it can be a program name with args.
4963 set dummy ar; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_aros_host_ar+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$aros_host_ar"; then
4970 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_aros_host_ar="ar cr"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 aros_host_ar=$ac_cv_prog_aros_host_ar
4990 if test -n "$aros_host_ar"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4992 $as_echo "$aros_host_ar" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 if test "$aros_host_ar" = ""; then
5000 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "ranlib", so it can be a program name with args.
5003 set dummy ranlib; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$aros_host_ranlib"; then
5010 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_aros_host_ranlib="ranlib "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5030 if test -n "$aros_host_ranlib"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5032 $as_echo "$aros_host_ranlib" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 if test "$aros_host_ranlib" = ""; then
5040 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5042 # Extract the first word of "strip", so it can be a program name with args.
5043 set dummy strip; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_aros_host_strip+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$aros_host_strip"; then
5050 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_aros_host_strip="strip "
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 aros_host_strip=$ac_cv_prog_aros_host_strip
5070 if test -n "$aros_host_strip"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5072 $as_echo "$aros_host_strip" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 if test "$aros_host_strip" = ""; then
5080 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5083 # Extract the first word of "rm", so it can be a program name with args.
5084 set dummy rm; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_RM+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$RM"; then
5091 ac_cv_prog_RM="$RM" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_RM="rm -rf"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5106 IFS=$as_save_IFS
5110 RM=$ac_cv_prog_RM
5111 if test -n "$RM"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5113 $as_echo "$RM" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 if test "$RM" = ""; then
5121 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5123 # Extract the first word of "cp", so it can be a program name with args.
5124 set dummy cp; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_CP+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$CP"; then
5131 ac_cv_prog_CP="$CP" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_CP="cp "
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5146 IFS=$as_save_IFS
5150 CP=$ac_cv_prog_CP
5151 if test -n "$CP"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5153 $as_echo "$CP" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5160 if test "$CP" = ""; then
5161 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5163 # Extract the first word of "mv", so it can be a program name with args.
5164 set dummy mv; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_MV+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$MV"; then
5171 ac_cv_prog_MV="$MV" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_MV="mv "
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5190 MV=$ac_cv_prog_MV
5191 if test -n "$MV"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5193 $as_echo "$MV" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5200 if test "$MV" = ""; then
5201 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5203 # Extract the first word of "echo", so it can be a program name with args.
5204 set dummy echo; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ECHO+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ECHO"; then
5211 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ECHO="echo "
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 ECHO=$ac_cv_prog_ECHO
5231 if test -n "$ECHO"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5233 $as_echo "$ECHO" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 if test "$ECHO" = ""; then
5241 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5243 # Extract the first word of "mkdir", so it can be a program name with args.
5244 set dummy mkdir; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_MKDIR+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$MKDIR"; then
5251 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_MKDIR="mkdir -p"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 MKDIR=$ac_cv_prog_MKDIR
5271 if test -n "$MKDIR"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5273 $as_echo "$MKDIR" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5280 if test "$MKDIR" = ""; then
5281 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5283 # Extract the first word of "touch", so it can be a program name with args.
5284 set dummy touch; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_TOUCH+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$TOUCH"; then
5291 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_TOUCH="touch "
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 TOUCH=$ac_cv_prog_TOUCH
5311 if test -n "$TOUCH"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5313 $as_echo "$TOUCH" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 if test "$TOUCH" = ""; then
5321 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5323 # Extract the first word of "sort", so it can be a program name with args.
5324 set dummy sort; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_SORT+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$SORT"; then
5331 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_SORT="sort "
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 SORT=$ac_cv_prog_SORT
5351 if test -n "$SORT"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5353 $as_echo "$SORT" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5360 if test "$SORT" = ""; then
5361 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5363 # Extract the first word of "uniq", so it can be a program name with args.
5364 set dummy uniq; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_UNIQ+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$UNIQ"; then
5371 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_UNIQ="uniq "
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5390 UNIQ=$ac_cv_prog_UNIQ
5391 if test -n "$UNIQ"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5393 $as_echo "$UNIQ" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5400 if test "$UNIQ" = ""; then
5401 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5403 # Extract the first word of "true", so it can be a program name with args.
5404 set dummy true; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_NOP+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$NOP"; then
5411 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_NOP="true "
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5430 NOP=$ac_cv_prog_NOP
5431 if test -n "$NOP"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5433 $as_echo "$NOP" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 if test "$NOP" = ""; then
5441 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5443 # Extract the first word of "cat", so it can be a program name with args.
5444 set dummy cat; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_CAT+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if test -n "$CAT"; then
5451 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_CAT="cat "
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5464 done
5465 done
5466 IFS=$as_save_IFS
5470 CAT=$ac_cv_prog_CAT
5471 if test -n "$CAT"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5473 $as_echo "$CAT" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5480 if test "$CAT" = ""; then
5481 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5483 # Extract the first word of "bison", so it can be a program name with args.
5484 set dummy bison; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_BISON+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$BISON"; then
5491 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_BISON="bison "
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5504 done
5505 done
5506 IFS=$as_save_IFS
5510 BISON=$ac_cv_prog_BISON
5511 if test -n "$BISON"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5513 $as_echo "$BISON" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5520 if test "$BISON" = ""; then
5521 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5523 # Extract the first word of "flex", so it can be a program name with args.
5524 set dummy flex; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_FLEX+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$FLEX"; then
5531 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_FLEX="flex "
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5544 done
5545 done
5546 IFS=$as_save_IFS
5550 FLEX=$ac_cv_prog_FLEX
5551 if test -n "$FLEX"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5553 $as_echo "$FLEX" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5560 if test "$FLEX" = ""; then
5561 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5563 # Extract the first word of "pngtopnm", so it can be a program name with args.
5564 set dummy pngtopnm; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$PNGTOPNM"; then
5571 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_PNGTOPNM="pngtopnm "
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5591 if test -n "$PNGTOPNM"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5593 $as_echo "$PNGTOPNM" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 if test "$PNGTOPNM" = ""; then
5601 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5603 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5604 set dummy ppmtoilbm; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$PPMTOILBM"; then
5611 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5631 if test -n "$PPMTOILBM"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5633 $as_echo "$PPMTOILBM" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 if test "$PPMTOILBM" = ""; then
5641 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5643 # Extract the first word of "sed", so it can be a program name with args.
5644 set dummy sed; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_SED+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$SED"; then
5651 ac_cv_prog_SED="$SED" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_SED="sed "
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5666 IFS=$as_save_IFS
5670 SED=$ac_cv_prog_SED
5671 if test -n "$SED"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5673 $as_echo "$SED" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5680 if test "$SED" = ""; then
5681 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5683 # Extract the first word of "chmod", so it can be a program name with args.
5684 set dummy chmod; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_CHMOD+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$CHMOD"; then
5691 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_CHMOD="chmod "
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5704 done
5705 done
5706 IFS=$as_save_IFS
5710 CHMOD=$ac_cv_prog_CHMOD
5711 if test -n "$CHMOD"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5713 $as_echo "$CHMOD" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5720 if test "$CHMOD" = ""; then
5721 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5723 # Extract the first word of "patch", so it can be a program name with args.
5724 set dummy patch; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_PATCH+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$PATCH"; then
5731 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_PATCH="patch "
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5746 IFS=$as_save_IFS
5750 PATCH=$ac_cv_prog_PATCH
5751 if test -n "$PATCH"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5753 $as_echo "$PATCH" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5760 if test "$PATCH" = ""; then
5761 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5770 if test -n "$PYTHON"; then
5771 # If the user set $PYTHON, use it and don't search something else.
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5773 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5774 prog="import sys
5775 # split strings by '.' and convert to numeric. Append some zeros
5776 # because we need at least 4 digits for the hex conversion.
5777 # map returns an iterator in Python 3.0 and a list in 2.x
5778 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5779 minverhex = 0
5780 # xrange is not present in Python 3.0 and range returns an iterator
5781 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5782 sys.exit(sys.hexversion < minverhex)"
5783 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5784 ($PYTHON -c "$prog") >&5 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then :
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5795 am_display_PYTHON=$PYTHON
5796 else
5797 # Otherwise, try each interpreter until we find one that satisfies
5798 # VERSION.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5800 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5801 if ${am_cv_pathless_PYTHON+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5805 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
5806 test "$am_cv_pathless_PYTHON" = none && break
5807 prog="import sys
5808 # split strings by '.' and convert to numeric. Append some zeros
5809 # because we need at least 4 digits for the hex conversion.
5810 # map returns an iterator in Python 3.0 and a list in 2.x
5811 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5812 minverhex = 0
5813 # xrange is not present in Python 3.0 and range returns an iterator
5814 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5815 sys.exit(sys.hexversion < minverhex)"
5816 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5817 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; then :
5821 break
5823 done
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5826 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5827 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5828 if test "$am_cv_pathless_PYTHON" = none; then
5829 PYTHON=:
5830 else
5831 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5832 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_path_PYTHON+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 case $PYTHON in
5839 [\\/]* | ?:[\\/]*)
5840 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5859 esac
5861 PYTHON=$ac_cv_path_PYTHON
5862 if test -n "$PYTHON"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5864 $as_echo "$PYTHON" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5872 am_display_PYTHON=$am_cv_pathless_PYTHON
5876 if test "$PYTHON" = :; then
5877 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5878 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5882 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5883 if ${am_cv_python_version+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5889 $as_echo "$am_cv_python_version" >&6; }
5890 PYTHON_VERSION=$am_cv_python_version
5894 PYTHON_PREFIX='${prefix}'
5896 PYTHON_EXEC_PREFIX='${exec_prefix}'
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5901 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5902 if ${am_cv_python_platform+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5908 $as_echo "$am_cv_python_platform" >&6; }
5909 PYTHON_PLATFORM=$am_cv_python_platform
5912 # Just factor out some code duplication.
5913 am_python_setup_sysconfig="\
5914 import sys
5915 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5916 # with python 3.x. See automake bug#10227.
5917 try:
5918 import sysconfig
5919 except ImportError:
5920 can_use_sysconfig = 0
5921 else:
5922 can_use_sysconfig = 1
5923 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5924 # <https://github.com/pypa/virtualenv/issues/118>
5925 try:
5926 from platform import python_implementation
5927 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5928 can_use_sysconfig = 0
5929 except ImportError:
5930 pass"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5934 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5935 if ${am_cv_python_pythondir+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test "x$prefix" = xNONE
5939 then
5940 am_py_prefix=$ac_default_prefix
5941 else
5942 am_py_prefix=$prefix
5944 am_cv_python_pythondir=`$PYTHON -c "
5945 $am_python_setup_sysconfig
5946 if can_use_sysconfig:
5947 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5948 else:
5949 from distutils import sysconfig
5950 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5951 sys.stdout.write(sitedir)"`
5952 case $am_cv_python_pythondir in
5953 $am_py_prefix*)
5954 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5955 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5958 case $am_py_prefix in
5959 /usr|/System*) ;;
5961 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5963 esac
5965 esac
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5969 $as_echo "$am_cv_python_pythondir" >&6; }
5970 pythondir=$am_cv_python_pythondir
5974 pkgpythondir=\${pythondir}/$PACKAGE
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5978 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5979 if ${am_cv_python_pyexecdir+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 if test "x$exec_prefix" = xNONE
5983 then
5984 am_py_exec_prefix=$am_py_prefix
5985 else
5986 am_py_exec_prefix=$exec_prefix
5988 am_cv_python_pyexecdir=`$PYTHON -c "
5989 $am_python_setup_sysconfig
5990 if can_use_sysconfig:
5991 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5992 else:
5993 from distutils import sysconfig
5994 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5995 sys.stdout.write(sitedir)"`
5996 case $am_cv_python_pyexecdir in
5997 $am_py_exec_prefix*)
5998 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5999 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6002 case $am_py_exec_prefix in
6003 /usr|/System*) ;;
6005 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6007 esac
6009 esac
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6013 $as_echo "$am_cv_python_pyexecdir" >&6; }
6014 pyexecdir=$am_cv_python_pyexecdir
6018 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6028 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6029 if ${ac_cv_lib_png_png_read_png+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 ac_check_lib_save_LIBS=$LIBS
6033 LIBS="-lpng $LIBS"
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6037 /* Override any GCC internal prototype to avoid an error.
6038 Use char because int might match the return type of a GCC
6039 builtin and then its argument prototype would still apply. */
6040 #ifdef __cplusplus
6041 extern "C"
6042 #endif
6043 char png_read_png ();
6045 main ()
6047 return png_read_png ();
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_link "$LINENO"; then :
6053 ac_cv_lib_png_png_read_png=yes
6054 else
6055 ac_cv_lib_png_png_read_png=no
6057 rm -f core conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6059 LIBS=$ac_check_lib_save_LIBS
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6062 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6063 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LIBPNG 1
6066 _ACEOF
6068 LIBS="-lpng $LIBS"
6072 if test "$ac_cv_lib_png_png_read_png" = ""; then
6073 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6076 FOR=for
6078 IF=if
6080 TEST=test
6082 CMP=cmp
6086 # Check for some includes for the X11 HIDD and the kernel
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6090 if ${ac_cv_path_GREP+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -z "$GREP"; then
6094 ac_path_GREP_found=false
6095 # Loop through the user's path and test for each of PROGNAME-LIST
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_prog in grep ggrep; do
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6104 as_fn_executable_p "$ac_path_GREP" || continue
6105 # Check for GNU ac_path_GREP and select it if it is found.
6106 # Check for GNU $ac_path_GREP
6107 case `"$ac_path_GREP" --version 2>&1` in
6108 *GNU*)
6109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6111 ac_count=0
6112 $as_echo_n 0123456789 >"conftest.in"
6113 while :
6115 cat "conftest.in" "conftest.in" >"conftest.tmp"
6116 mv "conftest.tmp" "conftest.in"
6117 cp "conftest.in" "conftest.nl"
6118 $as_echo 'GREP' >> "conftest.nl"
6119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6121 as_fn_arith $ac_count + 1 && ac_count=$as_val
6122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6123 # Best one so far, save it but keep looking for a better one
6124 ac_cv_path_GREP="$ac_path_GREP"
6125 ac_path_GREP_max=$ac_count
6127 # 10*(2^10) chars as input seems more than enough
6128 test $ac_count -gt 10 && break
6129 done
6130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6131 esac
6133 $ac_path_GREP_found && break 3
6134 done
6135 done
6136 done
6137 IFS=$as_save_IFS
6138 if test -z "$ac_cv_path_GREP"; then
6139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6141 else
6142 ac_cv_path_GREP=$GREP
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6147 $as_echo "$ac_cv_path_GREP" >&6; }
6148 GREP="$ac_cv_path_GREP"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6152 $as_echo_n "checking for egrep... " >&6; }
6153 if ${ac_cv_path_EGREP+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6157 then ac_cv_path_EGREP="$GREP -E"
6158 else
6159 if test -z "$EGREP"; then
6160 ac_path_EGREP_found=false
6161 # Loop through the user's path and test for each of PROGNAME-LIST
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_prog in egrep; do
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6170 as_fn_executable_p "$ac_path_EGREP" || continue
6171 # Check for GNU ac_path_EGREP and select it if it is found.
6172 # Check for GNU $ac_path_EGREP
6173 case `"$ac_path_EGREP" --version 2>&1` in
6174 *GNU*)
6175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6177 ac_count=0
6178 $as_echo_n 0123456789 >"conftest.in"
6179 while :
6181 cat "conftest.in" "conftest.in" >"conftest.tmp"
6182 mv "conftest.tmp" "conftest.in"
6183 cp "conftest.in" "conftest.nl"
6184 $as_echo 'EGREP' >> "conftest.nl"
6185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6187 as_fn_arith $ac_count + 1 && ac_count=$as_val
6188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6189 # Best one so far, save it but keep looking for a better one
6190 ac_cv_path_EGREP="$ac_path_EGREP"
6191 ac_path_EGREP_max=$ac_count
6193 # 10*(2^10) chars as input seems more than enough
6194 test $ac_count -gt 10 && break
6195 done
6196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6197 esac
6199 $ac_path_EGREP_found && break 3
6200 done
6201 done
6202 done
6203 IFS=$as_save_IFS
6204 if test -z "$ac_cv_path_EGREP"; then
6205 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6207 else
6208 ac_cv_path_EGREP=$EGREP
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6214 $as_echo "$ac_cv_path_EGREP" >&6; }
6215 EGREP="$ac_cv_path_EGREP"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6219 $as_echo_n "checking for ANSI C header files... " >&6; }
6220 if ${ac_cv_header_stdc+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <stdlib.h>
6226 #include <stdarg.h>
6227 #include <string.h>
6228 #include <float.h>
6231 main ()
6235 return 0;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 ac_cv_header_stdc=yes
6240 else
6241 ac_cv_header_stdc=no
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 if test $ac_cv_header_stdc = yes; then
6246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 #include <string.h>
6251 _ACEOF
6252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6253 $EGREP "memchr" >/dev/null 2>&1; then :
6255 else
6256 ac_cv_header_stdc=no
6258 rm -f conftest*
6262 if test $ac_cv_header_stdc = yes; then
6263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <stdlib.h>
6268 _ACEOF
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "free" >/dev/null 2>&1; then :
6272 else
6273 ac_cv_header_stdc=no
6275 rm -f conftest*
6279 if test $ac_cv_header_stdc = yes; then
6280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6281 if test "$cross_compiling" = yes; then :
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 #include <ctype.h>
6287 #include <stdlib.h>
6288 #if ((' ' & 0x0FF) == 0x020)
6289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6291 #else
6292 # define ISLOWER(c) \
6293 (('a' <= (c) && (c) <= 'i') \
6294 || ('j' <= (c) && (c) <= 'r') \
6295 || ('s' <= (c) && (c) <= 'z'))
6296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6297 #endif
6299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6301 main ()
6303 int i;
6304 for (i = 0; i < 256; i++)
6305 if (XOR (islower (i), ISLOWER (i))
6306 || toupper (i) != TOUPPER (i))
6307 return 2;
6308 return 0;
6310 _ACEOF
6311 if ac_fn_c_try_run "$LINENO"; then :
6313 else
6314 ac_cv_header_stdc=no
6316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6317 conftest.$ac_objext conftest.beam conftest.$ac_ext
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6323 $as_echo "$ac_cv_header_stdc" >&6; }
6324 if test $ac_cv_header_stdc = yes; then
6326 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6332 inttypes.h stdint.h unistd.h
6333 do :
6334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6338 cat >>confdefs.h <<_ACEOF
6339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6340 _ACEOF
6344 done
6347 for ac_header in sys/ipc.h sys/shm.h \
6348 sys/mmap.h sys/mman.h sysexits.h \
6349 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6351 do :
6352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6355 cat >>confdefs.h <<_ACEOF
6356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6357 _ACEOF
6361 done
6364 for ac_header in sys/mount.h
6365 do :
6366 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6368 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define HAVE_SYS_MOUNT_H 1
6371 _ACEOF
6375 done
6378 ac_header_dirent=no
6379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6380 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6382 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6383 if eval \${$as_ac_Header+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 #include <sys/types.h>
6389 #include <$ac_hdr>
6392 main ()
6394 if ((DIR *) 0)
6395 return 0;
6397 return 0;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 eval "$as_ac_Header=yes"
6402 else
6403 eval "$as_ac_Header=no"
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 eval ac_res=\$$as_ac_Header
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6413 _ACEOF
6415 ac_header_dirent=$ac_hdr; break
6418 done
6419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6420 if test $ac_header_dirent = dirent.h; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6422 $as_echo_n "checking for library containing opendir... " >&6; }
6423 if ${ac_cv_search_opendir+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_func_search_save_LIBS=$LIBS
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6430 /* Override any GCC internal prototype to avoid an error.
6431 Use char because int might match the return type of a GCC
6432 builtin and then its argument prototype would still apply. */
6433 #ifdef __cplusplus
6434 extern "C"
6435 #endif
6436 char opendir ();
6438 main ()
6440 return opendir ();
6442 return 0;
6444 _ACEOF
6445 for ac_lib in '' dir; do
6446 if test -z "$ac_lib"; then
6447 ac_res="none required"
6448 else
6449 ac_res=-l$ac_lib
6450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6452 if ac_fn_c_try_link "$LINENO"; then :
6453 ac_cv_search_opendir=$ac_res
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext
6457 if ${ac_cv_search_opendir+:} false; then :
6458 break
6460 done
6461 if ${ac_cv_search_opendir+:} false; then :
6463 else
6464 ac_cv_search_opendir=no
6466 rm conftest.$ac_ext
6467 LIBS=$ac_func_search_save_LIBS
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6470 $as_echo "$ac_cv_search_opendir" >&6; }
6471 ac_res=$ac_cv_search_opendir
6472 if test "$ac_res" != no; then :
6473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6479 $as_echo_n "checking for library containing opendir... " >&6; }
6480 if ${ac_cv_search_opendir+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 ac_func_search_save_LIBS=$LIBS
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6487 /* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6490 #ifdef __cplusplus
6491 extern "C"
6492 #endif
6493 char opendir ();
6495 main ()
6497 return opendir ();
6499 return 0;
6501 _ACEOF
6502 for ac_lib in '' x; do
6503 if test -z "$ac_lib"; then
6504 ac_res="none required"
6505 else
6506 ac_res=-l$ac_lib
6507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6509 if ac_fn_c_try_link "$LINENO"; then :
6510 ac_cv_search_opendir=$ac_res
6512 rm -f core conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext
6514 if ${ac_cv_search_opendir+:} false; then :
6515 break
6517 done
6518 if ${ac_cv_search_opendir+:} false; then :
6520 else
6521 ac_cv_search_opendir=no
6523 rm conftest.$ac_ext
6524 LIBS=$ac_func_search_save_LIBS
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6527 $as_echo "$ac_cv_search_opendir" >&6; }
6528 ac_res=$ac_cv_search_opendir
6529 if test "$ac_res" != no; then :
6530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6537 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6538 if ${ac_cv_header_stat_broken+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #include <sys/types.h>
6544 #include <sys/stat.h>
6546 #if defined S_ISBLK && defined S_IFDIR
6547 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6548 #endif
6550 #if defined S_ISBLK && defined S_IFCHR
6551 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6552 #endif
6554 #if defined S_ISLNK && defined S_IFREG
6555 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6556 #endif
6558 #if defined S_ISSOCK && defined S_IFREG
6559 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6560 #endif
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 ac_cv_header_stat_broken=no
6565 else
6566 ac_cv_header_stat_broken=yes
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6571 $as_echo "$ac_cv_header_stat_broken" >&6; }
6572 if test $ac_cv_header_stat_broken = yes; then
6574 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6579 $as_echo_n "checking for ANSI C header files... " >&6; }
6580 if ${ac_cv_header_stdc+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 #include <stdlib.h>
6586 #include <stdarg.h>
6587 #include <string.h>
6588 #include <float.h>
6591 main ()
6595 return 0;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 ac_cv_header_stdc=yes
6600 else
6601 ac_cv_header_stdc=no
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 if test $ac_cv_header_stdc = yes; then
6606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 #include <string.h>
6611 _ACEOF
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "memchr" >/dev/null 2>&1; then :
6615 else
6616 ac_cv_header_stdc=no
6618 rm -f conftest*
6622 if test $ac_cv_header_stdc = yes; then
6623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <stdlib.h>
6628 _ACEOF
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "free" >/dev/null 2>&1; then :
6632 else
6633 ac_cv_header_stdc=no
6635 rm -f conftest*
6639 if test $ac_cv_header_stdc = yes; then
6640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6641 if test "$cross_compiling" = yes; then :
6643 else
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <ctype.h>
6647 #include <stdlib.h>
6648 #if ((' ' & 0x0FF) == 0x020)
6649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6651 #else
6652 # define ISLOWER(c) \
6653 (('a' <= (c) && (c) <= 'i') \
6654 || ('j' <= (c) && (c) <= 'r') \
6655 || ('s' <= (c) && (c) <= 'z'))
6656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6657 #endif
6659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6661 main ()
6663 int i;
6664 for (i = 0; i < 256; i++)
6665 if (XOR (islower (i), ISLOWER (i))
6666 || toupper (i) != TOUPPER (i))
6667 return 2;
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_run "$LINENO"; then :
6673 else
6674 ac_cv_header_stdc=no
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6677 conftest.$ac_objext conftest.beam conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6683 $as_echo "$ac_cv_header_stdc" >&6; }
6684 if test $ac_cv_header_stdc = yes; then
6686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6691 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6692 if ${ac_cv_header_sys_wait_h+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 #include <sys/wait.h>
6699 #ifndef WEXITSTATUS
6700 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6701 #endif
6702 #ifndef WIFEXITED
6703 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6704 #endif
6707 main ()
6709 int s;
6710 wait (&s);
6711 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6713 return 0;
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 ac_cv_header_sys_wait_h=yes
6718 else
6719 ac_cv_header_sys_wait_h=no
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6725 if test $ac_cv_header_sys_wait_h = yes; then
6727 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6732 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6733 if ${ac_cv_header_time+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #include <sys/types.h>
6739 #include <sys/time.h>
6740 #include <time.h>
6743 main ()
6745 if ((struct tm *) 0)
6746 return 0;
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 ac_cv_header_time=yes
6753 else
6754 ac_cv_header_time=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6759 $as_echo "$ac_cv_header_time" >&6; }
6760 if test $ac_cv_header_time = yes; then
6762 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6766 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6767 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6771 _ACEOF
6774 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6779 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6780 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6784 _ACEOF
6787 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6789 else
6790 case " $LIBOBJS " in
6791 *" fileblocks.$ac_objext "* ) ;;
6792 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6794 esac
6799 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6800 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_STRUCT_STAT_ST_RDEV 1
6804 _ACEOF
6807 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6813 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6814 if ${ac_cv_struct_tm+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819 #include <sys/types.h>
6820 #include <time.h>
6823 main ()
6825 struct tm tm;
6826 int *p = &tm.tm_sec;
6827 return !p;
6829 return 0;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 ac_cv_struct_tm=time.h
6834 else
6835 ac_cv_struct_tm=sys/time.h
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6840 $as_echo "$ac_cv_struct_tm" >&6; }
6841 if test $ac_cv_struct_tm = sys/time.h; then
6843 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6847 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6848 #include <$ac_cv_struct_tm>
6851 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6853 cat >>confdefs.h <<_ACEOF
6854 #define HAVE_STRUCT_TM_TM_ZONE 1
6855 _ACEOF
6860 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6862 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6864 else
6865 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6867 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6868 ac_have_decl=1
6869 else
6870 ac_have_decl=0
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_DECL_TZNAME $ac_have_decl
6875 _ACEOF
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6878 $as_echo_n "checking for tzname... " >&6; }
6879 if ${ac_cv_var_tzname+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 #include <time.h>
6885 #if !HAVE_DECL_TZNAME
6886 extern char *tzname[];
6887 #endif
6890 main ()
6892 return tzname[0][0];
6894 return 0;
6896 _ACEOF
6897 if ac_fn_c_try_link "$LINENO"; then :
6898 ac_cv_var_tzname=yes
6899 else
6900 ac_cv_var_tzname=no
6902 rm -f core conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6906 $as_echo "$ac_cv_var_tzname" >&6; }
6907 if test $ac_cv_var_tzname = yes; then
6909 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6914 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6915 if test "x$ac_cv_type_off_t" = xyes; then :
6917 else
6919 cat >>confdefs.h <<_ACEOF
6920 #define off_t long int
6921 _ACEOF
6925 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6926 if test "x$ac_cv_type_pid_t" = xyes; then :
6928 else
6930 cat >>confdefs.h <<_ACEOF
6931 #define pid_t int
6932 _ACEOF
6936 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6937 if test "x$ac_cv_type_size_t" = xyes; then :
6939 else
6941 cat >>confdefs.h <<_ACEOF
6942 #define size_t unsigned int
6943 _ACEOF
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6948 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6949 if ${ac_cv_type_uid_t+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #include <sys/types.h>
6956 _ACEOF
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "uid_t" >/dev/null 2>&1; then :
6959 ac_cv_type_uid_t=yes
6960 else
6961 ac_cv_type_uid_t=no
6963 rm -f conftest*
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6967 $as_echo "$ac_cv_type_uid_t" >&6; }
6968 if test $ac_cv_type_uid_t = no; then
6970 $as_echo "#define uid_t int" >>confdefs.h
6973 $as_echo "#define gid_t int" >>confdefs.h
6978 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6979 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6983 _ACEOF
6989 # Look for some functions
6990 for ac_func in getpagesize kqueue statfs statvfs \
6991 clone kse_create rfork_thread thr_create sa_register \
6992 getcontext makecontext setcontext sigaltstack swapcontext
6993 do :
6994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6996 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6997 cat >>confdefs.h <<_ACEOF
6998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6999 _ACEOF
7002 done
7008 for ac_header in $ac_header_list
7009 do :
7010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7014 cat >>confdefs.h <<_ACEOF
7015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7016 _ACEOF
7020 done
7029 for ac_func in getpagesize
7030 do :
7031 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7032 if test "x$ac_cv_func_getpagesize" = xyes; then :
7033 cat >>confdefs.h <<_ACEOF
7034 #define HAVE_GETPAGESIZE 1
7035 _ACEOF
7038 done
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7041 $as_echo_n "checking for working mmap... " >&6; }
7042 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test "$cross_compiling" = yes; then :
7046 ac_cv_func_mmap_fixed_mapped=no
7047 else
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 $ac_includes_default
7051 /* malloc might have been renamed as rpl_malloc. */
7052 #undef malloc
7054 /* Thanks to Mike Haertel and Jim Avera for this test.
7055 Here is a matrix of mmap possibilities:
7056 mmap private not fixed
7057 mmap private fixed at somewhere currently unmapped
7058 mmap private fixed at somewhere already mapped
7059 mmap shared not fixed
7060 mmap shared fixed at somewhere currently unmapped
7061 mmap shared fixed at somewhere already mapped
7062 For private mappings, we should verify that changes cannot be read()
7063 back from the file, nor mmap's back from the file at a different
7064 address. (There have been systems where private was not correctly
7065 implemented like the infamous i386 svr4.0, and systems where the
7066 VM page cache was not coherent with the file system buffer cache
7067 like early versions of FreeBSD and possibly contemporary NetBSD.)
7068 For shared mappings, we should conversely verify that changes get
7069 propagated back to all the places they're supposed to be.
7071 Grep wants private fixed already mapped.
7072 The main things grep needs to know about mmap are:
7073 * does it exist and is it safe to write into the mmap'd area
7074 * how to use it (BSD variants) */
7076 #include <fcntl.h>
7077 #include <sys/mman.h>
7079 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7080 char *malloc ();
7081 #endif
7083 /* This mess was copied from the GNU getpagesize.h. */
7084 #ifndef HAVE_GETPAGESIZE
7085 # ifdef _SC_PAGESIZE
7086 # define getpagesize() sysconf(_SC_PAGESIZE)
7087 # else /* no _SC_PAGESIZE */
7088 # ifdef HAVE_SYS_PARAM_H
7089 # include <sys/param.h>
7090 # ifdef EXEC_PAGESIZE
7091 # define getpagesize() EXEC_PAGESIZE
7092 # else /* no EXEC_PAGESIZE */
7093 # ifdef NBPG
7094 # define getpagesize() NBPG * CLSIZE
7095 # ifndef CLSIZE
7096 # define CLSIZE 1
7097 # endif /* no CLSIZE */
7098 # else /* no NBPG */
7099 # ifdef NBPC
7100 # define getpagesize() NBPC
7101 # else /* no NBPC */
7102 # ifdef PAGESIZE
7103 # define getpagesize() PAGESIZE
7104 # endif /* PAGESIZE */
7105 # endif /* no NBPC */
7106 # endif /* no NBPG */
7107 # endif /* no EXEC_PAGESIZE */
7108 # else /* no HAVE_SYS_PARAM_H */
7109 # define getpagesize() 8192 /* punt totally */
7110 # endif /* no HAVE_SYS_PARAM_H */
7111 # endif /* no _SC_PAGESIZE */
7113 #endif /* no HAVE_GETPAGESIZE */
7116 main ()
7118 char *data, *data2, *data3;
7119 const char *cdata2;
7120 int i, pagesize;
7121 int fd, fd2;
7123 pagesize = getpagesize ();
7125 /* First, make a file with some known garbage in it. */
7126 data = (char *) malloc (pagesize);
7127 if (!data)
7128 return 1;
7129 for (i = 0; i < pagesize; ++i)
7130 *(data + i) = rand ();
7131 umask (0);
7132 fd = creat ("conftest.mmap", 0600);
7133 if (fd < 0)
7134 return 2;
7135 if (write (fd, data, pagesize) != pagesize)
7136 return 3;
7137 close (fd);
7139 /* Next, check that the tail of a page is zero-filled. File must have
7140 non-zero length, otherwise we risk SIGBUS for entire page. */
7141 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7142 if (fd2 < 0)
7143 return 4;
7144 cdata2 = "";
7145 if (write (fd2, cdata2, 1) != 1)
7146 return 5;
7147 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7148 if (data2 == MAP_FAILED)
7149 return 6;
7150 for (i = 0; i < pagesize; ++i)
7151 if (*(data2 + i))
7152 return 7;
7153 close (fd2);
7154 if (munmap (data2, pagesize))
7155 return 8;
7157 /* Next, try to mmap the file at a fixed address which already has
7158 something else allocated at it. If we can, also make sure that
7159 we see the same garbage. */
7160 fd = open ("conftest.mmap", O_RDWR);
7161 if (fd < 0)
7162 return 9;
7163 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7165 return 10;
7166 for (i = 0; i < pagesize; ++i)
7167 if (*(data + i) != *(data2 + i))
7168 return 11;
7170 /* Finally, make sure that changes to the mapped area do not
7171 percolate back to the file as seen by read(). (This is a bug on
7172 some variants of i386 svr4.0.) */
7173 for (i = 0; i < pagesize; ++i)
7174 *(data2 + i) = *(data2 + i) + 1;
7175 data3 = (char *) malloc (pagesize);
7176 if (!data3)
7177 return 12;
7178 if (read (fd, data3, pagesize) != pagesize)
7179 return 13;
7180 for (i = 0; i < pagesize; ++i)
7181 if (*(data + i) != *(data3 + i))
7182 return 14;
7183 close (fd);
7184 return 0;
7186 _ACEOF
7187 if ac_fn_c_try_run "$LINENO"; then :
7188 ac_cv_func_mmap_fixed_mapped=yes
7189 else
7190 ac_cv_func_mmap_fixed_mapped=no
7192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7193 conftest.$ac_objext conftest.beam conftest.$ac_ext
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7198 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7201 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7204 rm -f conftest.mmap conftest.txt
7209 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7210 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7211 aros_config_ldflags=""
7213 aros_shared_default=yes
7215 aros_shared_cflags="-fPIC"
7216 aros_shared_aflags=""
7217 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7218 aros_kernel_ldflags="-Wl,-rpath,./lib"
7220 aros_kernel_ar_flags="cr"
7221 aros_target_ar_flags="cr"
7222 aros_target_nm_flags="-C -ul"
7223 aros_target_strip_flags="--strip-unneeded -R.comment"
7225 aros_compiler_libs=
7226 aros_arch_libs=
7228 aros_target_genmap="-Wl,-Map -Xlinker"
7230 # Native flavour stuff
7231 aros_serial_debug="0"
7233 # Palm native flavour stuff
7234 aros_palm_debug_hack="0"
7236 # Unix flavour stuff
7237 aros_nesting_supervisor="0"
7239 # Collect-aros stuff: "-ius" to ignore undefined symbols
7240 ignore_undefined_symbols=""
7242 # Check for X11 by default
7243 need_x11="auto"
7245 #-----------------------------------------------------------------------------
7248 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7249 # it switched on by default, and we use the host compiler, so it compiles AROS
7250 # code with this enabled resulting in link failures as we don't have support
7251 # for it.
7253 # We use two methods to disable it. For the host compiler (used to compile
7254 # some hosted modules), we test to see if the compiler supports stack
7255 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7256 # work on all platforms.
7258 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7259 # (this is done unconditionally, as it should have no effect on compilers
7260 # without the stack protection feature). This may be specific to the way that
7261 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7262 # strong enough to disable it in a generic way though, so we'll live with it
7263 # until another vendor ships GCC with it enabled in a different way, and deal
7264 # with it then.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7268 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7269 save_cflags="$CFLAGS"
7270 CFLAGS="$CFLAGS -fno-stack-protector"
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7275 main ()
7279 return 0;
7281 _ACEOF
7282 if ac_fn_c_try_compile "$LINENO"; then :
7283 use_no_stack_protector="yes"
7284 else
7285 use_no_stack_protector="no"
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7289 $as_echo "$use_no_stack_protector" >&6; }
7290 if test "x-$use_no_stack_protector" = "x-yes" ; then
7291 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7293 CFLAGS="$save_cflags"
7295 #-----------------------------------------------------------------------------
7297 # Disable pointer-signedness warnings if the compiler recognises the option
7298 # (this only works for the host compiler at the moment)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7301 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7302 save_cflags="$CFLAGS"
7303 CFLAGS="$CFLAGS -Wno-pointer-sign"
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7308 main ()
7312 return 0;
7314 _ACEOF
7315 if ac_fn_c_try_compile "$LINENO"; then :
7316 use_no_sign_warning="yes"
7317 else
7318 use_no_sign_warning="no"
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7322 $as_echo "$use_no_sign_warning" >&6; }
7323 if test "x-$use_no_sign_warning" = "x-yes" ; then
7324 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7326 CFLAGS="$save_cflags"
7328 #-----------------------------------------------------------------------------
7330 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7333 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7334 save_cflags="$CFLAGS"
7335 CFLAGS="$CFLAGS -fgnu89-inline"
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7340 main ()
7344 return 0;
7346 _ACEOF
7347 if ac_fn_c_try_compile "$LINENO"; then :
7348 use_gnu89_inline="yes"
7349 else
7350 use_gnu89_inline="no"
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7354 $as_echo "$use_gnu89_inline" >&6; }
7355 if test "x-$use_gnu89_inline" = "x-yes" ; then
7356 gnu89_inline="-fgnu89-inline"
7358 CFLAGS="$save_cflags"
7360 #-----------------------------------------------------------------------------
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7363 $as_echo_n "checking for type of build... " >&6; }
7364 # Check whether --enable-build_type was given.
7365 if test "${enable_build_type+set}" = set; then :
7366 enableval=$enable_build_type; build_type=$enableval
7367 else
7368 build_type="personal"
7372 if test "$build_type" = "nightly"; then
7373 build_type_string="NIGHTLY"
7374 elif test "$build_type" = "snapshot"; then
7375 build_type_string="SNAPSHOT"
7376 elif test "$build_type" = "milestone"; then
7377 build_type_string="MILESTONE"
7378 elif test "$build_type" = "release"; then
7379 build_type_string="RELEASE"
7380 else
7381 build_type_string="PERSONAL"
7382 build_type="personal"
7385 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7388 $as_echo "$build_type" >&6; }
7390 #-----------------------------------------------------------------------------
7391 all_debug_types="messages stack modules mungwall symbols"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7394 $as_echo_n "checking which debug types to enable... " >&6; }
7395 # Check whether --enable-debug was given.
7396 if test "${enable_debug+set}" = set; then :
7397 enableval=$enable_debug; debug="$enableval"
7398 else
7399 debug=""
7403 if test "$debug" = "" -o "$debug" = "no"; then
7404 debug="none"
7405 elif test "$debug" = "yes"; then
7406 debug="all"
7409 if test "$debug" = "all" ; then
7410 debug="messages stack modules symbols"
7411 for d in $all_debug_types; do
7412 export aros_${d}_debug="1"
7413 done
7414 else
7415 for d in $all_debug_types; do
7416 export aros_${d}_debug="0"
7417 done
7420 if test "$debug" != "none"; then
7421 debug=`echo $debug | sed s/,/\ /g`
7422 for d in $debug; do
7423 found="0"
7424 for d2 in $all_debug_types; do
7425 if test "$d2" = "$d"; then
7426 found="1"
7427 break
7429 done
7430 if test "$found" = "0"; then
7431 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7433 export aros_${d}_debug="1"
7434 done
7435 aros_debug="yes"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7438 $as_echo "$debug" >&6; }
7440 if test "$aros_messages_debug" = "1"; then
7441 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7442 else
7443 aros_messages_debug=""
7445 if test "$aros_symbols_debug" = "1"; then
7446 aros_symbols_debug="-g"
7447 else
7448 aros_symbols_debug=""
7451 # These are the flags to pass when compiling debugged programs
7452 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7453 aros_debug_aflags=""
7454 aros_debug_ldflags="$aros_symbols_debug"
7456 #-----------------------------------------------------------------------------
7457 # Checking for distcc and ccache.
7459 # Always apply the transforms in this particular order. Basically you should
7460 # always run 'ccache distcc compiler' in that order for the best performance.
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7463 $as_echo_n "checking whether to enable distcc... " >&6; }
7464 # Check whether --enable-distcc was given.
7465 if test "${enable_distcc+set}" = set; then :
7466 enableval=$enable_distcc; distcc="$enableval"
7467 else
7468 distcc="no"
7471 if test "$distcc" != "" -a "$distcc" != "no"; then
7472 # AC_CHECK_PROG will print out the result in this case
7473 # Extract the first word of "distcc", so it can be a program name with args.
7474 set dummy distcc; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_path_DISTCC+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 case $DISTCC in
7481 [\\/]* | ?:[\\/]*)
7482 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7500 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7502 esac
7504 DISTCC=$ac_cv_path_DISTCC
7505 if test -n "$DISTCC"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7507 $as_echo "$DISTCC" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7520 $as_echo_n "checking whether to enable ccache... " >&6; }
7521 # Check whether --enable-ccache was given.
7522 if test "${enable_ccache+set}" = set; then :
7523 enableval=$enable_ccache; ccache="$enableval"
7524 else
7525 ccache="no"
7528 if test "$ccache" != "" -a "$ccache" != "no"; then
7529 # AC_CHECK_PROG will print out the result in this case
7530 # Extract the first word of "ccache", so it can be a program name with args.
7531 set dummy ccache; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_CCACHE+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$CCACHE"; then
7538 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_CCACHE="ccache"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7551 done
7552 done
7553 IFS=$as_save_IFS
7557 CCACHE=$ac_cv_prog_CCACHE
7558 if test -n "$CCACHE"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7560 $as_echo "$CCACHE" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7572 #-----------------------------------------------------------------------------
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7574 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7576 # Check whether --with-kernel-gcc-version was given.
7577 if test "${with_kernel_gcc_version+set}" = set; then :
7578 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7579 else
7580 kernel_tool_version=""
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7584 $as_echo "$kernel_tool_version" >&6; }
7586 #-----------------------------------------------------------------------------
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7588 $as_echo_n "checking what optimization flags to use... " >&6; }
7590 # Check whether --with-optimization was given.
7591 if test "${with_optimization+set}" = set; then :
7592 withval=$with_optimization; optimization="$withval"
7593 else
7594 optimization="unknown"
7597 if test "$optimization" = "unknown"; then
7598 if test "$debug" != "none"; then
7599 optimization="-O0"
7600 else
7601 optimization="-O2"
7604 aros_optimization_cflags="$optimization"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7606 $as_echo "$optimization" >&6; }
7608 #-----------------------------------------------------------------------------
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7610 $as_echo_n "checking what paranoia flags to use... " >&6; }
7612 # Check whether --with-paranoia was given.
7613 if test "${with_paranoia+set}" = set; then :
7614 withval=$with_paranoia; paranoia_flags="$withval"
7615 else
7616 paranoia_flags="default"
7619 if test "$paranoia_flags" = "default"; then
7620 paranoia_flags=""
7621 else if test "$paranoia_flags" = "yes"; then
7622 paranoia_flags="-Wall -Werror"
7623 fi fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7625 $as_echo "$paranoia_flags" >&6; }
7626 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7628 #-----------------------------------------------------------------------------
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7630 $as_echo_n "checking what target variant to enable... " >&6; }
7631 # Check whether --enable-target_variant was given.
7632 if test "${enable_target_variant+set}" = set; then :
7633 enableval=$enable_target_variant; target_variant=$enableval
7634 else
7635 target_variant=""
7638 if test "$target_variant" = ""; then
7639 aros_target_variant=""
7640 aros_target_suffix=""
7641 enableval="none"
7642 else
7643 aros_target_variant="$target_variant"
7644 aros_target_suffix="-$target_variant"
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7647 $as_echo "$enableval" >&6; }
7649 #-----------------------------------------------------------------------------
7650 # Target-specific defaults. You can override then on a per-target basis.
7652 # Bootloader name. Currently used by PC target.
7653 target_bootloader="none"
7655 #-----------------------------------------------------------------------------
7656 # Additional options for some specific targets
7658 case "$aros_target_variant" in
7659 ios)
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7661 $as_echo_n "checking XCode path... " >&6; }
7663 # Check whether --with-xcode was given.
7664 if test "${with_xcode+set}" = set; then :
7665 withval=$with_xcode; aros_xcode_path="$withval"
7666 else
7667 aros_xcode_path="/Developer"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7671 $as_echo "$aros_xcode_path" >&6; }
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7674 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7676 # Check whether --with-sdk-version was given.
7677 if test "${with_sdk_version+set}" = set; then :
7678 withval=$with_sdk_version; aros_sdk_version="$withval"
7679 else
7680 aros_sdk_version="4.1"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7684 $as_echo "$aros_sdk_version" >&6; }
7688 "android")
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7690 $as_echo_n "checking Android SDK path... " >&6; }
7692 # Check whether --with-sdk was given.
7693 if test "${with_sdk+set}" = set; then :
7694 withval=$with_sdk; aros_android_sdk="$withval"
7695 else
7696 aros_android_sdk=$default_android_sdk
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7700 $as_echo "$aros_android_sdk" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7703 $as_echo_n "checking Android NDK path... " >&6; }
7705 # Check whether --with-ndk was given.
7706 if test "${with_ndk+set}" = set; then :
7707 withval=$with_ndk; aros_android_ndk="$withval"
7708 else
7709 aros_android_ndk="none"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7713 $as_echo "$aros_android_ndk" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7716 $as_echo_n "checking what Android SDK version to use... " >&6; }
7718 # Check whether --with-sdk-version was given.
7719 if test "${with_sdk_version+set}" = set; then :
7720 withval=$with_sdk_version; aros_sdk_version="$withval"
7721 else
7722 aros_sdk_version="12"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7726 $as_echo "$aros_sdk_version" >&6; }
7728 aros_android_level=android-$aros_sdk_version
7729 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7730 echo "Platform $aros_android_level is not installed in your SDK"
7731 echo "Use --with-sdk-version=<API level number> to select another platform version"
7732 echo "You can check what plaform versions are installed in your SDK"
7733 echo "by examining contents of $aros_android_sdk/platforms directory"
7734 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7737 export PATH="$aros_android_sdk/tools:$PATH"
7738 # Extract the first word of "$android_tool", so it can be a program name with args.
7739 set dummy $android_tool; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_android_tool+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 case $android_tool in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7766 esac
7768 android_tool=$ac_cv_path_android_tool
7769 if test -n "$android_tool"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7771 $as_echo "$android_tool" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7778 if test "$android_tool" = ""; then
7779 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7782 if test "$aros_android_ndk" != "none"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7784 $as_echo_n "checking what Android NDK version to use... " >&6; }
7786 # Check whether --with-ndk-version was given.
7787 if test "${with_ndk_version+set}" = set; then :
7788 withval=$with_ndk_version; aros_ndk_version="$withval"
7789 else
7790 aros_ndk_version="9"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7794 $as_echo "$aros_ndk_version" >&6; }
7797 # Extract the first word of "ant", so it can be a program name with args.
7798 set dummy ant; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_path_ant+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 case $ant in
7805 [\\/]* | ?:[\\/]*)
7806 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7820 done
7821 done
7822 IFS=$as_save_IFS
7825 esac
7827 ant=$ac_cv_path_ant
7828 if test -n "$ant"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7830 $as_echo "$ant" >&6; }
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7837 if test "$ant" = ""; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7839 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7843 $as_echo_n "checking Build debug or release apk... " >&6; }
7845 # Check whether --with-apk-version was given.
7846 if test "${with_apk_version+set}" = set; then :
7847 withval=$with_apk_version; aros_android_antapk=$withval
7848 else
7849 aros_android_antapk=release
7852 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7853 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7856 $as_echo "$aros_android_antapk" >&6; }
7858 if test "$host_os" = "mingw32"; then
7859 android_tool="cmd //c $android_tool"
7862 need_dlopen="no"
7865 esac
7867 #-----------------------------------------------------------------------------
7868 # External toolchains
7869 kernel_tool_prefix="none"
7870 aros_tool_prefix="none"
7871 elf_tool_prefix="${target_cpu}-elf-"
7873 # This is the target configuration switch.
7874 case "$target_os" in
7875 linux*)
7876 aros_target_arch="linux"
7877 aros_target_family="unix"
7878 case "$target_cpu" in
7879 *m68k*)
7880 aros_target_cpu="m68k"
7881 aros_object_format="m68kelf"
7882 aros_flavour="emulcompat"
7883 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7884 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7885 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7886 gcc_target_cpu="mc68000"
7888 *i?86*)
7889 aros_target_cpu="i386"
7890 aros_object_format="elf_i386"
7891 aros_flavour="emulation"
7892 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7893 aros_kernel_ldflags="-Wl,-melf_i386"
7894 aros_default_wbdepth=8
7895 gcc_target_cpu="i386"
7896 pci_hidd_target="hidd-pci-linux"
7897 android_tool_dir_prefix="x86"
7898 android_tool_prefix="i686-android-linux"
7899 android_ndk_arch="x86"
7901 *x86_64*)
7902 aros_target_cpu="x86_64"
7903 aros_object_format="elf_x86_64"
7904 aros_flavour="emulation"
7905 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7906 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7907 aros_default_wbdepth=8
7908 pci_hidd_target="hidd-pci-linux"
7910 *powerpc*)
7911 aros_target_cpu="ppc"
7912 aros_object_format="elf32ppc"
7913 aros_flavour="emulation"
7914 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7915 aros_default_wbdepth=8
7916 gcc_target_cpu="ppc"
7918 # TODO
7919 # Same as powerpc, but I need this for the nightly build to work again.
7920 # Actually, the nightly should be made working with powerpc target.
7921 # That just was too much work for the moment, another week or two.
7922 *ppc*)
7923 aros_target_cpu="ppc"
7924 aros_object_format="elf32ppc"
7925 aros_flavour="emulation"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7927 aros_default_wbdepth=8
7928 gcc_target_cpu="ppc"
7930 *armhf*)
7931 aros_target_cpu="arm"
7932 target_cpu="arm"
7933 aros_object_format="armelf_aros"
7934 aros_flavour="emulation"
7935 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7936 gcc_target_cpu="arm"
7937 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7938 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7939 aros_arch_libs="-laeabi"
7940 gcc_default_float_abi="hard"
7941 android_tool_dir_prefix="arm-linux-androideabi"
7942 android_tool_prefix="arm-linux-androideabi"
7943 android_ndk_arch="arm"
7944 kernel_tool_prefix="arm-linux-gnueabihf-"
7946 *arm*)
7947 aros_target_cpu="arm"
7948 aros_object_format="armelf_aros"
7949 aros_flavour="emulation"
7950 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7951 gcc_target_cpu="arm"
7952 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7953 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7954 aros_arch_libs="-laeabi"
7955 android_tool_dir_prefix="arm-linux-androideabi"
7956 android_tool_prefix="arm-linux-androideabi"
7957 android_ndk_arch="arm"
7958 kernel_tool_prefix="arm-linux-gnueabi-"
7961 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7963 esac
7964 case "$aros_target_variant" in
7965 android)
7967 if test "$android_ndk_arch" = ""; then
7968 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7971 aros_default_wbwidth=320
7972 aros_default_wbheight=480
7973 if test "$aros_android_ndk" = "none"; then
7974 aros_kernel_cflags="-mandroid"
7975 aros_kernel_ldflags="-mandroid"
7976 CFLAGS="-mandroid"
7977 else
7978 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7979 kernel_tool_version=""
7980 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7981 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7982 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7983 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7984 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7986 need_x11=no
7987 unixgfx_hidd_target=kernel-hidd-androidgfx
7988 # Disable implicit PIC mode
7989 aros_target_cflags="$aros_target_cflags -fno-pic"
7990 kernel_tool_prefix="$android_tool_prefix-"
7992 esac
7996 aros_target_arch="pc"
7997 aros_shared_default="no"
7998 target_bootloader="grub2"
7999 case "$target_cpu" in
8000 *i?86*)
8001 aros_target_cpu="i386"
8004 if test "$aros_object_format" = "" ; then
8005 aros_object_format="elf_i386"
8007 aros_flavour="standalone"
8008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8009 aros_kernel_ldflags="-Wl,-melf_i386"
8010 aros_default_wbwidth=640
8011 aros_default_wbheight=480
8012 gcc_target_cpu="i386"
8014 *x86_64*)
8015 aros_target_cpu="x86_64"
8016 aros_serial_debug=1
8017 if test "$aros_object_format" = "" ; then
8018 aros_object_format="elf_x86_64"
8020 aros_flavour="standalone"
8021 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8022 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8023 aros_kernel_ldflags=""
8024 aros_default_wbwidth=640
8025 aros_default_wbheight=480
8028 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8030 esac
8033 prep)
8034 aros_target_arch="prep"
8035 aros_shared_default="no"
8036 aros_target_cpu="ppc"
8037 aros_object_format="elf32ppc"
8038 aros_flavour="ppcnative"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8040 aros_kernel_ldflags=""
8041 aros_default_wbwidth=640
8042 aros_default_wbheight=480
8043 gcc_target_cpu="ppc"
8046 freebsd*)
8047 aros_target_arch="freebsd"
8048 aros_target_family="unix"
8049 aros_target_cpu="i386"
8050 aros_flavour="emulation"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8052 gcc_target_cpu="i386"
8054 aros_target_strip_flags="-x"
8057 darwin*)
8058 aros_target_arch="darwin"
8059 aros_target_family="unix"
8060 aros_flavour="emulation"
8061 case "$target_cpu" in
8062 *i?86*)
8063 aros_ios_platform="iPhoneSimulator"
8064 aros_target_cpu="i386"
8065 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8066 aros_kernel_ldflags=""
8067 aros_macosx_version="10.4"
8068 aros_default_wbdepth=8
8069 gcc_target_cpu="i386"
8070 aros_object_format="elf_i386"
8071 aros_kernel_ar_flags="-cr"
8072 aros_target_strip_flags="-x"
8073 kernel_tool_flags="-m32"
8075 *x86_64*)
8076 aros_target_cpu="x86_64"
8077 aros_object_format="elf_x86_64"
8078 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8079 aros_macosx_version="10.6"
8080 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8081 aros_kernel_cflags="-m64"
8082 aros_kernel_ldflags="-m64"
8083 aros_target_cflags="-mcmodel=large"
8084 aros_default_wbdepth=8
8085 aros_kernel_ar="ar"
8086 aros_kernel_ar_flags="-cr"
8087 aros_kernel_ld="ld"
8088 aros_kernel_as="as"
8089 aros_kernel_ranlib="ranlib"
8090 aros_kernel_nm="nm"
8091 aros_kernel_strip="strip"
8092 kernel_tool_prefix="i686-apple-darwin10-"
8094 *ppc*)
8095 aros_target_cpu="ppc"
8096 aros_object_format="elf32ppc"
8097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8098 aros_kernel_ldflags=""
8099 aros_macosx_version="10.0"
8100 aros_default_wbdepth=8
8101 gcc_target_cpu="ppc"
8102 aros_kernel_ar="ar"
8103 aros_kernel_ar_flags="-cr"
8104 aros_kernel_ld="ld -arch ppc"
8105 aros_kernel_as="as -arch ppc"
8106 aros_kernel_ranlib="ranlib -arch ppc"
8107 aros_kernel_nm="nm -arch ppc"
8108 aros_kernel_strip="strip -arch ppc"
8109 kernel_tool_prefix="powerpc-apple-darwin10-"
8111 *arm*)
8112 aros_ios_platform="iPhoneOS"
8113 aros_target_cpu="arm"
8114 aros_object_format="armelf_aros"
8115 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8116 aros_arch_libs="-laeabi"
8117 aros_default_wbdepth=8
8118 gcc_target_cpu="arm"
8119 aros_kernel_ar="ar"
8120 aros_kernel_ar_flags="-cr"
8121 aros_kernel_ld="ld -arch arm"
8122 aros_kernel_ranlib="ranlib -arch arm"
8123 kernel_tool_prefix="arm-apple-darwin10-"
8124 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8127 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8129 esac
8130 case "$aros_target_variant" in
8131 ios)
8132 aros_ios_version="3.0"
8133 aros_default_wbwidth=320
8134 aros_default_wbheight=480
8135 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8136 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8137 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8138 need_x11=no
8139 # This is here because it may depend on iOS or SDK version
8140 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8141 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8142 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8145 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8146 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8148 esac
8151 dragonfly*)
8152 aros_target_arch="dragonfly"
8153 aros_target_family="unix"
8154 aros_flavour="emulation"
8155 case "$target_cpu" in
8156 *i?86*)
8157 aros_target_cpu="i386"
8158 aros_object_format="elf_i386"
8159 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8161 *x86_64*)
8162 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8163 aros_target_cpu="x86_64"
8164 aros_object_format="elf_x86_64"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8168 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8170 esac
8173 netbsd*)
8174 aros_target_arch="netbsd"
8175 aros_target_family="unix"
8176 case "$target_cpu" in
8177 *m68k*)
8178 aros_target_cpu="m68k"
8179 aros_object_format="m68kelf"
8180 aros_flavour="emulcompat"
8181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8182 gcc_target_cpu="mc68000"
8184 *i?86*)
8185 aros_target_cpu="i386"
8186 aros_object_format="elf_i386"
8187 aros_flavour="emulation"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8189 aros_default_wbdepth=8
8190 gcc_target_cpu="i386"
8193 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8195 esac
8196 aros_target_genmap="-Wl,-M -Xlinker >"
8197 aros_flavour="emulation"
8198 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8201 openbsd*)
8202 aros_target_arch="openbsd"
8203 aros_target_family="unix"
8204 case "$target_cpu" in
8205 *i?86*)
8206 aros_target_cpu="i386"
8207 aros_object_format="elf_i386"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8210 gcc_target_cpu="i386"
8213 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8215 esac
8216 aros_target_genmap="-Wl,-M -Xlinker >"
8217 aros_target_nm_flags="-u"
8218 aros_flavour="emulation"
8221 solaris*)
8222 aros_target_arch="solaris"
8223 aros_target_family="unix"
8224 case "$target_cpu" in
8225 *i?86*)
8226 aros_target_cpu="i386"
8227 aros_object_format="elf_i386"
8228 aros_flavour="emulation"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8230 aros_default_wbdepth=8
8231 gcc_target_cpu="i386"
8233 *sparc*)
8234 aros_target_cpu="sparc"
8235 aros_object_format="elf_sparc"
8236 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8237 gcc_target_cpu="sparc"
8240 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8242 esac
8243 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8244 aros_flavour="emulation"
8247 morphos*)
8248 aros_target_arch="morphos"
8249 aros_shared_default="no"
8250 aros_target_cpu="ppc"
8251 aros_object_format="elf_ppc"
8252 aros_flavour="nativecompat"
8253 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8254 gcc_target_cpu="ppc"
8257 sam440)
8258 aros_target_arch="sam440"
8259 aros_shared_default="no"
8260 aros_target_cpu="ppc"
8261 aros_object_format="elf32ppc"
8262 aros_flavour="ppcnative"
8263 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8264 aros_kernel_ldflags=""
8265 aros_default_wbwidth=1024
8266 aros_default_wbheight=768
8267 aros_default_wbdepth=24
8268 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8269 gcc_target_cpu="powerpc"
8272 efika)
8273 aros_target_arch="efika"
8274 aros_shared_default="no"
8275 aros_target_cpu="arm"
8276 aros_object_format="armelf_aros"
8277 aros_flavour="standalone"
8278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8279 aros_kernel_ldflags=""
8280 aros_default_wbwidth=1024
8281 aros_default_wbheight=600
8282 aros_arch_libs="-laeabi"
8283 gcc_default_cpu="armv7-a"
8284 gcc_default_fpu="vfpv3"
8285 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8286 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8287 aros_optimization_cflags="$aros_optimization_cflags -Os"
8288 case "$target_cpu" in
8289 *armhf*)
8290 gcc_default_float_abi="hard"
8291 target_cpu=arm
8292 aros_target_cpu=arm
8294 *arm*)
8295 gcc_default_float_abi="softfp"
8298 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8300 esac
8303 chrp)
8304 aros_target_arch="chrp"
8305 aros_shared_default="no"
8306 aros_target_cpu="ppc"
8307 aros_object_format="elf32ppc"
8308 aros_flavour="ppcnative"
8309 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8310 aros_kernel_ldflags=""
8311 aros_default_wbwidth=640
8312 aros_default_wbheight=480
8313 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8314 gcc_target_cpu="powerpc"
8315 case "$aros_target_variant" in
8316 efika)
8317 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8319 esac
8322 r*pi)
8323 aros_flavour="standalone"
8324 aros_target_arch="raspi"
8325 aros_target_cpu="arm"
8326 aros_object_format="armelf_aros"
8327 aros_shared_default="no"
8328 aros_arch_libs="-laeabi"
8330 gcc_default_cpu="armv6"
8331 gcc_default_cpu_tune="arm1176jzf-s"
8332 case "$target_cpu" in
8333 *armhf*)
8334 gcc_default_float_abi="hard"
8336 *arm*)
8337 gcc_default_float_abi="softfp"
8340 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8342 esac
8344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8345 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8346 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8348 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8351 sun4i)
8352 aros_flavour="standalone"
8353 aros_target_arch="sun4i"
8354 aros_target_cpu="arm"
8355 aros_object_format="armelf_aros"
8356 aros_shared_default="no"
8357 aros_arch_libs="-laeabi"
8359 gcc_default_cpu="armv7-a"
8360 gcc_default_fpu="neon"
8361 gcc_default_cpu_tune="cortex-a8"
8362 gcc_default_float_abi="hard"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8365 aros_optimization_cflags=""
8366 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8367 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8370 amiga*)
8371 aros_target_arch="amiga"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8373 aros_shared_default="no"
8375 case "$target_cpu" in
8376 *m68k*)
8377 # Check whether --enable-amigaos_compliance was given.
8378 if test "${enable_amigaos_compliance+set}" = set; then :
8379 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8382 aros_enable_mmu=no
8383 aros_target_cpu="m68k"
8384 aros_object_format="m68kelf"
8385 aros_flavour="standcompat"
8386 gcc_target_cpu="m68000"
8387 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8388 aros_optimization_cflags="$aros_optimization_cflags -Os"
8389 aros_config_aflags="$aros_config_aflags"
8390 aros_target_strip_flags="-R.comment --strip-debug"
8391 aros_default_wbwidth=640
8392 aros_default_wbheight=256
8393 aros_default_wbdepth=2
8395 *ppc*)
8396 aros_cpu="ppc"
8397 aros_flavour="native"
8398 gcc_target_cpu="ppc"
8401 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8403 esac
8406 mingw*)
8407 aros_target_arch="mingw32"
8408 aros_shared_default="no"
8409 aros_flavour="emulation"
8410 aros_shared_cflags=""
8411 need_crosstools="yes"
8412 need_dlopen="no"
8413 rescomp="windres"
8414 case "$target_cpu" in
8415 *i?86*)
8416 aros_target_cpu="i386"
8417 aros_object_format="elf_i386"
8418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8419 aros_default_wbdepth=8
8420 gcc_target_cpu="i386"
8422 kernel_tool_prefix="i386-mingw32-"
8424 *x86_64*)
8425 aros_target_cpu="x86_64"
8426 aros_object_format="elf_x86_64"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8428 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8429 aros_default_wbdepth=8
8430 kernel_tool_prefix="x86_64-w64-mingw32-"
8432 *arm*)
8433 aros_target_cpu="arm"
8434 aros_object_format="armelf_aros"
8435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8436 aros_arch_libs="-laeabi"
8437 aros_default_wbdepth=8
8438 gcc_target_cpu="arm"
8439 gcc_default_float_abi="soft"
8440 kernel_tool_prefix="arm-mingw32ce-"
8441 aros_default_wbwidth=160
8442 aros_default_wbheight=160
8445 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8447 esac
8448 if test $host_os = "cygwin"; then
8449 aros_kernel_cflags="-mno-cygwin"
8452 pp*)
8453 aros_target_arch="pp"
8454 aros_shared_default="no"
8455 case "$target_cpu" in
8456 *m68k*)
8457 aros_target_cpu="m68k"
8458 aros_object_format="m68kelf"
8459 aros_flavour="palmnative"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8461 aros_default_wbwidth=160
8462 aros_default_wbheight=160
8463 aros_default_wbdepth=1
8464 aros_target_ar_flags="cru"
8465 aros_compiler_libs="-lgcc1"
8466 aros_shared_default=no
8467 aros_shared_cflags="-fpic"
8468 aros_shared_aflags=""
8469 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8470 aros_kernel_ldflags="-Wl,-rpath,./lib"
8471 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8472 aros_debug_aflags=""
8473 aros_debug_ldflags="$aros_symbols_debug"
8474 aros_mungwall_debug="0"
8475 aros_modules_debug="0"
8476 gcc_target_cpu="mc68000"
8477 ignore_undefined_symbols="-ius"
8480 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8482 esac
8485 mac*)
8486 aros_target_arch="mac"
8487 aros_shared_default="no"
8488 case "$target_cpu" in
8489 *m68k*)
8490 aros_target_cpu="m68k"
8491 aros_object_format="m68kelf"
8492 aros_flavour="mac68knative"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8494 aros_default_wbwidth=512
8495 aros_default_wbheight=384
8496 aros_default_wbdepth=8
8497 aros_target_ar_flags="cru"
8498 aros_compiler_libs="-lgcc1"
8499 aros_shared_default=no
8500 aros_shared_cflags="-fpic"
8501 aros_shared_aflags=""
8502 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8503 aros_kernel_ldflags="-Wl,-rpath,./lib"
8504 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8505 aros_debug_aflags=""
8506 aros_debug_ldflags="$aros_symbols_debug"
8507 aros_mungwall_debug="0"
8508 aros_modules_debug="0"
8509 gcc_target_cpu="mc68000"
8510 ignore_undefined_symbols="-ius"
8513 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8515 esac
8519 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8521 esac
8523 #-----------------------------------------------------------------------------
8524 crosstools_guess=yes
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8527 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8529 # Check whether --with-kernel-toolchain-prefix was given.
8530 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8531 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8535 $as_echo "$kernel_tool_prefix" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8538 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8540 # Check whether --with-elf-toolchain-prefix was given.
8541 if test "${with_elf_toolchain_prefix+set}" = set; then :
8542 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8543 crosstools_guess=no
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8547 $as_echo "$elf_tool_prefix" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8550 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8552 # Check whether --with-aros-toolchain was given.
8553 if test "${with_aros_toolchain+set}" = set; then :
8554 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8555 crosstools_guess=no
8558 if test "$aros_tool_prefix" = "yes" ; then
8559 aros_tool_prefix=$aros_target_cpu-aros-
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8562 $as_echo "$aros_tool_prefix" >&6; }
8564 #-----------------------------------------------------------------------------
8565 # Checking if we should build crosstools..
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8567 $as_echo_n "checking whether to build crosstools... " >&6; }
8568 # Check whether --enable-crosstools was given.
8569 if test "${enable_crosstools+set}" = set; then :
8570 enableval=$enable_crosstools; crosstools="$enableval"
8571 else
8572 crosstools="$crosstools_guess"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8576 $as_echo "$crosstools" >&6; }
8578 if test "${crosstools}" = "yes"; then
8579 if test "${crosstools_guess}" = "no"; then
8580 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8585 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8587 # Check whether --with-aros-toolchain-install was given.
8588 if test "${with_aros_toolchain_install+set}" = set; then :
8589 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8592 if test "x$aros_toolchain_install" = "x"; then
8593 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8594 else
8595 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8596 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8599 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8601 # Helper to identify gcc version
8604 #-----------------------------------------------------------------------------
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8606 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8608 # Check whether --with-gcc-version was given.
8609 if test "${with_gcc_version+set}" = set; then :
8610 withval=$with_gcc_version; use_gcc_version="$withval"
8611 else
8612 use_gcc_version=""
8615 if test "$use_gcc_version" = ""; then
8616 if test "${crosstools}" = "no"; then
8617 if test "x$aros_toolchain_install" != "x"; then
8619 target_gcc_version=""
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8621 $as_echo_n "checking gcc version... " >&6; }
8622 if ${ax_cv_gcc_version+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8626 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8627 if test "x$ax_cv_gcc_version" = "x"; then :
8629 ax_cv_gcc_version=""
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8635 $as_echo "$ax_cv_gcc_version" >&6; }
8636 target_gcc_version=$ax_cv_gcc_version
8641 if test "$use_gcc_version" = ""; then
8642 target_gcc_version="4.6.4"
8644 else
8645 target_gcc_version="$use_gcc_version"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8648 $as_echo "$target_gcc_version" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8651 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8652 # Check whether --enable-objc was given.
8653 if test "${enable_objc+set}" = set; then :
8654 enableval=$enable_objc; objc="$enableval"
8655 else
8656 objc="yes"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8660 $as_echo "$objc" >&6; }
8661 if test "x$objc" = "xyes"; then
8662 objc_target="$objc"
8663 else
8664 objc_target="no-objc"
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8668 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8669 # Check whether --enable-java was given.
8670 if test "${enable_java+set}" = set; then :
8671 enableval=$enable_java; java="$enableval"
8672 else
8673 java="no"
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8677 $as_echo "$java" >&6; }
8678 if test "x$java" != "xno"; then
8679 java_target="$java"
8680 else
8681 java_target="no-java"
8684 spec_obj_format="-m $aros_object_format"
8685 # Now process extra architecture-specific options.
8686 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8687 # as well as floating-point ABI.
8688 case "$aros_target_cpu" in
8689 *x86_64*)
8690 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8692 arm)
8693 if test "$gcc_default_cpu" = ""; then
8694 gcc_default_cpu="armv6"
8696 if test "$gcc_default_fpu" = ""; then
8697 gcc_default_fpu="vfp"
8699 if test "$gcc_default_float_abi" = ""; then
8700 gcc_default_float_abi="softfp"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8704 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8706 # Check whether --with-cpu was given.
8707 if test "${with_cpu+set}" = set; then :
8708 withval=$with_cpu; aros_gcc_cpu="$withval"
8709 else
8710 aros_gcc_cpu=$gcc_default_cpu
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8714 $as_echo "$aros_gcc_cpu" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8717 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8719 # Check whether --with-fpu was given.
8720 if test "${with_fpu+set}" = set; then :
8721 withval=$with_fpu; aros_gcc_fpu="$withval"
8722 else
8723 aros_gcc_fpu=$gcc_default_fpu
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8727 $as_echo "$aros_gcc_fpu" >&6; }
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8730 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8732 # Check whether --with-float was given.
8733 if test "${with_float+set}" = set; then :
8734 withval=$with_float; aros_gcc_float_abi="$withval"
8735 else
8736 aros_gcc_float_abi=$gcc_default_float_abi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8740 $as_echo "$aros_gcc_float_abi" >&6; }
8742 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8743 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8744 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8746 i386)
8747 aros_isa_flags="-m32 -march=i486"
8748 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8749 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8751 esac
8753 # Some architectures may need custom ELF specs.
8754 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8755 elf_specs_in=config/${aros_object_format}-specs.in
8756 else
8757 elf_specs_in=config/elf-specs.in
8760 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8761 # Since we override specs, we may need to put these defines there
8762 if test "$gcc_target_cpu" != ""; then
8763 gcc_target_cpu="-D__${gcc_target_cpu}__"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8767 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8769 # Check whether --with-portssources was given.
8770 if test "${with_portssources+set}" = set; then :
8771 withval=$with_portssources; with_portssrcdir=$withval
8772 else
8773 with_portssrcdir="default"
8776 if test "$with_portssrcdir" = "default"; then
8777 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8778 else
8779 AROS_PORTSSRCDIR="$with_portssrcdir"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8782 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8785 $as_echo_n "checking which bootloader to use... " >&6; }
8787 # Check whether --with-bootloader was given.
8788 if test "${with_bootloader+set}" = set; then :
8789 withval=$with_bootloader; target_bootloader=$withval
8790 else
8791 target_bootloader=$target_bootloader
8794 if test "$target_bootloader" = "none"; then
8795 aros_target_bootloader=""
8796 else
8797 aros_target_bootloader="$target_bootloader"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8800 $as_echo "$target_bootloader" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8803 $as_echo_n "checking which icon-set to use... " >&6; }
8805 # Check whether --with-iconset was given.
8806 if test "${with_iconset+set}" = set; then :
8807 withval=$with_iconset; target_iconset=$withval
8808 else
8809 target_iconset="default"
8812 if test "$target_iconset" = "default"; then
8813 aros_target_iconset="Gorilla"
8814 target_iconset="default (Gorilla)"
8815 else
8816 aros_target_iconset="$target_iconset"
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8819 $as_echo "$target_iconset" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8822 $as_echo_n "checking which GUI Theme to use... " >&6; }
8824 # Check whether --with-theme was given.
8825 if test "${with_theme+set}" = set; then :
8826 withval=$with_theme; target_guitheme=$withval
8827 else
8828 target_guitheme="default"
8831 if test "$target_guitheme" = "default"; then
8832 aros_target_guitheme="Ice"
8833 else
8834 aros_target_guitheme="$target_guitheme"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8837 $as_echo "$aros_target_guitheme" >&6; }
8839 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8840 # for target code)
8841 cross_compiling=no
8843 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8844 cross_compiling=yes
8847 if test "$aros_host_cpu" == "x86_64" ; then
8848 if test "$aros_target_cpu" == "i386" ; then
8849 cross_compiling=no
8853 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8854 if test "$aros_host_arch" != "$aros_target_arch" ; then
8855 cross_compiling=yes
8857 else
8858 if test "$host_cc_elf" = "no" ; then
8859 cross_compiling=yes
8863 if test "$cross_compiling" = "no" ; then
8864 kernel_tool_prefix=""
8865 if test "$host_cc_elf" = "yes" ; then
8866 elf_tool_prefix=""
8870 if test "$kernel_tool_version" != ""; then
8871 kernel_tool_version="-$kernel_tool_version"
8874 #######################################################################
8875 ## Compute what toolchains to use, and their paths ##
8876 #######################################################################
8878 # This takes, as input:
8879 # crosstools {yes,no}
8880 # kernel_tool_version {"",[version]}
8881 # target_tool_version {"",[version]}
8882 # kernel_tool_prefix {none,[some-arch-os-]}
8883 # target_tool_prefix ${aros_target_cpu}-aros-
8884 # aros_tool_prefix ${aros_target_cpu}-aros-
8886 # The output is
8887 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8888 # Where the 'kernel' binaries are located
8889 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8890 # Where the 'target' binaries are located
8891 # (not the symlink farm - that is aros_target_*!)
8893 # The rules are:
8894 # if crosstools then
8895 # if kernel_tools_prefix = "no-kernel-prefix-"
8896 # aros_kernel_* = crosstools cc paths
8897 # aros_kernel_cc = elf cc wrapper around crosstools cc
8898 # else
8899 # VALIDATE(${kernel_tools_prefix}*)
8900 # aros_kernel_* = ${kernel_tools_prefix}*
8901 # if ${kernel_tools_prefix}cc is an AROS gcc
8902 # aros_kernel_cc = ${kernel_tools_prefix}cc
8903 # else
8904 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8905 # fi
8906 # fi
8908 # orig_target_* = aros built crosstools
8909 # orig_target_cc = elf cc wrapper around crosstools cc
8910 # else
8911 # VALIDATE(${kernel_tools_prefix}*)
8913 # orig_target_* = aros_kernel_*
8914 # if aros_kernel_cc is an AROS gcc
8915 # orig_target_cc = aros_kernel_cc
8916 # else
8917 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8918 # fi
8919 # fi
8921 target_tool_prefix="${aros_target_cpu}-aros-"
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8924 $as_echo_n "checking which kernel tools... " >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8926 $as_echo "$kernel_tool_prefix" >&6; };
8928 if test "$kernel_tool_prefix" = "none" ; then
8929 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8930 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8932 else
8933 # Kernel tools required - find them
8934 # Note that 'normally', aros_kernel_* overrides will be
8935 # empty, unless specified in the per-arch sections above.
8936 if test "x$aros_kernel_cpp" = "x"; then
8937 aros_kernel_cpp=${kernel_tool_prefix}cpp
8940 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8941 if test "$cross_compiling" = "yes" ; then
8942 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8943 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 case $aros_kernel_cpp in
8950 [\\/]* | ?:[\\/]*)
8951 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8957 IFS=$as_save_IFS
8958 test -z "$as_dir" && as_dir=.
8959 for ac_exec_ext in '' $ac_executable_extensions; do
8960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8961 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 break 2
8965 done
8966 done
8967 IFS=$as_save_IFS
8970 esac
8972 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8973 if test -n "$aros_kernel_cpp"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8975 $as_echo "$aros_kernel_cpp" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8982 else
8983 if test "$GCC" = "yes"; then
8984 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8985 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8986 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 case $aros_kernel_cpp in
8993 [\\/]* | ?:[\\/]*)
8994 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in `dirname $aros_gcc_cpp`
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9013 esac
9015 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9016 if test -n "$aros_kernel_cpp"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9018 $as_echo "$aros_kernel_cpp" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9026 if test "$aros_kernel_cpp" = ""; then
9027 # Extract the first word of "cpp", so it can be a program name with args.
9028 set dummy cpp; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 case $aros_kernel_cpp in
9035 [\\/]* | ?:[\\/]*)
9036 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 break 2
9050 done
9051 done
9052 IFS=$as_save_IFS
9055 esac
9057 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9058 if test -n "$aros_kernel_cpp"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9060 $as_echo "$aros_kernel_cpp" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9069 else
9070 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9071 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 case $aros_kernel_cpp in
9078 [\\/]* | ?:[\\/]*)
9079 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9089 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9093 done
9094 done
9095 IFS=$as_save_IFS
9098 esac
9100 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9101 if test -n "$aros_kernel_cpp"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9103 $as_echo "$aros_kernel_cpp" >&6; }
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9112 if test "$aros_kernel_cpp" = ""; then
9113 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9115 if test "x$aros_kernel_cc" = "x"; then
9116 aros_kernel_cc=${kernel_tool_prefix}gcc
9119 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9120 if test "$cross_compiling" = "yes" ; then
9121 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9122 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 case $aros_kernel_cc in
9129 [\\/]* | ?:[\\/]*)
9130 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9136 IFS=$as_save_IFS
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 break 2
9144 done
9145 done
9146 IFS=$as_save_IFS
9149 esac
9151 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9152 if test -n "$aros_kernel_cc"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9154 $as_echo "$aros_kernel_cc" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9161 else
9162 if test "$GCC" = "yes"; then
9163 aros_gcc_cc=`$CC -print-prog-name=cc`
9164 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9165 set dummy `basename $aros_gcc_cc`; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 case $aros_kernel_cc in
9172 [\\/]* | ?:[\\/]*)
9173 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in `dirname $aros_gcc_cc`
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9187 done
9188 done
9189 IFS=$as_save_IFS
9192 esac
9194 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9195 if test -n "$aros_kernel_cc"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9197 $as_echo "$aros_kernel_cc" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9205 if test "$aros_kernel_cc" = ""; then
9206 # Extract the first word of "cc", so it can be a program name with args.
9207 set dummy cc; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 case $aros_kernel_cc in
9214 [\\/]* | ?:[\\/]*)
9215 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9225 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9229 done
9230 done
9231 IFS=$as_save_IFS
9234 esac
9236 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9237 if test -n "$aros_kernel_cc"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9239 $as_echo "$aros_kernel_cc" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9248 else
9249 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9250 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 case $aros_kernel_cc in
9257 [\\/]* | ?:[\\/]*)
9258 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9272 done
9273 done
9274 IFS=$as_save_IFS
9277 esac
9279 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9280 if test -n "$aros_kernel_cc"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9282 $as_echo "$aros_kernel_cc" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9291 if test "$aros_kernel_cc" = ""; then
9292 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9294 if test "x$aros_kernel_cxx" = "x"; then
9295 aros_kernel_cxx=${kernel_tool_prefix}g++
9298 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9299 if test "$cross_compiling" = "yes" ; then
9300 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9301 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 case $aros_kernel_cxx in
9308 [\\/]* | ?:[\\/]*)
9309 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9323 done
9324 done
9325 IFS=$as_save_IFS
9328 esac
9330 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9331 if test -n "$aros_kernel_cxx"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9333 $as_echo "$aros_kernel_cxx" >&6; }
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9340 else
9341 if test "$GCC" = "yes"; then
9342 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9343 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9344 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 case $aros_kernel_cxx in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in `dirname $aros_gcc_cxx`
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9366 done
9367 done
9368 IFS=$as_save_IFS
9371 esac
9373 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9374 if test -n "$aros_kernel_cxx"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9376 $as_echo "$aros_kernel_cxx" >&6; }
9377 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9384 if test "$aros_kernel_cxx" = ""; then
9385 # Extract the first word of "cxx", so it can be a program name with args.
9386 set dummy cxx; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 case $aros_kernel_cxx in
9393 [\\/]* | ?:[\\/]*)
9394 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9408 done
9409 done
9410 IFS=$as_save_IFS
9413 esac
9415 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9416 if test -n "$aros_kernel_cxx"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9418 $as_echo "$aros_kernel_cxx" >&6; }
9419 else
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9427 else
9428 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9429 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 case $aros_kernel_cxx in
9436 [\\/]* | ?:[\\/]*)
9437 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9451 done
9452 done
9453 IFS=$as_save_IFS
9456 esac
9458 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9459 if test -n "$aros_kernel_cxx"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9461 $as_echo "$aros_kernel_cxx" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9470 # If it's set, make sure it's really there
9471 if test "x$aros_kernel_cxx" != "x" ; then
9472 if test "$aros_kernel_cxx" = ""; then
9473 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9477 if test "$aros_kernel_ld" = ""; then
9478 if test "$cross_compiling" = "yes" ; then
9479 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9480 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 case $aros_kernel_ld in
9487 [\\/]* | ?:[\\/]*)
9488 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9498 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9502 done
9503 done
9504 IFS=$as_save_IFS
9507 esac
9509 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9510 if test -n "$aros_kernel_ld"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9512 $as_echo "$aros_kernel_ld" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9519 else
9520 if test "$GCC" = "yes"; then
9521 aros_gcc_ld=`$CC -print-prog-name=ld`
9522 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9523 set dummy `basename $aros_gcc_ld`; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 case $aros_kernel_ld in
9530 [\\/]* | ?:[\\/]*)
9531 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in `dirname $aros_gcc_ld`
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9545 done
9546 done
9547 IFS=$as_save_IFS
9550 esac
9552 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9553 if test -n "$aros_kernel_ld"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9555 $as_echo "$aros_kernel_ld" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 if test "$aros_kernel_ld" = ""; then
9564 # Extract the first word of "ld", so it can be a program name with args.
9565 set dummy ld; ac_word=$2
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567 $as_echo_n "checking for $ac_word... " >&6; }
9568 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 case $aros_kernel_ld in
9572 [\\/]* | ?:[\\/]*)
9573 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9587 done
9588 done
9589 IFS=$as_save_IFS
9592 esac
9594 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9595 if test -n "$aros_kernel_ld"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9597 $as_echo "$aros_kernel_ld" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9606 else
9607 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9608 set dummy $aros_kernel_ld; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 case $aros_kernel_ld in
9615 [\\/]* | ?:[\\/]*)
9616 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9630 done
9631 done
9632 IFS=$as_save_IFS
9635 esac
9637 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9638 if test -n "$aros_kernel_ld"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9640 $as_echo "$aros_kernel_ld" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9649 if test "$aros_kernel_ld" = ""; then
9650 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9653 if test "$aros_kernel_as" = ""; then
9654 if test "$cross_compiling" = "yes" ; then
9655 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9656 set dummy ${kernel_tool_prefix}as; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if ${ac_cv_path_aros_kernel_as+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 case $aros_kernel_as in
9663 [\\/]* | ?:[\\/]*)
9664 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 for as_dir in $PATH
9670 IFS=$as_save_IFS
9671 test -z "$as_dir" && as_dir=.
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9674 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 break 2
9678 done
9679 done
9680 IFS=$as_save_IFS
9683 esac
9685 aros_kernel_as=$ac_cv_path_aros_kernel_as
9686 if test -n "$aros_kernel_as"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9688 $as_echo "$aros_kernel_as" >&6; }
9689 else
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 else
9696 if test "$GCC" = "yes"; then
9697 aros_gcc_as=`$CC -print-prog-name=as`
9698 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9699 set dummy `basename $aros_gcc_as`; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_path_aros_kernel_as+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 case $aros_kernel_as in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in `dirname $aros_gcc_as`
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9717 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_kernel_as=$ac_cv_path_aros_kernel_as
9729 if test -n "$aros_kernel_as"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9731 $as_echo "$aros_kernel_as" >&6; }
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9739 if test "$aros_kernel_as" = ""; then
9740 # Extract the first word of "as", so it can be a program name with args.
9741 set dummy as; ac_word=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if ${ac_cv_path_aros_kernel_as+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 case $aros_kernel_as in
9748 [\\/]* | ?:[\\/]*)
9749 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9759 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9763 done
9764 done
9765 IFS=$as_save_IFS
9768 esac
9770 aros_kernel_as=$ac_cv_path_aros_kernel_as
9771 if test -n "$aros_kernel_as"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9773 $as_echo "$aros_kernel_as" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9782 else
9783 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9784 set dummy $aros_kernel_as; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_as+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 case $aros_kernel_as in
9791 [\\/]* | ?:[\\/]*)
9792 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9806 done
9807 done
9808 IFS=$as_save_IFS
9811 esac
9813 aros_kernel_as=$ac_cv_path_aros_kernel_as
9814 if test -n "$aros_kernel_as"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9816 $as_echo "$aros_kernel_as" >&6; }
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9825 if test "$aros_kernel_as" = ""; then
9826 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9829 if test "$aros_kernel_ar" = ""; then
9830 if test "$cross_compiling" = "yes" ; then
9831 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9832 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 case $aros_kernel_ar in
9839 [\\/]* | ?:[\\/]*)
9840 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9859 esac
9861 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9862 if test -n "$aros_kernel_ar"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9864 $as_echo "$aros_kernel_ar" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9871 else
9872 if test "$GCC" = "yes"; then
9873 aros_gcc_ar=`$CC -print-prog-name=ar`
9874 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9875 set dummy `basename $aros_gcc_ar`; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 case $aros_kernel_ar in
9882 [\\/]* | ?:[\\/]*)
9883 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in `dirname $aros_gcc_ar`
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9902 esac
9904 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9905 if test -n "$aros_kernel_ar"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9907 $as_echo "$aros_kernel_ar" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9915 if test "$aros_kernel_ar" = ""; then
9916 # Extract the first word of "ar", so it can be a program name with args.
9917 set dummy ar; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 case $aros_kernel_ar in
9924 [\\/]* | ?:[\\/]*)
9925 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9944 esac
9946 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9947 if test -n "$aros_kernel_ar"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9949 $as_echo "$aros_kernel_ar" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9958 else
9959 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9960 set dummy $aros_kernel_ar; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 case $aros_kernel_ar in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9982 done
9983 done
9984 IFS=$as_save_IFS
9987 esac
9989 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9990 if test -n "$aros_kernel_ar"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9992 $as_echo "$aros_kernel_ar" >&6; }
9993 else
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
10001 if test "$aros_kernel_ar" = ""; then
10002 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10005 if test "$aros_kernel_ranlib" = ""; then
10006 if test "$cross_compiling" = "yes" ; then
10007 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10008 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 case $aros_kernel_ranlib in
10015 [\\/]* | ?:[\\/]*)
10016 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10030 done
10031 done
10032 IFS=$as_save_IFS
10035 esac
10037 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10038 if test -n "$aros_kernel_ranlib"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10040 $as_echo "$aros_kernel_ranlib" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10047 else
10048 if test "$GCC" = "yes"; then
10049 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10050 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10051 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_ranlib in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in `dirname $aros_gcc_ranlib`
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10081 if test -n "$aros_kernel_ranlib"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10083 $as_echo "$aros_kernel_ranlib" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 if test "$aros_kernel_ranlib" = ""; then
10092 # Extract the first word of "ranlib", so it can be a program name with args.
10093 set dummy ranlib; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 case $aros_kernel_ranlib in
10100 [\\/]* | ?:[\\/]*)
10101 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10115 done
10116 done
10117 IFS=$as_save_IFS
10120 esac
10122 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10123 if test -n "$aros_kernel_ranlib"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10125 $as_echo "$aros_kernel_ranlib" >&6; }
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10134 else
10135 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10136 set dummy $aros_kernel_ranlib; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 case $aros_kernel_ranlib in
10143 [\\/]* | ?:[\\/]*)
10144 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10158 done
10159 done
10160 IFS=$as_save_IFS
10163 esac
10165 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10166 if test -n "$aros_kernel_ranlib"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10168 $as_echo "$aros_kernel_ranlib" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10177 if test "$aros_kernel_ranlib" = ""; then
10178 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10181 if test "$aros_kernel_nm" = ""; then
10182 if test "$cross_compiling" = "yes" ; then
10183 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10184 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 case $aros_kernel_nm in
10191 [\\/]* | ?:[\\/]*)
10192 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10202 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10206 done
10207 done
10208 IFS=$as_save_IFS
10211 esac
10213 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10214 if test -n "$aros_kernel_nm"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10216 $as_echo "$aros_kernel_nm" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10223 else
10224 if test "$GCC" = "yes"; then
10225 aros_gcc_nm=`$CC -print-prog-name=nm`
10226 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10227 set dummy `basename $aros_gcc_nm`; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 case $aros_kernel_nm in
10234 [\\/]* | ?:[\\/]*)
10235 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in `dirname $aros_gcc_nm`
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10254 esac
10256 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10257 if test -n "$aros_kernel_nm"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10259 $as_echo "$aros_kernel_nm" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10267 if test "$aros_kernel_nm" = ""; then
10268 # Extract the first word of "nm", so it can be a program name with args.
10269 set dummy nm; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 case $aros_kernel_nm in
10276 [\\/]* | ?:[\\/]*)
10277 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10291 done
10292 done
10293 IFS=$as_save_IFS
10296 esac
10298 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10299 if test -n "$aros_kernel_nm"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10301 $as_echo "$aros_kernel_nm" >&6; }
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10310 else
10311 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10312 set dummy $aros_kernel_nm; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 case $aros_kernel_nm in
10319 [\\/]* | ?:[\\/]*)
10320 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10334 done
10335 done
10336 IFS=$as_save_IFS
10339 esac
10341 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10342 if test -n "$aros_kernel_nm"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10344 $as_echo "$aros_kernel_nm" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10353 if test "$aros_kernel_nm" = ""; then
10354 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10357 if test "$aros_kernel_strip" = ""; then
10358 if test "$cross_compiling" = "yes" ; then
10359 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10360 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 case $aros_kernel_strip in
10367 [\\/]* | ?:[\\/]*)
10368 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10382 done
10383 done
10384 IFS=$as_save_IFS
10387 esac
10389 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10390 if test -n "$aros_kernel_strip"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10392 $as_echo "$aros_kernel_strip" >&6; }
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10399 else
10400 if test "$GCC" = "yes"; then
10401 aros_gcc_strip=`$CC -print-prog-name=strip`
10402 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10403 set dummy `basename $aros_gcc_strip`; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 case $aros_kernel_strip in
10410 [\\/]* | ?:[\\/]*)
10411 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in `dirname $aros_gcc_strip`
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10427 IFS=$as_save_IFS
10430 esac
10432 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10433 if test -n "$aros_kernel_strip"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10435 $as_echo "$aros_kernel_strip" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10443 if test "$aros_kernel_strip" = ""; then
10444 # Extract the first word of "strip", so it can be a program name with args.
10445 set dummy strip; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 case $aros_kernel_strip in
10452 [\\/]* | ?:[\\/]*)
10453 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10467 done
10468 done
10469 IFS=$as_save_IFS
10472 esac
10474 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10475 if test -n "$aros_kernel_strip"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10477 $as_echo "$aros_kernel_strip" >&6; }
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10486 else
10487 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10488 set dummy $aros_kernel_strip; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 case $aros_kernel_strip in
10495 [\\/]* | ?:[\\/]*)
10496 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10515 esac
10517 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10518 if test -n "$aros_kernel_strip"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10520 $as_echo "$aros_kernel_strip" >&6; }
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10529 if test "$aros_kernel_strip" = ""; then
10530 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10533 # Objcopy and objdump are not required for the kernel
10534 # toolchain on many architectures.
10535 # So we'll look for them, but not make them strictly required.
10537 if test "$aros_kernel_objcopy" = ""; then
10538 if test "$cross_compiling" = "yes" ; then
10539 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10540 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 case $aros_kernel_objcopy in
10547 [\\/]* | ?:[\\/]*)
10548 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10562 done
10563 done
10564 IFS=$as_save_IFS
10567 esac
10569 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10570 if test -n "$aros_kernel_objcopy"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10572 $as_echo "$aros_kernel_objcopy" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10579 else
10580 if test "$GCC" = "yes"; then
10581 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10582 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10583 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 case $aros_kernel_objcopy in
10590 [\\/]* | ?:[\\/]*)
10591 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in `dirname $aros_gcc_objcopy`
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10607 IFS=$as_save_IFS
10610 esac
10612 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10613 if test -n "$aros_kernel_objcopy"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10615 $as_echo "$aros_kernel_objcopy" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10623 if test "$aros_kernel_objcopy" = ""; then
10624 # Extract the first word of "objcopy", so it can be a program name with args.
10625 set dummy objcopy; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 case $aros_kernel_objcopy in
10632 [\\/]* | ?:[\\/]*)
10633 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10647 done
10648 done
10649 IFS=$as_save_IFS
10652 esac
10654 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10655 if test -n "$aros_kernel_objcopy"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10657 $as_echo "$aros_kernel_objcopy" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10666 else
10667 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10668 set dummy $aros_kernel_objcopy; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 case $aros_kernel_objcopy in
10675 [\\/]* | ?:[\\/]*)
10676 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10690 done
10691 done
10692 IFS=$as_save_IFS
10695 esac
10697 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10698 if test -n "$aros_kernel_objcopy"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10700 $as_echo "$aros_kernel_objcopy" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10710 if test "$aros_kernel_objdump" = ""; then
10711 if test "$cross_compiling" = "yes" ; then
10712 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10713 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 case $aros_kernel_objdump in
10720 [\\/]* | ?:[\\/]*)
10721 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10735 done
10736 done
10737 IFS=$as_save_IFS
10740 esac
10742 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10743 if test -n "$aros_kernel_objdump"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10745 $as_echo "$aros_kernel_objdump" >&6; }
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10752 else
10753 if test "$GCC" = "yes"; then
10754 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10755 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10756 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $aros_kernel_objdump in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in `dirname $aros_gcc_objdump`
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10786 if test -n "$aros_kernel_objdump"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10788 $as_echo "$aros_kernel_objdump" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10796 if test "$aros_kernel_objdump" = ""; then
10797 # Extract the first word of "objdump", so it can be a program name with args.
10798 set dummy objdump; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 case $aros_kernel_objdump in
10805 [\\/]* | ?:[\\/]*)
10806 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10820 done
10821 done
10822 IFS=$as_save_IFS
10825 esac
10827 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10828 if test -n "$aros_kernel_objdump"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10830 $as_echo "$aros_kernel_objdump" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10839 else
10840 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10841 set dummy $aros_kernel_objdump; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 case $aros_kernel_objdump in
10848 [\\/]* | ?:[\\/]*)
10849 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10865 IFS=$as_save_IFS
10868 esac
10870 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10871 if test -n "$aros_kernel_objdump"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10873 $as_echo "$aros_kernel_objdump" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10882 if test "x${crosstools}" != "xyes" ; then
10883 if test "$aros_kernel_objcopy" = ""; then
10884 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10886 if test "$aros_kernel_objdump" = ""; then
10887 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10893 $as_echo_n "checking which target tools to use... " >&6; }
10894 if test "$crosstools" = "yes"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10896 $as_echo "$target_tool_prefix" >&6; }
10897 # We are building AROS crosstools
10898 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10899 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10900 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10901 orig_target_cpp="${tmp_tool_prefix}cpp"
10902 orig_target_ld="${tmp_tool_prefix}ld"
10903 orig_target_as="${tmp_tool_prefix}as"
10904 orig_target_ar="${tmp_tool_prefix}ar"
10905 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10906 orig_target_nm="${tmp_tool_prefix}nm"
10907 orig_target_strip="${tmp_tool_prefix}strip"
10908 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10909 orig_target_objdump="${tmp_tool_prefix}objdump"
10910 else
10911 # Determine whether AROS or ELF tools should be used
10912 if test "$aros_tool_prefix" = "none"; then
10913 aros_tool_prefix="${elf_tool_prefix}"
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10917 $as_echo "$aros_tool_prefix" >&6; }
10918 # We are *not* building AROS crosstools - use the AROS or ELF tools
10920 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10921 if test "$cross_compiling" = "yes" ; then
10922 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10923 set dummy ${target_tool_prefix}cpp; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_path_orig_target_cpp+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $orig_target_cpp in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10950 esac
10952 orig_target_cpp=$ac_cv_path_orig_target_cpp
10953 if test -n "$orig_target_cpp"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10955 $as_echo "$orig_target_cpp" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10962 else
10963 if test "$GCC" = "yes"; then
10964 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10965 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10966 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_orig_target_cpp+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $orig_target_cpp in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in `dirname $aros_gcc_cpp`
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10993 esac
10995 orig_target_cpp=$ac_cv_path_orig_target_cpp
10996 if test -n "$orig_target_cpp"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10998 $as_echo "$orig_target_cpp" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11006 if test "$orig_target_cpp" = ""; then
11007 # Extract the first word of "cpp", so it can be a program name with args.
11008 set dummy cpp; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_path_orig_target_cpp+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 case $orig_target_cpp in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11035 esac
11037 orig_target_cpp=$ac_cv_path_orig_target_cpp
11038 if test -n "$orig_target_cpp"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11040 $as_echo "$orig_target_cpp" >&6; }
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11049 else
11050 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11051 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if ${ac_cv_path_orig_target_cpp+:} false; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 case $orig_target_cpp in
11058 [\\/]* | ?:[\\/]*)
11059 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11073 done
11074 done
11075 IFS=$as_save_IFS
11078 esac
11080 orig_target_cpp=$ac_cv_path_orig_target_cpp
11081 if test -n "$orig_target_cpp"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11083 $as_echo "$orig_target_cpp" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11092 if test "$orig_target_cpp" = ""; then
11093 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11096 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11097 if test "$cross_compiling" = "yes" ; then
11098 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11099 set dummy ${target_tool_prefix}gcc; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_orig_target_cc+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 case $orig_target_cc in
11106 [\\/]* | ?:[\\/]*)
11107 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11126 esac
11128 orig_target_cc=$ac_cv_path_orig_target_cc
11129 if test -n "$orig_target_cc"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11131 $as_echo "$orig_target_cc" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11138 else
11139 if test "$GCC" = "yes"; then
11140 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11141 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11142 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if ${ac_cv_path_orig_target_cc+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 case $orig_target_cc in
11149 [\\/]* | ?:[\\/]*)
11150 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in `dirname $aros_gcc_gcc`
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11164 done
11165 done
11166 IFS=$as_save_IFS
11169 esac
11171 orig_target_cc=$ac_cv_path_orig_target_cc
11172 if test -n "$orig_target_cc"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11174 $as_echo "$orig_target_cc" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 if test "$orig_target_cc" = ""; then
11183 # Extract the first word of "gcc", so it can be a program name with args.
11184 set dummy gcc; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_path_orig_target_cc+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 case $orig_target_cc in
11191 [\\/]* | ?:[\\/]*)
11192 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11206 done
11207 done
11208 IFS=$as_save_IFS
11211 esac
11213 orig_target_cc=$ac_cv_path_orig_target_cc
11214 if test -n "$orig_target_cc"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11216 $as_echo "$orig_target_cc" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11225 else
11226 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11227 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_path_orig_target_cc+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 case $orig_target_cc in
11234 [\\/]* | ?:[\\/]*)
11235 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11245 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11249 done
11250 done
11251 IFS=$as_save_IFS
11254 esac
11256 orig_target_cc=$ac_cv_path_orig_target_cc
11257 if test -n "$orig_target_cc"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11259 $as_echo "$orig_target_cc" >&6; }
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11268 if test "$orig_target_cc" = ""; then
11269 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11272 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11273 if test "$cross_compiling" = "yes" ; then
11274 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11275 set dummy ${target_tool_prefix}g++; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if ${ac_cv_path_orig_target_cxx+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 case $orig_target_cxx in
11282 [\\/]* | ?:[\\/]*)
11283 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11297 done
11298 done
11299 IFS=$as_save_IFS
11302 esac
11304 orig_target_cxx=$ac_cv_path_orig_target_cxx
11305 if test -n "$orig_target_cxx"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11307 $as_echo "$orig_target_cxx" >&6; }
11308 else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11314 else
11315 if test "$GCC" = "yes"; then
11316 aros_gcc_g++=`$CC -print-prog-name=g++`
11317 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11318 set dummy `basename $aros_gcc_g++`; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if ${ac_cv_path_orig_target_cxx+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 case $orig_target_cxx in
11325 [\\/]* | ?:[\\/]*)
11326 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in `dirname $aros_gcc_g++`
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11340 done
11341 done
11342 IFS=$as_save_IFS
11345 esac
11347 orig_target_cxx=$ac_cv_path_orig_target_cxx
11348 if test -n "$orig_target_cxx"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11350 $as_echo "$orig_target_cxx" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11358 if test "$orig_target_cxx" = ""; then
11359 # Extract the first word of "g++", so it can be a program name with args.
11360 set dummy g++; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if ${ac_cv_path_orig_target_cxx+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 case $orig_target_cxx in
11367 [\\/]* | ?:[\\/]*)
11368 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11378 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11382 done
11383 done
11384 IFS=$as_save_IFS
11387 esac
11389 orig_target_cxx=$ac_cv_path_orig_target_cxx
11390 if test -n "$orig_target_cxx"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11392 $as_echo "$orig_target_cxx" >&6; }
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11401 else
11402 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11403 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405 $as_echo_n "checking for $ac_word... " >&6; }
11406 if ${ac_cv_path_orig_target_cxx+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 case $orig_target_cxx in
11410 [\\/]* | ?:[\\/]*)
11411 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11425 done
11426 done
11427 IFS=$as_save_IFS
11430 esac
11432 orig_target_cxx=$ac_cv_path_orig_target_cxx
11433 if test -n "$orig_target_cxx"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11435 $as_echo "$orig_target_cxx" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11444 if test "$orig_target_cxx" = ""; then
11445 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11448 if test "${aros_tool_prefix}ld" = ""; then
11449 if test "$cross_compiling" = "yes" ; then
11450 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11451 set dummy ${target_tool_prefix}gcc; ac_word=$2
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453 $as_echo_n "checking for $ac_word... " >&6; }
11454 if ${ac_cv_path_orig_target_ld+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 case $orig_target_ld in
11458 [\\/]* | ?:[\\/]*)
11459 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11469 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11473 done
11474 done
11475 IFS=$as_save_IFS
11478 esac
11480 orig_target_ld=$ac_cv_path_orig_target_ld
11481 if test -n "$orig_target_ld"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11483 $as_echo "$orig_target_ld" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11490 else
11491 if test "$GCC" = "yes"; then
11492 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11493 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11494 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_path_orig_target_ld+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 case $orig_target_ld in
11501 [\\/]* | ?:[\\/]*)
11502 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in `dirname $aros_gcc_gcc`
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11516 done
11517 done
11518 IFS=$as_save_IFS
11521 esac
11523 orig_target_ld=$ac_cv_path_orig_target_ld
11524 if test -n "$orig_target_ld"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11526 $as_echo "$orig_target_ld" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11534 if test "$orig_target_ld" = ""; then
11535 # Extract the first word of "gcc", so it can be a program name with args.
11536 set dummy gcc; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_path_orig_target_ld+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 case $orig_target_ld in
11543 [\\/]* | ?:[\\/]*)
11544 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11554 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11558 done
11559 done
11560 IFS=$as_save_IFS
11563 esac
11565 orig_target_ld=$ac_cv_path_orig_target_ld
11566 if test -n "$orig_target_ld"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11568 $as_echo "$orig_target_ld" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11577 else
11578 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11579 set dummy ${aros_tool_prefix}ld; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_path_orig_target_ld+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 case $orig_target_ld in
11586 [\\/]* | ?:[\\/]*)
11587 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11601 done
11602 done
11603 IFS=$as_save_IFS
11606 esac
11608 orig_target_ld=$ac_cv_path_orig_target_ld
11609 if test -n "$orig_target_ld"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11611 $as_echo "$orig_target_ld" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11620 if test "$orig_target_ld" = ""; then
11621 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11624 if test "${aros_tool_prefix}as" = ""; then
11625 if test "$cross_compiling" = "yes" ; then
11626 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11627 set dummy ${target_tool_prefix}as; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_path_orig_target_as+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 case $orig_target_as in
11634 [\\/]* | ?:[\\/]*)
11635 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11645 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11649 done
11650 done
11651 IFS=$as_save_IFS
11654 esac
11656 orig_target_as=$ac_cv_path_orig_target_as
11657 if test -n "$orig_target_as"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11659 $as_echo "$orig_target_as" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11666 else
11667 if test "$GCC" = "yes"; then
11668 aros_gcc_as=`$CC -print-prog-name=as`
11669 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11670 set dummy `basename $aros_gcc_as`; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_path_orig_target_as+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $orig_target_as in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in `dirname $aros_gcc_as`
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11697 esac
11699 orig_target_as=$ac_cv_path_orig_target_as
11700 if test -n "$orig_target_as"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11702 $as_echo "$orig_target_as" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11710 if test "$orig_target_as" = ""; then
11711 # Extract the first word of "as", so it can be a program name with args.
11712 set dummy as; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if ${ac_cv_path_orig_target_as+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 case $orig_target_as in
11719 [\\/]* | ?:[\\/]*)
11720 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11734 done
11735 done
11736 IFS=$as_save_IFS
11739 esac
11741 orig_target_as=$ac_cv_path_orig_target_as
11742 if test -n "$orig_target_as"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11744 $as_echo "$orig_target_as" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11753 else
11754 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11755 set dummy ${aros_tool_prefix}as; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if ${ac_cv_path_orig_target_as+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 case $orig_target_as in
11762 [\\/]* | ?:[\\/]*)
11763 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11773 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11777 done
11778 done
11779 IFS=$as_save_IFS
11782 esac
11784 orig_target_as=$ac_cv_path_orig_target_as
11785 if test -n "$orig_target_as"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11787 $as_echo "$orig_target_as" >&6; }
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11796 if test "$orig_target_as" = ""; then
11797 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11800 if test "${aros_tool_prefix}ar" = ""; then
11801 if test "$cross_compiling" = "yes" ; then
11802 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11803 set dummy ${target_tool_prefix}ar; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_orig_target_ar+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $orig_target_ar in
11810 [\\/]* | ?:[\\/]*)
11811 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11825 done
11826 done
11827 IFS=$as_save_IFS
11830 esac
11832 orig_target_ar=$ac_cv_path_orig_target_ar
11833 if test -n "$orig_target_ar"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11835 $as_echo "$orig_target_ar" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11842 else
11843 if test "$GCC" = "yes"; then
11844 aros_gcc_ar=`$CC -print-prog-name=ar`
11845 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11846 set dummy `basename $aros_gcc_ar`; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_path_orig_target_ar+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 case $orig_target_ar in
11853 [\\/]* | ?:[\\/]*)
11854 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in `dirname $aros_gcc_ar`
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11868 done
11869 done
11870 IFS=$as_save_IFS
11873 esac
11875 orig_target_ar=$ac_cv_path_orig_target_ar
11876 if test -n "$orig_target_ar"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11878 $as_echo "$orig_target_ar" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11886 if test "$orig_target_ar" = ""; then
11887 # Extract the first word of "ar", so it can be a program name with args.
11888 set dummy ar; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_path_orig_target_ar+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 case $orig_target_ar in
11895 [\\/]* | ?:[\\/]*)
11896 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11910 done
11911 done
11912 IFS=$as_save_IFS
11915 esac
11917 orig_target_ar=$ac_cv_path_orig_target_ar
11918 if test -n "$orig_target_ar"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11920 $as_echo "$orig_target_ar" >&6; }
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11929 else
11930 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11931 set dummy ${aros_tool_prefix}ar; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if ${ac_cv_path_orig_target_ar+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 case $orig_target_ar in
11938 [\\/]* | ?:[\\/]*)
11939 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
11947 for ac_exec_ext in '' $ac_executable_extensions; do
11948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11949 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 break 2
11953 done
11954 done
11955 IFS=$as_save_IFS
11958 esac
11960 orig_target_ar=$ac_cv_path_orig_target_ar
11961 if test -n "$orig_target_ar"; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11963 $as_echo "$orig_target_ar" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11972 if test "$orig_target_ar" = ""; then
11973 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11976 if test "${aros_tool_prefix}ranlib" = ""; then
11977 if test "$cross_compiling" = "yes" ; then
11978 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11979 set dummy ${target_tool_prefix}ar; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 case $orig_target_ranlib in
11986 [\\/]* | ?:[\\/]*)
11987 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12001 done
12002 done
12003 IFS=$as_save_IFS
12006 esac
12008 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12009 if test -n "$orig_target_ranlib"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12011 $as_echo "$orig_target_ranlib" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12018 else
12019 if test "$GCC" = "yes"; then
12020 aros_gcc_ar=`$CC -print-prog-name=ar`
12021 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12022 set dummy `basename $aros_gcc_ar`; ac_word=$2
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 case $orig_target_ranlib in
12029 [\\/]* | ?:[\\/]*)
12030 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in `dirname $aros_gcc_ar`
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12040 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 break 2
12044 done
12045 done
12046 IFS=$as_save_IFS
12049 esac
12051 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12052 if test -n "$orig_target_ranlib"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12054 $as_echo "$orig_target_ranlib" >&6; }
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12062 if test "$orig_target_ranlib" = ""; then
12063 # Extract the first word of "ar", so it can be a program name with args.
12064 set dummy ar; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 case $orig_target_ranlib in
12071 [\\/]* | ?:[\\/]*)
12072 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12082 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 break 2
12086 done
12087 done
12088 IFS=$as_save_IFS
12091 esac
12093 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12094 if test -n "$orig_target_ranlib"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12096 $as_echo "$orig_target_ranlib" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12105 else
12106 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12107 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 case $orig_target_ranlib in
12114 [\\/]* | ?:[\\/]*)
12115 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12125 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12129 done
12130 done
12131 IFS=$as_save_IFS
12134 esac
12136 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12137 if test -n "$orig_target_ranlib"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12139 $as_echo "$orig_target_ranlib" >&6; }
12140 else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12148 if test "$orig_target_ranlib" = ""; then
12149 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12152 if test "${aros_tool_prefix}nm" = ""; then
12153 if test "$cross_compiling" = "yes" ; then
12154 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12155 set dummy ${target_tool_prefix}nm; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_path_orig_target_nm+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 case $orig_target_nm in
12162 [\\/]* | ?:[\\/]*)
12163 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12177 done
12178 done
12179 IFS=$as_save_IFS
12182 esac
12184 orig_target_nm=$ac_cv_path_orig_target_nm
12185 if test -n "$orig_target_nm"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12187 $as_echo "$orig_target_nm" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12194 else
12195 if test "$GCC" = "yes"; then
12196 aros_gcc_nm=`$CC -print-prog-name=nm`
12197 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12198 set dummy `basename $aros_gcc_nm`; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if ${ac_cv_path_orig_target_nm+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 case $orig_target_nm in
12205 [\\/]* | ?:[\\/]*)
12206 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in `dirname $aros_gcc_nm`
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12220 done
12221 done
12222 IFS=$as_save_IFS
12225 esac
12227 orig_target_nm=$ac_cv_path_orig_target_nm
12228 if test -n "$orig_target_nm"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12230 $as_echo "$orig_target_nm" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12238 if test "$orig_target_nm" = ""; then
12239 # Extract the first word of "nm", so it can be a program name with args.
12240 set dummy nm; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_path_orig_target_nm+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 case $orig_target_nm in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12262 done
12263 done
12264 IFS=$as_save_IFS
12267 esac
12269 orig_target_nm=$ac_cv_path_orig_target_nm
12270 if test -n "$orig_target_nm"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12272 $as_echo "$orig_target_nm" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12281 else
12282 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12283 set dummy ${aros_tool_prefix}nm; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if ${ac_cv_path_orig_target_nm+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 case $orig_target_nm in
12290 [\\/]* | ?:[\\/]*)
12291 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12305 done
12306 done
12307 IFS=$as_save_IFS
12310 esac
12312 orig_target_nm=$ac_cv_path_orig_target_nm
12313 if test -n "$orig_target_nm"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12315 $as_echo "$orig_target_nm" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12324 if test "$orig_target_nm" = ""; then
12325 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12328 if test "${aros_tool_prefix}strip" = ""; then
12329 if test "$cross_compiling" = "yes" ; then
12330 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12331 set dummy ${target_tool_prefix}strip; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_path_orig_target_strip+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 case $orig_target_strip in
12338 [\\/]* | ?:[\\/]*)
12339 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12353 done
12354 done
12355 IFS=$as_save_IFS
12358 esac
12360 orig_target_strip=$ac_cv_path_orig_target_strip
12361 if test -n "$orig_target_strip"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12363 $as_echo "$orig_target_strip" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12370 else
12371 if test "$GCC" = "yes"; then
12372 aros_gcc_strip=`$CC -print-prog-name=strip`
12373 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12374 set dummy `basename $aros_gcc_strip`; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_path_orig_target_strip+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 case $orig_target_strip in
12381 [\\/]* | ?:[\\/]*)
12382 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in `dirname $aros_gcc_strip`
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12396 done
12397 done
12398 IFS=$as_save_IFS
12401 esac
12403 orig_target_strip=$ac_cv_path_orig_target_strip
12404 if test -n "$orig_target_strip"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12406 $as_echo "$orig_target_strip" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12414 if test "$orig_target_strip" = ""; then
12415 # Extract the first word of "strip", so it can be a program name with args.
12416 set dummy strip; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if ${ac_cv_path_orig_target_strip+:} false; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 case $orig_target_strip in
12423 [\\/]* | ?:[\\/]*)
12424 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
12433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12434 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12438 done
12439 done
12440 IFS=$as_save_IFS
12443 esac
12445 orig_target_strip=$ac_cv_path_orig_target_strip
12446 if test -n "$orig_target_strip"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12448 $as_echo "$orig_target_strip" >&6; }
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12457 else
12458 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12459 set dummy ${aros_tool_prefix}strip; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_path_orig_target_strip+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 case $orig_target_strip in
12466 [\\/]* | ?:[\\/]*)
12467 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12481 done
12482 done
12483 IFS=$as_save_IFS
12486 esac
12488 orig_target_strip=$ac_cv_path_orig_target_strip
12489 if test -n "$orig_target_strip"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12491 $as_echo "$orig_target_strip" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12500 if test "$orig_target_strip" = ""; then
12501 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12504 if test "${aros_tool_prefix}objcopy" = ""; then
12505 if test "$cross_compiling" = "yes" ; then
12506 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12507 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 case $orig_target_objcopy in
12514 [\\/]* | ?:[\\/]*)
12515 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12529 done
12530 done
12531 IFS=$as_save_IFS
12534 esac
12536 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12537 if test -n "$orig_target_objcopy"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12539 $as_echo "$orig_target_objcopy" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12546 else
12547 if test "$GCC" = "yes"; then
12548 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12549 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12550 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 case $orig_target_objcopy in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in `dirname $aros_gcc_objcopy`
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12572 done
12573 done
12574 IFS=$as_save_IFS
12577 esac
12579 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12580 if test -n "$orig_target_objcopy"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12582 $as_echo "$orig_target_objcopy" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test "$orig_target_objcopy" = ""; then
12591 # Extract the first word of "objcopy", so it can be a program name with args.
12592 set dummy objcopy; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 case $orig_target_objcopy in
12599 [\\/]* | ?:[\\/]*)
12600 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12610 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12614 done
12615 done
12616 IFS=$as_save_IFS
12619 esac
12621 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12622 if test -n "$orig_target_objcopy"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12624 $as_echo "$orig_target_objcopy" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12633 else
12634 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12635 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 case $orig_target_objcopy in
12642 [\\/]* | ?:[\\/]*)
12643 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12657 done
12658 done
12659 IFS=$as_save_IFS
12662 esac
12664 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12665 if test -n "$orig_target_objcopy"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12667 $as_echo "$orig_target_objcopy" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12676 if test "$orig_target_objcopy" = ""; then
12677 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12680 if test "${aros_tool_prefix}objdump" = ""; then
12681 if test "$cross_compiling" = "yes" ; then
12682 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12683 set dummy ${target_tool_prefix}objdump; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_orig_target_objdump+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 case $orig_target_objdump in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12705 done
12706 done
12707 IFS=$as_save_IFS
12710 esac
12712 orig_target_objdump=$ac_cv_path_orig_target_objdump
12713 if test -n "$orig_target_objdump"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12715 $as_echo "$orig_target_objdump" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12722 else
12723 if test "$GCC" = "yes"; then
12724 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12725 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12726 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_orig_target_objdump+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 case $orig_target_objdump in
12733 [\\/]* | ?:[\\/]*)
12734 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in `dirname $aros_gcc_objdump`
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12748 done
12749 done
12750 IFS=$as_save_IFS
12753 esac
12755 orig_target_objdump=$ac_cv_path_orig_target_objdump
12756 if test -n "$orig_target_objdump"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12758 $as_echo "$orig_target_objdump" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12766 if test "$orig_target_objdump" = ""; then
12767 # Extract the first word of "objdump", so it can be a program name with args.
12768 set dummy objdump; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_path_orig_target_objdump+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 case $orig_target_objdump in
12775 [\\/]* | ?:[\\/]*)
12776 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12786 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12790 done
12791 done
12792 IFS=$as_save_IFS
12795 esac
12797 orig_target_objdump=$ac_cv_path_orig_target_objdump
12798 if test -n "$orig_target_objdump"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12800 $as_echo "$orig_target_objdump" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12809 else
12810 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12811 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if ${ac_cv_path_orig_target_objdump+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 case $orig_target_objdump in
12818 [\\/]* | ?:[\\/]*)
12819 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12829 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12833 done
12834 done
12835 IFS=$as_save_IFS
12838 esac
12840 orig_target_objdump=$ac_cv_path_orig_target_objdump
12841 if test -n "$orig_target_objdump"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12843 $as_echo "$orig_target_objdump" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12852 if test "$orig_target_objdump" = ""; then
12853 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12857 if test "$kernel_tool_prefix" = "none" ; then
12858 # No kernel tools specified
12859 # Assume target tools == kernel tools with ELF wrapper
12860 aros_kernel_cc=$orig_target_cc
12861 aros_kernel_cxx=$orig_target_cxx
12862 aros_kernel_cpp=$orig_target_cpp
12863 aros_kernel_ld=$orig_target_ld
12864 aros_kernel_as=$orig_target_as
12865 aros_kernel_ar=$orig_target_ar
12866 aros_kernel_ranlib=$orig_target_ranlib
12867 aros_kernel_nm=$orig_target_nm
12868 aros_kernel_strip=$orig_target_strip
12869 aros_kernel_objcopy=$orig_target_objcopy
12870 aros_kernel_objdump=$orig_target_objdump
12871 use_kernel_cc_wrapper=yes
12874 # At this point, all aros_kernel_* and aros_target_*
12875 # tools should be set up correctly
12877 CC="$aros_kernel_cc $kernel_tool_flags"
12878 CPP="$aros_kernel_cpp"
12880 #-----------------------------------------------------------------------------
12882 # Disable pointer-signedness warnings if the compiler recognises the option
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12885 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12886 save_cflags="$CFLAGS"
12887 if test "$crosstools" != "yes" ; then
12888 CFLAGS="$CFLAGS -Wno-pointer-sign"
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12893 main ()
12897 return 0;
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 use_no_sign_warning="yes"
12902 else
12903 use_no_sign_warning="no"
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 else
12907 # we do know it is supported for the smallest version of gcc we are going to build
12908 # we assume it's also supported by later versions
12909 use_no_sign_warning=yes
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12912 $as_echo "$use_no_sign_warning" >&6; }
12913 if test "x-$use_no_sign_warning" = "x-yes" ; then
12914 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12916 CFLAGS="$save_cflags"
12918 #-----------------------------------------------------------------------------
12920 # Find all the tools we need to compile. This could be cross-compiling
12921 # though! If that is the case we use the GNU form of the target and
12922 # simply add this to the front of the binary name. This is rather simple,
12923 # but it should work under most circumstances.
12925 # The default tools are to use the same as the host, but only if the
12926 # host and target CPU are the same. With GCC this is normally enough.
12929 aros_cc_pre=""
12930 aros_shared_ld="$aros_host_ld"
12932 aros_target_mkdep="$aros_host_mkdep"
12934 # The default tools executables to be linked to.
12935 if test "$rescomp" != ""; then
12936 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12937 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 case $aros_kernel_rescomp in
12944 [\\/]* | ?:[\\/]*)
12945 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12964 esac
12966 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12967 if test -n "$aros_kernel_rescomp"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12969 $as_echo "$aros_kernel_rescomp" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12976 if test "$aros_kernel_rescomp" = ""; then
12977 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12981 # Set up the sources for the symlink farm
12982 if test "$crosstools" = "yes"; then
12983 crosstools_target=tools-crosstools
12986 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12987 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12989 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12990 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12991 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12992 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12993 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12994 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12995 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12997 # aros_cc_pre is a variable that is added to the front of the compiler name
12998 # in the generated aros-gcc shell script. We need this to enable the cache
12999 # to work across cleaned builds. Also, support DISTCC using the correct
13000 # environment variable.
13003 if test "x${DISTCC}" != "x" ; then
13004 if test "x${CCACHE}" != "x" ; then
13005 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13006 else
13007 aros_cc_pre="${DISTCC} "
13009 else
13010 if test "x${CCACHE}" != "x" ; then
13011 aros_cc_pre="${CCACHE} "
13015 aros_target_nostdinc_cflags=-nostdinc
13017 aros_target_nostartup_ldflags=-nostartfiles
13019 aros_target_nix_ldflags=-nix
13021 aros_target_detach_ldflags=-detach
13023 aros_target_nostdlib_ldflags=-nostdlib
13026 # Target tools
13027 if test "$crosstools" != "yes"; then
13028 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13029 if test "$GCC" = "yes"; then
13030 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13032 else
13033 # We do not know which gcc version we are going to build and what we need to know
13034 # here is different for different versions so this will be set later during the
13035 # build of crosstools.
13036 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13037 aros_target_cc_path=@aros_target_cc_path@
13039 aros_target_cpp="${prefix}cpp"
13040 aros_target_cc="${prefix}gcc"
13041 aros_target_cxx="${prefix}g++"
13042 aros_target_as="${prefix}as"
13043 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13044 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13045 aros_target_objcopy="${prefix}objcopy"
13046 aros_target_objdump="${prefix}objdump"
13047 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13048 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13049 aros_target_strip="${prefix}strip"
13050 aros_plain_nm="${prefix}nm"
13051 aros_plain_ar="${prefix}ar"
13053 # Check whether --enable-includes was given.
13054 if test "${enable_includes+set}" = set; then :
13055 enableval=$enable_includes; aros_target_incl=$enable_includes
13056 else
13057 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13061 if test "$aros_kernel_includes" = ""; then
13062 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13063 aros_kernel_includes="-isystem $aros_target_incl"
13067 if test "$aros_kernel_includes" != "" ; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13069 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13070 if test "$aros_kernel_cc_includes" = "" ; then
13071 # Try to guess where the directory is.
13072 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13073 if test -d $aros_kernel_cc_includes; then
13074 # Check if there is also an include-fixed directory and add it
13075 # to kernel compiler's include path as it may contain some of
13076 # the headers we need.
13077 if test -d "$aros_kernel_cc_includes"-fixed; then
13078 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13080 # Check for specific includes directory. Neede for Ubuntu 11.10
13081 if test -d "/usr/include/i386-linux-gnu"; then
13082 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13084 else
13085 # The directory doesn't exist, we need to do some more work.
13086 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13088 # These are the headers we're looking for.
13089 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13090 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13091 zutil.h stdint.h"
13093 dirs=
13094 for h in $headers; do
13095 # Which other headers are needed by each of the above?
13096 deps=$(echo "#include <$h>" | \
13097 $aros_kernel_cc -E -M - 2>/dev/null | \
13098 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13100 # Copy all the needed headers to a directory beneath gendir.
13101 for d in $deps; do
13102 h=$(basename $d)
13103 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13104 sed -n "s,^.*/include\(/.*\),\1,p")
13105 ! test -d $dir && mkdir -p $dir
13106 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13107 done
13108 done
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13112 $as_echo "$aros_kernel_cc_includes" >&6; }
13113 # Adding -nostdinc to kernel includes as they are always used together.
13114 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13117 if test "$crosstools" != "yes"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13119 $as_echo_n "checking for the target compiler's include path... " >&6; }
13120 if test "$aros_target_cc_includes" = "" ; then
13121 #try to guess where the directory is
13122 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13123 if ! test -d $aros_target_cc_includes; then
13124 #the directory doesn't exist, we need to do some more work
13125 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13127 #these are the headers we're looking for
13128 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13129 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13130 zutil.h"
13132 dirs=
13133 for h in $headers; do
13134 #which other headers each of the above headers needs?
13135 deps=$(echo "#include <$h>" | \
13136 $orig_target_cc -E -M - 2>/dev/null | \
13137 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13139 #copy all the needed headers to a directory beneath gendir
13140 for d in $deps; do
13141 h=$(basename $d)
13142 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13143 sed -n "s,^.*/include\(/.*\),\1,p")
13144 ! test -d $dir && mkdir -p $dir
13145 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13146 done
13147 done
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13151 $as_echo "$aros_target_cc_includes" >&6; }
13152 else
13153 # We do not know which gcc version we are going to build and what we need to know
13154 # here is different for different versions so this will be set later during the
13155 # build of crosstools.
13156 aros_target_cc_includes=@aros_target_cc_includes@
13160 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13161 # On GCC >= 4.0 -iquote should be used
13164 save_cc="$CC"
13165 save_cflags="$CFLAGS"
13166 CFLAGS="-iquote."
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13168 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13169 if test "x-$crosstools" != "x-yes"; then
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13174 main ()
13178 return 0;
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182 has_iquote="yes"
13183 else
13184 has_iquote="no"
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 else
13188 # we do know it is supported for the smallest version of gcc we are going to build
13189 # we assume it's also supported by later versions
13190 has_iquote=yes
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13193 $as_echo "$has_iquote" >&6; }
13194 if test "x-$has_iquote" = "x-yes" ; then
13195 host_cflags_iquote=-iquote
13196 host_cflags_iquote_end=
13197 else
13198 host_cflags_iquote=-I
13199 host_cflags_iquote_end=-I-
13201 kernel_cflags_iquote=$host_cflags_iquote
13202 kernel_cflags_iquote_end=$host_cflags_iquote_end
13203 if test "x-$cross_compiling" = "x-yes"; then
13204 CC="$aros_kernel_cc"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13206 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13207 if test "x-$crosstools" != "x-yes"; then
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13212 main ()
13216 return 0;
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220 use_no_stack_protector="yes"
13221 else
13222 use_no_stack_protector="no"
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 else
13226 # we do know it is supported for the smallest version of gcc we are going to build
13227 # we assume it's also supported by later versions
13228 use_no_stack_protector=yes
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13231 $as_echo "$use_no_stack_protector" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13233 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13234 if test "x-$crosstools" != "x-yes"; then
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13239 main ()
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_compile "$LINENO"; then :
13247 has_iquote="yes"
13248 else
13249 has_iquote="no"
13251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252 else
13253 # we do know it is supported for the smallest version of gcc we are going to build
13254 # we assume it's also supported by later versions
13255 has_iquote=yes
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13258 $as_echo "$has_iquote" >&6; }
13259 if test "x-$has_iquote" = "x-yes" ; then
13260 kernel_cflags_iquote=-iquote
13261 kernel_cflags_iquote_end=
13262 else
13263 kernel_cflags_iquote=-I
13264 kernel_cflags_iquote_end=-I-
13267 aros_cflags_iquote=$kernel_cflags_iquote
13268 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13269 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13270 CC="$orig_target_cc"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13272 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13273 if test "x-$crosstools" != "x-yes"; then
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13278 main ()
13282 return 0;
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 has_iquote="yes"
13287 else
13288 has_iquote="no"
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 else
13292 # we do know it is supported for the smallest version of gcc we are going to build
13293 # we assume it's also supported by later versions
13294 has_iquote=yes
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13297 $as_echo "$has_iquote" >&6; }
13298 if test "x-$has_iquote" = "x-yes" ; then
13299 aros_cflags_iquote=-iquote
13300 aros_cflags_iquote_end=
13301 else
13302 aros_cflags_iquote=-I
13303 aros_cflags_iquote_end=-I-
13306 if test "x-$use_no_stack_protector" = "x-yes" ; then
13307 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13311 #-----------------------------------------------------------------------------
13313 # Check if the target compiler supports some options used for delinting:
13314 # -Wunused-but-set-variable
13315 # -Warray-bounds
13316 # -Wenum-compare
13317 # -Wstrict-overflow
13318 # -Wformat-security
13320 if test "x-$crosstools" != "x-yes"; then
13321 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13322 CC="$orig_target_cc"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13325 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13326 CFLAGS=-Wunused-but-set-variable
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13331 main ()
13335 return 0;
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339 aros_unused_but_set_variable="yes"
13340 else
13341 aros_unused_but_set_variable="no"
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13345 $as_echo "$aros_unused_but_set_variable" >&6; }
13346 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13347 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13351 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13352 CFLAGS=-Warray-bounds
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13357 main ()
13361 return 0;
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"; then :
13365 aros_array_bounds="yes"
13366 else
13367 aros_array_bounds="no"
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13371 $as_echo "$aros_array_bounds" >&6; }
13372 if test "x-$aros_array_bounds" = "x-yes" ; then
13373 aros_cflags_array_bounds=-Wno-array-bounds
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13377 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13378 CFLAGS=-Wenum-compare
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13383 main ()
13387 return 0;
13389 _ACEOF
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 aros_enum_compare="yes"
13392 else
13393 aros_enum_compare="no"
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13397 $as_echo "$aros_enum_compare" >&6; }
13398 if test "x-$aros_enum_compare" = "x-yes" ; then
13399 aros_cflags_enum_compare=-Wno-enum-compare
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13403 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13404 CFLAGS=-Wstrict-overflow
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13409 main ()
13413 return 0;
13415 _ACEOF
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417 aros_strict_overflow="yes"
13418 else
13419 aros_strict_overflow="no"
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13423 $as_echo "$aros_strict_overflow" >&6; }
13424 if test "x-$aros_strict_overflow" = "x-yes" ; then
13425 aros_cflags_strict_overflow=-Wno-strict-overflow
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13429 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13430 CFLAGS=-Wformat-security
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13435 main ()
13439 return 0;
13441 _ACEOF
13442 if ac_fn_c_try_compile "$LINENO"; then :
13443 aros_format_security="yes"
13444 else
13445 aros_format_security="no"
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13449 $as_echo "$aros_format_security" >&6; }
13450 if test "x-$aros_format_security" = "x-yes" ; then
13451 aros_cflags_format_security=-Wno-format-security
13453 else
13454 # We do not know which gcc version we are going to build and what we need to know
13455 # here is different for different versions so this will be set later during the
13456 # build of crosstools.
13457 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13458 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13459 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13460 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13461 aros_cflags_format_security=@aros_cflags_format_security@
13464 #-----------------------------------------------------------------------------
13466 # Check if we can explicitly choose older version of symbol hashing
13468 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13469 CC="$aros_kernel_cc"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13471 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13476 main ()
13480 return 0;
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 use_hash_style="yes"
13485 else
13486 use_hash_style="no"
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13491 $as_echo "$use_hash_style" >&6; }
13492 if test "x-$use_hash_style" = "x-yes" ; then
13493 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13495 CC="$save_cc"
13496 CFLAGS="$save_cflags"
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13507 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13509 # Check whether --with-resolution was given.
13510 if test "${with_resolution+set}" = set; then :
13511 withval=$with_resolution; resolution=$withval
13512 else
13513 resolution=none
13516 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13517 if test "$resolution" = "yes" ; then
13518 resolution="none"
13520 if test "$resolution" = "no" ; then
13521 resolution="none"
13523 if test "$resolution" != "none" ; then
13524 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13525 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13526 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13529 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13530 aros_cv_default_wbwidth=$aros_default_wbwidth
13531 aros_cv_default_wbheight=$aros_default_wbheight
13532 aros_cv_default_wbdepth=$aros_default_wbdepth
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13535 $as_echo_n "checking if serial debug is enabled... " >&6; }
13537 # Check whether --with-serial-debug was given.
13538 if test "${with_serial_debug+set}" = set; then :
13539 withval=$with_serial_debug; serial_debug=$withval
13540 else
13541 serial_debug=none
13544 if test "$aros_serial_debug" = 0 ; then
13545 serial_debug_forced=""
13546 if test "$serial_debug" = "yes" ; then
13547 serial_debug="1"
13549 if test "$serial_debug" = "no" ; then
13550 serial_debug="none"
13552 else
13553 serial_debug_forced="(forced)"
13554 serial_debug=$aros_serial_debug
13556 if test "$serial_debug" != "none" ; then
13557 aros_serial_debug=$serial_debug
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13559 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13566 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13567 # Check whether --enable-palm_debug_hack was given.
13568 if test "${enable_palm_debug_hack+set}" = set; then :
13569 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13570 else
13571 palm_debug_hack="no"
13574 if test "$palm_debug_hack" = "yes" ; then
13575 aros_palm_debug_hack="1"
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13578 $as_echo "$palm_debug_hack" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13581 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13582 # Check whether --enable-usb30_code was given.
13583 if test "${enable_usb30_code+set}" = set; then :
13584 enableval=$enable_usb30_code; usb30_code="yes"
13585 else
13586 usb30_code="no"
13589 if test "$usb30_code" = "yes" ; then
13590 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13591 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13594 $as_echo "$usb30_code" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13597 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13598 # Check whether --enable-nesting_supervisor was given.
13599 if test "${enable_nesting_supervisor+set}" = set; then :
13600 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13601 else
13602 nesting_supervisor="no"
13605 if test "$nesting_supervisor" = "yes" ; then
13606 aros_nesting_supervisor="1"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13609 $as_echo "$nesting_supervisor" >&6; }
13611 if test "$aros_enable_mmu" = "" ; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13613 $as_echo_n "checking if MMU support is enabled... " >&6; }
13614 # Check whether --enable-mmu was given.
13615 if test "${enable_mmu+set}" = set; then :
13616 enableval=$enable_mmu; aros_enable_mmu=$enableval
13617 else
13618 aros_enable_mmu="yes"
13621 if test "$aros_enable_mmu" = "" ; then
13622 aros_enable_mmu="yes"
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13625 $as_echo "$aros_enable_mmu" >&6; }
13627 if test "$aros_enable_mmu" = "no" ; then
13628 aros_enable_mmu="0"
13629 else
13630 aros_enable_mmu="1"
13634 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13636 if test "x-$need_dlopen" != "x-no" ; then
13637 save_libs="$LIBS"
13638 LIBS=""
13639 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13640 if test "x$ac_cv_func_dlopen" = xyes; then :
13641 have_dl="yes"
13642 else
13643 have_dl="no"
13646 if test "x-$have_dl" = "x-no" ; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13649 if ${ac_cv_lib_dl_dlopen+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-ldl $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char dlopen ();
13665 main ()
13667 return dlopen ();
13669 return 0;
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 ac_cv_lib_dl_dlopen=yes
13674 else
13675 ac_cv_lib_dl_dlopen=no
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13683 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13684 have_dl="yes"
13685 aros_host_ldflags="$aros_host_ldflags -ldl"
13686 else
13687 have_dl="no"
13691 if test "x-$have_dl" = "x-no" ; then
13692 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13694 LIBS="$save_libs"
13698 # Check whether --enable-x11_hidd was given.
13699 if test "${enable_x11_hidd+set}" = set; then :
13700 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13701 else
13702 x11_hidd="$need_x11"
13705 case "x-$x11_hidd" in
13706 x-yes|x-no|x-auto) ;;
13707 *) x11_hidd="$need_x11" ;;
13708 esac
13710 ENABLE_X11=0
13712 if test "x-$x11_hidd" != "x-no" ; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13715 $as_echo_n "checking for X... " >&6; }
13718 # Check whether --with-x was given.
13719 if test "${with_x+set}" = set; then :
13720 withval=$with_x;
13723 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13724 if test "x$with_x" = xno; then
13725 # The user explicitly disabled X.
13726 have_x=disabled
13727 else
13728 case $x_includes,$x_libraries in #(
13729 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13730 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 # One or both of the vars are not set, and there is no cached value.
13734 ac_x_includes=no ac_x_libraries=no
13735 rm -f -r conftest.dir
13736 if mkdir conftest.dir; then
13737 cd conftest.dir
13738 cat >Imakefile <<'_ACEOF'
13739 incroot:
13740 @echo incroot='${INCROOT}'
13741 usrlibdir:
13742 @echo usrlibdir='${USRLIBDIR}'
13743 libdir:
13744 @echo libdir='${LIBDIR}'
13745 _ACEOF
13746 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13747 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13748 for ac_var in incroot usrlibdir libdir; do
13749 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13750 done
13751 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13752 for ac_extension in a so sl dylib la dll; do
13753 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13754 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13755 ac_im_usrlibdir=$ac_im_libdir; break
13757 done
13758 # Screen out bogus values from the imake configuration. They are
13759 # bogus both because they are the default anyway, and because
13760 # using them would break gcc on systems where it needs fixed includes.
13761 case $ac_im_incroot in
13762 /usr/include) ac_x_includes= ;;
13763 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13764 esac
13765 case $ac_im_usrlibdir in
13766 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13767 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13768 esac
13770 cd ..
13771 rm -f -r conftest.dir
13774 # Standard set of common directories for X headers.
13775 # Check X11 before X11Rn because it is often a symlink to the current release.
13776 ac_x_header_dirs='
13777 /usr/X11/include
13778 /usr/X11R7/include
13779 /usr/X11R6/include
13780 /usr/X11R5/include
13781 /usr/X11R4/include
13783 /usr/include/X11
13784 /usr/include/X11R7
13785 /usr/include/X11R6
13786 /usr/include/X11R5
13787 /usr/include/X11R4
13789 /usr/local/X11/include
13790 /usr/local/X11R7/include
13791 /usr/local/X11R6/include
13792 /usr/local/X11R5/include
13793 /usr/local/X11R4/include
13795 /usr/local/include/X11
13796 /usr/local/include/X11R7
13797 /usr/local/include/X11R6
13798 /usr/local/include/X11R5
13799 /usr/local/include/X11R4
13801 /usr/X386/include
13802 /usr/x386/include
13803 /usr/XFree86/include/X11
13805 /usr/include
13806 /usr/local/include
13807 /usr/unsupported/include
13808 /usr/athena/include
13809 /usr/local/x11r5/include
13810 /usr/lpp/Xamples/include
13812 /usr/openwin/include
13813 /usr/openwin/share/include'
13815 if test "$ac_x_includes" = no; then
13816 # Guess where to find include files, by looking for Xlib.h.
13817 # First, try using that file with no special directory specified.
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 #include <X11/Xlib.h>
13821 _ACEOF
13822 if ac_fn_c_try_cpp "$LINENO"; then :
13823 # We can compile using X headers with no special include directory.
13824 ac_x_includes=
13825 else
13826 for ac_dir in $ac_x_header_dirs; do
13827 if test -r "$ac_dir/X11/Xlib.h"; then
13828 ac_x_includes=$ac_dir
13829 break
13831 done
13833 rm -f conftest.err conftest.i conftest.$ac_ext
13834 fi # $ac_x_includes = no
13836 if test "$ac_x_libraries" = no; then
13837 # Check for the libraries.
13838 # See if we find them without any special options.
13839 # Don't add to $LIBS permanently.
13840 ac_save_LIBS=$LIBS
13841 LIBS="-lX11 $LIBS"
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 #include <X11/Xlib.h>
13846 main ()
13848 XrmInitialize ()
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_link "$LINENO"; then :
13854 LIBS=$ac_save_LIBS
13855 # We can link X programs with no special library path.
13856 ac_x_libraries=
13857 else
13858 LIBS=$ac_save_LIBS
13859 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13861 # Don't even attempt the hair of trying to link an X program!
13862 for ac_extension in a so sl dylib la dll; do
13863 if test -r "$ac_dir/libX11.$ac_extension"; then
13864 ac_x_libraries=$ac_dir
13865 break 2
13867 done
13868 done
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 fi # $ac_x_libraries = no
13874 case $ac_x_includes,$ac_x_libraries in #(
13875 no,* | *,no | *\'*)
13876 # Didn't find X, or a directory has "'" in its name.
13877 ac_cv_have_x="have_x=no";; #(
13879 # Record where we found X for the cache.
13880 ac_cv_have_x="have_x=yes\
13881 ac_x_includes='$ac_x_includes'\
13882 ac_x_libraries='$ac_x_libraries'"
13883 esac
13885 ;; #(
13886 *) have_x=yes;;
13887 esac
13888 eval "$ac_cv_have_x"
13889 fi # $with_x != no
13891 if test "$have_x" != yes; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13893 $as_echo "$have_x" >&6; }
13894 no_x=yes
13895 else
13896 # If each of the values was on the command line, it overrides each guess.
13897 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13898 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13899 # Update the cache value to reflect the command line values.
13900 ac_cv_have_x="have_x=yes\
13901 ac_x_includes='$x_includes'\
13902 ac_x_libraries='$x_libraries'"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13904 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13908 x_cflags=
13909 for path in $x_libraries
13911 x_cflags="$x_cflags -L$path"
13912 done
13914 for path in $x_includes
13916 x_cflags="$x_cflags -I$path"
13917 done
13919 if test "x-$no_x" = "x-yes" ; then
13921 if test "x-$x11_hidd" != "x-auto" ; then
13922 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13925 else
13926 unixgfx_hidd_target=kernel-x11gfx
13927 ENABLE_X11=1
13929 # Check whether --enable-x11_shm was given.
13930 if test "${enable_x11_shm+set}" = set; then :
13931 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13932 else
13933 x11_hidd_shm="auto"
13936 case "x-$x11_hidd_shm" in
13937 x-yes|x-no|x-auto) ;;
13938 *) x11_hidd_shm="auto" ;;
13939 esac
13941 have_xshm=no
13943 if test "x-$x11_hidd_shm" != "x-no" ; then
13945 for ac_header in sys/ipc.h
13946 do :
13947 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13948 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13949 cat >>confdefs.h <<_ACEOF
13950 #define HAVE_SYS_IPC_H 1
13951 _ACEOF
13955 done
13957 for ac_header in sys/shm.h
13958 do :
13959 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13960 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13961 cat >>confdefs.h <<_ACEOF
13962 #define HAVE_SYS_SHM_H 1
13963 _ACEOF
13967 done
13970 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13972 save_cflags="$CFLAGS"
13973 CFLAGS="$CFLAGS $x_cflags"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13975 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13976 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-lXext $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char XShmQueryExtension ();
13992 main ()
13994 return XShmQueryExtension ();
13996 return 0;
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_lib_Xext_XShmQueryExtension=yes
14001 else
14002 ac_cv_lib_Xext_XShmQueryExtension=no
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14009 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14010 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14011 have_xshm=yes
14014 CFLAGS="$save_cflags"
14018 if test "x-$have_xshm" = "x-yes" ; then
14019 DO_XSHM_SUPPORT="1"
14020 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14021 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14022 else
14023 DO_XSHM_SUPPORT="0"
14027 # Check whether --enable-x11_vidmode was given.
14028 if test "${enable_x11_vidmode+set}" = set; then :
14029 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14030 else
14031 x11_hidd_vidmode="auto"
14034 case "x-$x11_hidd_vidmode" in
14035 x-yes|x-no|x-auto) ;;
14036 *) x11_hidd_vidmode="auto" ;;
14037 esac
14039 have_vidmode=no
14041 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14043 save_cflags="$CFLAGS"
14044 CFLAGS="$CFLAGS $x_cflags"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14046 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14047 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lXxf86vm $LIBS"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14055 /* Override any GCC internal prototype to avoid an error.
14056 Use char because int might match the return type of a GCC
14057 builtin and then its argument prototype would still apply. */
14058 #ifdef __cplusplus
14059 extern "C"
14060 #endif
14061 char XF86VidModeQueryExtension ();
14063 main ()
14065 return XF86VidModeQueryExtension ();
14067 return 0;
14069 _ACEOF
14070 if ac_fn_c_try_link "$LINENO"; then :
14071 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14072 else
14073 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14075 rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14080 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14081 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14082 have_vidmode=yes
14085 CFLAGS="$save_cflags"
14088 if test "x-$have_vidmode" = "x-yes" ; then
14089 DO_VIDMODE_SUPPORT="1"
14090 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14091 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14092 else
14093 DO_VIDMODE_SUPPORT="0"
14097 aros_host_x11_includes=$x_includes
14098 aros_host_x11_libdirs=$x_libraries
14102 # Check whether --enable-sdl_hidd was given.
14103 if test "${enable_sdl_hidd+set}" = set; then :
14104 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14105 else
14106 sdl_hidd="auto"
14109 case "x-$sdl_hidd" in
14110 x-yes|x-no|x-auto) ;;
14111 *) sdl_hidd="auto" ;;
14112 esac
14114 if test "x-$sdl_hidd" != "x-no" ; then
14117 # Check whether --with-sdl-prefix was given.
14118 if test "${with_sdl_prefix+set}" = set; then :
14119 withval=$with_sdl_prefix; sdl_prefix="$withval"
14120 else
14121 sdl_prefix=""
14125 # Check whether --with-sdl-exec-prefix was given.
14126 if test "${with_sdl_exec_prefix+set}" = set; then :
14127 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14128 else
14129 sdl_exec_prefix=""
14132 # Check whether --enable-sdltest was given.
14133 if test "${enable_sdltest+set}" = set; then :
14134 enableval=$enable_sdltest;
14135 else
14136 enable_sdltest=yes
14140 if test x$sdl_exec_prefix != x ; then
14141 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14142 if test x${SDL_CONFIG+set} != xset ; then
14143 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14146 if test x$sdl_prefix != x ; then
14147 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14148 if test x${SDL_CONFIG+set} != xset ; then
14149 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14153 as_save_PATH="$PATH"
14154 if test "x$prefix" != xNONE; then
14155 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14157 # Extract the first word of "sdl-config", so it can be a program name with args.
14158 set dummy sdl-config; ac_word=$2
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160 $as_echo_n "checking for $ac_word... " >&6; }
14161 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 case $SDL_CONFIG in
14165 [\\/]* | ?:[\\/]*)
14166 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14170 for as_dir in $PATH
14172 IFS=$as_save_IFS
14173 test -z "$as_dir" && as_dir=.
14174 for ac_exec_ext in '' $ac_executable_extensions; do
14175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14176 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14178 break 2
14180 done
14181 done
14182 IFS=$as_save_IFS
14184 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14186 esac
14188 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14189 if test -n "$SDL_CONFIG"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14191 $as_echo "$SDL_CONFIG" >&6; }
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14198 PATH="$as_save_PATH"
14199 min_sdl_version=1.2.10
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14201 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14202 no_sdl=""
14203 if test "$SDL_CONFIG" = "no" ; then
14204 no_sdl=yes
14205 else
14206 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14207 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14209 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14211 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14213 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14215 if test "x$enable_sdltest" = "xyes" ; then
14216 ac_save_CFLAGS="$CFLAGS"
14217 ac_save_CXXFLAGS="$CXXFLAGS"
14218 ac_save_LIBS="$LIBS"
14219 CFLAGS="$CFLAGS $SDL_CFLAGS"
14220 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14221 LIBS="$LIBS $SDL_LIBS"
14222 rm -f conf.sdltest
14223 if test "$cross_compiling" = yes; then :
14224 echo $ac_n "cross compiling; assumed OK... $ac_c"
14225 else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14229 #include <stdio.h>
14230 #include <stdlib.h>
14231 #include <string.h>
14232 #include "SDL.h"
14234 char*
14235 my_strdup (char *str)
14237 char *new_str;
14239 if (str)
14241 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14242 strcpy (new_str, str);
14244 else
14245 new_str = NULL;
14247 return new_str;
14250 int main (int argc, char *argv[])
14252 int major, minor, micro;
14253 char *tmp_version;
14255 /* This hangs on some systems (?)
14256 system ("touch conf.sdltest");
14258 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14260 /* HP/UX 9 (%@#!) writes to sscanf strings */
14261 tmp_version = my_strdup("$min_sdl_version");
14262 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14263 printf("%s, bad version string\n", "$min_sdl_version");
14264 exit(1);
14267 if (($sdl_major_version > major) ||
14268 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14269 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14271 return 0;
14273 else
14275 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14276 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14277 printf("*** best to upgrade to the required version.\n");
14278 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14279 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14280 printf("*** config.cache before re-running configure\n");
14281 return 1;
14286 _ACEOF
14287 if ac_fn_c_try_run "$LINENO"; then :
14289 else
14290 no_sdl=yes
14292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14293 conftest.$ac_objext conftest.beam conftest.$ac_ext
14296 CFLAGS="$ac_save_CFLAGS"
14297 CXXFLAGS="$ac_save_CXXFLAGS"
14298 LIBS="$ac_save_LIBS"
14301 if test "x$no_sdl" = x ; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14304 have_sdl="yes"
14305 else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 $as_echo "no" >&6; }
14308 if test "$SDL_CONFIG" = "no" ; then
14309 echo "*** The sdl-config script installed by SDL could not be found"
14310 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14311 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14312 echo "*** full path to sdl-config."
14313 else
14314 if test -f conf.sdltest ; then
14316 else
14317 echo "*** Could not run SDL test program, checking why..."
14318 CFLAGS="$CFLAGS $SDL_CFLAGS"
14319 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14320 LIBS="$LIBS $SDL_LIBS"
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 #include <stdio.h>
14325 #include "SDL.h"
14327 int main(int argc, char *argv[])
14328 { return 0; }
14329 #undef main
14330 #define main K_and_R_C_main
14333 main ()
14335 return 0;
14337 return 0;
14339 _ACEOF
14340 if ac_fn_c_try_link "$LINENO"; then :
14341 echo "*** The test program compiled, but did not run. This usually means"
14342 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14343 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14344 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14345 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14346 echo "*** is required on your system"
14347 echo "***"
14348 echo "*** If you have an old version installed, it is best to remove it, although"
14349 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14350 else
14351 echo "*** The test program failed to compile or link. See the file config.log for the"
14352 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14353 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14354 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 CFLAGS="$ac_save_CFLAGS"
14359 CXXFLAGS="$ac_save_CXXFLAGS"
14360 LIBS="$ac_save_LIBS"
14363 SDL_CFLAGS=""
14364 SDL_LIBS=""
14365 have_sdl="no"
14369 rm -f conf.sdltest
14372 if test "x-$have_sdl" != "x-yes" ; then
14374 if test "x-$sdl_hidd" != "x-auto" ; then
14375 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14378 else
14379 sdl_hidd_target=kernel-hidd-sdl
14380 aros_host_sdl_cflags=SDL_CFLAGS
14381 aros_host_sdl_libs=SDL_LIBS
14385 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14386 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14391 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14392 oss_library_target=workbench-libs-oss-unix
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14398 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14399 # Check whether --enable-dbus was given.
14400 if test "${enable_dbus+set}" = set; then :
14401 enableval=$enable_dbus; dbus="yes"
14402 else
14403 dbus="no"
14406 if test "$dbus" = "yes" ; then
14407 ENABLE_DBUS=1
14408 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14409 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14410 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14411 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14412 else
14413 ENABLE_DBUS=0
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14416 $as_echo "$dbus" >&6; }
14418 if test "$use_kernel_cc_wrapper" = "yes" ; then
14419 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14422 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
14423 aros_target_toolchain=yes
14424 else
14425 aros_target_toolchain=no
14429 # Generic
14441 # Compatability with other Amiga-like operation systems
14444 # Host related
14472 # Target Related
14539 # Delinting target compiler flags
14546 # Graphics Related
14563 # Native version related
14566 # Palm native version related
14569 # Unix/Hosted version related
14572 # MMU related
14575 # Apple iOS related
14580 # ARM default GCC target related
14586 # Android related
14591 # DBUS related
14598 #X11 related
14601 # Debug related
14607 # Collect-aros stuff: "-ius" to ignore undefined symbols
14610 # C compiler related
14614 #ObjC compiler related
14617 #Java related
14620 # USB3.0 code
14623 case "$aros_flavour" in
14624 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14625 aros_flavour="emulation" ;;
14626 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14627 aros_flavour="emulation" ;;
14628 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14629 aros_flavour="standalone";;
14630 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14631 aros_flavour="standalone";;
14632 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14633 aros_flavour="native" ;;
14634 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14635 aros_flavour="native" ;;
14636 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14637 aros_flavour="linklib" ;;
14638 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14639 aros_flavour="palmnative" ;;
14640 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14641 aros_flavour="mac68knative" ;;
14642 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14643 aros_flavour="ppcnative" ;;
14644 esac
14646 if test ! -d ${aros_inc_dir} ; then
14647 ${MKDIR} ${aros_inc_dir}
14649 if test ! -d ${aros_geninc_dir} ; then
14650 ${MKDIR} ${aros_geninc_dir}
14652 if test ! -d ${aros_hostcfg_dir} ; then
14653 ${MKDIR} ${aros_hostcfg_dir}
14655 if test ! -d ${aros_targetcfg_dir} ; then
14656 ${MKDIR} ${aros_targetcfg_dir}
14658 if test ! -d ${aros_tools_dir} ; then
14659 ${MKDIR} ${aros_tools_dir}
14661 if test ! -d ${aros_scripts_dir} ; then
14662 ${MKDIR} ${aros_scripts_dir}
14665 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14668 # Generic build tools (metamake, etc)
14669 ac_config_commands="$ac_config_commands genmf-executable-support"
14671 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14674 # Binutils
14675 ac_config_commands="$ac_config_commands binutils-support"
14677 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14680 # Bare Elf support script and spec
14681 if test "${use_kernel_cc_wrapper}" = "yes"; then
14682 ac_config_commands="$ac_config_commands elf-compiler-support"
14684 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"
14688 # Host compiler support scripts and spec
14689 if test "${crosstools}" = "no"; then
14690 if test "${crosstools_guess}" = "no"; then
14691 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14693 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"
14698 # Android support
14699 if test "$aros_target_variant" == "android"; then
14700 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14704 cat >confcache <<\_ACEOF
14705 # This file is a shell script that caches the results of configure
14706 # tests run on this system so they can be shared between configure
14707 # scripts and configure runs, see configure's option --config-cache.
14708 # It is not useful on other systems. If it contains results you don't
14709 # want to keep, you may remove or edit it.
14711 # config.status only pays attention to the cache file if you give it
14712 # the --recheck option to rerun configure.
14714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14716 # following values.
14718 _ACEOF
14720 # The following way of writing the cache mishandles newlines in values,
14721 # but we know of no workaround that is simple, portable, and efficient.
14722 # So, we kill variables containing newlines.
14723 # Ultrix sh set writes to stderr and can't be redirected directly,
14724 # and sets the high bit in the cache file unless we assign to the vars.
14726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14727 eval ac_val=\$$ac_var
14728 case $ac_val in #(
14729 *${as_nl}*)
14730 case $ac_var in #(
14731 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14733 esac
14734 case $ac_var in #(
14735 _ | IFS | as_nl) ;; #(
14736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14737 *) { eval $ac_var=; unset $ac_var;} ;;
14738 esac ;;
14739 esac
14740 done
14742 (set) 2>&1 |
14743 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14744 *${as_nl}ac_space=\ *)
14745 # `set' does not quote correctly, so add quotes: double-quote
14746 # substitution turns \\\\ into \\, and sed turns \\ into \.
14747 sed -n \
14748 "s/'/'\\\\''/g;
14749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14750 ;; #(
14752 # `set' quotes correctly as required by POSIX, so do not add quotes.
14753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14755 esac |
14756 sort
14758 sed '
14759 /^ac_cv_env_/b end
14760 t clear
14761 :clear
14762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14763 t end
14764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14765 :end' >>confcache
14766 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14767 if test -w "$cache_file"; then
14768 if test "x$cache_file" != "x/dev/null"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14770 $as_echo "$as_me: updating cache $cache_file" >&6;}
14771 if test ! -f "$cache_file" || test -h "$cache_file"; then
14772 cat confcache >"$cache_file"
14773 else
14774 case $cache_file in #(
14775 */* | ?:*)
14776 mv -f confcache "$cache_file"$$ &&
14777 mv -f "$cache_file"$$ "$cache_file" ;; #(
14779 mv -f confcache "$cache_file" ;;
14780 esac
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14785 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14788 rm -f confcache
14790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14791 # Let make expand exec_prefix.
14792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14794 DEFS=-DHAVE_CONFIG_H
14796 ac_libobjs=
14797 ac_ltlibobjs=
14799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14800 # 1. Remove the extension, and $U if already installed.
14801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14804 # will be set to the directory where LIBOBJS objects are built.
14805 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14806 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14807 done
14808 LIBOBJS=$ac_libobjs
14810 LTLIBOBJS=$ac_ltlibobjs
14814 : "${CONFIG_STATUS=./config.status}"
14815 ac_write_fail=0
14816 ac_clean_files_save=$ac_clean_files
14817 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14819 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14820 as_write_fail=0
14821 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14822 #! $SHELL
14823 # Generated by $as_me.
14824 # Run this file to recreate the current configuration.
14825 # Compiler output produced by configure, useful for debugging
14826 # configure, is in config.log if it exists.
14828 debug=false
14829 ac_cs_recheck=false
14830 ac_cs_silent=false
14832 SHELL=\${CONFIG_SHELL-$SHELL}
14833 export SHELL
14834 _ASEOF
14835 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14836 ## -------------------- ##
14837 ## M4sh Initialization. ##
14838 ## -------------------- ##
14840 # Be more Bourne compatible
14841 DUALCASE=1; export DUALCASE # for MKS sh
14842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14843 emulate sh
14844 NULLCMD=:
14845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14846 # is contrary to our usage. Disable this feature.
14847 alias -g '${1+"$@"}'='"$@"'
14848 setopt NO_GLOB_SUBST
14849 else
14850 case `(set -o) 2>/dev/null` in #(
14851 *posix*) :
14852 set -o posix ;; #(
14853 *) :
14855 esac
14859 as_nl='
14861 export as_nl
14862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14866 # Prefer a ksh shell builtin over an external printf program on Solaris,
14867 # but without wasting forks for bash or zsh.
14868 if test -z "$BASH_VERSION$ZSH_VERSION" \
14869 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14870 as_echo='print -r --'
14871 as_echo_n='print -rn --'
14872 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14873 as_echo='printf %s\n'
14874 as_echo_n='printf %s'
14875 else
14876 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14877 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14878 as_echo_n='/usr/ucb/echo -n'
14879 else
14880 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14881 as_echo_n_body='eval
14882 arg=$1;
14883 case $arg in #(
14884 *"$as_nl"*)
14885 expr "X$arg" : "X\\(.*\\)$as_nl";
14886 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14887 esac;
14888 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14890 export as_echo_n_body
14891 as_echo_n='sh -c $as_echo_n_body as_echo'
14893 export as_echo_body
14894 as_echo='sh -c $as_echo_body as_echo'
14897 # The user is always right.
14898 if test "${PATH_SEPARATOR+set}" != set; then
14899 PATH_SEPARATOR=:
14900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14901 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14902 PATH_SEPARATOR=';'
14907 # IFS
14908 # We need space, tab and new line, in precisely that order. Quoting is
14909 # there to prevent editors from complaining about space-tab.
14910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14911 # splitting by setting IFS to empty value.)
14912 IFS=" "" $as_nl"
14914 # Find who we are. Look in the path if we contain no directory separator.
14915 as_myself=
14916 case $0 in #((
14917 *[\\/]* ) as_myself=$0 ;;
14918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14924 done
14925 IFS=$as_save_IFS
14928 esac
14929 # We did not find ourselves, most probably we were run as `sh COMMAND'
14930 # in which case we are not to be found in the path.
14931 if test "x$as_myself" = x; then
14932 as_myself=$0
14934 if test ! -f "$as_myself"; then
14935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14936 exit 1
14939 # Unset variables that we do not need and which cause bugs (e.g. in
14940 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14941 # suppresses any "Segmentation fault" message there. '((' could
14942 # trigger a bug in pdksh 5.2.14.
14943 for as_var in BASH_ENV ENV MAIL MAILPATH
14944 do eval test x\${$as_var+set} = xset \
14945 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14946 done
14947 PS1='$ '
14948 PS2='> '
14949 PS4='+ '
14951 # NLS nuisances.
14952 LC_ALL=C
14953 export LC_ALL
14954 LANGUAGE=C
14955 export LANGUAGE
14957 # CDPATH.
14958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14961 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14962 # ----------------------------------------
14963 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14964 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14965 # script with STATUS, using 1 if that was 0.
14966 as_fn_error ()
14968 as_status=$1; test $as_status -eq 0 && as_status=1
14969 if test "$4"; then
14970 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14971 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14973 $as_echo "$as_me: error: $2" >&2
14974 as_fn_exit $as_status
14975 } # as_fn_error
14978 # as_fn_set_status STATUS
14979 # -----------------------
14980 # Set $? to STATUS, without forking.
14981 as_fn_set_status ()
14983 return $1
14984 } # as_fn_set_status
14986 # as_fn_exit STATUS
14987 # -----------------
14988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14989 as_fn_exit ()
14991 set +e
14992 as_fn_set_status $1
14993 exit $1
14994 } # as_fn_exit
14996 # as_fn_unset VAR
14997 # ---------------
14998 # Portably unset VAR.
14999 as_fn_unset ()
15001 { eval $1=; unset $1;}
15003 as_unset=as_fn_unset
15004 # as_fn_append VAR VALUE
15005 # ----------------------
15006 # Append the text in VALUE to the end of the definition contained in VAR. Take
15007 # advantage of any shell optimizations that allow amortized linear growth over
15008 # repeated appends, instead of the typical quadratic growth present in naive
15009 # implementations.
15010 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15011 eval 'as_fn_append ()
15013 eval $1+=\$2
15015 else
15016 as_fn_append ()
15018 eval $1=\$$1\$2
15020 fi # as_fn_append
15022 # as_fn_arith ARG...
15023 # ------------------
15024 # Perform arithmetic evaluation on the ARGs, and store the result in the
15025 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15026 # must be portable across $(()) and expr.
15027 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15028 eval 'as_fn_arith ()
15030 as_val=$(( $* ))
15032 else
15033 as_fn_arith ()
15035 as_val=`expr "$@" || test $? -eq 1`
15037 fi # as_fn_arith
15040 if expr a : '\(a\)' >/dev/null 2>&1 &&
15041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15042 as_expr=expr
15043 else
15044 as_expr=false
15047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15048 as_basename=basename
15049 else
15050 as_basename=false
15053 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15054 as_dirname=dirname
15055 else
15056 as_dirname=false
15059 as_me=`$as_basename -- "$0" ||
15060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15061 X"$0" : 'X\(//\)$' \| \
15062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15063 $as_echo X/"$0" |
15064 sed '/^.*\/\([^/][^/]*\)\/*$/{
15065 s//\1/
15068 /^X\/\(\/\/\)$/{
15069 s//\1/
15072 /^X\/\(\/\).*/{
15073 s//\1/
15076 s/.*/./; q'`
15078 # Avoid depending upon Character Ranges.
15079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15082 as_cr_digits='0123456789'
15083 as_cr_alnum=$as_cr_Letters$as_cr_digits
15085 ECHO_C= ECHO_N= ECHO_T=
15086 case `echo -n x` in #(((((
15087 -n*)
15088 case `echo 'xy\c'` in
15089 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15090 xy) ECHO_C='\c';;
15091 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15092 ECHO_T=' ';;
15093 esac;;
15095 ECHO_N='-n';;
15096 esac
15098 rm -f conf$$ conf$$.exe conf$$.file
15099 if test -d conf$$.dir; then
15100 rm -f conf$$.dir/conf$$.file
15101 else
15102 rm -f conf$$.dir
15103 mkdir conf$$.dir 2>/dev/null
15105 if (echo >conf$$.file) 2>/dev/null; then
15106 if ln -s conf$$.file conf$$ 2>/dev/null; then
15107 as_ln_s='ln -s'
15108 # ... but there are two gotchas:
15109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15111 # In both cases, we have to default to `cp -pR'.
15112 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15113 as_ln_s='cp -pR'
15114 elif ln conf$$.file conf$$ 2>/dev/null; then
15115 as_ln_s=ln
15116 else
15117 as_ln_s='cp -pR'
15119 else
15120 as_ln_s='cp -pR'
15122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15123 rmdir conf$$.dir 2>/dev/null
15126 # as_fn_mkdir_p
15127 # -------------
15128 # Create "$as_dir" as a directory, including parents if necessary.
15129 as_fn_mkdir_p ()
15132 case $as_dir in #(
15133 -*) as_dir=./$as_dir;;
15134 esac
15135 test -d "$as_dir" || eval $as_mkdir_p || {
15136 as_dirs=
15137 while :; do
15138 case $as_dir in #(
15139 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15140 *) as_qdir=$as_dir;;
15141 esac
15142 as_dirs="'$as_qdir' $as_dirs"
15143 as_dir=`$as_dirname -- "$as_dir" ||
15144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15145 X"$as_dir" : 'X\(//\)[^/]' \| \
15146 X"$as_dir" : 'X\(//\)$' \| \
15147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15148 $as_echo X"$as_dir" |
15149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15150 s//\1/
15153 /^X\(\/\/\)[^/].*/{
15154 s//\1/
15157 /^X\(\/\/\)$/{
15158 s//\1/
15161 /^X\(\/\).*/{
15162 s//\1/
15165 s/.*/./; q'`
15166 test -d "$as_dir" && break
15167 done
15168 test -z "$as_dirs" || eval "mkdir $as_dirs"
15169 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15172 } # as_fn_mkdir_p
15173 if mkdir -p . 2>/dev/null; then
15174 as_mkdir_p='mkdir -p "$as_dir"'
15175 else
15176 test -d ./-p && rmdir ./-p
15177 as_mkdir_p=false
15181 # as_fn_executable_p FILE
15182 # -----------------------
15183 # Test if FILE is an executable regular file.
15184 as_fn_executable_p ()
15186 test -f "$1" && test -x "$1"
15187 } # as_fn_executable_p
15188 as_test_x='test -x'
15189 as_executable_p=as_fn_executable_p
15191 # Sed expression to map a string onto a valid CPP name.
15192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15194 # Sed expression to map a string onto a valid variable name.
15195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15198 exec 6>&1
15199 ## ----------------------------------- ##
15200 ## Main body of $CONFIG_STATUS script. ##
15201 ## ----------------------------------- ##
15202 _ASEOF
15203 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15206 # Save the log message, to keep $0 and so on meaningful, and to
15207 # report actual input values of CONFIG_FILES etc. instead of their
15208 # values after options handling.
15209 ac_log="
15210 This file was extended by $as_me, which was
15211 generated by GNU Autoconf 2.69. Invocation command line was
15213 CONFIG_FILES = $CONFIG_FILES
15214 CONFIG_HEADERS = $CONFIG_HEADERS
15215 CONFIG_LINKS = $CONFIG_LINKS
15216 CONFIG_COMMANDS = $CONFIG_COMMANDS
15217 $ $0 $@
15219 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15222 _ACEOF
15224 case $ac_config_files in *"
15225 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15226 esac
15228 case $ac_config_headers in *"
15229 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15230 esac
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 # Files that config.status was made for.
15235 config_files="$ac_config_files"
15236 config_headers="$ac_config_headers"
15237 config_commands="$ac_config_commands"
15239 _ACEOF
15241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242 ac_cs_usage="\
15243 \`$as_me' instantiates files and other configuration actions
15244 from templates according to the current configuration. Unless the files
15245 and actions are specified as TAGs, all are instantiated by default.
15247 Usage: $0 [OPTION]... [TAG]...
15249 -h, --help print this help, then exit
15250 -V, --version print version number and configuration settings, then exit
15251 --config print configuration, then exit
15252 -q, --quiet, --silent
15253 do not print progress messages
15254 -d, --debug don't remove temporary files
15255 --recheck update $as_me by reconfiguring in the same conditions
15256 --file=FILE[:TEMPLATE]
15257 instantiate the configuration file FILE
15258 --header=FILE[:TEMPLATE]
15259 instantiate the configuration header FILE
15261 Configuration files:
15262 $config_files
15264 Configuration headers:
15265 $config_headers
15267 Configuration commands:
15268 $config_commands
15270 Report bugs to the package provider."
15272 _ACEOF
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15275 ac_cs_version="\\
15276 config.status
15277 configured by $0, generated by GNU Autoconf 2.69,
15278 with options \\"\$ac_cs_config\\"
15280 Copyright (C) 2012 Free Software Foundation, Inc.
15281 This config.status script is free software; the Free Software Foundation
15282 gives unlimited permission to copy, distribute and modify it."
15284 ac_pwd='$ac_pwd'
15285 srcdir='$srcdir'
15286 test -n "\$AWK" || AWK=awk
15287 _ACEOF
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 # The default lists apply if the user does not specify any file.
15291 ac_need_defaults=:
15292 while test $# != 0
15294 case $1 in
15295 --*=?*)
15296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15298 ac_shift=:
15300 --*=)
15301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15302 ac_optarg=
15303 ac_shift=:
15306 ac_option=$1
15307 ac_optarg=$2
15308 ac_shift=shift
15310 esac
15312 case $ac_option in
15313 # Handling of the options.
15314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15315 ac_cs_recheck=: ;;
15316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15317 $as_echo "$ac_cs_version"; exit ;;
15318 --config | --confi | --conf | --con | --co | --c )
15319 $as_echo "$ac_cs_config"; exit ;;
15320 --debug | --debu | --deb | --de | --d | -d )
15321 debug=: ;;
15322 --file | --fil | --fi | --f )
15323 $ac_shift
15324 case $ac_optarg in
15325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15326 '') as_fn_error $? "missing file argument" ;;
15327 esac
15328 as_fn_append CONFIG_FILES " '$ac_optarg'"
15329 ac_need_defaults=false;;
15330 --header | --heade | --head | --hea )
15331 $ac_shift
15332 case $ac_optarg in
15333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15334 esac
15335 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15336 ac_need_defaults=false;;
15337 --he | --h)
15338 # Conflict between --help and --header
15339 as_fn_error $? "ambiguous option: \`$1'
15340 Try \`$0 --help' for more information.";;
15341 --help | --hel | -h )
15342 $as_echo "$ac_cs_usage"; exit ;;
15343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15345 ac_cs_silent=: ;;
15347 # This is an error.
15348 -*) as_fn_error $? "unrecognized option: \`$1'
15349 Try \`$0 --help' for more information." ;;
15351 *) as_fn_append ac_config_targets " $1"
15352 ac_need_defaults=false ;;
15354 esac
15355 shift
15356 done
15358 ac_configure_extra_args=
15360 if $ac_cs_silent; then
15361 exec 6>/dev/null
15362 ac_configure_extra_args="$ac_configure_extra_args --silent"
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 if \$ac_cs_recheck; then
15368 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15369 shift
15370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15371 CONFIG_SHELL='$SHELL'
15372 export CONFIG_SHELL
15373 exec "\$@"
15376 _ACEOF
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 exec 5>>config.log
15380 echo
15381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15382 ## Running $as_me. ##
15383 _ASBOX
15384 $as_echo "$ac_log"
15385 } >&5
15387 _ACEOF
15388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15390 # INIT-COMMANDS
15392 aros_tools_dir=${aros_tools_dir}
15395 aros_host_exe_suffix=${aros_host_exe_suffix}
15396 aros_tools_dir=${aros_tools_dir}
15397 aros_target_cpu=${aros_target_cpu}
15398 aros_target_arch=${aros_target_arch}
15399 aros_target_suffix=${aros_target_suffix}
15400 orig_target_nm=${orig_target_nm}
15401 orig_target_as=${orig_target_as}
15402 orig_target_ar=${orig_target_ar}
15403 orig_target_ranlib=${orig_target_ranlib}
15404 orig_target_objdump=${orig_target_objdump}
15405 orig_target_objcopy=${orig_target_objcopy}
15406 orig_target_strip=${orig_target_strip}
15407 aros_kernel_ld=${aros_kernel_ld}
15411 aros_host_exe_suffix=${aros_host_exe_suffix}
15412 aros_tools_dir=${aros_tools_dir}
15413 aros_target_cpu=${aros_target_cpu}
15414 aros_target_arch=${aros_target_arch}
15415 aros_target_suffix=${aros_target_suffix}
15416 aros_kernel_ld=${aros_kernel_ld}
15420 aros_host_exe_suffix=${aros_host_exe_suffix}
15421 aros_tools_dir=${aros_tools_dir}
15422 aros_target_cpu=${aros_target_cpu}
15423 aros_target_arch=${aros_target_arch}
15424 aros_target_suffix=${aros_target_suffix}
15428 _ACEOF
15430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432 # Handling of arguments.
15433 for ac_config_target in $ac_config_targets
15435 case $ac_config_target in
15436 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15437 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15438 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15439 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15440 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15441 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15442 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15443 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15444 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15445 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15446 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15447 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15448 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15449 "${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" ;;
15450 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15451 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15452 "${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" ;;
15453 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15454 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15455 "${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" ;;
15456 "${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" ;;
15457 "${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" ;;
15458 "${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" ;;
15460 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15461 esac
15462 done
15465 # If the user did not use the arguments to specify the items to instantiate,
15466 # then the envvar interface is used. Set only those that are not.
15467 # We use the long form for the default assignment because of an extremely
15468 # bizarre bug on SunOS 4.1.3.
15469 if $ac_need_defaults; then
15470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15475 # Have a temporary directory for convenience. Make it in the build tree
15476 # simply because there is no reason against having it here, and in addition,
15477 # creating and moving files from /tmp can sometimes cause problems.
15478 # Hook for its removal unless debugging.
15479 # Note that there is a small window in which the directory will not be cleaned:
15480 # after its creation but before its name has been assigned to `$tmp'.
15481 $debug ||
15483 tmp= ac_tmp=
15484 trap 'exit_status=$?
15485 : "${ac_tmp:=$tmp}"
15486 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15488 trap 'as_fn_exit 1' 1 2 13 15
15490 # Create a (secure) tmp directory for tmp files.
15493 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15494 test -d "$tmp"
15495 } ||
15497 tmp=./conf$$-$RANDOM
15498 (umask 077 && mkdir "$tmp")
15499 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15500 ac_tmp=$tmp
15502 # Set up the scripts for CONFIG_FILES section.
15503 # No need to generate them if there are no CONFIG_FILES.
15504 # This happens for instance with `./config.status config.h'.
15505 if test -n "$CONFIG_FILES"; then
15508 ac_cr=`echo X | tr X '\015'`
15509 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15510 # But we know of no other shell where ac_cr would be empty at this
15511 # point, so we can use a bashism as a fallback.
15512 if test "x$ac_cr" = x; then
15513 eval ac_cr=\$\'\\r\'
15515 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15516 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15517 ac_cs_awk_cr='\\r'
15518 else
15519 ac_cs_awk_cr=$ac_cr
15522 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15523 _ACEOF
15527 echo "cat >conf$$subs.awk <<_ACEOF" &&
15528 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15529 echo "_ACEOF"
15530 } >conf$$subs.sh ||
15531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15532 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15533 ac_delim='%!_!# '
15534 for ac_last_try in false false false false false :; do
15535 . ./conf$$subs.sh ||
15536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15538 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15539 if test $ac_delim_n = $ac_delim_num; then
15540 break
15541 elif $ac_last_try; then
15542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15543 else
15544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15546 done
15547 rm -f conf$$subs.sh
15549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15551 _ACEOF
15552 sed -n '
15554 s/^/S["/; s/!.*/"]=/
15557 s/^[^!]*!//
15558 :repl
15559 t repl
15560 s/'"$ac_delim"'$//
15561 t delim
15564 s/\(.\{148\}\)..*/\1/
15565 t more1
15566 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15569 b repl
15570 :more1
15571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15574 s/.\{148\}//
15575 t nl
15576 :delim
15578 s/\(.\{148\}\)..*/\1/
15579 t more2
15580 s/["\\]/\\&/g; s/^/"/; s/$/"/
15583 :more2
15584 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15587 s/.\{148\}//
15588 t delim
15589 ' <conf$$subs.awk | sed '
15590 /^[^""]/{
15592 s/\n//
15594 ' >>$CONFIG_STATUS || ac_write_fail=1
15595 rm -f conf$$subs.awk
15596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 _ACAWK
15598 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15599 for (key in S) S_is_set[key] = 1
15600 FS = "\a"
15604 line = $ 0
15605 nfields = split(line, field, "@")
15606 substed = 0
15607 len = length(field[1])
15608 for (i = 2; i < nfields; i++) {
15609 key = field[i]
15610 keylen = length(key)
15611 if (S_is_set[key]) {
15612 value = S[key]
15613 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15614 len += length(value) + length(field[++i])
15615 substed = 1
15616 } else
15617 len += 1 + keylen
15620 print line
15623 _ACAWK
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15626 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15627 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15628 else
15630 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15631 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15632 _ACEOF
15634 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15635 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15636 # trailing colons and then remove the whole line if VPATH becomes empty
15637 # (actually we leave an empty line to preserve line numbers).
15638 if test "x$srcdir" = x.; then
15639 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15641 s///
15642 s/^/:/
15643 s/[ ]*$/:/
15644 s/:\$(srcdir):/:/g
15645 s/:\${srcdir}:/:/g
15646 s/:@srcdir@:/:/g
15647 s/^:*//
15648 s/:*$//
15650 s/\(=[ ]*\).*/\1/
15652 s/\n//
15653 s/^[^=]*=[ ]*$//
15657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15658 fi # test -n "$CONFIG_FILES"
15660 # Set up the scripts for CONFIG_HEADERS section.
15661 # No need to generate them if there are no CONFIG_HEADERS.
15662 # This happens for instance with `./config.status Makefile'.
15663 if test -n "$CONFIG_HEADERS"; then
15664 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15665 BEGIN {
15666 _ACEOF
15668 # Transform confdefs.h into an awk script `defines.awk', embedded as
15669 # here-document in config.status, that substitutes the proper values into
15670 # config.h.in to produce config.h.
15672 # Create a delimiter string that does not exist in confdefs.h, to ease
15673 # handling of long lines.
15674 ac_delim='%!_!# '
15675 for ac_last_try in false false :; do
15676 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15677 if test -z "$ac_tt"; then
15678 break
15679 elif $ac_last_try; then
15680 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15681 else
15682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15684 done
15686 # For the awk script, D is an array of macro values keyed by name,
15687 # likewise P contains macro parameters if any. Preserve backslash
15688 # newline sequences.
15690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15691 sed -n '
15692 s/.\{148\}/&'"$ac_delim"'/g
15693 t rset
15694 :rset
15695 s/^[ ]*#[ ]*define[ ][ ]*/ /
15696 t def
15698 :def
15699 s/\\$//
15700 t bsnl
15701 s/["\\]/\\&/g
15702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15703 D["\1"]=" \3"/p
15704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15706 :bsnl
15707 s/["\\]/\\&/g
15708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15709 D["\1"]=" \3\\\\\\n"\\/p
15710 t cont
15711 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15712 t cont
15714 :cont
15716 s/.\{148\}/&'"$ac_delim"'/g
15717 t clear
15718 :clear
15719 s/\\$//
15720 t bsnlc
15721 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15723 :bsnlc
15724 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15725 b cont
15726 ' <confdefs.h | sed '
15727 s/'"$ac_delim"'/"\\\
15728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731 for (key in D) D_is_set[key] = 1
15732 FS = "\a"
15734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15735 line = \$ 0
15736 split(line, arg, " ")
15737 if (arg[1] == "#") {
15738 defundef = arg[2]
15739 mac1 = arg[3]
15740 } else {
15741 defundef = substr(arg[1], 2)
15742 mac1 = arg[2]
15744 split(mac1, mac2, "(") #)
15745 macro = mac2[1]
15746 prefix = substr(line, 1, index(line, defundef) - 1)
15747 if (D_is_set[macro]) {
15748 # Preserve the white space surrounding the "#".
15749 print prefix "define", macro P[macro] D[macro]
15750 next
15751 } else {
15752 # Replace #undef with comments. This is necessary, for example,
15753 # in the case of _POSIX_SOURCE, which is predefined and required
15754 # on some systems where configure will not decide to define it.
15755 if (defundef == "undef") {
15756 print "/*", prefix defundef, macro, "*/"
15757 next
15761 { print }
15762 _ACAWK
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15766 fi # test -n "$CONFIG_HEADERS"
15769 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15770 shift
15771 for ac_tag
15773 case $ac_tag in
15774 :[FHLC]) ac_mode=$ac_tag; continue;;
15775 esac
15776 case $ac_mode$ac_tag in
15777 :[FHL]*:*);;
15778 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15779 :[FH]-) ac_tag=-:-;;
15780 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15781 esac
15782 ac_save_IFS=$IFS
15783 IFS=:
15784 set x $ac_tag
15785 IFS=$ac_save_IFS
15786 shift
15787 ac_file=$1
15788 shift
15790 case $ac_mode in
15791 :L) ac_source=$1;;
15792 :[FH])
15793 ac_file_inputs=
15794 for ac_f
15796 case $ac_f in
15797 -) ac_f="$ac_tmp/stdin";;
15798 *) # Look for the file first in the build tree, then in the source tree
15799 # (if the path is not absolute). The absolute path cannot be DOS-style,
15800 # because $ac_f cannot contain `:'.
15801 test -f "$ac_f" ||
15802 case $ac_f in
15803 [\\/$]*) false;;
15804 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15805 esac ||
15806 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15807 esac
15808 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15809 as_fn_append ac_file_inputs " '$ac_f'"
15810 done
15812 # Let's still pretend it is `configure' which instantiates (i.e., don't
15813 # use $as_me), people would be surprised to read:
15814 # /* config.h. Generated by config.status. */
15815 configure_input='Generated from '`
15816 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15817 `' by configure.'
15818 if test x"$ac_file" != x-; then
15819 configure_input="$ac_file. $configure_input"
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15821 $as_echo "$as_me: creating $ac_file" >&6;}
15823 # Neutralize special characters interpreted by sed in replacement strings.
15824 case $configure_input in #(
15825 *\&* | *\|* | *\\* )
15826 ac_sed_conf_input=`$as_echo "$configure_input" |
15827 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15828 *) ac_sed_conf_input=$configure_input;;
15829 esac
15831 case $ac_tag in
15832 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15834 esac
15836 esac
15838 ac_dir=`$as_dirname -- "$ac_file" ||
15839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$ac_file" : 'X\(//\)[^/]' \| \
15841 X"$ac_file" : 'X\(//\)$' \| \
15842 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X"$ac_file" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15845 s//\1/
15848 /^X\(\/\/\)[^/].*/{
15849 s//\1/
15852 /^X\(\/\/\)$/{
15853 s//\1/
15856 /^X\(\/\).*/{
15857 s//\1/
15860 s/.*/./; q'`
15861 as_dir="$ac_dir"; as_fn_mkdir_p
15862 ac_builddir=.
15864 case "$ac_dir" in
15865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15867 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15868 # A ".." for each directory in $ac_dir_suffix.
15869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15870 case $ac_top_builddir_sub in
15871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15873 esac ;;
15874 esac
15875 ac_abs_top_builddir=$ac_pwd
15876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15877 # for backward compatibility:
15878 ac_top_builddir=$ac_top_build_prefix
15880 case $srcdir in
15881 .) # We are building in place.
15882 ac_srcdir=.
15883 ac_top_srcdir=$ac_top_builddir_sub
15884 ac_abs_top_srcdir=$ac_pwd ;;
15885 [\\/]* | ?:[\\/]* ) # Absolute name.
15886 ac_srcdir=$srcdir$ac_dir_suffix;
15887 ac_top_srcdir=$srcdir
15888 ac_abs_top_srcdir=$srcdir ;;
15889 *) # Relative name.
15890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15891 ac_top_srcdir=$ac_top_build_prefix$srcdir
15892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15893 esac
15894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15897 case $ac_mode in
15900 # CONFIG_FILE
15903 _ACEOF
15905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15906 # If the template does not know about datarootdir, expand it.
15907 # FIXME: This hack should be removed a few years after 2.60.
15908 ac_datarootdir_hack=; ac_datarootdir_seen=
15909 ac_sed_dataroot='
15910 /datarootdir/ {
15914 /@datadir@/p
15915 /@docdir@/p
15916 /@infodir@/p
15917 /@localedir@/p
15918 /@mandir@/p'
15919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15920 *datarootdir*) ac_datarootdir_seen=yes;;
15921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15924 _ACEOF
15925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926 ac_datarootdir_hack='
15927 s&@datadir@&$datadir&g
15928 s&@docdir@&$docdir&g
15929 s&@infodir@&$infodir&g
15930 s&@localedir@&$localedir&g
15931 s&@mandir@&$mandir&g
15932 s&\\\${datarootdir}&$datarootdir&g' ;;
15933 esac
15934 _ACEOF
15936 # Neutralize VPATH when `$srcdir' = `.'.
15937 # Shell code in configure.ac might set extrasub.
15938 # FIXME: do we really want to maintain this feature?
15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 ac_sed_extra="$ac_vpsub
15941 $extrasub
15942 _ACEOF
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15946 s|@configure_input@|$ac_sed_conf_input|;t t
15947 s&@top_builddir@&$ac_top_builddir_sub&;t t
15948 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15949 s&@srcdir@&$ac_srcdir&;t t
15950 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15951 s&@top_srcdir@&$ac_top_srcdir&;t t
15952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15953 s&@builddir@&$ac_builddir&;t t
15954 s&@abs_builddir@&$ac_abs_builddir&;t t
15955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15956 $ac_datarootdir_hack
15958 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15959 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15964 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15966 which seems to be undefined. Please make sure it is defined" >&5
15967 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15968 which seems to be undefined. Please make sure it is defined" >&2;}
15970 rm -f "$ac_tmp/stdin"
15971 case $ac_file in
15972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15973 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15974 esac \
15975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15979 # CONFIG_HEADER
15981 if test x"$ac_file" != x-; then
15983 $as_echo "/* $configure_input */" \
15984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15985 } >"$ac_tmp/config.h" \
15986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15987 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15989 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15990 else
15991 rm -f "$ac_file"
15992 mv "$ac_tmp/config.h" "$ac_file" \
15993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15995 else
15996 $as_echo "/* $configure_input */" \
15997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15998 || as_fn_error $? "could not create -" "$LINENO" 5
16002 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16003 $as_echo "$as_me: executing $ac_file commands" >&6;}
16005 esac
16008 case $ac_file$ac_mode in
16009 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16010 "binutils-support":C)
16011 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16012 mkdir -p $prefix
16013 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16015 chmod a+x ${prefix2}-ld
16017 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16018 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16019 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16020 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16021 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16022 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16023 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16025 "elf-compiler-support":C)
16026 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16027 mkdir -p $prefix
16028 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16030 chmod a+x ${prefix2}-gcc
16032 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16034 "host-compiler-wrapper-support":C)
16035 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16036 mkdir -p $prefix
16037 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16039 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16042 esac
16043 done # for ac_tag
16046 as_fn_exit 0
16047 _ACEOF
16048 ac_clean_files=$ac_clean_files_save
16050 test $ac_write_fail = 0 ||
16051 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16054 # configure is writing to config.log, and then calls config.status.
16055 # config.status does its own redirection, appending to config.log.
16056 # Unfortunately, on DOS this fails, as config.log is still kept open
16057 # by configure, so config.status won't be able to write to it; its
16058 # output is simply discarded. So we exec the FD to /dev/null,
16059 # effectively closing config.log, so it can be properly (re)opened and
16060 # appended to by config.status. When coming back to configure, we
16061 # need to make the FD available again.
16062 if test "$no_create" != yes; then
16063 ac_cs_success=:
16064 ac_config_status_args=
16065 test "$silent" = yes &&
16066 ac_config_status_args="$ac_config_status_args --quiet"
16067 exec 5>/dev/null
16068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16069 exec 5>>config.log
16070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16071 # would make configure fail if this is the last instruction.
16072 $ac_cs_success || as_fn_exit 1
16074 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16076 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16081 #XXX compatability...
16082 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16084 if test -n "$aros_shared_cflags" ; then
16085 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16086 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg