pass sysroot when it is supposed to.
[AROS.git] / configure
blobe22d3475bb51655565cd794282a2ad553a3c48be
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 *clang*)
4671 aros_host_cc_pipe=""
4673 *gcc*)
4674 aros_host_cc_pipe="-pipe"
4676 icc)
4677 aros_host_cc_pipe=""
4680 aros_host_cc_pipe=""
4682 esac
4684 aros_kernel_cc_includes=""
4685 aros_target_cc_includes=""
4686 host_cc_elf=yes
4688 # ----------------------------------------------------------------------------------------
4689 # Host-specific defaults
4691 # This is the main host configuration section. It is where the host
4692 # can change the values of any variables it needs to change. We do
4693 # not look at anything that compiles to the target yet, we'll get
4694 # to that later.
4696 case "$host_os" in
4697 aros*)
4698 aros_host_arch="aros"
4699 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4700 case "$host_cpu" in
4701 *i?86*)
4702 aros_host_cpu="i386"
4704 *x86_64*)
4705 aros_host_cpu="x86_64"
4707 *powerpc*)
4708 aros_host_cpu="ppc"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4712 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4713 aros_host_cpu="$host_cpu"
4715 esac
4718 linux*)
4719 aros_host_arch="linux"
4720 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4721 android_build_os="linux-x86"
4722 android_tool="android"
4723 default_android_sdk="/opt/android-sdk-linux_x86"
4724 case "$host_cpu" in
4725 *i?86*)
4726 aros_host_cpu="i386"
4728 *x86_64*)
4729 aros_host_cpu="x86_64"
4731 *m68k*)
4732 aros_host_cpu="m68k"
4734 *powerpc*)
4735 aros_host_cpu="ppc"
4737 *arm*)
4738 aros_host_cpu="arm"
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4742 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4743 aros_host_cpu="$host_cpu"
4745 esac
4748 freebsd*)
4749 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4750 aros_host_make="gmake"
4751 aros_host_arch="freebsd"
4752 aros_host_cpu="i386"
4754 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4756 case $host_os in
4757 freebsd[234]*)
4758 aros_object_format="elf_i386"
4762 aros_object_format="elf_i386_fbsd"
4764 esac
4768 darwin*)
4769 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4770 aros_host_arch="darwin"
4771 host_cc_elf=no
4772 SED="gsed"
4773 android_build_os="darwin-x86"
4774 android_tool="android"
4775 default_android_sdk="/android-sdk-mac_x86"
4776 case "$host_cpu" in
4777 *i?86*)
4778 aros_host_cpu="i386"
4780 *x86_64*)
4781 aros_host_cpu="x86_64"
4783 *powerpc*)
4784 aros_host_cpu="ppc"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4793 aros_host_ldflags="$aros_host_ldflags -liconv"
4797 dragonfly*)
4798 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4799 aros_host_make="gmake"
4800 aros_host_arch="dragonfly"
4801 case $host_cpu in
4802 *i?86*)
4803 aros_host_cpu="i386"
4805 *amd64*)
4806 aros_host_cpu="x86_64"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4810 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4811 aros_host_cpu="$host_cpu"
4813 esac
4816 netbsd*)
4817 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4818 aros_host_make="gmake"
4819 aros_host_arch="netbsd"
4820 case "$host_cpu" in
4821 *i?86*)
4822 aros_host_cpu="i386"
4824 *m68k*)
4825 aros_host_cpu="m68k"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4829 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4830 aros_host_cpu="$host_cpu"
4832 esac
4833 aros_host_lib_suffix=".0.0"
4836 openbsd*)
4837 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4838 aros_host_make="gmake"
4839 aros_host_arch="openbsd"
4840 case "$host_cpu" in
4841 *i?86*)
4842 aros_host_cpu="i386"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4852 solaris*)
4853 aros_host_arch="solaris"
4854 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4855 case "$host_cpu" in
4856 *i?86*)
4857 aros_host_cpu="i386"
4859 *sparc*)
4860 aros_host_cpu="sparc"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4864 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4865 aros_host_cpu="$host_cpu"
4867 esac
4870 morphos*)
4871 aros_host_arch="morphos"
4872 aros_host_cpu="ppc"
4873 host_cc_elf=no
4876 amiga*)
4877 aros_host_arch="amiga"
4878 host_cc_elf=no
4879 SORT="/gg/bin/sort"
4880 TEST="/gg/bin/test"
4881 UNIQ="/gg/bin/uniq"
4882 FOR="for"
4883 TOUCH="/gg/bin/touch"
4884 case "$host_cpu" in
4885 *m68k*)
4886 aros_host_cpu="m68k"
4888 *powerpc*)
4889 aros_host_cpu="ppc"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4893 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4894 aros_host_cpu="$host_cpu"
4896 esac
4899 cygwin*)
4900 aros_host_arch="cygwin"
4901 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4902 host_cc_elf=no
4903 android_build_os="windows"
4904 android_tool="android.bat"
4905 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4907 case "$host_cpu" in
4908 *i?86*)
4909 aros_host_cpu="i386"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4913 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4914 aros_host_cpu="$host_cpu"
4916 esac
4919 mingw32*)
4920 aros_host_arch="mingw32"
4921 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4922 host_cc_elf=no
4923 android_build_os="windows"
4924 android_tool="android.bat"
4925 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4927 case "$host_cpu" in
4928 *i?86*)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4931 $as_echo_n "checking for Windows native gcc target... " >&6; }
4932 host_cpu=`gcc -dumpmachine`
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4934 $as_echo "$host_cpu" >&6; }
4937 esac
4939 case "$host_cpu" in
4940 *i?86*)
4941 aros_host_cpu="i386"
4944 mingw32*)
4945 aros_host_cpu="i386"
4948 *x86_64*)
4949 aros_host_cpu="x86_64"
4950 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4955 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4956 aros_host_cpu="$host_cpu"
4958 esac
4961 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4963 esac
4965 # Extract the first word of "ar", so it can be a program name with args.
4966 set dummy ar; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_aros_host_ar+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$aros_host_ar"; then
4973 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_aros_host_ar="ar cr"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4992 aros_host_ar=$ac_cv_prog_aros_host_ar
4993 if test -n "$aros_host_ar"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4995 $as_echo "$aros_host_ar" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 if test "$aros_host_ar" = ""; then
5003 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5005 # Extract the first word of "ranlib", so it can be a program name with args.
5006 set dummy ranlib; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$aros_host_ranlib"; then
5013 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_aros_host_ranlib="ranlib "
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5033 if test -n "$aros_host_ranlib"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5035 $as_echo "$aros_host_ranlib" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 if test "$aros_host_ranlib" = ""; then
5043 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "strip", so it can be a program name with args.
5046 set dummy strip; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_aros_host_strip+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$aros_host_strip"; then
5053 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_aros_host_strip="strip "
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 aros_host_strip=$ac_cv_prog_aros_host_strip
5073 if test -n "$aros_host_strip"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5075 $as_echo "$aros_host_strip" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 if test "$aros_host_strip" = ""; then
5083 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5086 # Extract the first word of "rm", so it can be a program name with args.
5087 set dummy rm; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_RM+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$RM"; then
5094 ac_cv_prog_RM="$RM" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_RM="rm -rf"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 RM=$ac_cv_prog_RM
5114 if test -n "$RM"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5116 $as_echo "$RM" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 if test "$RM" = ""; then
5124 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5126 # Extract the first word of "cp", so it can be a program name with args.
5127 set dummy cp; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_CP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$CP"; then
5134 ac_cv_prog_CP="$CP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_CP="cp "
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5149 IFS=$as_save_IFS
5153 CP=$ac_cv_prog_CP
5154 if test -n "$CP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5156 $as_echo "$CP" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 if test "$CP" = ""; then
5164 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5166 # Extract the first word of "mv", so it can be a program name with args.
5167 set dummy mv; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_MV+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$MV"; then
5174 ac_cv_prog_MV="$MV" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_MV="mv "
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 MV=$ac_cv_prog_MV
5194 if test -n "$MV"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5196 $as_echo "$MV" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 if test "$MV" = ""; then
5204 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5206 # Extract the first word of "echo", so it can be a program name with args.
5207 set dummy echo; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_ECHO+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$ECHO"; then
5214 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_ECHO="echo "
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 ECHO=$ac_cv_prog_ECHO
5234 if test -n "$ECHO"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5236 $as_echo "$ECHO" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 if test "$ECHO" = ""; then
5244 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5246 # Extract the first word of "mkdir", so it can be a program name with args.
5247 set dummy mkdir; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_MKDIR+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$MKDIR"; then
5254 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_MKDIR="mkdir -p"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 MKDIR=$ac_cv_prog_MKDIR
5274 if test -n "$MKDIR"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5276 $as_echo "$MKDIR" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 if test "$MKDIR" = ""; then
5284 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5286 # Extract the first word of "touch", so it can be a program name with args.
5287 set dummy touch; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_TOUCH+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$TOUCH"; then
5294 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_TOUCH="touch "
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5313 TOUCH=$ac_cv_prog_TOUCH
5314 if test -n "$TOUCH"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5316 $as_echo "$TOUCH" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 if test "$TOUCH" = ""; then
5324 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5326 # Extract the first word of "sort", so it can be a program name with args.
5327 set dummy sort; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_prog_SORT+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if test -n "$SORT"; then
5334 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_SORT="sort "
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5349 IFS=$as_save_IFS
5353 SORT=$ac_cv_prog_SORT
5354 if test -n "$SORT"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5356 $as_echo "$SORT" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 if test "$SORT" = ""; then
5364 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5366 # Extract the first word of "uniq", so it can be a program name with args.
5367 set dummy uniq; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_UNIQ+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$UNIQ"; then
5374 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_UNIQ="uniq "
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 UNIQ=$ac_cv_prog_UNIQ
5394 if test -n "$UNIQ"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5396 $as_echo "$UNIQ" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 if test "$UNIQ" = ""; then
5404 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5406 # Extract the first word of "true", so it can be a program name with args.
5407 set dummy true; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_NOP+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$NOP"; then
5414 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_NOP="true "
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5427 done
5428 done
5429 IFS=$as_save_IFS
5433 NOP=$ac_cv_prog_NOP
5434 if test -n "$NOP"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5436 $as_echo "$NOP" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5443 if test "$NOP" = ""; then
5444 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5446 # Extract the first word of "cat", so it can be a program name with args.
5447 set dummy cat; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_CAT+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$CAT"; then
5454 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_CAT="cat "
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 CAT=$ac_cv_prog_CAT
5474 if test -n "$CAT"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5476 $as_echo "$CAT" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 if test "$CAT" = ""; then
5484 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5486 # Extract the first word of "bison", so it can be a program name with args.
5487 set dummy bison; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_BISON+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$BISON"; then
5494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_BISON="bison "
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 BISON=$ac_cv_prog_BISON
5514 if test -n "$BISON"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5516 $as_echo "$BISON" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 if test "$BISON" = ""; then
5524 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5526 # Extract the first word of "flex", so it can be a program name with args.
5527 set dummy flex; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_FLEX+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$FLEX"; then
5534 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_FLEX="flex "
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 FLEX=$ac_cv_prog_FLEX
5554 if test -n "$FLEX"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5556 $as_echo "$FLEX" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 if test "$FLEX" = ""; then
5564 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5566 # Extract the first word of "pngtopnm", so it can be a program name with args.
5567 set dummy pngtopnm; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$PNGTOPNM"; then
5574 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_PNGTOPNM="pngtopnm "
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5589 IFS=$as_save_IFS
5593 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5594 if test -n "$PNGTOPNM"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5596 $as_echo "$PNGTOPNM" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 if test "$PNGTOPNM" = ""; then
5604 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5606 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5607 set dummy ppmtoilbm; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$PPMTOILBM"; then
5614 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5629 IFS=$as_save_IFS
5633 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5634 if test -n "$PPMTOILBM"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5636 $as_echo "$PPMTOILBM" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 if test "$PPMTOILBM" = ""; then
5644 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5646 # Extract the first word of "sed", so it can be a program name with args.
5647 set dummy sed; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_SED+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$SED"; then
5654 ac_cv_prog_SED="$SED" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_SED="sed "
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5667 done
5668 done
5669 IFS=$as_save_IFS
5673 SED=$ac_cv_prog_SED
5674 if test -n "$SED"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5676 $as_echo "$SED" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 if test "$SED" = ""; then
5684 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5686 # Extract the first word of "chmod", so it can be a program name with args.
5687 set dummy chmod; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_CHMOD+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$CHMOD"; then
5694 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_CHMOD="chmod "
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5709 IFS=$as_save_IFS
5713 CHMOD=$ac_cv_prog_CHMOD
5714 if test -n "$CHMOD"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5716 $as_echo "$CHMOD" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 if test "$CHMOD" = ""; then
5724 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5726 # Extract the first word of "patch", so it can be a program name with args.
5727 set dummy patch; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_prog_PATCH+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$PATCH"; then
5734 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743 ac_cv_prog_PATCH="patch "
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5747 done
5748 done
5749 IFS=$as_save_IFS
5753 PATCH=$ac_cv_prog_PATCH
5754 if test -n "$PATCH"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5756 $as_echo "$PATCH" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 if test "$PATCH" = ""; then
5764 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5773 if test -n "$PYTHON"; then
5774 # If the user set $PYTHON, use it and don't search something else.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5776 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5777 prog="import sys
5778 # split strings by '.' and convert to numeric. Append some zeros
5779 # because we need at least 4 digits for the hex conversion.
5780 # map returns an iterator in Python 3.0 and a list in 2.x
5781 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5782 minverhex = 0
5783 # xrange is not present in Python 3.0 and range returns an iterator
5784 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5785 sys.exit(sys.hexversion < minverhex)"
5786 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5787 ($PYTHON -c "$prog") >&5 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then :
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5792 $as_echo "yes" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5798 am_display_PYTHON=$PYTHON
5799 else
5800 # Otherwise, try each interpreter until we find one that satisfies
5801 # VERSION.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5803 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5804 if ${am_cv_pathless_PYTHON+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5808 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
5809 test "$am_cv_pathless_PYTHON" = none && break
5810 prog="import sys
5811 # split strings by '.' and convert to numeric. Append some zeros
5812 # because we need at least 4 digits for the hex conversion.
5813 # map returns an iterator in Python 3.0 and a list in 2.x
5814 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5815 minverhex = 0
5816 # xrange is not present in Python 3.0 and range returns an iterator
5817 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5818 sys.exit(sys.hexversion < minverhex)"
5819 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5820 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; then :
5824 break
5826 done
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5829 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5830 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5831 if test "$am_cv_pathless_PYTHON" = none; then
5832 PYTHON=:
5833 else
5834 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5835 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_path_PYTHON+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 case $PYTHON in
5842 [\\/]* | ?:[\\/]*)
5843 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5857 done
5858 done
5859 IFS=$as_save_IFS
5862 esac
5864 PYTHON=$ac_cv_path_PYTHON
5865 if test -n "$PYTHON"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5867 $as_echo "$PYTHON" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 am_display_PYTHON=$am_cv_pathless_PYTHON
5879 if test "$PYTHON" = :; then
5880 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5881 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5885 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5886 if ${am_cv_python_version+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5892 $as_echo "$am_cv_python_version" >&6; }
5893 PYTHON_VERSION=$am_cv_python_version
5897 PYTHON_PREFIX='${prefix}'
5899 PYTHON_EXEC_PREFIX='${exec_prefix}'
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5904 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5905 if ${am_cv_python_platform+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5911 $as_echo "$am_cv_python_platform" >&6; }
5912 PYTHON_PLATFORM=$am_cv_python_platform
5915 # Just factor out some code duplication.
5916 am_python_setup_sysconfig="\
5917 import sys
5918 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5919 # with python 3.x. See automake bug#10227.
5920 try:
5921 import sysconfig
5922 except ImportError:
5923 can_use_sysconfig = 0
5924 else:
5925 can_use_sysconfig = 1
5926 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5927 # <https://github.com/pypa/virtualenv/issues/118>
5928 try:
5929 from platform import python_implementation
5930 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5931 can_use_sysconfig = 0
5932 except ImportError:
5933 pass"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5937 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5938 if ${am_cv_python_pythondir+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test "x$prefix" = xNONE
5942 then
5943 am_py_prefix=$ac_default_prefix
5944 else
5945 am_py_prefix=$prefix
5947 am_cv_python_pythondir=`$PYTHON -c "
5948 $am_python_setup_sysconfig
5949 if can_use_sysconfig:
5950 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5951 else:
5952 from distutils import sysconfig
5953 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5954 sys.stdout.write(sitedir)"`
5955 case $am_cv_python_pythondir in
5956 $am_py_prefix*)
5957 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5958 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5961 case $am_py_prefix in
5962 /usr|/System*) ;;
5964 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5966 esac
5968 esac
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5972 $as_echo "$am_cv_python_pythondir" >&6; }
5973 pythondir=$am_cv_python_pythondir
5977 pkgpythondir=\${pythondir}/$PACKAGE
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5981 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5982 if ${am_cv_python_pyexecdir+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 if test "x$exec_prefix" = xNONE
5986 then
5987 am_py_exec_prefix=$am_py_prefix
5988 else
5989 am_py_exec_prefix=$exec_prefix
5991 am_cv_python_pyexecdir=`$PYTHON -c "
5992 $am_python_setup_sysconfig
5993 if can_use_sysconfig:
5994 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5995 else:
5996 from distutils import sysconfig
5997 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5998 sys.stdout.write(sitedir)"`
5999 case $am_cv_python_pyexecdir in
6000 $am_py_exec_prefix*)
6001 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6002 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6005 case $am_py_exec_prefix in
6006 /usr|/System*) ;;
6008 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6010 esac
6012 esac
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6016 $as_echo "$am_cv_python_pyexecdir" >&6; }
6017 pyexecdir=$am_cv_python_pyexecdir
6021 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6031 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6032 if ${ac_cv_lib_png_png_read_png+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lpng $LIBS"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6040 /* Override any GCC internal prototype to avoid an error.
6041 Use char because int might match the return type of a GCC
6042 builtin and then its argument prototype would still apply. */
6043 #ifdef __cplusplus
6044 extern "C"
6045 #endif
6046 char png_read_png ();
6048 main ()
6050 return png_read_png ();
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 ac_cv_lib_png_png_read_png=yes
6057 else
6058 ac_cv_lib_png_png_read_png=no
6060 rm -f core conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 LIBS=$ac_check_lib_save_LIBS
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6065 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6066 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_LIBPNG 1
6069 _ACEOF
6071 LIBS="-lpng $LIBS"
6075 if test "$ac_cv_lib_png_png_read_png" = ""; then
6076 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6079 FOR=for
6081 IF=if
6083 TEST=test
6085 CMP=cmp
6089 # Check for some includes for the X11 HIDD and the kernel
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6093 if ${ac_cv_path_GREP+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -z "$GREP"; then
6097 ac_path_GREP_found=false
6098 # Loop through the user's path and test for each of PROGNAME-LIST
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_prog in grep ggrep; do
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6107 as_fn_executable_p "$ac_path_GREP" || continue
6108 # Check for GNU ac_path_GREP and select it if it is found.
6109 # Check for GNU $ac_path_GREP
6110 case `"$ac_path_GREP" --version 2>&1` in
6111 *GNU*)
6112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6114 ac_count=0
6115 $as_echo_n 0123456789 >"conftest.in"
6116 while :
6118 cat "conftest.in" "conftest.in" >"conftest.tmp"
6119 mv "conftest.tmp" "conftest.in"
6120 cp "conftest.in" "conftest.nl"
6121 $as_echo 'GREP' >> "conftest.nl"
6122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124 as_fn_arith $ac_count + 1 && ac_count=$as_val
6125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6126 # Best one so far, save it but keep looking for a better one
6127 ac_cv_path_GREP="$ac_path_GREP"
6128 ac_path_GREP_max=$ac_count
6130 # 10*(2^10) chars as input seems more than enough
6131 test $ac_count -gt 10 && break
6132 done
6133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134 esac
6136 $ac_path_GREP_found && break 3
6137 done
6138 done
6139 done
6140 IFS=$as_save_IFS
6141 if test -z "$ac_cv_path_GREP"; then
6142 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6144 else
6145 ac_cv_path_GREP=$GREP
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6150 $as_echo "$ac_cv_path_GREP" >&6; }
6151 GREP="$ac_cv_path_GREP"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6155 $as_echo_n "checking for egrep... " >&6; }
6156 if ${ac_cv_path_EGREP+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6160 then ac_cv_path_EGREP="$GREP -E"
6161 else
6162 if test -z "$EGREP"; then
6163 ac_path_EGREP_found=false
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_prog in egrep; do
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6173 as_fn_executable_p "$ac_path_EGREP" || continue
6174 # Check for GNU ac_path_EGREP and select it if it is found.
6175 # Check for GNU $ac_path_EGREP
6176 case `"$ac_path_EGREP" --version 2>&1` in
6177 *GNU*)
6178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6180 ac_count=0
6181 $as_echo_n 0123456789 >"conftest.in"
6182 while :
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
6187 $as_echo 'EGREP' >> "conftest.nl"
6188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
6191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6192 # Best one so far, save it but keep looking for a better one
6193 ac_cv_path_EGREP="$ac_path_EGREP"
6194 ac_path_EGREP_max=$ac_count
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6198 done
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 esac
6202 $ac_path_EGREP_found && break 3
6203 done
6204 done
6205 done
6206 IFS=$as_save_IFS
6207 if test -z "$ac_cv_path_EGREP"; then
6208 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6210 else
6211 ac_cv_path_EGREP=$EGREP
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6217 $as_echo "$ac_cv_path_EGREP" >&6; }
6218 EGREP="$ac_cv_path_EGREP"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6222 $as_echo_n "checking for ANSI C header files... " >&6; }
6223 if ${ac_cv_header_stdc+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 #include <stdlib.h>
6229 #include <stdarg.h>
6230 #include <string.h>
6231 #include <float.h>
6234 main ()
6238 return 0;
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 ac_cv_header_stdc=yes
6243 else
6244 ac_cv_header_stdc=no
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 if test $ac_cv_header_stdc = yes; then
6249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <string.h>
6254 _ACEOF
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 $EGREP "memchr" >/dev/null 2>&1; then :
6258 else
6259 ac_cv_header_stdc=no
6261 rm -f conftest*
6265 if test $ac_cv_header_stdc = yes; then
6266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <stdlib.h>
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "free" >/dev/null 2>&1; then :
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f conftest*
6282 if test $ac_cv_header_stdc = yes; then
6283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6284 if test "$cross_compiling" = yes; then :
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <ctype.h>
6290 #include <stdlib.h>
6291 #if ((' ' & 0x0FF) == 0x020)
6292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6294 #else
6295 # define ISLOWER(c) \
6296 (('a' <= (c) && (c) <= 'i') \
6297 || ('j' <= (c) && (c) <= 'r') \
6298 || ('s' <= (c) && (c) <= 'z'))
6299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6300 #endif
6302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6304 main ()
6306 int i;
6307 for (i = 0; i < 256; i++)
6308 if (XOR (islower (i), ISLOWER (i))
6309 || toupper (i) != TOUPPER (i))
6310 return 2;
6311 return 0;
6313 _ACEOF
6314 if ac_fn_c_try_run "$LINENO"; then :
6316 else
6317 ac_cv_header_stdc=no
6319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6320 conftest.$ac_objext conftest.beam conftest.$ac_ext
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6326 $as_echo "$ac_cv_header_stdc" >&6; }
6327 if test $ac_cv_header_stdc = yes; then
6329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6335 inttypes.h stdint.h unistd.h
6336 do :
6337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6338 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6341 cat >>confdefs.h <<_ACEOF
6342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6343 _ACEOF
6347 done
6350 for ac_header in sys/ipc.h sys/shm.h \
6351 sys/mmap.h sys/mman.h sysexits.h \
6352 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6354 do :
6355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6367 for ac_header in sys/mount.h
6368 do :
6369 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6371 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6372 cat >>confdefs.h <<_ACEOF
6373 #define HAVE_SYS_MOUNT_H 1
6374 _ACEOF
6378 done
6381 ac_header_dirent=no
6382 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6383 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6385 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6386 if eval \${$as_ac_Header+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 #include <sys/types.h>
6392 #include <$ac_hdr>
6395 main ()
6397 if ((DIR *) 0)
6398 return 0;
6400 return 0;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 eval "$as_ac_Header=yes"
6405 else
6406 eval "$as_ac_Header=no"
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 eval ac_res=\$$as_ac_Header
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6412 $as_echo "$ac_res" >&6; }
6413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6414 cat >>confdefs.h <<_ACEOF
6415 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6416 _ACEOF
6418 ac_header_dirent=$ac_hdr; break
6421 done
6422 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6423 if test $ac_header_dirent = dirent.h; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6425 $as_echo_n "checking for library containing opendir... " >&6; }
6426 if ${ac_cv_search_opendir+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 ac_func_search_save_LIBS=$LIBS
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 /* Override any GCC internal prototype to avoid an error.
6434 Use char because int might match the return type of a GCC
6435 builtin and then its argument prototype would still apply. */
6436 #ifdef __cplusplus
6437 extern "C"
6438 #endif
6439 char opendir ();
6441 main ()
6443 return opendir ();
6445 return 0;
6447 _ACEOF
6448 for ac_lib in '' dir; do
6449 if test -z "$ac_lib"; then
6450 ac_res="none required"
6451 else
6452 ac_res=-l$ac_lib
6453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6455 if ac_fn_c_try_link "$LINENO"; then :
6456 ac_cv_search_opendir=$ac_res
6458 rm -f core conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext
6460 if ${ac_cv_search_opendir+:} false; then :
6461 break
6463 done
6464 if ${ac_cv_search_opendir+:} false; then :
6466 else
6467 ac_cv_search_opendir=no
6469 rm conftest.$ac_ext
6470 LIBS=$ac_func_search_save_LIBS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6473 $as_echo "$ac_cv_search_opendir" >&6; }
6474 ac_res=$ac_cv_search_opendir
6475 if test "$ac_res" != no; then :
6476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6482 $as_echo_n "checking for library containing opendir... " >&6; }
6483 if ${ac_cv_search_opendir+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 ac_func_search_save_LIBS=$LIBS
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6490 /* Override any GCC internal prototype to avoid an error.
6491 Use char because int might match the return type of a GCC
6492 builtin and then its argument prototype would still apply. */
6493 #ifdef __cplusplus
6494 extern "C"
6495 #endif
6496 char opendir ();
6498 main ()
6500 return opendir ();
6502 return 0;
6504 _ACEOF
6505 for ac_lib in '' x; do
6506 if test -z "$ac_lib"; then
6507 ac_res="none required"
6508 else
6509 ac_res=-l$ac_lib
6510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6512 if ac_fn_c_try_link "$LINENO"; then :
6513 ac_cv_search_opendir=$ac_res
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext
6517 if ${ac_cv_search_opendir+:} false; then :
6518 break
6520 done
6521 if ${ac_cv_search_opendir+:} false; then :
6523 else
6524 ac_cv_search_opendir=no
6526 rm conftest.$ac_ext
6527 LIBS=$ac_func_search_save_LIBS
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6530 $as_echo "$ac_cv_search_opendir" >&6; }
6531 ac_res=$ac_cv_search_opendir
6532 if test "$ac_res" != no; then :
6533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6540 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6541 if ${ac_cv_header_stat_broken+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 #include <sys/types.h>
6547 #include <sys/stat.h>
6549 #if defined S_ISBLK && defined S_IFDIR
6550 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6551 #endif
6553 #if defined S_ISBLK && defined S_IFCHR
6554 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6555 #endif
6557 #if defined S_ISLNK && defined S_IFREG
6558 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6559 #endif
6561 #if defined S_ISSOCK && defined S_IFREG
6562 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6563 #endif
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 ac_cv_header_stat_broken=no
6568 else
6569 ac_cv_header_stat_broken=yes
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6574 $as_echo "$ac_cv_header_stat_broken" >&6; }
6575 if test $ac_cv_header_stat_broken = yes; then
6577 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6582 $as_echo_n "checking for ANSI C header files... " >&6; }
6583 if ${ac_cv_header_stdc+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 #include <stdlib.h>
6589 #include <stdarg.h>
6590 #include <string.h>
6591 #include <float.h>
6594 main ()
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 ac_cv_header_stdc=yes
6603 else
6604 ac_cv_header_stdc=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 if test $ac_cv_header_stdc = yes; then
6609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <string.h>
6614 _ACEOF
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "memchr" >/dev/null 2>&1; then :
6618 else
6619 ac_cv_header_stdc=no
6621 rm -f conftest*
6625 if test $ac_cv_header_stdc = yes; then
6626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 #include <stdlib.h>
6631 _ACEOF
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 $EGREP "free" >/dev/null 2>&1; then :
6635 else
6636 ac_cv_header_stdc=no
6638 rm -f conftest*
6642 if test $ac_cv_header_stdc = yes; then
6643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6644 if test "$cross_compiling" = yes; then :
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #include <ctype.h>
6650 #include <stdlib.h>
6651 #if ((' ' & 0x0FF) == 0x020)
6652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6654 #else
6655 # define ISLOWER(c) \
6656 (('a' <= (c) && (c) <= 'i') \
6657 || ('j' <= (c) && (c) <= 'r') \
6658 || ('s' <= (c) && (c) <= 'z'))
6659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6660 #endif
6662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6664 main ()
6666 int i;
6667 for (i = 0; i < 256; i++)
6668 if (XOR (islower (i), ISLOWER (i))
6669 || toupper (i) != TOUPPER (i))
6670 return 2;
6671 return 0;
6673 _ACEOF
6674 if ac_fn_c_try_run "$LINENO"; then :
6676 else
6677 ac_cv_header_stdc=no
6679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6680 conftest.$ac_objext conftest.beam conftest.$ac_ext
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6686 $as_echo "$ac_cv_header_stdc" >&6; }
6687 if test $ac_cv_header_stdc = yes; then
6689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6694 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6695 if ${ac_cv_header_sys_wait_h+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <sys/wait.h>
6702 #ifndef WEXITSTATUS
6703 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6704 #endif
6705 #ifndef WIFEXITED
6706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6707 #endif
6710 main ()
6712 int s;
6713 wait (&s);
6714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6716 return 0;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_header_sys_wait_h=yes
6721 else
6722 ac_cv_header_sys_wait_h=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6728 if test $ac_cv_header_sys_wait_h = yes; then
6730 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6735 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6736 if ${ac_cv_header_time+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <sys/time.h>
6743 #include <time.h>
6746 main ()
6748 if ((struct tm *) 0)
6749 return 0;
6751 return 0;
6753 _ACEOF
6754 if ac_fn_c_try_compile "$LINENO"; then :
6755 ac_cv_header_time=yes
6756 else
6757 ac_cv_header_time=no
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6762 $as_echo "$ac_cv_header_time" >&6; }
6763 if test $ac_cv_header_time = yes; then
6765 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6769 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6770 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6772 cat >>confdefs.h <<_ACEOF
6773 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6774 _ACEOF
6777 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6782 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6783 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6787 _ACEOF
6790 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6792 else
6793 case " $LIBOBJS " in
6794 *" fileblocks.$ac_objext "* ) ;;
6795 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6797 esac
6802 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6803 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6805 cat >>confdefs.h <<_ACEOF
6806 #define HAVE_STRUCT_STAT_ST_RDEV 1
6807 _ACEOF
6810 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6816 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6817 if ${ac_cv_struct_tm+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #include <sys/types.h>
6823 #include <time.h>
6826 main ()
6828 struct tm tm;
6829 int *p = &tm.tm_sec;
6830 return !p;
6832 return 0;
6834 _ACEOF
6835 if ac_fn_c_try_compile "$LINENO"; then :
6836 ac_cv_struct_tm=time.h
6837 else
6838 ac_cv_struct_tm=sys/time.h
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6843 $as_echo "$ac_cv_struct_tm" >&6; }
6844 if test $ac_cv_struct_tm = sys/time.h; then
6846 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6850 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6851 #include <$ac_cv_struct_tm>
6854 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_STRUCT_TM_TM_ZONE 1
6858 _ACEOF
6863 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6865 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6867 else
6868 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6870 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6871 ac_have_decl=1
6872 else
6873 ac_have_decl=0
6876 cat >>confdefs.h <<_ACEOF
6877 #define HAVE_DECL_TZNAME $ac_have_decl
6878 _ACEOF
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6881 $as_echo_n "checking for tzname... " >&6; }
6882 if ${ac_cv_var_tzname+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <time.h>
6888 #if !HAVE_DECL_TZNAME
6889 extern char *tzname[];
6890 #endif
6893 main ()
6895 return tzname[0][0];
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 ac_cv_var_tzname=yes
6902 else
6903 ac_cv_var_tzname=no
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6909 $as_echo "$ac_cv_var_tzname" >&6; }
6910 if test $ac_cv_var_tzname = yes; then
6912 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6917 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6918 if test "x$ac_cv_type_off_t" = xyes; then :
6920 else
6922 cat >>confdefs.h <<_ACEOF
6923 #define off_t long int
6924 _ACEOF
6928 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6929 if test "x$ac_cv_type_pid_t" = xyes; then :
6931 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define pid_t int
6935 _ACEOF
6939 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6940 if test "x$ac_cv_type_size_t" = xyes; then :
6942 else
6944 cat >>confdefs.h <<_ACEOF
6945 #define size_t unsigned int
6946 _ACEOF
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6951 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6952 if ${ac_cv_type_uid_t+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <sys/types.h>
6959 _ACEOF
6960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961 $EGREP "uid_t" >/dev/null 2>&1; then :
6962 ac_cv_type_uid_t=yes
6963 else
6964 ac_cv_type_uid_t=no
6966 rm -f conftest*
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6970 $as_echo "$ac_cv_type_uid_t" >&6; }
6971 if test $ac_cv_type_uid_t = no; then
6973 $as_echo "#define uid_t int" >>confdefs.h
6976 $as_echo "#define gid_t int" >>confdefs.h
6981 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6982 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6984 cat >>confdefs.h <<_ACEOF
6985 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6986 _ACEOF
6992 # Look for some functions
6993 for ac_func in getpagesize kqueue statfs statvfs \
6994 clone kse_create rfork_thread thr_create sa_register \
6995 getcontext makecontext setcontext sigaltstack swapcontext
6996 do :
6997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7000 cat >>confdefs.h <<_ACEOF
7001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7002 _ACEOF
7005 done
7011 for ac_header in $ac_header_list
7012 do :
7013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7017 cat >>confdefs.h <<_ACEOF
7018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019 _ACEOF
7023 done
7032 for ac_func in getpagesize
7033 do :
7034 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7035 if test "x$ac_cv_func_getpagesize" = xyes; then :
7036 cat >>confdefs.h <<_ACEOF
7037 #define HAVE_GETPAGESIZE 1
7038 _ACEOF
7041 done
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7044 $as_echo_n "checking for working mmap... " >&6; }
7045 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test "$cross_compiling" = yes; then :
7049 ac_cv_func_mmap_fixed_mapped=no
7050 else
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 /* malloc might have been renamed as rpl_malloc. */
7055 #undef malloc
7057 /* Thanks to Mike Haertel and Jim Avera for this test.
7058 Here is a matrix of mmap possibilities:
7059 mmap private not fixed
7060 mmap private fixed at somewhere currently unmapped
7061 mmap private fixed at somewhere already mapped
7062 mmap shared not fixed
7063 mmap shared fixed at somewhere currently unmapped
7064 mmap shared fixed at somewhere already mapped
7065 For private mappings, we should verify that changes cannot be read()
7066 back from the file, nor mmap's back from the file at a different
7067 address. (There have been systems where private was not correctly
7068 implemented like the infamous i386 svr4.0, and systems where the
7069 VM page cache was not coherent with the file system buffer cache
7070 like early versions of FreeBSD and possibly contemporary NetBSD.)
7071 For shared mappings, we should conversely verify that changes get
7072 propagated back to all the places they're supposed to be.
7074 Grep wants private fixed already mapped.
7075 The main things grep needs to know about mmap are:
7076 * does it exist and is it safe to write into the mmap'd area
7077 * how to use it (BSD variants) */
7079 #include <fcntl.h>
7080 #include <sys/mman.h>
7082 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7083 char *malloc ();
7084 #endif
7086 /* This mess was copied from the GNU getpagesize.h. */
7087 #ifndef HAVE_GETPAGESIZE
7088 # ifdef _SC_PAGESIZE
7089 # define getpagesize() sysconf(_SC_PAGESIZE)
7090 # else /* no _SC_PAGESIZE */
7091 # ifdef HAVE_SYS_PARAM_H
7092 # include <sys/param.h>
7093 # ifdef EXEC_PAGESIZE
7094 # define getpagesize() EXEC_PAGESIZE
7095 # else /* no EXEC_PAGESIZE */
7096 # ifdef NBPG
7097 # define getpagesize() NBPG * CLSIZE
7098 # ifndef CLSIZE
7099 # define CLSIZE 1
7100 # endif /* no CLSIZE */
7101 # else /* no NBPG */
7102 # ifdef NBPC
7103 # define getpagesize() NBPC
7104 # else /* no NBPC */
7105 # ifdef PAGESIZE
7106 # define getpagesize() PAGESIZE
7107 # endif /* PAGESIZE */
7108 # endif /* no NBPC */
7109 # endif /* no NBPG */
7110 # endif /* no EXEC_PAGESIZE */
7111 # else /* no HAVE_SYS_PARAM_H */
7112 # define getpagesize() 8192 /* punt totally */
7113 # endif /* no HAVE_SYS_PARAM_H */
7114 # endif /* no _SC_PAGESIZE */
7116 #endif /* no HAVE_GETPAGESIZE */
7119 main ()
7121 char *data, *data2, *data3;
7122 const char *cdata2;
7123 int i, pagesize;
7124 int fd, fd2;
7126 pagesize = getpagesize ();
7128 /* First, make a file with some known garbage in it. */
7129 data = (char *) malloc (pagesize);
7130 if (!data)
7131 return 1;
7132 for (i = 0; i < pagesize; ++i)
7133 *(data + i) = rand ();
7134 umask (0);
7135 fd = creat ("conftest.mmap", 0600);
7136 if (fd < 0)
7137 return 2;
7138 if (write (fd, data, pagesize) != pagesize)
7139 return 3;
7140 close (fd);
7142 /* Next, check that the tail of a page is zero-filled. File must have
7143 non-zero length, otherwise we risk SIGBUS for entire page. */
7144 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7145 if (fd2 < 0)
7146 return 4;
7147 cdata2 = "";
7148 if (write (fd2, cdata2, 1) != 1)
7149 return 5;
7150 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7151 if (data2 == MAP_FAILED)
7152 return 6;
7153 for (i = 0; i < pagesize; ++i)
7154 if (*(data2 + i))
7155 return 7;
7156 close (fd2);
7157 if (munmap (data2, pagesize))
7158 return 8;
7160 /* Next, try to mmap the file at a fixed address which already has
7161 something else allocated at it. If we can, also make sure that
7162 we see the same garbage. */
7163 fd = open ("conftest.mmap", O_RDWR);
7164 if (fd < 0)
7165 return 9;
7166 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7167 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7168 return 10;
7169 for (i = 0; i < pagesize; ++i)
7170 if (*(data + i) != *(data2 + i))
7171 return 11;
7173 /* Finally, make sure that changes to the mapped area do not
7174 percolate back to the file as seen by read(). (This is a bug on
7175 some variants of i386 svr4.0.) */
7176 for (i = 0; i < pagesize; ++i)
7177 *(data2 + i) = *(data2 + i) + 1;
7178 data3 = (char *) malloc (pagesize);
7179 if (!data3)
7180 return 12;
7181 if (read (fd, data3, pagesize) != pagesize)
7182 return 13;
7183 for (i = 0; i < pagesize; ++i)
7184 if (*(data + i) != *(data3 + i))
7185 return 14;
7186 close (fd);
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_run "$LINENO"; then :
7191 ac_cv_func_mmap_fixed_mapped=yes
7192 else
7193 ac_cv_func_mmap_fixed_mapped=no
7195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7196 conftest.$ac_objext conftest.beam conftest.$ac_ext
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7201 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7202 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7204 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7207 rm -f conftest.mmap conftest.txt
7212 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7213 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7214 aros_config_ldflags=""
7216 aros_shared_default=yes
7218 aros_shared_cflags="-fPIC"
7219 aros_shared_aflags=""
7220 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7221 aros_kernel_ldflags="-Wl,-rpath,./lib"
7223 aros_kernel_ar_flags="cr"
7224 aros_target_ar_flags="cr"
7225 aros_target_nm_flags="-C -ul"
7226 aros_target_strip_flags="--strip-unneeded -R.comment"
7228 aros_compiler_libs=
7229 aros_arch_libs=
7231 aros_target_genmap="-Wl,-Map -Xlinker"
7233 # Native flavour stuff
7234 aros_serial_debug="0"
7236 # Palm native flavour stuff
7237 aros_palm_debug_hack="0"
7239 # Unix flavour stuff
7240 aros_nesting_supervisor="0"
7242 # Collect-aros stuff: "-ius" to ignore undefined symbols
7243 ignore_undefined_symbols=""
7245 # Check for X11 by default
7246 need_x11="auto"
7248 #-----------------------------------------------------------------------------
7251 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7252 # it switched on by default, and we use the host compiler, so it compiles AROS
7253 # code with this enabled resulting in link failures as we don't have support
7254 # for it.
7256 # We use two methods to disable it. For the host compiler (used to compile
7257 # some hosted modules), we test to see if the compiler supports stack
7258 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7259 # work on all platforms.
7261 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7262 # (this is done unconditionally, as it should have no effect on compilers
7263 # without the stack protection feature). This may be specific to the way that
7264 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7265 # strong enough to disable it in a generic way though, so we'll live with it
7266 # until another vendor ships GCC with it enabled in a different way, and deal
7267 # with it then.
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7271 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7272 save_cflags="$CFLAGS"
7273 CFLAGS="$CFLAGS -fno-stack-protector"
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7278 main ()
7282 return 0;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 use_no_stack_protector="yes"
7287 else
7288 use_no_stack_protector="no"
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7292 $as_echo "$use_no_stack_protector" >&6; }
7293 if test "x-$use_no_stack_protector" = "x-yes" ; then
7294 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7296 CFLAGS="$save_cflags"
7298 #-----------------------------------------------------------------------------
7300 # Disable pointer-signedness warnings if the compiler recognises the option
7301 # (this only works for the host compiler at the moment)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7304 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7305 save_cflags="$CFLAGS"
7306 CFLAGS="$CFLAGS -Wno-pointer-sign"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 main ()
7315 return 0;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 use_no_sign_warning="yes"
7320 else
7321 use_no_sign_warning="no"
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7325 $as_echo "$use_no_sign_warning" >&6; }
7326 if test "x-$use_no_sign_warning" = "x-yes" ; then
7327 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7329 CFLAGS="$save_cflags"
7331 #-----------------------------------------------------------------------------
7333 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7336 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7337 save_cflags="$CFLAGS"
7338 CFLAGS="$CFLAGS -fgnu89-inline"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7343 main ()
7347 return 0;
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351 use_gnu89_inline="yes"
7352 else
7353 use_gnu89_inline="no"
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7357 $as_echo "$use_gnu89_inline" >&6; }
7358 if test "x-$use_gnu89_inline" = "x-yes" ; then
7359 gnu89_inline="-fgnu89-inline"
7361 CFLAGS="$save_cflags"
7363 #-----------------------------------------------------------------------------
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7366 $as_echo_n "checking for type of build... " >&6; }
7367 # Check whether --enable-build_type was given.
7368 if test "${enable_build_type+set}" = set; then :
7369 enableval=$enable_build_type; build_type=$enableval
7370 else
7371 build_type="personal"
7375 if test "$build_type" = "nightly"; then
7376 build_type_string="NIGHTLY"
7377 elif test "$build_type" = "snapshot"; then
7378 build_type_string="SNAPSHOT"
7379 elif test "$build_type" = "milestone"; then
7380 build_type_string="MILESTONE"
7381 elif test "$build_type" = "release"; then
7382 build_type_string="RELEASE"
7383 else
7384 build_type_string="PERSONAL"
7385 build_type="personal"
7388 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7391 $as_echo "$build_type" >&6; }
7393 #-----------------------------------------------------------------------------
7394 all_debug_types="messages stack modules mungwall symbols"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7397 $as_echo_n "checking which debug types to enable... " >&6; }
7398 # Check whether --enable-debug was given.
7399 if test "${enable_debug+set}" = set; then :
7400 enableval=$enable_debug; debug="$enableval"
7401 else
7402 debug=""
7406 if test "$debug" = "" -o "$debug" = "no"; then
7407 debug="none"
7408 elif test "$debug" = "yes"; then
7409 debug="all"
7412 if test "$debug" = "all" ; then
7413 debug="messages stack modules symbols"
7414 for d in $all_debug_types; do
7415 export aros_${d}_debug="1"
7416 done
7417 else
7418 for d in $all_debug_types; do
7419 export aros_${d}_debug="0"
7420 done
7423 if test "$debug" != "none"; then
7424 debug=`echo $debug | sed s/,/\ /g`
7425 for d in $debug; do
7426 found="0"
7427 for d2 in $all_debug_types; do
7428 if test "$d2" = "$d"; then
7429 found="1"
7430 break
7432 done
7433 if test "$found" = "0"; then
7434 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7436 export aros_${d}_debug="1"
7437 done
7438 aros_debug="yes"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7441 $as_echo "$debug" >&6; }
7443 if test "$aros_messages_debug" = "1"; then
7444 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7445 else
7446 aros_messages_debug=""
7448 if test "$aros_symbols_debug" = "1"; then
7449 aros_symbols_debug="-g"
7450 else
7451 aros_symbols_debug=""
7454 # These are the flags to pass when compiling debugged programs
7455 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7456 aros_debug_aflags=""
7457 aros_debug_ldflags="$aros_symbols_debug"
7459 #-----------------------------------------------------------------------------
7460 # Checking for distcc and ccache.
7462 # Always apply the transforms in this particular order. Basically you should
7463 # always run 'ccache distcc compiler' in that order for the best performance.
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7466 $as_echo_n "checking whether to enable distcc... " >&6; }
7467 # Check whether --enable-distcc was given.
7468 if test "${enable_distcc+set}" = set; then :
7469 enableval=$enable_distcc; distcc="$enableval"
7470 else
7471 distcc="no"
7474 if test "$distcc" != "" -a "$distcc" != "no"; then
7475 # AC_CHECK_PROG will print out the result in this case
7476 # Extract the first word of "distcc", so it can be a program name with args.
7477 set dummy distcc; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_path_DISTCC+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 case $DISTCC in
7484 [\\/]* | ?:[\\/]*)
7485 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7499 done
7500 done
7501 IFS=$as_save_IFS
7503 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7505 esac
7507 DISTCC=$ac_cv_path_DISTCC
7508 if test -n "$DISTCC"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7510 $as_echo "$DISTCC" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7523 $as_echo_n "checking whether to enable ccache... " >&6; }
7524 # Check whether --enable-ccache was given.
7525 if test "${enable_ccache+set}" = set; then :
7526 enableval=$enable_ccache; ccache="$enableval"
7527 else
7528 ccache="no"
7531 if test "$ccache" != "" -a "$ccache" != "no"; then
7532 # AC_CHECK_PROG will print out the result in this case
7533 # Extract the first word of "ccache", so it can be a program name with args.
7534 set dummy ccache; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_CCACHE+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$CCACHE"; then
7541 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_CCACHE="ccache"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 CCACHE=$ac_cv_prog_CCACHE
7561 if test -n "$CCACHE"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7563 $as_echo "$CCACHE" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7575 #-----------------------------------------------------------------------------
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7577 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7579 # Check whether --with-kernel-gcc-version was given.
7580 if test "${with_kernel_gcc_version+set}" = set; then :
7581 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7582 else
7583 kernel_tool_version=""
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7587 $as_echo "$kernel_tool_version" >&6; }
7589 #-----------------------------------------------------------------------------
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7591 $as_echo_n "checking what optimization flags to use... " >&6; }
7593 # Check whether --with-optimization was given.
7594 if test "${with_optimization+set}" = set; then :
7595 withval=$with_optimization; optimization="$withval"
7596 else
7597 optimization="unknown"
7600 if test "$optimization" = "unknown"; then
7601 if test "$debug" != "none"; then
7602 optimization="-O0"
7603 else
7604 optimization="-O2"
7607 aros_optimization_cflags="$optimization"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7609 $as_echo "$optimization" >&6; }
7611 #-----------------------------------------------------------------------------
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7613 $as_echo_n "checking what paranoia flags to use... " >&6; }
7615 # Check whether --with-paranoia was given.
7616 if test "${with_paranoia+set}" = set; then :
7617 withval=$with_paranoia; paranoia_flags="$withval"
7618 else
7619 paranoia_flags="default"
7622 if test "$paranoia_flags" = "default"; then
7623 paranoia_flags=""
7624 else if test "$paranoia_flags" = "yes"; then
7625 paranoia_flags="-Wall -Werror"
7626 fi fi
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7628 $as_echo "$paranoia_flags" >&6; }
7629 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7631 #-----------------------------------------------------------------------------
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7633 $as_echo_n "checking what target variant to enable... " >&6; }
7634 # Check whether --enable-target_variant was given.
7635 if test "${enable_target_variant+set}" = set; then :
7636 enableval=$enable_target_variant; target_variant=$enableval
7637 else
7638 target_variant=""
7641 if test "$target_variant" = ""; then
7642 aros_target_variant=""
7643 aros_target_suffix=""
7644 enableval="none"
7645 else
7646 aros_target_variant="$target_variant"
7647 aros_target_suffix="-$target_variant"
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7650 $as_echo "$enableval" >&6; }
7652 #-----------------------------------------------------------------------------
7653 # Target-specific defaults. You can override then on a per-target basis.
7655 # Bootloader name. Currently used by PC target.
7656 target_bootloader="none"
7658 #-----------------------------------------------------------------------------
7659 # Additional options for some specific targets
7661 case "$aros_target_variant" in
7662 ios)
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7664 $as_echo_n "checking XCode path... " >&6; }
7666 # Check whether --with-xcode was given.
7667 if test "${with_xcode+set}" = set; then :
7668 withval=$with_xcode; aros_xcode_path="$withval"
7669 else
7670 aros_xcode_path="/Developer"
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7674 $as_echo "$aros_xcode_path" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7677 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7679 # Check whether --with-sdk-version was given.
7680 if test "${with_sdk_version+set}" = set; then :
7681 withval=$with_sdk_version; aros_sdk_version="$withval"
7682 else
7683 aros_sdk_version="4.1"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7687 $as_echo "$aros_sdk_version" >&6; }
7691 "android")
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7693 $as_echo_n "checking Android SDK path... " >&6; }
7695 # Check whether --with-sdk was given.
7696 if test "${with_sdk+set}" = set; then :
7697 withval=$with_sdk; aros_android_sdk="$withval"
7698 else
7699 aros_android_sdk=$default_android_sdk
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7703 $as_echo "$aros_android_sdk" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7706 $as_echo_n "checking Android NDK path... " >&6; }
7708 # Check whether --with-ndk was given.
7709 if test "${with_ndk+set}" = set; then :
7710 withval=$with_ndk; aros_android_ndk="$withval"
7711 else
7712 aros_android_ndk="none"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7716 $as_echo "$aros_android_ndk" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7719 $as_echo_n "checking what Android SDK version to use... " >&6; }
7721 # Check whether --with-sdk-version was given.
7722 if test "${with_sdk_version+set}" = set; then :
7723 withval=$with_sdk_version; aros_sdk_version="$withval"
7724 else
7725 aros_sdk_version="12"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7729 $as_echo "$aros_sdk_version" >&6; }
7731 aros_android_level=android-$aros_sdk_version
7732 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7733 echo "Platform $aros_android_level is not installed in your SDK"
7734 echo "Use --with-sdk-version=<API level number> to select another platform version"
7735 echo "You can check what plaform versions are installed in your SDK"
7736 echo "by examining contents of $aros_android_sdk/platforms directory"
7737 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7740 export PATH="$aros_android_sdk/tools:$PATH"
7741 # Extract the first word of "$android_tool", so it can be a program name with args.
7742 set dummy $android_tool; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_path_android_tool+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 case $android_tool in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7769 esac
7771 android_tool=$ac_cv_path_android_tool
7772 if test -n "$android_tool"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7774 $as_echo "$android_tool" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7781 if test "$android_tool" = ""; then
7782 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7785 if test "$aros_android_ndk" != "none"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7787 $as_echo_n "checking what Android NDK version to use... " >&6; }
7789 # Check whether --with-ndk-version was given.
7790 if test "${with_ndk_version+set}" = set; then :
7791 withval=$with_ndk_version; aros_ndk_version="$withval"
7792 else
7793 aros_ndk_version="9"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7797 $as_echo "$aros_ndk_version" >&6; }
7800 # Extract the first word of "ant", so it can be a program name with args.
7801 set dummy ant; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_path_ant+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 case $ant in
7808 [\\/]* | ?:[\\/]*)
7809 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7828 esac
7830 ant=$ac_cv_path_ant
7831 if test -n "$ant"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7833 $as_echo "$ant" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7840 if test "$ant" = ""; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7842 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7846 $as_echo_n "checking Build debug or release apk... " >&6; }
7848 # Check whether --with-apk-version was given.
7849 if test "${with_apk_version+set}" = set; then :
7850 withval=$with_apk_version; aros_android_antapk=$withval
7851 else
7852 aros_android_antapk=release
7855 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7856 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7859 $as_echo "$aros_android_antapk" >&6; }
7861 if test "$host_os" = "mingw32"; then
7862 android_tool="cmd //c $android_tool"
7865 need_dlopen="no"
7868 esac
7870 #-----------------------------------------------------------------------------
7871 # External toolchains
7872 kernel_tool_prefix="none"
7873 aros_tool_prefix="none"
7874 elf_tool_prefix="${target_cpu}-elf-"
7876 # This is the target configuration switch.
7877 case "$target_os" in
7878 linux*)
7879 aros_target_arch="linux"
7880 aros_target_family="unix"
7881 case "$target_cpu" in
7882 *m68k*)
7883 aros_target_cpu="m68k"
7884 aros_object_format="m68kelf"
7885 aros_flavour="emulcompat"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7887 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7888 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7889 gcc_target_cpu="mc68000"
7891 *i?86*)
7892 aros_target_cpu="i386"
7893 aros_object_format="elf_i386"
7894 aros_flavour="emulation"
7895 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7896 aros_kernel_ldflags="-Wl,-melf_i386"
7897 aros_default_wbdepth=8
7898 gcc_target_cpu="i386"
7899 pci_hidd_target="hidd-pci-linux"
7900 android_tool_dir_prefix="x86"
7901 android_tool_prefix="i686-android-linux"
7902 android_ndk_arch="x86"
7904 *x86_64*)
7905 aros_target_cpu="x86_64"
7906 aros_object_format="elf_x86_64"
7907 aros_flavour="emulation"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7909 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7910 aros_default_wbdepth=8
7911 pci_hidd_target="hidd-pci-linux"
7913 *powerpc*)
7914 aros_target_cpu="ppc"
7915 aros_object_format="elf32ppc"
7916 aros_flavour="emulation"
7917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7918 aros_default_wbdepth=8
7919 gcc_target_cpu="ppc"
7921 # TODO
7922 # Same as powerpc, but I need this for the nightly build to work again.
7923 # Actually, the nightly should be made working with powerpc target.
7924 # That just was too much work for the moment, another week or two.
7925 *ppc*)
7926 aros_target_cpu="ppc"
7927 aros_object_format="elf32ppc"
7928 aros_flavour="emulation"
7929 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7930 aros_default_wbdepth=8
7931 gcc_target_cpu="ppc"
7933 *armhf*)
7934 aros_target_cpu="arm"
7935 target_cpu="arm"
7936 aros_object_format="armelf_aros"
7937 aros_flavour="emulation"
7938 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7939 gcc_target_cpu="arm"
7940 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7941 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7942 aros_arch_libs="-laeabi"
7943 gcc_default_float_abi="hard"
7944 android_tool_dir_prefix="arm-linux-androideabi"
7945 android_tool_prefix="arm-linux-androideabi"
7946 android_ndk_arch="arm"
7947 kernel_tool_prefix="arm-linux-gnueabihf-"
7949 *arm*)
7950 aros_target_cpu="arm"
7951 aros_object_format="armelf_aros"
7952 aros_flavour="emulation"
7953 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7954 gcc_target_cpu="arm"
7955 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7956 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7957 aros_arch_libs="-laeabi"
7958 android_tool_dir_prefix="arm-linux-androideabi"
7959 android_tool_prefix="arm-linux-androideabi"
7960 android_ndk_arch="arm"
7961 kernel_tool_prefix="arm-linux-gnueabi-"
7964 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7966 esac
7967 case "$aros_target_variant" in
7968 android)
7970 if test "$android_ndk_arch" = ""; then
7971 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7974 aros_default_wbwidth=320
7975 aros_default_wbheight=480
7976 if test "$aros_android_ndk" = "none"; then
7977 aros_kernel_cflags="-mandroid"
7978 aros_kernel_ldflags="-mandroid"
7979 CFLAGS="-mandroid"
7980 else
7981 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7982 kernel_tool_version=""
7983 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7984 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7985 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7986 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7987 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7989 need_x11=no
7990 unixgfx_hidd_target=kernel-hidd-androidgfx
7991 # Disable implicit PIC mode
7992 aros_target_cflags="$aros_target_cflags -fno-pic"
7993 kernel_tool_prefix="$android_tool_prefix-"
7995 esac
7999 aros_target_arch="pc"
8000 aros_shared_default="no"
8001 target_bootloader="grub2"
8002 case "$target_cpu" in
8003 *i?86*)
8004 aros_target_cpu="i386"
8007 if test "$aros_object_format" = "" ; then
8008 aros_object_format="elf_i386"
8010 aros_flavour="standalone"
8011 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8012 aros_kernel_ldflags="-Wl,-melf_i386"
8013 aros_default_wbwidth=640
8014 aros_default_wbheight=480
8015 gcc_target_cpu="i386"
8017 *x86_64*)
8018 aros_target_cpu="x86_64"
8019 aros_serial_debug=1
8020 if test "$aros_object_format" = "" ; then
8021 aros_object_format="elf_x86_64"
8023 aros_flavour="standalone"
8024 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8025 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8026 aros_kernel_ldflags=""
8027 aros_default_wbwidth=640
8028 aros_default_wbheight=480
8031 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8033 esac
8036 prep)
8037 aros_target_arch="prep"
8038 aros_shared_default="no"
8039 aros_target_cpu="ppc"
8040 aros_object_format="elf32ppc"
8041 aros_flavour="ppcnative"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8043 aros_kernel_ldflags=""
8044 aros_default_wbwidth=640
8045 aros_default_wbheight=480
8046 gcc_target_cpu="ppc"
8049 freebsd*)
8050 aros_target_arch="freebsd"
8051 aros_target_family="unix"
8052 aros_target_cpu="i386"
8053 aros_flavour="emulation"
8054 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8055 gcc_target_cpu="i386"
8057 aros_target_strip_flags="-x"
8060 darwin*)
8061 aros_target_arch="darwin"
8062 aros_target_family="unix"
8063 aros_flavour="emulation"
8064 case "$target_cpu" in
8065 *i?86*)
8066 aros_ios_platform="iPhoneSimulator"
8067 aros_target_cpu="i386"
8068 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8069 aros_kernel_ldflags=""
8070 aros_macosx_version="10.4"
8071 aros_default_wbdepth=8
8072 gcc_target_cpu="i386"
8073 aros_object_format="elf_i386"
8074 aros_kernel_ar_flags="-cr"
8075 aros_target_strip_flags="-x"
8076 kernel_tool_flags="-m32"
8078 *x86_64*)
8079 aros_target_cpu="x86_64"
8080 aros_object_format="elf_x86_64"
8081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8082 aros_macosx_version="10.6"
8083 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8084 aros_kernel_cflags="-m64"
8085 aros_kernel_ldflags="-m64"
8086 aros_target_cflags="-mcmodel=large"
8087 aros_default_wbdepth=8
8088 aros_kernel_ar="ar"
8089 aros_kernel_ar_flags="-cr"
8090 aros_kernel_ld="ld"
8091 aros_kernel_as="as"
8092 aros_kernel_ranlib="ranlib"
8093 aros_kernel_nm="nm"
8094 aros_kernel_strip="strip"
8095 kernel_tool_prefix="i686-apple-darwin10-"
8097 *ppc*)
8098 aros_target_cpu="ppc"
8099 aros_object_format="elf32ppc"
8100 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8101 aros_kernel_ldflags=""
8102 aros_macosx_version="10.0"
8103 aros_default_wbdepth=8
8104 gcc_target_cpu="ppc"
8105 aros_kernel_ar="ar"
8106 aros_kernel_ar_flags="-cr"
8107 aros_kernel_ld="ld -arch ppc"
8108 aros_kernel_as="as -arch ppc"
8109 aros_kernel_ranlib="ranlib -arch ppc"
8110 aros_kernel_nm="nm -arch ppc"
8111 aros_kernel_strip="strip -arch ppc"
8112 kernel_tool_prefix="powerpc-apple-darwin10-"
8114 *arm*)
8115 aros_ios_platform="iPhoneOS"
8116 aros_target_cpu="arm"
8117 aros_object_format="armelf_aros"
8118 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8119 aros_arch_libs="-laeabi"
8120 aros_default_wbdepth=8
8121 gcc_target_cpu="arm"
8122 aros_kernel_ar="ar"
8123 aros_kernel_ar_flags="-cr"
8124 aros_kernel_ld="ld -arch arm"
8125 aros_kernel_ranlib="ranlib -arch arm"
8126 kernel_tool_prefix="arm-apple-darwin10-"
8127 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8130 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8132 esac
8133 case "$aros_target_variant" in
8134 ios)
8135 aros_ios_version="3.0"
8136 aros_default_wbwidth=320
8137 aros_default_wbheight=480
8138 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8139 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8140 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8141 need_x11=no
8142 # This is here because it may depend on iOS or SDK version
8143 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8144 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8145 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8148 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8149 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8151 esac
8154 dragonfly*)
8155 aros_target_arch="dragonfly"
8156 aros_target_family="unix"
8157 aros_flavour="emulation"
8158 case "$target_cpu" in
8159 *i?86*)
8160 aros_target_cpu="i386"
8161 aros_object_format="elf_i386"
8162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8164 *x86_64*)
8165 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8166 aros_target_cpu="x86_64"
8167 aros_object_format="elf_x86_64"
8168 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8171 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8173 esac
8176 netbsd*)
8177 aros_target_arch="netbsd"
8178 aros_target_family="unix"
8179 case "$target_cpu" in
8180 *m68k*)
8181 aros_target_cpu="m68k"
8182 aros_object_format="m68kelf"
8183 aros_flavour="emulcompat"
8184 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8185 gcc_target_cpu="mc68000"
8187 *i?86*)
8188 aros_target_cpu="i386"
8189 aros_object_format="elf_i386"
8190 aros_flavour="emulation"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8192 aros_default_wbdepth=8
8193 gcc_target_cpu="i386"
8196 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8198 esac
8199 aros_target_genmap="-Wl,-M -Xlinker >"
8200 aros_flavour="emulation"
8201 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8204 openbsd*)
8205 aros_target_arch="openbsd"
8206 aros_target_family="unix"
8207 case "$target_cpu" in
8208 *i?86*)
8209 aros_target_cpu="i386"
8210 aros_object_format="elf_i386"
8211 aros_flavour="emulation"
8212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8213 gcc_target_cpu="i386"
8216 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8218 esac
8219 aros_target_genmap="-Wl,-M -Xlinker >"
8220 aros_target_nm_flags="-u"
8221 aros_flavour="emulation"
8224 solaris*)
8225 aros_target_arch="solaris"
8226 aros_target_family="unix"
8227 case "$target_cpu" in
8228 *i?86*)
8229 aros_target_cpu="i386"
8230 aros_object_format="elf_i386"
8231 aros_flavour="emulation"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8233 aros_default_wbdepth=8
8234 gcc_target_cpu="i386"
8236 *sparc*)
8237 aros_target_cpu="sparc"
8238 aros_object_format="elf_sparc"
8239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8240 gcc_target_cpu="sparc"
8243 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8245 esac
8246 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8247 aros_flavour="emulation"
8250 morphos*)
8251 aros_target_arch="morphos"
8252 aros_shared_default="no"
8253 aros_target_cpu="ppc"
8254 aros_object_format="elf_ppc"
8255 aros_flavour="nativecompat"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8257 gcc_target_cpu="ppc"
8260 sam440)
8261 aros_target_arch="sam440"
8262 aros_shared_default="no"
8263 aros_target_cpu="ppc"
8264 aros_object_format="elf32ppc"
8265 aros_flavour="ppcnative"
8266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8267 aros_kernel_ldflags=""
8268 aros_default_wbwidth=1024
8269 aros_default_wbheight=768
8270 aros_default_wbdepth=24
8271 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8272 gcc_target_cpu="powerpc"
8275 efika)
8276 aros_target_arch="efika"
8277 aros_shared_default="no"
8278 aros_target_cpu="arm"
8279 aros_object_format="armelf_aros"
8280 aros_flavour="standalone"
8281 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8282 aros_kernel_ldflags=""
8283 aros_default_wbwidth=1024
8284 aros_default_wbheight=600
8285 aros_arch_libs="-laeabi"
8286 gcc_default_cpu="armv7-a"
8287 gcc_default_fpu="vfpv3"
8288 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8289 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8290 aros_optimization_cflags="$aros_optimization_cflags -Os"
8291 case "$target_cpu" in
8292 *armhf*)
8293 gcc_default_float_abi="hard"
8294 target_cpu=arm
8295 aros_target_cpu=arm
8297 *arm*)
8298 gcc_default_float_abi="softfp"
8301 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8303 esac
8306 chrp)
8307 aros_target_arch="chrp"
8308 aros_shared_default="no"
8309 aros_target_cpu="ppc"
8310 aros_object_format="elf32ppc"
8311 aros_flavour="ppcnative"
8312 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8313 aros_kernel_ldflags=""
8314 aros_default_wbwidth=640
8315 aros_default_wbheight=480
8316 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8317 gcc_target_cpu="powerpc"
8318 case "$aros_target_variant" in
8319 efika)
8320 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8322 esac
8325 r*pi)
8326 aros_flavour="standalone"
8327 aros_target_arch="raspi"
8328 aros_target_cpu="arm"
8329 aros_object_format="armelf_aros"
8330 aros_shared_default="no"
8331 aros_arch_libs="-laeabi"
8333 gcc_default_cpu="armv6"
8334 gcc_default_cpu_tune="arm1176jzf-s"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8337 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8338 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8339 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8340 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8343 sun4i)
8344 aros_flavour="standalone"
8345 aros_target_arch="sun4i"
8346 aros_target_cpu="arm"
8347 aros_object_format="armelf_aros"
8348 aros_shared_default="no"
8349 aros_arch_libs="-laeabi"
8351 gcc_default_cpu="armv7-a"
8352 gcc_default_fpu="neon"
8353 gcc_default_cpu_tune="cortex-a8"
8354 gcc_default_float_abi="hard"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8357 aros_optimization_cflags=""
8358 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8359 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8362 amiga*)
8363 aros_target_arch="amiga"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8365 aros_shared_default="no"
8367 case "$target_cpu" in
8368 *m68k*)
8369 # Check whether --enable-amigaos_compliance was given.
8370 if test "${enable_amigaos_compliance+set}" = set; then :
8371 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8374 aros_enable_mmu=no
8375 aros_target_cpu="m68k"
8376 aros_object_format="m68kelf"
8377 aros_flavour="standcompat"
8378 gcc_target_cpu="m68000"
8379 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8380 aros_optimization_cflags="$aros_optimization_cflags -Os"
8381 aros_config_aflags="$aros_config_aflags"
8382 aros_target_strip_flags="-R.comment --strip-debug"
8383 aros_default_wbwidth=640
8384 aros_default_wbheight=256
8385 aros_default_wbdepth=2
8387 *ppc*)
8388 aros_cpu="ppc"
8389 aros_flavour="native"
8390 gcc_target_cpu="ppc"
8393 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8395 esac
8398 mingw*)
8399 aros_target_arch="mingw32"
8400 aros_shared_default="no"
8401 aros_flavour="emulation"
8402 aros_shared_cflags=""
8403 need_crosstools="yes"
8404 need_dlopen="no"
8405 rescomp="windres"
8406 case "$target_cpu" in
8407 *i?86*)
8408 aros_target_cpu="i386"
8409 aros_object_format="elf_i386"
8410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8411 aros_default_wbdepth=8
8412 gcc_target_cpu="i386"
8414 kernel_tool_prefix="i386-mingw32-"
8416 *x86_64*)
8417 aros_target_cpu="x86_64"
8418 aros_object_format="elf_x86_64"
8419 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8420 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8421 aros_default_wbdepth=8
8422 kernel_tool_prefix="x86_64-w64-mingw32-"
8424 *arm*)
8425 aros_target_cpu="arm"
8426 aros_object_format="armelf_aros"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8428 aros_arch_libs="-laeabi"
8429 aros_default_wbdepth=8
8430 gcc_target_cpu="arm"
8431 gcc_default_float_abi="soft"
8432 kernel_tool_prefix="arm-mingw32ce-"
8433 aros_default_wbwidth=160
8434 aros_default_wbheight=160
8437 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8439 esac
8440 if test $host_os = "cygwin"; then
8441 aros_kernel_cflags="-mno-cygwin"
8444 pp*)
8445 aros_target_arch="pp"
8446 aros_shared_default="no"
8447 case "$target_cpu" in
8448 *m68k*)
8449 aros_target_cpu="m68k"
8450 aros_object_format="m68kelf"
8451 aros_flavour="palmnative"
8452 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8453 aros_default_wbwidth=160
8454 aros_default_wbheight=160
8455 aros_default_wbdepth=1
8456 aros_target_ar_flags="cru"
8457 aros_compiler_libs="-lgcc1"
8458 aros_shared_default=no
8459 aros_shared_cflags="-fpic"
8460 aros_shared_aflags=""
8461 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8462 aros_kernel_ldflags="-Wl,-rpath,./lib"
8463 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8464 aros_debug_aflags=""
8465 aros_debug_ldflags="$aros_symbols_debug"
8466 aros_mungwall_debug="0"
8467 aros_modules_debug="0"
8468 gcc_target_cpu="mc68000"
8469 ignore_undefined_symbols="-ius"
8472 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8474 esac
8477 mac*)
8478 aros_target_arch="mac"
8479 aros_shared_default="no"
8480 case "$target_cpu" in
8481 *m68k*)
8482 aros_target_cpu="m68k"
8483 aros_object_format="m68kelf"
8484 aros_flavour="mac68knative"
8485 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8486 aros_default_wbwidth=512
8487 aros_default_wbheight=384
8488 aros_default_wbdepth=8
8489 aros_target_ar_flags="cru"
8490 aros_compiler_libs="-lgcc1"
8491 aros_shared_default=no
8492 aros_shared_cflags="-fpic"
8493 aros_shared_aflags=""
8494 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8495 aros_kernel_ldflags="-Wl,-rpath,./lib"
8496 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8497 aros_debug_aflags=""
8498 aros_debug_ldflags="$aros_symbols_debug"
8499 aros_mungwall_debug="0"
8500 aros_modules_debug="0"
8501 gcc_target_cpu="mc68000"
8502 ignore_undefined_symbols="-ius"
8505 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8507 esac
8511 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8513 esac
8515 #-----------------------------------------------------------------------------
8516 crosstools_guess="yes"
8517 aros_target_toolchain="no"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8520 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8522 # Check whether --with-kernel-toolchain-prefix was given.
8523 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8524 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8528 $as_echo "$kernel_tool_prefix" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8531 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8533 # Check whether --with-elf-toolchain-prefix was given.
8534 if test "${with_elf_toolchain_prefix+set}" = set; then :
8535 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8536 crosstools_guess="no"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8540 $as_echo "$elf_tool_prefix" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8543 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8545 # Check whether --with-aros-toolchain was given.
8546 if test "${with_aros_toolchain+set}" = set; then :
8547 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8548 crosstools_guess="no"
8551 if test "$aros_tool_prefix" = "yes" ; then
8552 aros_tool_prefix=$aros_target_cpu-aros-
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8555 $as_echo "$aros_tool_prefix" >&6; }
8557 #-----------------------------------------------------------------------------
8558 # Checking if we should build crosstools..
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8560 $as_echo_n "checking whether to build crosstools... " >&6; }
8561 # Check whether --enable-crosstools was given.
8562 if test "${enable_crosstools+set}" = set; then :
8563 enableval=$enable_crosstools; crosstools="$enableval"
8564 else
8565 crosstools="$crosstools_guess"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8569 $as_echo "$crosstools" >&6; }
8571 if test "${crosstools}" = "yes"; then
8572 if test "${crosstools_guess}" = "no"; then
8573 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8577 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8578 aros_target_toolchain="yes"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8582 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8584 # Check whether --with-aros-toolchain-install was given.
8585 if test "${with_aros_toolchain_install+set}" = set; then :
8586 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8589 if test "x$aros_toolchain_install" = "x"; then
8590 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8591 else
8592 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8593 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8594 if test "$crosstools_guess" = "no" ; then
8595 aros_config_cflags="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development $aros_config_cflags"
8596 aros_config_ldflags="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development $aros_config_ldflags"
8597 aros_kernel_cflags="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development $aros_kernel_cflags"
8598 aros_kernel_ldflags="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development $aros_kernel_ldflags"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8602 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8604 # Helper to identify gcc version
8607 #-----------------------------------------------------------------------------
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8609 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8611 # Check whether --with-gcc-version was given.
8612 if test "${with_gcc_version+set}" = set; then :
8613 withval=$with_gcc_version; use_gcc_version="$withval"
8614 else
8615 use_gcc_version=""
8618 if test "$use_gcc_version" = ""; then
8619 if test "${crosstools}" = "no"; then
8620 if test "x$aros_toolchain_install" != "x"; then
8622 target_gcc_version=""
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8624 $as_echo_n "checking gcc version... " >&6; }
8625 if ${ax_cv_gcc_version+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8629 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8630 if test "x$ax_cv_gcc_version" = "x"; then :
8632 ax_cv_gcc_version=""
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8638 $as_echo "$ax_cv_gcc_version" >&6; }
8639 target_gcc_version=$ax_cv_gcc_version
8644 if test "$use_gcc_version" = ""; then
8645 target_gcc_version="4.6.4"
8647 else
8648 target_gcc_version="$use_gcc_version"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8651 $as_echo "$target_gcc_version" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8654 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8655 # Check whether --enable-objc was given.
8656 if test "${enable_objc+set}" = set; then :
8657 enableval=$enable_objc; objc="$enableval"
8658 else
8659 objc="yes"
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8663 $as_echo "$objc" >&6; }
8664 if test "x$objc" = "xyes"; then
8665 objc_target="$objc"
8666 else
8667 objc_target="no-objc"
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8671 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8672 # Check whether --enable-java was given.
8673 if test "${enable_java+set}" = set; then :
8674 enableval=$enable_java; java="$enableval"
8675 else
8676 java="no"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8680 $as_echo "$java" >&6; }
8681 if test "x$java" != "xno"; then
8682 java_target="$java"
8683 else
8684 java_target="no-java"
8687 spec_obj_format="-m $aros_object_format"
8688 # Now process extra architecture-specific options.
8689 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8690 # as well as floating-point ABI.
8691 case "$aros_target_cpu" in
8692 *x86_64*)
8693 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8695 arm*)
8696 if test "$gcc_default_cpu" = ""; then
8697 gcc_default_cpu="armv6"
8699 if test "$gcc_default_fpu" = ""; then
8700 gcc_default_fpu="vfp"
8702 if test "$gcc_default_float_abi" = ""; then
8703 if test "$target_cpu" = "armhf"; then
8704 gcc_default_float_abi="hard"
8705 else
8706 gcc_default_float_abi="softfp"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8711 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8713 # Check whether --with-cpu was given.
8714 if test "${with_cpu+set}" = set; then :
8715 withval=$with_cpu; aros_gcc_cpu="$withval"
8716 else
8717 aros_gcc_cpu=$gcc_default_cpu
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8721 $as_echo "$aros_gcc_cpu" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8724 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8726 # Check whether --with-fpu was given.
8727 if test "${with_fpu+set}" = set; then :
8728 withval=$with_fpu; aros_gcc_fpu="$withval"
8729 else
8730 aros_gcc_fpu=$gcc_default_fpu
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8734 $as_echo "$aros_gcc_fpu" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8737 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8739 # Check whether --with-float was given.
8740 if test "${with_float+set}" = set; then :
8741 withval=$with_float; aros_gcc_float_abi="$withval"
8742 else
8743 aros_gcc_float_abi=$gcc_default_float_abi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8747 $as_echo "$aros_gcc_float_abi" >&6; }
8749 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8750 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8751 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8753 i386)
8754 aros_isa_flags="-m32 -march=i486"
8755 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8756 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8758 esac
8760 # Some architectures may need custom ELF specs.
8761 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8762 elf_specs_in=config/${aros_object_format}-specs.in
8763 else
8764 elf_specs_in=config/elf-specs.in
8767 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8768 # Since we override specs, we may need to put these defines there
8769 if test "$gcc_target_cpu" != ""; then
8770 gcc_target_cpu="-D__${gcc_target_cpu}__"
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8774 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8776 # Check whether --with-portssources was given.
8777 if test "${with_portssources+set}" = set; then :
8778 withval=$with_portssources; with_portssrcdir=$withval
8779 else
8780 with_portssrcdir="default"
8783 if test "$with_portssrcdir" = "default"; then
8784 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8785 else
8786 AROS_PORTSSRCDIR="$with_portssrcdir"
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8789 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8792 $as_echo_n "checking which bootloader to use... " >&6; }
8794 # Check whether --with-bootloader was given.
8795 if test "${with_bootloader+set}" = set; then :
8796 withval=$with_bootloader; target_bootloader=$withval
8797 else
8798 target_bootloader=$target_bootloader
8801 if test "$target_bootloader" = "none"; then
8802 aros_target_bootloader=""
8803 else
8804 aros_target_bootloader="$target_bootloader"
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8807 $as_echo "$target_bootloader" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8810 $as_echo_n "checking which icon-set to use... " >&6; }
8812 # Check whether --with-iconset was given.
8813 if test "${with_iconset+set}" = set; then :
8814 withval=$with_iconset; target_iconset=$withval
8815 else
8816 target_iconset="default"
8819 if test "$target_iconset" = "default"; then
8820 aros_target_iconset="Gorilla"
8821 target_iconset="default (Gorilla)"
8822 else
8823 aros_target_iconset="$target_iconset"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8826 $as_echo "$target_iconset" >&6; }
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8829 $as_echo_n "checking which GUI Theme to use... " >&6; }
8831 # Check whether --with-theme was given.
8832 if test "${with_theme+set}" = set; then :
8833 withval=$with_theme; target_guitheme=$withval
8834 else
8835 target_guitheme="default"
8838 if test "$target_guitheme" = "default"; then
8839 aros_target_guitheme="Ice"
8840 else
8841 aros_target_guitheme="$target_guitheme"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8844 $as_echo "$aros_target_guitheme" >&6; }
8846 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8847 # for target code)
8848 cross_compiling=no
8850 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8851 cross_compiling=yes
8854 if test "$aros_host_cpu" == "x86_64" ; then
8855 if test "$aros_target_cpu" == "i386" ; then
8856 cross_compiling=no
8860 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8861 if test "$aros_host_arch" != "$aros_target_arch" ; then
8862 cross_compiling=yes
8864 else
8865 if test "$host_cc_elf" = "no" ; then
8866 cross_compiling=yes
8870 if test "$cross_compiling" = "no" ; then
8871 kernel_tool_prefix=""
8872 if test "$host_cc_elf" = "yes" ; then
8873 elf_tool_prefix=""
8877 if test "$kernel_tool_version" != ""; then
8878 kernel_tool_version="-$kernel_tool_version"
8881 #######################################################################
8882 ## Compute what toolchains to use, and their paths ##
8883 #######################################################################
8885 # This takes, as input:
8886 # crosstools {yes,no}
8887 # kernel_tool_version {"",[version]}
8888 # target_tool_version {"",[version]}
8889 # kernel_tool_prefix {none,[some-arch-os-]}
8890 # target_tool_prefix ${aros_target_cpu}-aros-
8891 # aros_tool_prefix ${aros_target_cpu}-aros-
8893 # The output is
8894 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8895 # Where the 'kernel' binaries are located
8896 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8897 # Where the 'target' binaries are located
8898 # (not the symlink farm - that is aros_target_*!)
8900 # The rules are:
8901 # if crosstools then
8902 # if kernel_tools_prefix = "no-kernel-prefix-"
8903 # aros_kernel_* = crosstools cc paths
8904 # aros_kernel_cc = elf cc wrapper around crosstools cc
8905 # else
8906 # VALIDATE(${kernel_tools_prefix}*)
8907 # aros_kernel_* = ${kernel_tools_prefix}*
8908 # if ${kernel_tools_prefix}cc is an AROS gcc
8909 # aros_kernel_cc = ${kernel_tools_prefix}cc
8910 # else
8911 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8912 # fi
8913 # fi
8915 # orig_target_* = aros built crosstools
8916 # orig_target_cc = elf cc wrapper around crosstools cc
8917 # else
8918 # VALIDATE(${kernel_tools_prefix}*)
8920 # orig_target_* = aros_kernel_*
8921 # if aros_kernel_cc is an AROS gcc
8922 # orig_target_cc = aros_kernel_cc
8923 # else
8924 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8925 # fi
8926 # fi
8928 target_tool_prefix="${aros_target_cpu}-aros-"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8931 $as_echo_n "checking which kernel tools... " >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8933 $as_echo "$kernel_tool_prefix" >&6; };
8935 if test "$kernel_tool_prefix" = "none" ; then
8936 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8937 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8939 else
8940 # Kernel tools required - find them
8941 # Note that 'normally', aros_kernel_* overrides will be
8942 # empty, unless specified in the per-arch sections above.
8943 if test "x$aros_kernel_cpp" = "x"; then
8944 aros_kernel_cpp=${kernel_tool_prefix}cpp
8947 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8948 if test "$cross_compiling" = "yes" ; then
8949 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8950 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $aros_kernel_cpp in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8968 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8980 if test -n "$aros_kernel_cpp"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8982 $as_echo "$aros_kernel_cpp" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8989 else
8990 if test "$GCC" = "yes"; then
8991 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8992 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8993 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $aros_kernel_cpp in
9000 [\\/]* | ?:[\\/]*)
9001 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in `dirname $aros_gcc_cpp`
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9020 esac
9022 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9023 if test -n "$aros_kernel_cpp"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9025 $as_echo "$aros_kernel_cpp" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9033 if test "$aros_kernel_cpp" = ""; then
9034 # Extract the first word of "cpp", so it can be a program name with args.
9035 set dummy cpp; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 case $aros_kernel_cpp in
9042 [\\/]* | ?:[\\/]*)
9043 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9053 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9057 done
9058 done
9059 IFS=$as_save_IFS
9062 esac
9064 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9065 if test -n "$aros_kernel_cpp"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9067 $as_echo "$aros_kernel_cpp" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9076 else
9077 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9078 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 case $aros_kernel_cpp in
9085 [\\/]* | ?:[\\/]*)
9086 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9100 done
9101 done
9102 IFS=$as_save_IFS
9105 esac
9107 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9108 if test -n "$aros_kernel_cpp"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9110 $as_echo "$aros_kernel_cpp" >&6; }
9111 else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9119 if test "$aros_kernel_cpp" = ""; then
9120 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9122 if test "x$aros_kernel_cc" = "x"; then
9123 aros_kernel_cc=${kernel_tool_prefix}gcc
9126 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9127 if test "$cross_compiling" = "yes" ; then
9128 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9129 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 case $aros_kernel_cc in
9136 [\\/]* | ?:[\\/]*)
9137 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9147 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9151 done
9152 done
9153 IFS=$as_save_IFS
9156 esac
9158 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9159 if test -n "$aros_kernel_cc"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9161 $as_echo "$aros_kernel_cc" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9168 else
9169 if test "$GCC" = "yes"; then
9170 aros_gcc_cc=`$CC -print-prog-name=cc`
9171 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9172 set dummy `basename $aros_gcc_cc`; ac_word=$2
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 $as_echo_n "checking for $ac_word... " >&6; }
9175 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 case $aros_kernel_cc in
9179 [\\/]* | ?:[\\/]*)
9180 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in `dirname $aros_gcc_cc`
9186 IFS=$as_save_IFS
9187 test -z "$as_dir" && as_dir=.
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9190 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 break 2
9194 done
9195 done
9196 IFS=$as_save_IFS
9199 esac
9201 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9202 if test -n "$aros_kernel_cc"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9204 $as_echo "$aros_kernel_cc" >&6; }
9205 else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9212 if test "$aros_kernel_cc" = ""; then
9213 # Extract the first word of "cc", so it can be a program name with args.
9214 set dummy cc; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 case $aros_kernel_cc in
9221 [\\/]* | ?:[\\/]*)
9222 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9238 IFS=$as_save_IFS
9241 esac
9243 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9244 if test -n "$aros_kernel_cc"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9246 $as_echo "$aros_kernel_cc" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9255 else
9256 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9257 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 case $aros_kernel_cc in
9264 [\\/]* | ?:[\\/]*)
9265 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9279 done
9280 done
9281 IFS=$as_save_IFS
9284 esac
9286 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9287 if test -n "$aros_kernel_cc"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9289 $as_echo "$aros_kernel_cc" >&6; }
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9298 if test "$aros_kernel_cc" = ""; then
9299 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9301 if test "x$aros_kernel_cxx" = "x"; then
9302 aros_kernel_cxx=${kernel_tool_prefix}g++
9305 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9306 if test "$cross_compiling" = "yes" ; then
9307 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9308 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 $as_echo_n "checking for $ac_word... " >&6; }
9311 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 case $aros_kernel_cxx in
9315 [\\/]* | ?:[\\/]*)
9316 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9330 done
9331 done
9332 IFS=$as_save_IFS
9335 esac
9337 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9338 if test -n "$aros_kernel_cxx"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9340 $as_echo "$aros_kernel_cxx" >&6; }
9341 else
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9347 else
9348 if test "$GCC" = "yes"; then
9349 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9350 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9351 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 case $aros_kernel_cxx in
9358 [\\/]* | ?:[\\/]*)
9359 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in `dirname $aros_gcc_cxx`
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9373 done
9374 done
9375 IFS=$as_save_IFS
9378 esac
9380 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9381 if test -n "$aros_kernel_cxx"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9383 $as_echo "$aros_kernel_cxx" >&6; }
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386 $as_echo "no" >&6; }
9391 if test "$aros_kernel_cxx" = ""; then
9392 # Extract the first word of "cxx", so it can be a program name with args.
9393 set dummy cxx; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 case $aros_kernel_cxx in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9420 esac
9422 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9423 if test -n "$aros_kernel_cxx"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9425 $as_echo "$aros_kernel_cxx" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9434 else
9435 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9436 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 case $aros_kernel_cxx in
9443 [\\/]* | ?:[\\/]*)
9444 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9454 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9458 done
9459 done
9460 IFS=$as_save_IFS
9463 esac
9465 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9466 if test -n "$aros_kernel_cxx"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9468 $as_echo "$aros_kernel_cxx" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9477 # If it's set, make sure it's really there
9478 if test "x$aros_kernel_cxx" != "x" ; then
9479 if test "$aros_kernel_cxx" = ""; then
9480 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9484 if test "$aros_kernel_ld" = ""; then
9485 if test "$cross_compiling" = "yes" ; then
9486 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9487 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 case $aros_kernel_ld in
9494 [\\/]* | ?:[\\/]*)
9495 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9509 done
9510 done
9511 IFS=$as_save_IFS
9514 esac
9516 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9517 if test -n "$aros_kernel_ld"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9519 $as_echo "$aros_kernel_ld" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9526 else
9527 if test "$GCC" = "yes"; then
9528 aros_gcc_ld=`$CC -print-prog-name=ld`
9529 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9530 set dummy `basename $aros_gcc_ld`; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 case $aros_kernel_ld in
9537 [\\/]* | ?:[\\/]*)
9538 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in `dirname $aros_gcc_ld`
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9552 done
9553 done
9554 IFS=$as_save_IFS
9557 esac
9559 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9560 if test -n "$aros_kernel_ld"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9562 $as_echo "$aros_kernel_ld" >&6; }
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9570 if test "$aros_kernel_ld" = ""; then
9571 # Extract the first word of "ld", so it can be a program name with args.
9572 set dummy ld; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 case $aros_kernel_ld in
9579 [\\/]* | ?:[\\/]*)
9580 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9594 done
9595 done
9596 IFS=$as_save_IFS
9599 esac
9601 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9602 if test -n "$aros_kernel_ld"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9604 $as_echo "$aros_kernel_ld" >&6; }
9605 else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9613 else
9614 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9615 set dummy $aros_kernel_ld; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 case $aros_kernel_ld in
9622 [\\/]* | ?:[\\/]*)
9623 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9633 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9642 esac
9644 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9645 if test -n "$aros_kernel_ld"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9647 $as_echo "$aros_kernel_ld" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9656 if test "$aros_kernel_ld" = ""; then
9657 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9660 if test "$aros_kernel_as" = ""; then
9661 if test "$cross_compiling" = "yes" ; then
9662 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9663 set dummy ${kernel_tool_prefix}as; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if ${ac_cv_path_aros_kernel_as+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 case $aros_kernel_as in
9670 [\\/]* | ?:[\\/]*)
9671 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9685 done
9686 done
9687 IFS=$as_save_IFS
9690 esac
9692 aros_kernel_as=$ac_cv_path_aros_kernel_as
9693 if test -n "$aros_kernel_as"; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9695 $as_echo "$aros_kernel_as" >&6; }
9696 else
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 $as_echo "no" >&6; }
9702 else
9703 if test "$GCC" = "yes"; then
9704 aros_gcc_as=`$CC -print-prog-name=as`
9705 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9706 set dummy `basename $aros_gcc_as`; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if ${ac_cv_path_aros_kernel_as+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 case $aros_kernel_as in
9713 [\\/]* | ?:[\\/]*)
9714 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in `dirname $aros_gcc_as`
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9728 done
9729 done
9730 IFS=$as_save_IFS
9733 esac
9735 aros_kernel_as=$ac_cv_path_aros_kernel_as
9736 if test -n "$aros_kernel_as"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9738 $as_echo "$aros_kernel_as" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9746 if test "$aros_kernel_as" = ""; then
9747 # Extract the first word of "as", so it can be a program name with args.
9748 set dummy as; ac_word=$2
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 $as_echo_n "checking for $ac_word... " >&6; }
9751 if ${ac_cv_path_aros_kernel_as+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 case $aros_kernel_as in
9755 [\\/]* | ?:[\\/]*)
9756 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9772 IFS=$as_save_IFS
9775 esac
9777 aros_kernel_as=$ac_cv_path_aros_kernel_as
9778 if test -n "$aros_kernel_as"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9780 $as_echo "$aros_kernel_as" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9789 else
9790 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9791 set dummy $aros_kernel_as; ac_word=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if ${ac_cv_path_aros_kernel_as+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 case $aros_kernel_as in
9798 [\\/]* | ?:[\\/]*)
9799 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803 for as_dir in $PATH
9805 IFS=$as_save_IFS
9806 test -z "$as_dir" && as_dir=.
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9809 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9811 break 2
9813 done
9814 done
9815 IFS=$as_save_IFS
9818 esac
9820 aros_kernel_as=$ac_cv_path_aros_kernel_as
9821 if test -n "$aros_kernel_as"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9823 $as_echo "$aros_kernel_as" >&6; }
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9832 if test "$aros_kernel_as" = ""; then
9833 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9836 if test "$aros_kernel_ar" = ""; then
9837 if test "$cross_compiling" = "yes" ; then
9838 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9839 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 case $aros_kernel_ar in
9846 [\\/]* | ?:[\\/]*)
9847 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9861 done
9862 done
9863 IFS=$as_save_IFS
9866 esac
9868 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9869 if test -n "$aros_kernel_ar"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9871 $as_echo "$aros_kernel_ar" >&6; }
9872 else
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9878 else
9879 if test "$GCC" = "yes"; then
9880 aros_gcc_ar=`$CC -print-prog-name=ar`
9881 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9882 set dummy `basename $aros_gcc_ar`; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 case $aros_kernel_ar in
9889 [\\/]* | ?:[\\/]*)
9890 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in `dirname $aros_gcc_ar`
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9904 done
9905 done
9906 IFS=$as_save_IFS
9909 esac
9911 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9912 if test -n "$aros_kernel_ar"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9914 $as_echo "$aros_kernel_ar" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9922 if test "$aros_kernel_ar" = ""; then
9923 # Extract the first word of "ar", so it can be a program name with args.
9924 set dummy ar; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 case $aros_kernel_ar in
9931 [\\/]* | ?:[\\/]*)
9932 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9946 done
9947 done
9948 IFS=$as_save_IFS
9951 esac
9953 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9954 if test -n "$aros_kernel_ar"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9956 $as_echo "$aros_kernel_ar" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9965 else
9966 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9967 set dummy $aros_kernel_ar; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 case $aros_kernel_ar in
9974 [\\/]* | ?:[\\/]*)
9975 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9989 done
9990 done
9991 IFS=$as_save_IFS
9994 esac
9996 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9997 if test -n "$aros_kernel_ar"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9999 $as_echo "$aros_kernel_ar" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10008 if test "$aros_kernel_ar" = ""; then
10009 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10012 if test "$aros_kernel_ranlib" = ""; then
10013 if test "$cross_compiling" = "yes" ; then
10014 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10015 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 case $aros_kernel_ranlib in
10022 [\\/]* | ?:[\\/]*)
10023 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10037 done
10038 done
10039 IFS=$as_save_IFS
10042 esac
10044 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10045 if test -n "$aros_kernel_ranlib"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10047 $as_echo "$aros_kernel_ranlib" >&6; }
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10054 else
10055 if test "$GCC" = "yes"; then
10056 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10057 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10058 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 case $aros_kernel_ranlib in
10065 [\\/]* | ?:[\\/]*)
10066 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in `dirname $aros_gcc_ranlib`
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10076 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10080 done
10081 done
10082 IFS=$as_save_IFS
10085 esac
10087 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10088 if test -n "$aros_kernel_ranlib"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10090 $as_echo "$aros_kernel_ranlib" >&6; }
10091 else
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10098 if test "$aros_kernel_ranlib" = ""; then
10099 # Extract the first word of "ranlib", so it can be a program name with args.
10100 set dummy ranlib; ac_word=$2
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10102 $as_echo_n "checking for $ac_word... " >&6; }
10103 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 case $aros_kernel_ranlib in
10107 [\\/]* | ?:[\\/]*)
10108 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10124 IFS=$as_save_IFS
10127 esac
10129 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10130 if test -n "$aros_kernel_ranlib"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10132 $as_echo "$aros_kernel_ranlib" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10141 else
10142 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10143 set dummy $aros_kernel_ranlib; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 case $aros_kernel_ranlib in
10150 [\\/]* | ?:[\\/]*)
10151 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10170 esac
10172 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10173 if test -n "$aros_kernel_ranlib"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10175 $as_echo "$aros_kernel_ranlib" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10184 if test "$aros_kernel_ranlib" = ""; then
10185 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10188 if test "$aros_kernel_nm" = ""; then
10189 if test "$cross_compiling" = "yes" ; then
10190 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10191 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 case $aros_kernel_nm in
10198 [\\/]* | ?:[\\/]*)
10199 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10209 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10218 esac
10220 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10221 if test -n "$aros_kernel_nm"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10223 $as_echo "$aros_kernel_nm" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10230 else
10231 if test "$GCC" = "yes"; then
10232 aros_gcc_nm=`$CC -print-prog-name=nm`
10233 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10234 set dummy `basename $aros_gcc_nm`; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 case $aros_kernel_nm in
10241 [\\/]* | ?:[\\/]*)
10242 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in `dirname $aros_gcc_nm`
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10252 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 break 2
10256 done
10257 done
10258 IFS=$as_save_IFS
10261 esac
10263 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10264 if test -n "$aros_kernel_nm"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10266 $as_echo "$aros_kernel_nm" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10274 if test "$aros_kernel_nm" = ""; then
10275 # Extract the first word of "nm", so it can be a program name with args.
10276 set dummy nm; ac_word=$2
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 case $aros_kernel_nm in
10283 [\\/]* | ?:[\\/]*)
10284 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10298 done
10299 done
10300 IFS=$as_save_IFS
10303 esac
10305 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10306 if test -n "$aros_kernel_nm"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10308 $as_echo "$aros_kernel_nm" >&6; }
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10317 else
10318 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10319 set dummy $aros_kernel_nm; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 case $aros_kernel_nm in
10326 [\\/]* | ?:[\\/]*)
10327 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10341 done
10342 done
10343 IFS=$as_save_IFS
10346 esac
10348 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10349 if test -n "$aros_kernel_nm"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10351 $as_echo "$aros_kernel_nm" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10360 if test "$aros_kernel_nm" = ""; then
10361 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10364 if test "$aros_kernel_strip" = ""; then
10365 if test "$cross_compiling" = "yes" ; then
10366 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10367 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 case $aros_kernel_strip in
10374 [\\/]* | ?:[\\/]*)
10375 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10394 esac
10396 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10397 if test -n "$aros_kernel_strip"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10399 $as_echo "$aros_kernel_strip" >&6; }
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10406 else
10407 if test "$GCC" = "yes"; then
10408 aros_gcc_strip=`$CC -print-prog-name=strip`
10409 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10410 set dummy `basename $aros_gcc_strip`; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 case $aros_kernel_strip in
10417 [\\/]* | ?:[\\/]*)
10418 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in `dirname $aros_gcc_strip`
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10428 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430 break 2
10432 done
10433 done
10434 IFS=$as_save_IFS
10437 esac
10439 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10440 if test -n "$aros_kernel_strip"; then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10442 $as_echo "$aros_kernel_strip" >&6; }
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10450 if test "$aros_kernel_strip" = ""; then
10451 # Extract the first word of "strip", so it can be a program name with args.
10452 set dummy strip; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 case $aros_kernel_strip in
10459 [\\/]* | ?:[\\/]*)
10460 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10474 done
10475 done
10476 IFS=$as_save_IFS
10479 esac
10481 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10482 if test -n "$aros_kernel_strip"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10484 $as_echo "$aros_kernel_strip" >&6; }
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10493 else
10494 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10495 set dummy $aros_kernel_strip; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 case $aros_kernel_strip in
10502 [\\/]* | ?:[\\/]*)
10503 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10517 done
10518 done
10519 IFS=$as_save_IFS
10522 esac
10524 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10525 if test -n "$aros_kernel_strip"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10527 $as_echo "$aros_kernel_strip" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10536 if test "$aros_kernel_strip" = ""; then
10537 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10540 # Objcopy and objdump are not required for the kernel
10541 # toolchain on many architectures.
10542 # So we'll look for them, but not make them strictly required.
10544 if test "$aros_kernel_objcopy" = ""; then
10545 if test "$cross_compiling" = "yes" ; then
10546 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10547 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 case $aros_kernel_objcopy in
10554 [\\/]* | ?:[\\/]*)
10555 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10565 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10574 esac
10576 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10577 if test -n "$aros_kernel_objcopy"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10579 $as_echo "$aros_kernel_objcopy" >&6; }
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10586 else
10587 if test "$GCC" = "yes"; then
10588 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10589 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10590 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 case $aros_kernel_objcopy in
10597 [\\/]* | ?:[\\/]*)
10598 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in `dirname $aros_gcc_objcopy`
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10608 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10612 done
10613 done
10614 IFS=$as_save_IFS
10617 esac
10619 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10620 if test -n "$aros_kernel_objcopy"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10622 $as_echo "$aros_kernel_objcopy" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10630 if test "$aros_kernel_objcopy" = ""; then
10631 # Extract the first word of "objcopy", so it can be a program name with args.
10632 set dummy objcopy; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 case $aros_kernel_objcopy in
10639 [\\/]* | ?:[\\/]*)
10640 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10659 esac
10661 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10662 if test -n "$aros_kernel_objcopy"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10664 $as_echo "$aros_kernel_objcopy" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10673 else
10674 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10675 set dummy $aros_kernel_objcopy; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 case $aros_kernel_objcopy in
10682 [\\/]* | ?:[\\/]*)
10683 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10697 done
10698 done
10699 IFS=$as_save_IFS
10702 esac
10704 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10705 if test -n "$aros_kernel_objcopy"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10707 $as_echo "$aros_kernel_objcopy" >&6; }
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10717 if test "$aros_kernel_objdump" = ""; then
10718 if test "$cross_compiling" = "yes" ; then
10719 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10720 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 case $aros_kernel_objdump in
10727 [\\/]* | ?:[\\/]*)
10728 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10742 done
10743 done
10744 IFS=$as_save_IFS
10747 esac
10749 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10750 if test -n "$aros_kernel_objdump"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10752 $as_echo "$aros_kernel_objdump" >&6; }
10753 else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10759 else
10760 if test "$GCC" = "yes"; then
10761 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10762 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10763 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765 $as_echo_n "checking for $ac_word... " >&6; }
10766 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 case $aros_kernel_objdump in
10770 [\\/]* | ?:[\\/]*)
10771 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in `dirname $aros_gcc_objdump`
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10785 done
10786 done
10787 IFS=$as_save_IFS
10790 esac
10792 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10793 if test -n "$aros_kernel_objdump"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10795 $as_echo "$aros_kernel_objdump" >&6; }
10796 else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10803 if test "$aros_kernel_objdump" = ""; then
10804 # Extract the first word of "objdump", so it can be a program name with args.
10805 set dummy objdump; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $aros_kernel_objdump in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10827 done
10828 done
10829 IFS=$as_save_IFS
10832 esac
10834 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10835 if test -n "$aros_kernel_objdump"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10837 $as_echo "$aros_kernel_objdump" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10846 else
10847 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10848 set dummy $aros_kernel_objdump; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 case $aros_kernel_objdump in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10875 esac
10877 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10878 if test -n "$aros_kernel_objdump"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10880 $as_echo "$aros_kernel_objdump" >&6; }
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10889 if test "x${crosstools}" != "xyes" ; then
10890 if test "$aros_kernel_objcopy" = ""; then
10891 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10893 if test "$aros_kernel_objdump" = ""; then
10894 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10900 $as_echo_n "checking which target tools to use... " >&6; }
10901 if test "$aros_target_toolchain" = "yes"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10903 $as_echo "$target_tool_prefix" >&6; }
10904 # We are building AROS crosstools
10905 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10906 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10907 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10908 orig_target_cpp="${tmp_tool_prefix}cpp"
10909 orig_target_ld="${tmp_tool_prefix}ld"
10910 orig_target_as="${tmp_tool_prefix}as"
10911 orig_target_ar="${tmp_tool_prefix}ar"
10912 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10913 orig_target_nm="${tmp_tool_prefix}nm"
10914 orig_target_strip="${tmp_tool_prefix}strip"
10915 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10916 orig_target_objdump="${tmp_tool_prefix}objdump"
10917 else
10918 # Determine whether AROS or ELF tools should be used
10919 if test "$aros_tool_prefix" = "none"; then
10920 aros_tool_prefix="${elf_tool_prefix}"
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10924 $as_echo "$aros_tool_prefix" >&6; }
10925 # We are *not* building AROS crosstools - use the AROS or ELF tools
10927 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10928 if test "$cross_compiling" = "yes" ; then
10929 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10930 set dummy ${target_tool_prefix}cpp; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 $as_echo_n "checking for $ac_word... " >&6; }
10933 if ${ac_cv_path_orig_target_cpp+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 case $orig_target_cpp in
10937 [\\/]* | ?:[\\/]*)
10938 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10952 done
10953 done
10954 IFS=$as_save_IFS
10957 esac
10959 orig_target_cpp=$ac_cv_path_orig_target_cpp
10960 if test -n "$orig_target_cpp"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10962 $as_echo "$orig_target_cpp" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10969 else
10970 if test "$GCC" = "yes"; then
10971 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10972 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10973 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if ${ac_cv_path_orig_target_cpp+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 case $orig_target_cpp in
10980 [\\/]* | ?:[\\/]*)
10981 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in `dirname $aros_gcc_cpp`
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10995 done
10996 done
10997 IFS=$as_save_IFS
11000 esac
11002 orig_target_cpp=$ac_cv_path_orig_target_cpp
11003 if test -n "$orig_target_cpp"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11005 $as_echo "$orig_target_cpp" >&6; }
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11013 if test "$orig_target_cpp" = ""; then
11014 # Extract the first word of "cpp", so it can be a program name with args.
11015 set dummy cpp; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_path_orig_target_cpp+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 case $orig_target_cpp in
11022 [\\/]* | ?:[\\/]*)
11023 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11037 done
11038 done
11039 IFS=$as_save_IFS
11042 esac
11044 orig_target_cpp=$ac_cv_path_orig_target_cpp
11045 if test -n "$orig_target_cpp"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11047 $as_echo "$orig_target_cpp" >&6; }
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11056 else
11057 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11058 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_orig_target_cpp+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 case $orig_target_cpp in
11065 [\\/]* | ?:[\\/]*)
11066 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11080 done
11081 done
11082 IFS=$as_save_IFS
11085 esac
11087 orig_target_cpp=$ac_cv_path_orig_target_cpp
11088 if test -n "$orig_target_cpp"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11090 $as_echo "$orig_target_cpp" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11099 if test "$orig_target_cpp" = ""; then
11100 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11103 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11104 if test "$cross_compiling" = "yes" ; then
11105 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11106 set dummy ${target_tool_prefix}gcc; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_path_orig_target_cc+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 case $orig_target_cc in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11128 done
11129 done
11130 IFS=$as_save_IFS
11133 esac
11135 orig_target_cc=$ac_cv_path_orig_target_cc
11136 if test -n "$orig_target_cc"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11138 $as_echo "$orig_target_cc" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11145 else
11146 if test "$GCC" = "yes"; then
11147 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11148 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11149 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_path_orig_target_cc+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 case $orig_target_cc in
11156 [\\/]* | ?:[\\/]*)
11157 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in `dirname $aros_gcc_gcc`
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11171 done
11172 done
11173 IFS=$as_save_IFS
11176 esac
11178 orig_target_cc=$ac_cv_path_orig_target_cc
11179 if test -n "$orig_target_cc"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11181 $as_echo "$orig_target_cc" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11189 if test "$orig_target_cc" = ""; then
11190 # Extract the first word of "gcc", so it can be a program name with args.
11191 set dummy gcc; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_path_orig_target_cc+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 case $orig_target_cc in
11198 [\\/]* | ?:[\\/]*)
11199 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11213 done
11214 done
11215 IFS=$as_save_IFS
11218 esac
11220 orig_target_cc=$ac_cv_path_orig_target_cc
11221 if test -n "$orig_target_cc"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11223 $as_echo "$orig_target_cc" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11232 else
11233 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11234 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if ${ac_cv_path_orig_target_cc+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 case $orig_target_cc in
11241 [\\/]* | ?:[\\/]*)
11242 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11256 done
11257 done
11258 IFS=$as_save_IFS
11261 esac
11263 orig_target_cc=$ac_cv_path_orig_target_cc
11264 if test -n "$orig_target_cc"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11266 $as_echo "$orig_target_cc" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11275 if test "$orig_target_cc" = ""; then
11276 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11279 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11280 if test "$cross_compiling" = "yes" ; then
11281 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11282 set dummy ${target_tool_prefix}g++; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_path_orig_target_cxx+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 case $orig_target_cxx in
11289 [\\/]* | ?:[\\/]*)
11290 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11304 done
11305 done
11306 IFS=$as_save_IFS
11309 esac
11311 orig_target_cxx=$ac_cv_path_orig_target_cxx
11312 if test -n "$orig_target_cxx"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11314 $as_echo "$orig_target_cxx" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11321 else
11322 if test "$GCC" = "yes"; then
11323 aros_gcc_g++=`$CC -print-prog-name=g++`
11324 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11325 set dummy `basename $aros_gcc_g++`; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_path_orig_target_cxx+:} false; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 case $orig_target_cxx in
11332 [\\/]* | ?:[\\/]*)
11333 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in `dirname $aros_gcc_g++`
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11343 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11347 done
11348 done
11349 IFS=$as_save_IFS
11352 esac
11354 orig_target_cxx=$ac_cv_path_orig_target_cxx
11355 if test -n "$orig_target_cxx"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11357 $as_echo "$orig_target_cxx" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11365 if test "$orig_target_cxx" = ""; then
11366 # Extract the first word of "g++", so it can be a program name with args.
11367 set dummy g++; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_path_orig_target_cxx+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 case $orig_target_cxx in
11374 [\\/]* | ?:[\\/]*)
11375 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11389 done
11390 done
11391 IFS=$as_save_IFS
11394 esac
11396 orig_target_cxx=$ac_cv_path_orig_target_cxx
11397 if test -n "$orig_target_cxx"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11399 $as_echo "$orig_target_cxx" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11408 else
11409 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11410 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_path_orig_target_cxx+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 case $orig_target_cxx in
11417 [\\/]* | ?:[\\/]*)
11418 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422 for as_dir in $PATH
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11432 done
11433 done
11434 IFS=$as_save_IFS
11437 esac
11439 orig_target_cxx=$ac_cv_path_orig_target_cxx
11440 if test -n "$orig_target_cxx"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11442 $as_echo "$orig_target_cxx" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11451 if test "$orig_target_cxx" = ""; then
11452 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11455 if test "${aros_tool_prefix}ld" = ""; then
11456 if test "$cross_compiling" = "yes" ; then
11457 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11458 set dummy ${target_tool_prefix}gcc; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_path_orig_target_ld+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 case $orig_target_ld in
11465 [\\/]* | ?:[\\/]*)
11466 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11480 done
11481 done
11482 IFS=$as_save_IFS
11485 esac
11487 orig_target_ld=$ac_cv_path_orig_target_ld
11488 if test -n "$orig_target_ld"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11490 $as_echo "$orig_target_ld" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11497 else
11498 if test "$GCC" = "yes"; then
11499 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11500 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11501 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_path_orig_target_ld+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case $orig_target_ld in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in `dirname $aros_gcc_gcc`
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11523 done
11524 done
11525 IFS=$as_save_IFS
11528 esac
11530 orig_target_ld=$ac_cv_path_orig_target_ld
11531 if test -n "$orig_target_ld"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11533 $as_echo "$orig_target_ld" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11541 if test "$orig_target_ld" = ""; then
11542 # Extract the first word of "gcc", so it can be a program name with args.
11543 set dummy gcc; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if ${ac_cv_path_orig_target_ld+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 case $orig_target_ld in
11550 [\\/]* | ?:[\\/]*)
11551 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11565 done
11566 done
11567 IFS=$as_save_IFS
11570 esac
11572 orig_target_ld=$ac_cv_path_orig_target_ld
11573 if test -n "$orig_target_ld"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11575 $as_echo "$orig_target_ld" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11584 else
11585 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11586 set dummy ${aros_tool_prefix}ld; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_orig_target_ld+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 case $orig_target_ld in
11593 [\\/]* | ?:[\\/]*)
11594 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11613 esac
11615 orig_target_ld=$ac_cv_path_orig_target_ld
11616 if test -n "$orig_target_ld"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11618 $as_echo "$orig_target_ld" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11627 if test "$orig_target_ld" = ""; then
11628 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11631 if test "${aros_tool_prefix}as" = ""; then
11632 if test "$cross_compiling" = "yes" ; then
11633 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11634 set dummy ${target_tool_prefix}as; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_path_orig_target_as+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 case $orig_target_as in
11641 [\\/]* | ?:[\\/]*)
11642 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11656 done
11657 done
11658 IFS=$as_save_IFS
11661 esac
11663 orig_target_as=$ac_cv_path_orig_target_as
11664 if test -n "$orig_target_as"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11666 $as_echo "$orig_target_as" >&6; }
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11673 else
11674 if test "$GCC" = "yes"; then
11675 aros_gcc_as=`$CC -print-prog-name=as`
11676 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11677 set dummy `basename $aros_gcc_as`; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_path_orig_target_as+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 case $orig_target_as in
11684 [\\/]* | ?:[\\/]*)
11685 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in `dirname $aros_gcc_as`
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11699 done
11700 done
11701 IFS=$as_save_IFS
11704 esac
11706 orig_target_as=$ac_cv_path_orig_target_as
11707 if test -n "$orig_target_as"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11709 $as_echo "$orig_target_as" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11717 if test "$orig_target_as" = ""; then
11718 # Extract the first word of "as", so it can be a program name with args.
11719 set dummy as; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_orig_target_as+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $orig_target_as in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11746 esac
11748 orig_target_as=$ac_cv_path_orig_target_as
11749 if test -n "$orig_target_as"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11751 $as_echo "$orig_target_as" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11760 else
11761 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11762 set dummy ${aros_tool_prefix}as; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_path_orig_target_as+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 case $orig_target_as in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11789 esac
11791 orig_target_as=$ac_cv_path_orig_target_as
11792 if test -n "$orig_target_as"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11794 $as_echo "$orig_target_as" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11803 if test "$orig_target_as" = ""; then
11804 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11807 if test "${aros_tool_prefix}ar" = ""; then
11808 if test "$cross_compiling" = "yes" ; then
11809 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11810 set dummy ${target_tool_prefix}ar; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_orig_target_ar+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 case $orig_target_ar in
11817 [\\/]* | ?:[\\/]*)
11818 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11834 IFS=$as_save_IFS
11837 esac
11839 orig_target_ar=$ac_cv_path_orig_target_ar
11840 if test -n "$orig_target_ar"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11842 $as_echo "$orig_target_ar" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11849 else
11850 if test "$GCC" = "yes"; then
11851 aros_gcc_ar=`$CC -print-prog-name=ar`
11852 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11853 set dummy `basename $aros_gcc_ar`; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_path_orig_target_ar+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 case $orig_target_ar in
11860 [\\/]* | ?:[\\/]*)
11861 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in `dirname $aros_gcc_ar`
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11875 done
11876 done
11877 IFS=$as_save_IFS
11880 esac
11882 orig_target_ar=$ac_cv_path_orig_target_ar
11883 if test -n "$orig_target_ar"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11885 $as_echo "$orig_target_ar" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11893 if test "$orig_target_ar" = ""; then
11894 # Extract the first word of "ar", so it can be a program name with args.
11895 set dummy ar; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_path_orig_target_ar+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 case $orig_target_ar in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11917 done
11918 done
11919 IFS=$as_save_IFS
11922 esac
11924 orig_target_ar=$ac_cv_path_orig_target_ar
11925 if test -n "$orig_target_ar"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11927 $as_echo "$orig_target_ar" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11936 else
11937 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11938 set dummy ${aros_tool_prefix}ar; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_orig_target_ar+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 case $orig_target_ar in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11960 done
11961 done
11962 IFS=$as_save_IFS
11965 esac
11967 orig_target_ar=$ac_cv_path_orig_target_ar
11968 if test -n "$orig_target_ar"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11970 $as_echo "$orig_target_ar" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11979 if test "$orig_target_ar" = ""; then
11980 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11983 if test "${aros_tool_prefix}ranlib" = ""; then
11984 if test "$cross_compiling" = "yes" ; then
11985 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11986 set dummy ${target_tool_prefix}ar; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 case $orig_target_ranlib in
11993 [\\/]* | ?:[\\/]*)
11994 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12013 esac
12015 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12016 if test -n "$orig_target_ranlib"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12018 $as_echo "$orig_target_ranlib" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12025 else
12026 if test "$GCC" = "yes"; then
12027 aros_gcc_ar=`$CC -print-prog-name=ar`
12028 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12029 set dummy `basename $aros_gcc_ar`; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 case $orig_target_ranlib in
12036 [\\/]* | ?:[\\/]*)
12037 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in `dirname $aros_gcc_ar`
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 break 2
12051 done
12052 done
12053 IFS=$as_save_IFS
12056 esac
12058 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12059 if test -n "$orig_target_ranlib"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12061 $as_echo "$orig_target_ranlib" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12069 if test "$orig_target_ranlib" = ""; then
12070 # Extract the first word of "ar", so it can be a program name with args.
12071 set dummy ar; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 case $orig_target_ranlib in
12078 [\\/]* | ?:[\\/]*)
12079 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12093 done
12094 done
12095 IFS=$as_save_IFS
12098 esac
12100 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12101 if test -n "$orig_target_ranlib"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12103 $as_echo "$orig_target_ranlib" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12112 else
12113 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12114 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 case $orig_target_ranlib in
12121 [\\/]* | ?:[\\/]*)
12122 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12128 IFS=$as_save_IFS
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 break 2
12136 done
12137 done
12138 IFS=$as_save_IFS
12141 esac
12143 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12144 if test -n "$orig_target_ranlib"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12146 $as_echo "$orig_target_ranlib" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12155 if test "$orig_target_ranlib" = ""; then
12156 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12159 if test "${aros_tool_prefix}nm" = ""; then
12160 if test "$cross_compiling" = "yes" ; then
12161 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12162 set dummy ${target_tool_prefix}nm; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_path_orig_target_nm+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 case $orig_target_nm in
12169 [\\/]* | ?:[\\/]*)
12170 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12180 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12184 done
12185 done
12186 IFS=$as_save_IFS
12189 esac
12191 orig_target_nm=$ac_cv_path_orig_target_nm
12192 if test -n "$orig_target_nm"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12194 $as_echo "$orig_target_nm" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12201 else
12202 if test "$GCC" = "yes"; then
12203 aros_gcc_nm=`$CC -print-prog-name=nm`
12204 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12205 set dummy `basename $aros_gcc_nm`; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_orig_target_nm+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 case $orig_target_nm in
12212 [\\/]* | ?:[\\/]*)
12213 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in `dirname $aros_gcc_nm`
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12227 done
12228 done
12229 IFS=$as_save_IFS
12232 esac
12234 orig_target_nm=$ac_cv_path_orig_target_nm
12235 if test -n "$orig_target_nm"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12237 $as_echo "$orig_target_nm" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test "$orig_target_nm" = ""; then
12246 # Extract the first word of "nm", so it can be a program name with args.
12247 set dummy nm; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if ${ac_cv_path_orig_target_nm+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 case $orig_target_nm in
12254 [\\/]* | ?:[\\/]*)
12255 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12274 esac
12276 orig_target_nm=$ac_cv_path_orig_target_nm
12277 if test -n "$orig_target_nm"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12279 $as_echo "$orig_target_nm" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12288 else
12289 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12290 set dummy ${aros_tool_prefix}nm; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_path_orig_target_nm+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 case $orig_target_nm in
12297 [\\/]* | ?:[\\/]*)
12298 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12312 done
12313 done
12314 IFS=$as_save_IFS
12317 esac
12319 orig_target_nm=$ac_cv_path_orig_target_nm
12320 if test -n "$orig_target_nm"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12322 $as_echo "$orig_target_nm" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12331 if test "$orig_target_nm" = ""; then
12332 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12335 if test "${aros_tool_prefix}strip" = ""; then
12336 if test "$cross_compiling" = "yes" ; then
12337 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12338 set dummy ${target_tool_prefix}strip; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_path_orig_target_strip+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 case $orig_target_strip in
12345 [\\/]* | ?:[\\/]*)
12346 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12356 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12365 esac
12367 orig_target_strip=$ac_cv_path_orig_target_strip
12368 if test -n "$orig_target_strip"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12370 $as_echo "$orig_target_strip" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12377 else
12378 if test "$GCC" = "yes"; then
12379 aros_gcc_strip=`$CC -print-prog-name=strip`
12380 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12381 set dummy `basename $aros_gcc_strip`; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if ${ac_cv_path_orig_target_strip+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 case $orig_target_strip in
12388 [\\/]* | ?:[\\/]*)
12389 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in `dirname $aros_gcc_strip`
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12403 done
12404 done
12405 IFS=$as_save_IFS
12408 esac
12410 orig_target_strip=$ac_cv_path_orig_target_strip
12411 if test -n "$orig_target_strip"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12413 $as_echo "$orig_target_strip" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test "$orig_target_strip" = ""; then
12422 # Extract the first word of "strip", so it can be a program name with args.
12423 set dummy strip; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if ${ac_cv_path_orig_target_strip+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 case $orig_target_strip in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12445 done
12446 done
12447 IFS=$as_save_IFS
12450 esac
12452 orig_target_strip=$ac_cv_path_orig_target_strip
12453 if test -n "$orig_target_strip"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12455 $as_echo "$orig_target_strip" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12464 else
12465 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12466 set dummy ${aros_tool_prefix}strip; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_path_orig_target_strip+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 case $orig_target_strip in
12473 [\\/]* | ?:[\\/]*)
12474 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12484 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12488 done
12489 done
12490 IFS=$as_save_IFS
12493 esac
12495 orig_target_strip=$ac_cv_path_orig_target_strip
12496 if test -n "$orig_target_strip"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12498 $as_echo "$orig_target_strip" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12507 if test "$orig_target_strip" = ""; then
12508 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12511 if test "${aros_tool_prefix}objcopy" = ""; then
12512 if test "$cross_compiling" = "yes" ; then
12513 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12514 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 case $orig_target_objcopy in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12538 IFS=$as_save_IFS
12541 esac
12543 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12544 if test -n "$orig_target_objcopy"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12546 $as_echo "$orig_target_objcopy" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12553 else
12554 if test "$GCC" = "yes"; then
12555 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12556 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12557 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 case $orig_target_objcopy in
12564 [\\/]* | ?:[\\/]*)
12565 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in `dirname $aros_gcc_objcopy`
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12579 done
12580 done
12581 IFS=$as_save_IFS
12584 esac
12586 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12587 if test -n "$orig_target_objcopy"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12589 $as_echo "$orig_target_objcopy" >&6; }
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12597 if test "$orig_target_objcopy" = ""; then
12598 # Extract the first word of "objcopy", so it can be a program name with args.
12599 set dummy objcopy; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 case $orig_target_objcopy in
12606 [\\/]* | ?:[\\/]*)
12607 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12626 esac
12628 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12629 if test -n "$orig_target_objcopy"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12631 $as_echo "$orig_target_objcopy" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12640 else
12641 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12642 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $orig_target_objcopy in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12669 esac
12671 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12672 if test -n "$orig_target_objcopy"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12674 $as_echo "$orig_target_objcopy" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12683 if test "$orig_target_objcopy" = ""; then
12684 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12687 if test "${aros_tool_prefix}objdump" = ""; then
12688 if test "$cross_compiling" = "yes" ; then
12689 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12690 set dummy ${target_tool_prefix}objdump; ac_word=$2
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692 $as_echo_n "checking for $ac_word... " >&6; }
12693 if ${ac_cv_path_orig_target_objdump+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 case $orig_target_objdump in
12697 [\\/]* | ?:[\\/]*)
12698 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12712 done
12713 done
12714 IFS=$as_save_IFS
12717 esac
12719 orig_target_objdump=$ac_cv_path_orig_target_objdump
12720 if test -n "$orig_target_objdump"; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12722 $as_echo "$orig_target_objdump" >&6; }
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12729 else
12730 if test "$GCC" = "yes"; then
12731 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12732 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12733 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if ${ac_cv_path_orig_target_objdump+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 case $orig_target_objdump in
12740 [\\/]* | ?:[\\/]*)
12741 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in `dirname $aros_gcc_objdump`
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12751 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12755 done
12756 done
12757 IFS=$as_save_IFS
12760 esac
12762 orig_target_objdump=$ac_cv_path_orig_target_objdump
12763 if test -n "$orig_target_objdump"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12765 $as_echo "$orig_target_objdump" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12773 if test "$orig_target_objdump" = ""; then
12774 # Extract the first word of "objdump", so it can be a program name with args.
12775 set dummy objdump; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if ${ac_cv_path_orig_target_objdump+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 case $orig_target_objdump in
12782 [\\/]* | ?:[\\/]*)
12783 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12793 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795 break 2
12797 done
12798 done
12799 IFS=$as_save_IFS
12802 esac
12804 orig_target_objdump=$ac_cv_path_orig_target_objdump
12805 if test -n "$orig_target_objdump"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12807 $as_echo "$orig_target_objdump" >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12816 else
12817 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12818 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_path_orig_target_objdump+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 case $orig_target_objdump in
12825 [\\/]* | ?:[\\/]*)
12826 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12832 IFS=$as_save_IFS
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12836 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 break 2
12840 done
12841 done
12842 IFS=$as_save_IFS
12845 esac
12847 orig_target_objdump=$ac_cv_path_orig_target_objdump
12848 if test -n "$orig_target_objdump"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12850 $as_echo "$orig_target_objdump" >&6; }
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12859 if test "$orig_target_objdump" = ""; then
12860 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12864 if test "$kernel_tool_prefix" = "none" ; then
12865 # No kernel tools specified
12866 # Assume target tools == kernel tools with ELF wrapper
12867 aros_kernel_cc=$orig_target_cc
12868 aros_kernel_cxx=$orig_target_cxx
12869 aros_kernel_cpp=$orig_target_cpp
12870 aros_kernel_ld=$orig_target_ld
12871 aros_kernel_as=$orig_target_as
12872 aros_kernel_ar=$orig_target_ar
12873 aros_kernel_ranlib=$orig_target_ranlib
12874 aros_kernel_nm=$orig_target_nm
12875 aros_kernel_strip=$orig_target_strip
12876 aros_kernel_objcopy=$orig_target_objcopy
12877 aros_kernel_objdump=$orig_target_objdump
12878 use_kernel_cc_wrapper=yes
12881 # At this point, all aros_kernel_* and aros_target_*
12882 # tools should be set up correctly
12884 CC="$aros_kernel_cc $kernel_tool_flags"
12885 CPP="$aros_kernel_cpp"
12887 #-----------------------------------------------------------------------------
12889 # Disable pointer-signedness warnings if the compiler recognises the option
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12892 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12893 save_cflags="$CFLAGS"
12894 if test "$crosstools" != "yes" ; then
12895 CFLAGS="$CFLAGS -Wno-pointer-sign"
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12900 main ()
12904 return 0;
12906 _ACEOF
12907 if ac_fn_c_try_compile "$LINENO"; then :
12908 use_no_sign_warning="yes"
12909 else
12910 use_no_sign_warning="no"
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 else
12914 # we do know it is supported for the smallest version of gcc we are going to build
12915 # we assume it's also supported by later versions
12916 use_no_sign_warning=yes
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12919 $as_echo "$use_no_sign_warning" >&6; }
12920 if test "x-$use_no_sign_warning" = "x-yes" ; then
12921 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12923 CFLAGS="$save_cflags"
12925 #-----------------------------------------------------------------------------
12927 # Find all the tools we need to compile. This could be cross-compiling
12928 # though! If that is the case we use the GNU form of the target and
12929 # simply add this to the front of the binary name. This is rather simple,
12930 # but it should work under most circumstances.
12932 # The default tools are to use the same as the host, but only if the
12933 # host and target CPU are the same. With GCC this is normally enough.
12936 aros_cc_pre=""
12937 aros_shared_ld="$aros_host_ld"
12939 aros_target_mkdep="$aros_host_mkdep"
12941 # The default tools executables to be linked to.
12942 if test "$rescomp" != ""; then
12943 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12944 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 case $aros_kernel_rescomp in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12971 esac
12973 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12974 if test -n "$aros_kernel_rescomp"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12976 $as_echo "$aros_kernel_rescomp" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12983 if test "$aros_kernel_rescomp" = ""; then
12984 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12988 # Set up the sources for the symlink farm
12989 if test "$crosstools" = "yes"; then
12990 crosstools_target=tools-crosstools
12993 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12994 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12996 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12997 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12998 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12999 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13000 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13001 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13002 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13004 # aros_cc_pre is a variable that is added to the front of the compiler name
13005 # in the generated aros-gcc shell script. We need this to enable the cache
13006 # to work across cleaned builds. Also, support DISTCC using the correct
13007 # environment variable.
13010 if test "x${DISTCC}" != "x" ; then
13011 if test "x${CCACHE}" != "x" ; then
13012 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13013 else
13014 aros_cc_pre="${DISTCC} "
13016 else
13017 if test "x${CCACHE}" != "x" ; then
13018 aros_cc_pre="${CCACHE} "
13022 aros_target_nostdinc_cflags=-nostdinc
13024 aros_target_nostartup_ldflags=-nostartfiles
13026 aros_target_nix_ldflags=-nix
13028 aros_target_detach_ldflags=-detach
13030 aros_target_nostdlib_ldflags=-nostdlib
13033 # Target tools
13034 if test "$aros_target_toolchain" != "yes"; then
13035 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13036 if test "$GCC" = "yes"; then
13037 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13039 else
13040 # We do not know which gcc version we are going to build and what we need to know
13041 # here is different for different versions so this will be set later during the
13042 # build of crosstools.
13043 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13044 aros_target_cc_path=@aros_target_cc_path@
13046 aros_target_cpp="${prefix}cpp"
13047 aros_target_cc="${prefix}gcc"
13048 aros_target_cxx="${prefix}g++"
13049 aros_target_as="${prefix}as"
13050 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13051 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13052 aros_target_objcopy="${prefix}objcopy"
13053 aros_target_objdump="${prefix}objdump"
13054 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13055 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13056 aros_target_strip="${prefix}strip"
13057 aros_plain_nm="${prefix}nm"
13058 aros_plain_ar="${prefix}ar"
13060 # Check whether --enable-includes was given.
13061 if test "${enable_includes+set}" = set; then :
13062 enableval=$enable_includes; aros_target_incl=$enable_includes
13063 else
13064 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13068 if test "$aros_kernel_includes" = ""; then
13069 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13070 aros_kernel_includes="-isystem $aros_target_incl"
13074 if test "$aros_kernel_includes" != "" ; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13076 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13077 if test "$aros_kernel_cc_includes" = "" ; then
13078 # Try to guess where the directory is.
13079 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13080 if test -d $aros_kernel_cc_includes; then
13081 # Check if there is also an include-fixed directory and add it
13082 # to kernel compiler's include path as it may contain some of
13083 # the headers we need.
13084 if test -d "$aros_kernel_cc_includes"-fixed; then
13085 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13087 # Check for specific includes directory. Neede for Ubuntu 11.10
13088 if test -d "/usr/include/i386-linux-gnu"; then
13089 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13091 else
13092 # The directory doesn't exist, we need to do some more work.
13093 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13095 # These are the headers we're looking for.
13096 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13097 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13098 zutil.h stdint.h"
13100 dirs=
13101 for h in $headers; do
13102 # Which other headers are needed by each of the above?
13103 deps=$(echo "#include <$h>" | \
13104 $aros_kernel_cc -E -M - 2>/dev/null | \
13105 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13107 # Copy all the needed headers to a directory beneath gendir.
13108 for d in $deps; do
13109 h=$(basename $d)
13110 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13111 sed -n "s,^.*/include\(/.*\),\1,p")
13112 ! test -d $dir && mkdir -p $dir
13113 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13114 done
13115 done
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13119 $as_echo "$aros_kernel_cc_includes" >&6; }
13120 # Adding -nostdinc to kernel includes as they are always used together.
13121 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13124 if test "$crosstools" != "yes"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13126 $as_echo_n "checking for the target compiler's include path... " >&6; }
13127 if test "$aros_target_cc_includes" = "" ; then
13128 #try to guess where the directory is
13129 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13130 if ! test -d $aros_target_cc_includes; then
13131 #the directory doesn't exist, we need to do some more work
13132 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13134 #these are the headers we're looking for
13135 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13136 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13137 zutil.h"
13139 dirs=
13140 for h in $headers; do
13141 #which other headers each of the above headers needs?
13142 deps=$(echo "#include <$h>" | \
13143 $orig_target_cc -E -M - 2>/dev/null | \
13144 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13146 #copy all the needed headers to a directory beneath gendir
13147 for d in $deps; do
13148 h=$(basename $d)
13149 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13150 sed -n "s,^.*/include\(/.*\),\1,p")
13151 ! test -d $dir && mkdir -p $dir
13152 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13153 done
13154 done
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13158 $as_echo "$aros_target_cc_includes" >&6; }
13159 else
13160 # We do not know which gcc version we are going to build and what we need to know
13161 # here is different for different versions so this will be set later during the
13162 # build of crosstools.
13163 aros_target_cc_includes=@aros_target_cc_includes@
13167 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13168 # On GCC >= 4.0 -iquote should be used
13171 save_cc="$CC"
13172 save_cflags="$CFLAGS"
13173 CFLAGS="-iquote."
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13175 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13176 if test "x-$crosstools" != "x-yes"; then
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13181 main ()
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_compile "$LINENO"; then :
13189 has_iquote="yes"
13190 else
13191 has_iquote="no"
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194 else
13195 # we do know it is supported for the smallest version of gcc we are going to build
13196 # we assume it's also supported by later versions
13197 has_iquote=yes
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13200 $as_echo "$has_iquote" >&6; }
13201 if test "x-$has_iquote" = "x-yes" ; then
13202 host_cflags_iquote=-iquote
13203 host_cflags_iquote_end=
13204 else
13205 host_cflags_iquote=-I
13206 host_cflags_iquote_end=-I-
13208 kernel_cflags_iquote=$host_cflags_iquote
13209 kernel_cflags_iquote_end=$host_cflags_iquote_end
13210 if test "x-$cross_compiling" = "x-yes"; then
13211 CC="$aros_kernel_cc"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13213 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13214 if test "x-$crosstools" != "x-yes"; then
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13219 main ()
13223 return 0;
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227 use_no_stack_protector="yes"
13228 else
13229 use_no_stack_protector="no"
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 else
13233 # we do know it is supported for the smallest version of gcc we are going to build
13234 # we assume it's also supported by later versions
13235 use_no_stack_protector=yes
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13238 $as_echo "$use_no_stack_protector" >&6; }
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13240 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13241 if test "x-$crosstools" != "x-yes"; then
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13246 main ()
13250 return 0;
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 has_iquote="yes"
13255 else
13256 has_iquote="no"
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 else
13260 # we do know it is supported for the smallest version of gcc we are going to build
13261 # we assume it's also supported by later versions
13262 has_iquote=yes
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13265 $as_echo "$has_iquote" >&6; }
13266 if test "x-$has_iquote" = "x-yes" ; then
13267 kernel_cflags_iquote=-iquote
13268 kernel_cflags_iquote_end=
13269 else
13270 kernel_cflags_iquote=-I
13271 kernel_cflags_iquote_end=-I-
13274 aros_cflags_iquote=$kernel_cflags_iquote
13275 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13276 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13277 CC="$orig_target_cc"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13279 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13280 if test "x-$crosstools" != "x-yes"; then
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13285 main ()
13289 return 0;
13291 _ACEOF
13292 if ac_fn_c_try_compile "$LINENO"; then :
13293 has_iquote="yes"
13294 else
13295 has_iquote="no"
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 else
13299 # we do know it is supported for the smallest version of gcc we are going to build
13300 # we assume it's also supported by later versions
13301 has_iquote=yes
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13304 $as_echo "$has_iquote" >&6; }
13305 if test "x-$has_iquote" = "x-yes" ; then
13306 aros_cflags_iquote=-iquote
13307 aros_cflags_iquote_end=
13308 else
13309 aros_cflags_iquote=-I
13310 aros_cflags_iquote_end=-I-
13313 if test "x-$use_no_stack_protector" = "x-yes" ; then
13314 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13318 #-----------------------------------------------------------------------------
13320 # Check if the target compiler supports some options used for delinting:
13321 # -Wunused-but-set-variable
13322 # -Warray-bounds
13323 # -Wenum-compare
13324 # -Wstrict-overflow
13325 # -Wformat-security
13327 if test "x-$crosstools" != "x-yes"; then
13328 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13329 CC="$orig_target_cc"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13332 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13333 CFLAGS=-Wunused-but-set-variable
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13338 main ()
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346 aros_unused_but_set_variable="yes"
13347 else
13348 aros_unused_but_set_variable="no"
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13352 $as_echo "$aros_unused_but_set_variable" >&6; }
13353 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13354 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13358 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13359 CFLAGS=-Warray-bounds
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13364 main ()
13368 return 0;
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372 aros_array_bounds="yes"
13373 else
13374 aros_array_bounds="no"
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13378 $as_echo "$aros_array_bounds" >&6; }
13379 if test "x-$aros_array_bounds" = "x-yes" ; then
13380 aros_cflags_array_bounds=-Wno-array-bounds
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13384 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13385 CFLAGS=-Wenum-compare
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13390 main ()
13394 return 0;
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 aros_enum_compare="yes"
13399 else
13400 aros_enum_compare="no"
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13404 $as_echo "$aros_enum_compare" >&6; }
13405 if test "x-$aros_enum_compare" = "x-yes" ; then
13406 aros_cflags_enum_compare=-Wno-enum-compare
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13410 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13411 CFLAGS=-Wstrict-overflow
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13416 main ()
13420 return 0;
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 aros_strict_overflow="yes"
13425 else
13426 aros_strict_overflow="no"
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13430 $as_echo "$aros_strict_overflow" >&6; }
13431 if test "x-$aros_strict_overflow" = "x-yes" ; then
13432 aros_cflags_strict_overflow=-Wno-strict-overflow
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13436 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13437 CFLAGS=-Wformat-security
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13442 main ()
13446 return 0;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 aros_format_security="yes"
13451 else
13452 aros_format_security="no"
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13456 $as_echo "$aros_format_security" >&6; }
13457 if test "x-$aros_format_security" = "x-yes" ; then
13458 aros_cflags_format_security=-Wno-format-security
13460 else
13461 # We do not know which gcc version we are going to build and what we need to know
13462 # here is different for different versions so this will be set later during the
13463 # build of crosstools.
13464 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13465 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13466 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13467 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13468 aros_cflags_format_security=@aros_cflags_format_security@
13471 #-----------------------------------------------------------------------------
13473 # Check if we can explicitly choose older version of symbol hashing
13475 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13476 CC="$aros_kernel_cc"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13478 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13483 main ()
13487 return 0;
13489 _ACEOF
13490 if ac_fn_c_try_link "$LINENO"; then :
13491 use_hash_style="yes"
13492 else
13493 use_hash_style="no"
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13498 $as_echo "$use_hash_style" >&6; }
13499 if test "x-$use_hash_style" = "x-yes" ; then
13500 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13502 CC="$save_cc"
13503 CFLAGS="$save_cflags"
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13514 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13516 # Check whether --with-resolution was given.
13517 if test "${with_resolution+set}" = set; then :
13518 withval=$with_resolution; resolution=$withval
13519 else
13520 resolution=none
13523 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13524 if test "$resolution" = "yes" ; then
13525 resolution="none"
13527 if test "$resolution" = "no" ; then
13528 resolution="none"
13530 if test "$resolution" != "none" ; then
13531 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13532 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13533 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13536 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13537 aros_cv_default_wbwidth=$aros_default_wbwidth
13538 aros_cv_default_wbheight=$aros_default_wbheight
13539 aros_cv_default_wbdepth=$aros_default_wbdepth
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13542 $as_echo_n "checking if serial debug is enabled... " >&6; }
13544 # Check whether --with-serial-debug was given.
13545 if test "${with_serial_debug+set}" = set; then :
13546 withval=$with_serial_debug; serial_debug=$withval
13547 else
13548 serial_debug=none
13551 if test "$aros_serial_debug" = 0 ; then
13552 serial_debug_forced=""
13553 if test "$serial_debug" = "yes" ; then
13554 serial_debug="1"
13556 if test "$serial_debug" = "no" ; then
13557 serial_debug="none"
13559 else
13560 serial_debug_forced="(forced)"
13561 serial_debug=$aros_serial_debug
13563 if test "$serial_debug" != "none" ; then
13564 aros_serial_debug=$serial_debug
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13566 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569 $as_echo "no" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13573 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13574 # Check whether --enable-palm_debug_hack was given.
13575 if test "${enable_palm_debug_hack+set}" = set; then :
13576 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13577 else
13578 palm_debug_hack="no"
13581 if test "$palm_debug_hack" = "yes" ; then
13582 aros_palm_debug_hack="1"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13585 $as_echo "$palm_debug_hack" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13588 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13589 # Check whether --enable-usb30_code was given.
13590 if test "${enable_usb30_code+set}" = set; then :
13591 enableval=$enable_usb30_code; usb30_code="yes"
13592 else
13593 usb30_code="no"
13596 if test "$usb30_code" = "yes" ; then
13597 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13598 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13601 $as_echo "$usb30_code" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13604 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13605 # Check whether --enable-nesting_supervisor was given.
13606 if test "${enable_nesting_supervisor+set}" = set; then :
13607 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13608 else
13609 nesting_supervisor="no"
13612 if test "$nesting_supervisor" = "yes" ; then
13613 aros_nesting_supervisor="1"
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13616 $as_echo "$nesting_supervisor" >&6; }
13618 if test "$aros_enable_mmu" = "" ; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13620 $as_echo_n "checking if MMU support is enabled... " >&6; }
13621 # Check whether --enable-mmu was given.
13622 if test "${enable_mmu+set}" = set; then :
13623 enableval=$enable_mmu; aros_enable_mmu=$enableval
13624 else
13625 aros_enable_mmu="yes"
13628 if test "$aros_enable_mmu" = "" ; then
13629 aros_enable_mmu="yes"
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13632 $as_echo "$aros_enable_mmu" >&6; }
13634 if test "$aros_enable_mmu" = "no" ; then
13635 aros_enable_mmu="0"
13636 else
13637 aros_enable_mmu="1"
13641 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13643 if test "x-$need_dlopen" != "x-no" ; then
13644 save_libs="$LIBS"
13645 LIBS=""
13646 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13647 if test "x$ac_cv_func_dlopen" = xyes; then :
13648 have_dl="yes"
13649 else
13650 have_dl="no"
13653 if test "x-$have_dl" = "x-no" ; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13656 if ${ac_cv_lib_dl_dlopen+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 ac_check_lib_save_LIBS=$LIBS
13660 LIBS="-ldl $LIBS"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char dlopen ();
13672 main ()
13674 return dlopen ();
13676 return 0;
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_lib_dl_dlopen=yes
13681 else
13682 ac_cv_lib_dl_dlopen=no
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13689 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13690 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13691 have_dl="yes"
13692 aros_host_ldflags="$aros_host_ldflags -ldl"
13693 else
13694 have_dl="no"
13698 if test "x-$have_dl" = "x-no" ; then
13699 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13701 LIBS="$save_libs"
13705 # Check whether --enable-x11_hidd was given.
13706 if test "${enable_x11_hidd+set}" = set; then :
13707 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13708 else
13709 x11_hidd="$need_x11"
13712 case "x-$x11_hidd" in
13713 x-yes|x-no|x-auto) ;;
13714 *) x11_hidd="$need_x11" ;;
13715 esac
13717 ENABLE_X11=0
13719 if test "x-$x11_hidd" != "x-no" ; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13722 $as_echo_n "checking for X... " >&6; }
13725 # Check whether --with-x was given.
13726 if test "${with_x+set}" = set; then :
13727 withval=$with_x;
13730 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13731 if test "x$with_x" = xno; then
13732 # The user explicitly disabled X.
13733 have_x=disabled
13734 else
13735 case $x_includes,$x_libraries in #(
13736 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13737 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 # One or both of the vars are not set, and there is no cached value.
13741 ac_x_includes=no ac_x_libraries=no
13742 rm -f -r conftest.dir
13743 if mkdir conftest.dir; then
13744 cd conftest.dir
13745 cat >Imakefile <<'_ACEOF'
13746 incroot:
13747 @echo incroot='${INCROOT}'
13748 usrlibdir:
13749 @echo usrlibdir='${USRLIBDIR}'
13750 libdir:
13751 @echo libdir='${LIBDIR}'
13752 _ACEOF
13753 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13755 for ac_var in incroot usrlibdir libdir; do
13756 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13757 done
13758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13759 for ac_extension in a so sl dylib la dll; do
13760 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13761 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13762 ac_im_usrlibdir=$ac_im_libdir; break
13764 done
13765 # Screen out bogus values from the imake configuration. They are
13766 # bogus both because they are the default anyway, and because
13767 # using them would break gcc on systems where it needs fixed includes.
13768 case $ac_im_incroot in
13769 /usr/include) ac_x_includes= ;;
13770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13771 esac
13772 case $ac_im_usrlibdir in
13773 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13775 esac
13777 cd ..
13778 rm -f -r conftest.dir
13781 # Standard set of common directories for X headers.
13782 # Check X11 before X11Rn because it is often a symlink to the current release.
13783 ac_x_header_dirs='
13784 /usr/X11/include
13785 /usr/X11R7/include
13786 /usr/X11R6/include
13787 /usr/X11R5/include
13788 /usr/X11R4/include
13790 /usr/include/X11
13791 /usr/include/X11R7
13792 /usr/include/X11R6
13793 /usr/include/X11R5
13794 /usr/include/X11R4
13796 /usr/local/X11/include
13797 /usr/local/X11R7/include
13798 /usr/local/X11R6/include
13799 /usr/local/X11R5/include
13800 /usr/local/X11R4/include
13802 /usr/local/include/X11
13803 /usr/local/include/X11R7
13804 /usr/local/include/X11R6
13805 /usr/local/include/X11R5
13806 /usr/local/include/X11R4
13808 /usr/X386/include
13809 /usr/x386/include
13810 /usr/XFree86/include/X11
13812 /usr/include
13813 /usr/local/include
13814 /usr/unsupported/include
13815 /usr/athena/include
13816 /usr/local/x11r5/include
13817 /usr/lpp/Xamples/include
13819 /usr/openwin/include
13820 /usr/openwin/share/include'
13822 if test "$ac_x_includes" = no; then
13823 # Guess where to find include files, by looking for Xlib.h.
13824 # First, try using that file with no special directory specified.
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <X11/Xlib.h>
13828 _ACEOF
13829 if ac_fn_c_try_cpp "$LINENO"; then :
13830 # We can compile using X headers with no special include directory.
13831 ac_x_includes=
13832 else
13833 for ac_dir in $ac_x_header_dirs; do
13834 if test -r "$ac_dir/X11/Xlib.h"; then
13835 ac_x_includes=$ac_dir
13836 break
13838 done
13840 rm -f conftest.err conftest.i conftest.$ac_ext
13841 fi # $ac_x_includes = no
13843 if test "$ac_x_libraries" = no; then
13844 # Check for the libraries.
13845 # See if we find them without any special options.
13846 # Don't add to $LIBS permanently.
13847 ac_save_LIBS=$LIBS
13848 LIBS="-lX11 $LIBS"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 #include <X11/Xlib.h>
13853 main ()
13855 XrmInitialize ()
13857 return 0;
13859 _ACEOF
13860 if ac_fn_c_try_link "$LINENO"; then :
13861 LIBS=$ac_save_LIBS
13862 # We can link X programs with no special library path.
13863 ac_x_libraries=
13864 else
13865 LIBS=$ac_save_LIBS
13866 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13868 # Don't even attempt the hair of trying to link an X program!
13869 for ac_extension in a so sl dylib la dll; do
13870 if test -r "$ac_dir/libX11.$ac_extension"; then
13871 ac_x_libraries=$ac_dir
13872 break 2
13874 done
13875 done
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 fi # $ac_x_libraries = no
13881 case $ac_x_includes,$ac_x_libraries in #(
13882 no,* | *,no | *\'*)
13883 # Didn't find X, or a directory has "'" in its name.
13884 ac_cv_have_x="have_x=no";; #(
13886 # Record where we found X for the cache.
13887 ac_cv_have_x="have_x=yes\
13888 ac_x_includes='$ac_x_includes'\
13889 ac_x_libraries='$ac_x_libraries'"
13890 esac
13892 ;; #(
13893 *) have_x=yes;;
13894 esac
13895 eval "$ac_cv_have_x"
13896 fi # $with_x != no
13898 if test "$have_x" != yes; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13900 $as_echo "$have_x" >&6; }
13901 no_x=yes
13902 else
13903 # If each of the values was on the command line, it overrides each guess.
13904 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13905 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13906 # Update the cache value to reflect the command line values.
13907 ac_cv_have_x="have_x=yes\
13908 ac_x_includes='$x_includes'\
13909 ac_x_libraries='$x_libraries'"
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13911 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13915 x_cflags=
13916 for path in $x_libraries
13918 x_cflags="$x_cflags -L$path"
13919 done
13921 for path in $x_includes
13923 x_cflags="$x_cflags -I$path"
13924 done
13926 if test "x-$no_x" = "x-yes" ; then
13928 if test "x-$x11_hidd" != "x-auto" ; then
13929 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13932 else
13933 unixgfx_hidd_target=kernel-x11gfx
13934 ENABLE_X11=1
13936 # Check whether --enable-x11_shm was given.
13937 if test "${enable_x11_shm+set}" = set; then :
13938 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13939 else
13940 x11_hidd_shm="auto"
13943 case "x-$x11_hidd_shm" in
13944 x-yes|x-no|x-auto) ;;
13945 *) x11_hidd_shm="auto" ;;
13946 esac
13948 have_xshm=no
13950 if test "x-$x11_hidd_shm" != "x-no" ; then
13952 for ac_header in sys/ipc.h
13953 do :
13954 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13955 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13956 cat >>confdefs.h <<_ACEOF
13957 #define HAVE_SYS_IPC_H 1
13958 _ACEOF
13962 done
13964 for ac_header in sys/shm.h
13965 do :
13966 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13967 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_SYS_SHM_H 1
13970 _ACEOF
13974 done
13977 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13979 save_cflags="$CFLAGS"
13980 CFLAGS="$CFLAGS $x_cflags"
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13982 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13983 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 ac_check_lib_save_LIBS=$LIBS
13987 LIBS="-lXext $LIBS"
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
13994 #ifdef __cplusplus
13995 extern "C"
13996 #endif
13997 char XShmQueryExtension ();
13999 main ()
14001 return XShmQueryExtension ();
14003 return 0;
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ac_cv_lib_Xext_XShmQueryExtension=yes
14008 else
14009 ac_cv_lib_Xext_XShmQueryExtension=no
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14016 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14017 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14018 have_xshm=yes
14021 CFLAGS="$save_cflags"
14025 if test "x-$have_xshm" = "x-yes" ; then
14026 DO_XSHM_SUPPORT="1"
14027 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14028 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14029 else
14030 DO_XSHM_SUPPORT="0"
14034 # Check whether --enable-x11_vidmode was given.
14035 if test "${enable_x11_vidmode+set}" = set; then :
14036 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14037 else
14038 x11_hidd_vidmode="auto"
14041 case "x-$x11_hidd_vidmode" in
14042 x-yes|x-no|x-auto) ;;
14043 *) x11_hidd_vidmode="auto" ;;
14044 esac
14046 have_vidmode=no
14048 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14050 save_cflags="$CFLAGS"
14051 CFLAGS="$CFLAGS $x_cflags"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14053 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14054 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-lXxf86vm $LIBS"
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 char XF86VidModeQueryExtension ();
14070 main ()
14072 return XF86VidModeQueryExtension ();
14074 return 0;
14076 _ACEOF
14077 if ac_fn_c_try_link "$LINENO"; then :
14078 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14079 else
14080 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14082 rm -f core conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14087 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14088 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14089 have_vidmode=yes
14092 CFLAGS="$save_cflags"
14095 if test "x-$have_vidmode" = "x-yes" ; then
14096 DO_VIDMODE_SUPPORT="1"
14097 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14098 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14099 else
14100 DO_VIDMODE_SUPPORT="0"
14104 aros_host_x11_includes=$x_includes
14105 aros_host_x11_libdirs=$x_libraries
14109 # Check whether --enable-sdl_hidd was given.
14110 if test "${enable_sdl_hidd+set}" = set; then :
14111 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14112 else
14113 sdl_hidd="auto"
14116 case "x-$sdl_hidd" in
14117 x-yes|x-no|x-auto) ;;
14118 *) sdl_hidd="auto" ;;
14119 esac
14121 if test "x-$sdl_hidd" != "x-no" ; then
14124 # Check whether --with-sdl-prefix was given.
14125 if test "${with_sdl_prefix+set}" = set; then :
14126 withval=$with_sdl_prefix; sdl_prefix="$withval"
14127 else
14128 sdl_prefix=""
14132 # Check whether --with-sdl-exec-prefix was given.
14133 if test "${with_sdl_exec_prefix+set}" = set; then :
14134 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14135 else
14136 sdl_exec_prefix=""
14139 # Check whether --enable-sdltest was given.
14140 if test "${enable_sdltest+set}" = set; then :
14141 enableval=$enable_sdltest;
14142 else
14143 enable_sdltest=yes
14147 if test x$sdl_exec_prefix != x ; then
14148 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14149 if test x${SDL_CONFIG+set} != xset ; then
14150 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14153 if test x$sdl_prefix != x ; then
14154 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14155 if test x${SDL_CONFIG+set} != xset ; then
14156 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14160 as_save_PATH="$PATH"
14161 if test "x$prefix" != xNONE; then
14162 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14164 # Extract the first word of "sdl-config", so it can be a program name with args.
14165 set dummy sdl-config; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14167 $as_echo_n "checking for $ac_word... " >&6; }
14168 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 case $SDL_CONFIG in
14172 [\\/]* | ?:[\\/]*)
14173 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14187 done
14188 done
14189 IFS=$as_save_IFS
14191 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14193 esac
14195 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14196 if test -n "$SDL_CONFIG"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14198 $as_echo "$SDL_CONFIG" >&6; }
14199 else
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14205 PATH="$as_save_PATH"
14206 min_sdl_version=1.2.10
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14208 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14209 no_sdl=""
14210 if test "$SDL_CONFIG" = "no" ; then
14211 no_sdl=yes
14212 else
14213 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14214 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14216 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14218 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14219 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14220 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14221 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14222 if test "x$enable_sdltest" = "xyes" ; then
14223 ac_save_CFLAGS="$CFLAGS"
14224 ac_save_CXXFLAGS="$CXXFLAGS"
14225 ac_save_LIBS="$LIBS"
14226 CFLAGS="$CFLAGS $SDL_CFLAGS"
14227 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14228 LIBS="$LIBS $SDL_LIBS"
14229 rm -f conf.sdltest
14230 if test "$cross_compiling" = yes; then :
14231 echo $ac_n "cross compiling; assumed OK... $ac_c"
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14236 #include <stdio.h>
14237 #include <stdlib.h>
14238 #include <string.h>
14239 #include "SDL.h"
14241 char*
14242 my_strdup (char *str)
14244 char *new_str;
14246 if (str)
14248 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14249 strcpy (new_str, str);
14251 else
14252 new_str = NULL;
14254 return new_str;
14257 int main (int argc, char *argv[])
14259 int major, minor, micro;
14260 char *tmp_version;
14262 /* This hangs on some systems (?)
14263 system ("touch conf.sdltest");
14265 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14267 /* HP/UX 9 (%@#!) writes to sscanf strings */
14268 tmp_version = my_strdup("$min_sdl_version");
14269 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14270 printf("%s, bad version string\n", "$min_sdl_version");
14271 exit(1);
14274 if (($sdl_major_version > major) ||
14275 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14276 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14278 return 0;
14280 else
14282 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14283 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14284 printf("*** best to upgrade to the required version.\n");
14285 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14286 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14287 printf("*** config.cache before re-running configure\n");
14288 return 1;
14293 _ACEOF
14294 if ac_fn_c_try_run "$LINENO"; then :
14296 else
14297 no_sdl=yes
14299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14300 conftest.$ac_objext conftest.beam conftest.$ac_ext
14303 CFLAGS="$ac_save_CFLAGS"
14304 CXXFLAGS="$ac_save_CXXFLAGS"
14305 LIBS="$ac_save_LIBS"
14308 if test "x$no_sdl" = x ; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311 have_sdl="yes"
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 if test "$SDL_CONFIG" = "no" ; then
14316 echo "*** The sdl-config script installed by SDL could not be found"
14317 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14318 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14319 echo "*** full path to sdl-config."
14320 else
14321 if test -f conf.sdltest ; then
14323 else
14324 echo "*** Could not run SDL test program, checking why..."
14325 CFLAGS="$CFLAGS $SDL_CFLAGS"
14326 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14327 LIBS="$LIBS $SDL_LIBS"
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14331 #include <stdio.h>
14332 #include "SDL.h"
14334 int main(int argc, char *argv[])
14335 { return 0; }
14336 #undef main
14337 #define main K_and_R_C_main
14340 main ()
14342 return 0;
14344 return 0;
14346 _ACEOF
14347 if ac_fn_c_try_link "$LINENO"; then :
14348 echo "*** The test program compiled, but did not run. This usually means"
14349 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14350 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14351 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14352 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14353 echo "*** is required on your system"
14354 echo "***"
14355 echo "*** If you have an old version installed, it is best to remove it, although"
14356 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14357 else
14358 echo "*** The test program failed to compile or link. See the file config.log for the"
14359 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14360 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14361 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 CFLAGS="$ac_save_CFLAGS"
14366 CXXFLAGS="$ac_save_CXXFLAGS"
14367 LIBS="$ac_save_LIBS"
14370 SDL_CFLAGS=""
14371 SDL_LIBS=""
14372 have_sdl="no"
14376 rm -f conf.sdltest
14379 if test "x-$have_sdl" != "x-yes" ; then
14381 if test "x-$sdl_hidd" != "x-auto" ; then
14382 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14385 else
14386 sdl_hidd_target=kernel-hidd-sdl
14387 aros_host_sdl_cflags=SDL_CFLAGS
14388 aros_host_sdl_libs=SDL_LIBS
14392 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14393 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14398 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14399 oss_library_target=workbench-libs-oss-unix
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14405 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14406 # Check whether --enable-dbus was given.
14407 if test "${enable_dbus+set}" = set; then :
14408 enableval=$enable_dbus; dbus="yes"
14409 else
14410 dbus="no"
14413 if test "$dbus" = "yes" ; then
14414 ENABLE_DBUS=1
14415 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14416 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14417 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14418 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14419 else
14420 ENABLE_DBUS=0
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14423 $as_echo "$dbus" >&6; }
14425 if test "$use_kernel_cc_wrapper" = "yes" ; then
14426 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14430 # Generic
14442 # Compatability with other Amiga-like operation systems
14445 # Host related
14473 # Target Related
14540 # Delinting target compiler flags
14547 # Graphics Related
14564 # Native version related
14567 # Palm native version related
14570 # Unix/Hosted version related
14573 # MMU related
14576 # Apple iOS related
14581 # ARM default GCC target related
14587 # Android related
14592 # DBUS related
14599 #X11 related
14602 # Debug related
14608 # Collect-aros stuff: "-ius" to ignore undefined symbols
14611 # C compiler related
14615 #ObjC compiler related
14618 #Java related
14621 # USB3.0 code
14624 case "$aros_flavour" in
14625 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14626 aros_flavour="emulation" ;;
14627 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14628 aros_flavour="emulation" ;;
14629 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14630 aros_flavour="standalone";;
14631 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14632 aros_flavour="standalone";;
14633 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14634 aros_flavour="native" ;;
14635 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14636 aros_flavour="native" ;;
14637 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14638 aros_flavour="linklib" ;;
14639 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14640 aros_flavour="palmnative" ;;
14641 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14642 aros_flavour="mac68knative" ;;
14643 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14644 aros_flavour="ppcnative" ;;
14645 esac
14647 if test ! -d ${aros_inc_dir} ; then
14648 ${MKDIR} ${aros_inc_dir}
14650 if test ! -d ${aros_geninc_dir} ; then
14651 ${MKDIR} ${aros_geninc_dir}
14653 if test ! -d ${aros_hostcfg_dir} ; then
14654 ${MKDIR} ${aros_hostcfg_dir}
14656 if test ! -d ${aros_targetcfg_dir} ; then
14657 ${MKDIR} ${aros_targetcfg_dir}
14659 if test ! -d ${aros_tools_dir} ; then
14660 ${MKDIR} ${aros_tools_dir}
14662 if test ! -d ${aros_scripts_dir} ; then
14663 ${MKDIR} ${aros_scripts_dir}
14666 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14669 # Generic build tools (metamake, etc)
14670 ac_config_commands="$ac_config_commands genmf-executable-support"
14672 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"
14675 # Binutils
14676 ac_config_commands="$ac_config_commands binutils-support"
14678 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14681 # Bare Elf support script and spec
14682 if test "${use_kernel_cc_wrapper}" = "yes"; then
14683 ac_config_commands="$ac_config_commands elf-compiler-support"
14685 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"
14689 # Host compiler support scripts and spec
14690 if test "${aros_target_toolchain}" = "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"
14697 # Android support
14698 if test "$aros_target_variant" == "android"; then
14699 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14703 cat >confcache <<\_ACEOF
14704 # This file is a shell script that caches the results of configure
14705 # tests run on this system so they can be shared between configure
14706 # scripts and configure runs, see configure's option --config-cache.
14707 # It is not useful on other systems. If it contains results you don't
14708 # want to keep, you may remove or edit it.
14710 # config.status only pays attention to the cache file if you give it
14711 # the --recheck option to rerun configure.
14713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14715 # following values.
14717 _ACEOF
14719 # The following way of writing the cache mishandles newlines in values,
14720 # but we know of no workaround that is simple, portable, and efficient.
14721 # So, we kill variables containing newlines.
14722 # Ultrix sh set writes to stderr and can't be redirected directly,
14723 # and sets the high bit in the cache file unless we assign to the vars.
14725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14726 eval ac_val=\$$ac_var
14727 case $ac_val in #(
14728 *${as_nl}*)
14729 case $ac_var in #(
14730 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14731 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14732 esac
14733 case $ac_var in #(
14734 _ | IFS | as_nl) ;; #(
14735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14736 *) { eval $ac_var=; unset $ac_var;} ;;
14737 esac ;;
14738 esac
14739 done
14741 (set) 2>&1 |
14742 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14743 *${as_nl}ac_space=\ *)
14744 # `set' does not quote correctly, so add quotes: double-quote
14745 # substitution turns \\\\ into \\, and sed turns \\ into \.
14746 sed -n \
14747 "s/'/'\\\\''/g;
14748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14749 ;; #(
14751 # `set' quotes correctly as required by POSIX, so do not add quotes.
14752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14754 esac |
14755 sort
14757 sed '
14758 /^ac_cv_env_/b end
14759 t clear
14760 :clear
14761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14762 t end
14763 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14764 :end' >>confcache
14765 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14766 if test -w "$cache_file"; then
14767 if test "x$cache_file" != "x/dev/null"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14769 $as_echo "$as_me: updating cache $cache_file" >&6;}
14770 if test ! -f "$cache_file" || test -h "$cache_file"; then
14771 cat confcache >"$cache_file"
14772 else
14773 case $cache_file in #(
14774 */* | ?:*)
14775 mv -f confcache "$cache_file"$$ &&
14776 mv -f "$cache_file"$$ "$cache_file" ;; #(
14778 mv -f confcache "$cache_file" ;;
14779 esac
14782 else
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14784 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14787 rm -f confcache
14789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14790 # Let make expand exec_prefix.
14791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14793 DEFS=-DHAVE_CONFIG_H
14795 ac_libobjs=
14796 ac_ltlibobjs=
14798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14799 # 1. Remove the extension, and $U if already installed.
14800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14803 # will be set to the directory where LIBOBJS objects are built.
14804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14806 done
14807 LIBOBJS=$ac_libobjs
14809 LTLIBOBJS=$ac_ltlibobjs
14813 : "${CONFIG_STATUS=./config.status}"
14814 ac_write_fail=0
14815 ac_clean_files_save=$ac_clean_files
14816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14819 as_write_fail=0
14820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14821 #! $SHELL
14822 # Generated by $as_me.
14823 # Run this file to recreate the current configuration.
14824 # Compiler output produced by configure, useful for debugging
14825 # configure, is in config.log if it exists.
14827 debug=false
14828 ac_cs_recheck=false
14829 ac_cs_silent=false
14831 SHELL=\${CONFIG_SHELL-$SHELL}
14832 export SHELL
14833 _ASEOF
14834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835 ## -------------------- ##
14836 ## M4sh Initialization. ##
14837 ## -------------------- ##
14839 # Be more Bourne compatible
14840 DUALCASE=1; export DUALCASE # for MKS sh
14841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14842 emulate sh
14843 NULLCMD=:
14844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14845 # is contrary to our usage. Disable this feature.
14846 alias -g '${1+"$@"}'='"$@"'
14847 setopt NO_GLOB_SUBST
14848 else
14849 case `(set -o) 2>/dev/null` in #(
14850 *posix*) :
14851 set -o posix ;; #(
14852 *) :
14854 esac
14858 as_nl='
14860 export as_nl
14861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865 # Prefer a ksh shell builtin over an external printf program on Solaris,
14866 # but without wasting forks for bash or zsh.
14867 if test -z "$BASH_VERSION$ZSH_VERSION" \
14868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='print -r --'
14870 as_echo_n='print -rn --'
14871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='printf %s\n'
14873 as_echo_n='printf %s'
14874 else
14875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877 as_echo_n='/usr/ucb/echo -n'
14878 else
14879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880 as_echo_n_body='eval
14881 arg=$1;
14882 case $arg in #(
14883 *"$as_nl"*)
14884 expr "X$arg" : "X\\(.*\\)$as_nl";
14885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14886 esac;
14887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14889 export as_echo_n_body
14890 as_echo_n='sh -c $as_echo_n_body as_echo'
14892 export as_echo_body
14893 as_echo='sh -c $as_echo_body as_echo'
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898 PATH_SEPARATOR=:
14899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14901 PATH_SEPARATOR=';'
14906 # IFS
14907 # We need space, tab and new line, in precisely that order. Quoting is
14908 # there to prevent editors from complaining about space-tab.
14909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910 # splitting by setting IFS to empty value.)
14911 IFS=" "" $as_nl"
14913 # Find who we are. Look in the path if we contain no directory separator.
14914 as_myself=
14915 case $0 in #((
14916 *[\\/]* ) as_myself=$0 ;;
14917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14920 IFS=$as_save_IFS
14921 test -z "$as_dir" && as_dir=.
14922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14923 done
14924 IFS=$as_save_IFS
14927 esac
14928 # We did not find ourselves, most probably we were run as `sh COMMAND'
14929 # in which case we are not to be found in the path.
14930 if test "x$as_myself" = x; then
14931 as_myself=$0
14933 if test ! -f "$as_myself"; then
14934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14935 exit 1
14938 # Unset variables that we do not need and which cause bugs (e.g. in
14939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14940 # suppresses any "Segmentation fault" message there. '((' could
14941 # trigger a bug in pdksh 5.2.14.
14942 for as_var in BASH_ENV ENV MAIL MAILPATH
14943 do eval test x\${$as_var+set} = xset \
14944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14945 done
14946 PS1='$ '
14947 PS2='> '
14948 PS4='+ '
14950 # NLS nuisances.
14951 LC_ALL=C
14952 export LC_ALL
14953 LANGUAGE=C
14954 export LANGUAGE
14956 # CDPATH.
14957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14961 # ----------------------------------------
14962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14964 # script with STATUS, using 1 if that was 0.
14965 as_fn_error ()
14967 as_status=$1; test $as_status -eq 0 && as_status=1
14968 if test "$4"; then
14969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14972 $as_echo "$as_me: error: $2" >&2
14973 as_fn_exit $as_status
14974 } # as_fn_error
14977 # as_fn_set_status STATUS
14978 # -----------------------
14979 # Set $? to STATUS, without forking.
14980 as_fn_set_status ()
14982 return $1
14983 } # as_fn_set_status
14985 # as_fn_exit STATUS
14986 # -----------------
14987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14988 as_fn_exit ()
14990 set +e
14991 as_fn_set_status $1
14992 exit $1
14993 } # as_fn_exit
14995 # as_fn_unset VAR
14996 # ---------------
14997 # Portably unset VAR.
14998 as_fn_unset ()
15000 { eval $1=; unset $1;}
15002 as_unset=as_fn_unset
15003 # as_fn_append VAR VALUE
15004 # ----------------------
15005 # Append the text in VALUE to the end of the definition contained in VAR. Take
15006 # advantage of any shell optimizations that allow amortized linear growth over
15007 # repeated appends, instead of the typical quadratic growth present in naive
15008 # implementations.
15009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15010 eval 'as_fn_append ()
15012 eval $1+=\$2
15014 else
15015 as_fn_append ()
15017 eval $1=\$$1\$2
15019 fi # as_fn_append
15021 # as_fn_arith ARG...
15022 # ------------------
15023 # Perform arithmetic evaluation on the ARGs, and store the result in the
15024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15025 # must be portable across $(()) and expr.
15026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15027 eval 'as_fn_arith ()
15029 as_val=$(( $* ))
15031 else
15032 as_fn_arith ()
15034 as_val=`expr "$@" || test $? -eq 1`
15036 fi # as_fn_arith
15039 if expr a : '\(a\)' >/dev/null 2>&1 &&
15040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15041 as_expr=expr
15042 else
15043 as_expr=false
15046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15047 as_basename=basename
15048 else
15049 as_basename=false
15052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15053 as_dirname=dirname
15054 else
15055 as_dirname=false
15058 as_me=`$as_basename -- "$0" ||
15059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15060 X"$0" : 'X\(//\)$' \| \
15061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15062 $as_echo X/"$0" |
15063 sed '/^.*\/\([^/][^/]*\)\/*$/{
15064 s//\1/
15067 /^X\/\(\/\/\)$/{
15068 s//\1/
15071 /^X\/\(\/\).*/{
15072 s//\1/
15075 s/.*/./; q'`
15077 # Avoid depending upon Character Ranges.
15078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15081 as_cr_digits='0123456789'
15082 as_cr_alnum=$as_cr_Letters$as_cr_digits
15084 ECHO_C= ECHO_N= ECHO_T=
15085 case `echo -n x` in #(((((
15086 -n*)
15087 case `echo 'xy\c'` in
15088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15089 xy) ECHO_C='\c';;
15090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15091 ECHO_T=' ';;
15092 esac;;
15094 ECHO_N='-n';;
15095 esac
15097 rm -f conf$$ conf$$.exe conf$$.file
15098 if test -d conf$$.dir; then
15099 rm -f conf$$.dir/conf$$.file
15100 else
15101 rm -f conf$$.dir
15102 mkdir conf$$.dir 2>/dev/null
15104 if (echo >conf$$.file) 2>/dev/null; then
15105 if ln -s conf$$.file conf$$ 2>/dev/null; then
15106 as_ln_s='ln -s'
15107 # ... but there are two gotchas:
15108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15110 # In both cases, we have to default to `cp -pR'.
15111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15112 as_ln_s='cp -pR'
15113 elif ln conf$$.file conf$$ 2>/dev/null; then
15114 as_ln_s=ln
15115 else
15116 as_ln_s='cp -pR'
15118 else
15119 as_ln_s='cp -pR'
15121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15122 rmdir conf$$.dir 2>/dev/null
15125 # as_fn_mkdir_p
15126 # -------------
15127 # Create "$as_dir" as a directory, including parents if necessary.
15128 as_fn_mkdir_p ()
15131 case $as_dir in #(
15132 -*) as_dir=./$as_dir;;
15133 esac
15134 test -d "$as_dir" || eval $as_mkdir_p || {
15135 as_dirs=
15136 while :; do
15137 case $as_dir in #(
15138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15139 *) as_qdir=$as_dir;;
15140 esac
15141 as_dirs="'$as_qdir' $as_dirs"
15142 as_dir=`$as_dirname -- "$as_dir" ||
15143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144 X"$as_dir" : 'X\(//\)[^/]' \| \
15145 X"$as_dir" : 'X\(//\)$' \| \
15146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15147 $as_echo X"$as_dir" |
15148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15149 s//\1/
15152 /^X\(\/\/\)[^/].*/{
15153 s//\1/
15156 /^X\(\/\/\)$/{
15157 s//\1/
15160 /^X\(\/\).*/{
15161 s//\1/
15164 s/.*/./; q'`
15165 test -d "$as_dir" && break
15166 done
15167 test -z "$as_dirs" || eval "mkdir $as_dirs"
15168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15171 } # as_fn_mkdir_p
15172 if mkdir -p . 2>/dev/null; then
15173 as_mkdir_p='mkdir -p "$as_dir"'
15174 else
15175 test -d ./-p && rmdir ./-p
15176 as_mkdir_p=false
15180 # as_fn_executable_p FILE
15181 # -----------------------
15182 # Test if FILE is an executable regular file.
15183 as_fn_executable_p ()
15185 test -f "$1" && test -x "$1"
15186 } # as_fn_executable_p
15187 as_test_x='test -x'
15188 as_executable_p=as_fn_executable_p
15190 # Sed expression to map a string onto a valid CPP name.
15191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15193 # Sed expression to map a string onto a valid variable name.
15194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15197 exec 6>&1
15198 ## ----------------------------------- ##
15199 ## Main body of $CONFIG_STATUS script. ##
15200 ## ----------------------------------- ##
15201 _ASEOF
15202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 # Save the log message, to keep $0 and so on meaningful, and to
15206 # report actual input values of CONFIG_FILES etc. instead of their
15207 # values after options handling.
15208 ac_log="
15209 This file was extended by $as_me, which was
15210 generated by GNU Autoconf 2.69. Invocation command line was
15212 CONFIG_FILES = $CONFIG_FILES
15213 CONFIG_HEADERS = $CONFIG_HEADERS
15214 CONFIG_LINKS = $CONFIG_LINKS
15215 CONFIG_COMMANDS = $CONFIG_COMMANDS
15216 $ $0 $@
15218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15221 _ACEOF
15223 case $ac_config_files in *"
15224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15225 esac
15227 case $ac_config_headers in *"
15228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15229 esac
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 # Files that config.status was made for.
15234 config_files="$ac_config_files"
15235 config_headers="$ac_config_headers"
15236 config_commands="$ac_config_commands"
15238 _ACEOF
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 ac_cs_usage="\
15242 \`$as_me' instantiates files and other configuration actions
15243 from templates according to the current configuration. Unless the files
15244 and actions are specified as TAGs, all are instantiated by default.
15246 Usage: $0 [OPTION]... [TAG]...
15248 -h, --help print this help, then exit
15249 -V, --version print version number and configuration settings, then exit
15250 --config print configuration, then exit
15251 -q, --quiet, --silent
15252 do not print progress messages
15253 -d, --debug don't remove temporary files
15254 --recheck update $as_me by reconfiguring in the same conditions
15255 --file=FILE[:TEMPLATE]
15256 instantiate the configuration file FILE
15257 --header=FILE[:TEMPLATE]
15258 instantiate the configuration header FILE
15260 Configuration files:
15261 $config_files
15263 Configuration headers:
15264 $config_headers
15266 Configuration commands:
15267 $config_commands
15269 Report bugs to the package provider."
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15274 ac_cs_version="\\
15275 config.status
15276 configured by $0, generated by GNU Autoconf 2.69,
15277 with options \\"\$ac_cs_config\\"
15279 Copyright (C) 2012 Free Software Foundation, Inc.
15280 This config.status script is free software; the Free Software Foundation
15281 gives unlimited permission to copy, distribute and modify it."
15283 ac_pwd='$ac_pwd'
15284 srcdir='$srcdir'
15285 test -n "\$AWK" || AWK=awk
15286 _ACEOF
15288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15289 # The default lists apply if the user does not specify any file.
15290 ac_need_defaults=:
15291 while test $# != 0
15293 case $1 in
15294 --*=?*)
15295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15297 ac_shift=:
15299 --*=)
15300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15301 ac_optarg=
15302 ac_shift=:
15305 ac_option=$1
15306 ac_optarg=$2
15307 ac_shift=shift
15309 esac
15311 case $ac_option in
15312 # Handling of the options.
15313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15314 ac_cs_recheck=: ;;
15315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15316 $as_echo "$ac_cs_version"; exit ;;
15317 --config | --confi | --conf | --con | --co | --c )
15318 $as_echo "$ac_cs_config"; exit ;;
15319 --debug | --debu | --deb | --de | --d | -d )
15320 debug=: ;;
15321 --file | --fil | --fi | --f )
15322 $ac_shift
15323 case $ac_optarg in
15324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15325 '') as_fn_error $? "missing file argument" ;;
15326 esac
15327 as_fn_append CONFIG_FILES " '$ac_optarg'"
15328 ac_need_defaults=false;;
15329 --header | --heade | --head | --hea )
15330 $ac_shift
15331 case $ac_optarg in
15332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15333 esac
15334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15335 ac_need_defaults=false;;
15336 --he | --h)
15337 # Conflict between --help and --header
15338 as_fn_error $? "ambiguous option: \`$1'
15339 Try \`$0 --help' for more information.";;
15340 --help | --hel | -h )
15341 $as_echo "$ac_cs_usage"; exit ;;
15342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15344 ac_cs_silent=: ;;
15346 # This is an error.
15347 -*) as_fn_error $? "unrecognized option: \`$1'
15348 Try \`$0 --help' for more information." ;;
15350 *) as_fn_append ac_config_targets " $1"
15351 ac_need_defaults=false ;;
15353 esac
15354 shift
15355 done
15357 ac_configure_extra_args=
15359 if $ac_cs_silent; then
15360 exec 6>/dev/null
15361 ac_configure_extra_args="$ac_configure_extra_args --silent"
15364 _ACEOF
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 if \$ac_cs_recheck; then
15367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15368 shift
15369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15370 CONFIG_SHELL='$SHELL'
15371 export CONFIG_SHELL
15372 exec "\$@"
15375 _ACEOF
15376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377 exec 5>>config.log
15379 echo
15380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15381 ## Running $as_me. ##
15382 _ASBOX
15383 $as_echo "$ac_log"
15384 } >&5
15386 _ACEOF
15387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15389 # INIT-COMMANDS
15391 aros_tools_dir=${aros_tools_dir}
15394 aros_host_exe_suffix=${aros_host_exe_suffix}
15395 aros_tools_dir=${aros_tools_dir}
15396 aros_target_cpu=${aros_target_cpu}
15397 aros_target_arch=${aros_target_arch}
15398 aros_target_suffix=${aros_target_suffix}
15399 orig_target_nm=${orig_target_nm}
15400 orig_target_as=${orig_target_as}
15401 orig_target_ar=${orig_target_ar}
15402 orig_target_ranlib=${orig_target_ranlib}
15403 orig_target_objdump=${orig_target_objdump}
15404 orig_target_objcopy=${orig_target_objcopy}
15405 orig_target_strip=${orig_target_strip}
15406 aros_kernel_ld=${aros_kernel_ld}
15410 aros_host_exe_suffix=${aros_host_exe_suffix}
15411 aros_tools_dir=${aros_tools_dir}
15412 aros_target_cpu=${aros_target_cpu}
15413 aros_target_arch=${aros_target_arch}
15414 aros_target_suffix=${aros_target_suffix}
15415 aros_kernel_ld=${aros_kernel_ld}
15419 aros_host_exe_suffix=${aros_host_exe_suffix}
15420 aros_tools_dir=${aros_tools_dir}
15421 aros_target_cpu=${aros_target_cpu}
15422 aros_target_arch=${aros_target_arch}
15423 aros_target_suffix=${aros_target_suffix}
15427 _ACEOF
15429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15431 # Handling of arguments.
15432 for ac_config_target in $ac_config_targets
15434 case $ac_config_target in
15435 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15436 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15437 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15438 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15439 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15440 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15441 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15442 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15443 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15444 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15445 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15446 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15447 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15448 "${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" ;;
15449 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15450 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15451 "${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" ;;
15452 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15453 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15454 "${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" ;;
15455 "${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" ;;
15456 "${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" ;;
15457 "${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" ;;
15459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15460 esac
15461 done
15464 # If the user did not use the arguments to specify the items to instantiate,
15465 # then the envvar interface is used. Set only those that are not.
15466 # We use the long form for the default assignment because of an extremely
15467 # bizarre bug on SunOS 4.1.3.
15468 if $ac_need_defaults; then
15469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15474 # Have a temporary directory for convenience. Make it in the build tree
15475 # simply because there is no reason against having it here, and in addition,
15476 # creating and moving files from /tmp can sometimes cause problems.
15477 # Hook for its removal unless debugging.
15478 # Note that there is a small window in which the directory will not be cleaned:
15479 # after its creation but before its name has been assigned to `$tmp'.
15480 $debug ||
15482 tmp= ac_tmp=
15483 trap 'exit_status=$?
15484 : "${ac_tmp:=$tmp}"
15485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15487 trap 'as_fn_exit 1' 1 2 13 15
15489 # Create a (secure) tmp directory for tmp files.
15492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15493 test -d "$tmp"
15494 } ||
15496 tmp=./conf$$-$RANDOM
15497 (umask 077 && mkdir "$tmp")
15498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15499 ac_tmp=$tmp
15501 # Set up the scripts for CONFIG_FILES section.
15502 # No need to generate them if there are no CONFIG_FILES.
15503 # This happens for instance with `./config.status config.h'.
15504 if test -n "$CONFIG_FILES"; then
15507 ac_cr=`echo X | tr X '\015'`
15508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15509 # But we know of no other shell where ac_cr would be empty at this
15510 # point, so we can use a bashism as a fallback.
15511 if test "x$ac_cr" = x; then
15512 eval ac_cr=\$\'\\r\'
15514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15516 ac_cs_awk_cr='\\r'
15517 else
15518 ac_cs_awk_cr=$ac_cr
15521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15522 _ACEOF
15526 echo "cat >conf$$subs.awk <<_ACEOF" &&
15527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15528 echo "_ACEOF"
15529 } >conf$$subs.sh ||
15530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15532 ac_delim='%!_!# '
15533 for ac_last_try in false false false false false :; do
15534 . ./conf$$subs.sh ||
15535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15538 if test $ac_delim_n = $ac_delim_num; then
15539 break
15540 elif $ac_last_try; then
15541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15542 else
15543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15545 done
15546 rm -f conf$$subs.sh
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15550 _ACEOF
15551 sed -n '
15553 s/^/S["/; s/!.*/"]=/
15556 s/^[^!]*!//
15557 :repl
15558 t repl
15559 s/'"$ac_delim"'$//
15560 t delim
15563 s/\(.\{148\}\)..*/\1/
15564 t more1
15565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15568 b repl
15569 :more1
15570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15573 s/.\{148\}//
15574 t nl
15575 :delim
15577 s/\(.\{148\}\)..*/\1/
15578 t more2
15579 s/["\\]/\\&/g; s/^/"/; s/$/"/
15582 :more2
15583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15586 s/.\{148\}//
15587 t delim
15588 ' <conf$$subs.awk | sed '
15589 /^[^""]/{
15591 s/\n//
15593 ' >>$CONFIG_STATUS || ac_write_fail=1
15594 rm -f conf$$subs.awk
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 _ACAWK
15597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15598 for (key in S) S_is_set[key] = 1
15599 FS = "\a"
15603 line = $ 0
15604 nfields = split(line, field, "@")
15605 substed = 0
15606 len = length(field[1])
15607 for (i = 2; i < nfields; i++) {
15608 key = field[i]
15609 keylen = length(key)
15610 if (S_is_set[key]) {
15611 value = S[key]
15612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15613 len += length(value) + length(field[++i])
15614 substed = 1
15615 } else
15616 len += 1 + keylen
15619 print line
15622 _ACAWK
15623 _ACEOF
15624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15627 else
15629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15631 _ACEOF
15633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15635 # trailing colons and then remove the whole line if VPATH becomes empty
15636 # (actually we leave an empty line to preserve line numbers).
15637 if test "x$srcdir" = x.; then
15638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15640 s///
15641 s/^/:/
15642 s/[ ]*$/:/
15643 s/:\$(srcdir):/:/g
15644 s/:\${srcdir}:/:/g
15645 s/:@srcdir@:/:/g
15646 s/^:*//
15647 s/:*$//
15649 s/\(=[ ]*\).*/\1/
15651 s/\n//
15652 s/^[^=]*=[ ]*$//
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 fi # test -n "$CONFIG_FILES"
15659 # Set up the scripts for CONFIG_HEADERS section.
15660 # No need to generate them if there are no CONFIG_HEADERS.
15661 # This happens for instance with `./config.status Makefile'.
15662 if test -n "$CONFIG_HEADERS"; then
15663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15664 BEGIN {
15665 _ACEOF
15667 # Transform confdefs.h into an awk script `defines.awk', embedded as
15668 # here-document in config.status, that substitutes the proper values into
15669 # config.h.in to produce config.h.
15671 # Create a delimiter string that does not exist in confdefs.h, to ease
15672 # handling of long lines.
15673 ac_delim='%!_!# '
15674 for ac_last_try in false false :; do
15675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15676 if test -z "$ac_tt"; then
15677 break
15678 elif $ac_last_try; then
15679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15680 else
15681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683 done
15685 # For the awk script, D is an array of macro values keyed by name,
15686 # likewise P contains macro parameters if any. Preserve backslash
15687 # newline sequences.
15689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15690 sed -n '
15691 s/.\{148\}/&'"$ac_delim"'/g
15692 t rset
15693 :rset
15694 s/^[ ]*#[ ]*define[ ][ ]*/ /
15695 t def
15697 :def
15698 s/\\$//
15699 t bsnl
15700 s/["\\]/\\&/g
15701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15702 D["\1"]=" \3"/p
15703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15705 :bsnl
15706 s/["\\]/\\&/g
15707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15708 D["\1"]=" \3\\\\\\n"\\/p
15709 t cont
15710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15711 t cont
15713 :cont
15715 s/.\{148\}/&'"$ac_delim"'/g
15716 t clear
15717 :clear
15718 s/\\$//
15719 t bsnlc
15720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15722 :bsnlc
15723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15724 b cont
15725 ' <confdefs.h | sed '
15726 s/'"$ac_delim"'/"\\\
15727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 for (key in D) D_is_set[key] = 1
15731 FS = "\a"
15733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15734 line = \$ 0
15735 split(line, arg, " ")
15736 if (arg[1] == "#") {
15737 defundef = arg[2]
15738 mac1 = arg[3]
15739 } else {
15740 defundef = substr(arg[1], 2)
15741 mac1 = arg[2]
15743 split(mac1, mac2, "(") #)
15744 macro = mac2[1]
15745 prefix = substr(line, 1, index(line, defundef) - 1)
15746 if (D_is_set[macro]) {
15747 # Preserve the white space surrounding the "#".
15748 print prefix "define", macro P[macro] D[macro]
15749 next
15750 } else {
15751 # Replace #undef with comments. This is necessary, for example,
15752 # in the case of _POSIX_SOURCE, which is predefined and required
15753 # on some systems where configure will not decide to define it.
15754 if (defundef == "undef") {
15755 print "/*", prefix defundef, macro, "*/"
15756 next
15760 { print }
15761 _ACAWK
15762 _ACEOF
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15765 fi # test -n "$CONFIG_HEADERS"
15768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15769 shift
15770 for ac_tag
15772 case $ac_tag in
15773 :[FHLC]) ac_mode=$ac_tag; continue;;
15774 esac
15775 case $ac_mode$ac_tag in
15776 :[FHL]*:*);;
15777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15778 :[FH]-) ac_tag=-:-;;
15779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15780 esac
15781 ac_save_IFS=$IFS
15782 IFS=:
15783 set x $ac_tag
15784 IFS=$ac_save_IFS
15785 shift
15786 ac_file=$1
15787 shift
15789 case $ac_mode in
15790 :L) ac_source=$1;;
15791 :[FH])
15792 ac_file_inputs=
15793 for ac_f
15795 case $ac_f in
15796 -) ac_f="$ac_tmp/stdin";;
15797 *) # Look for the file first in the build tree, then in the source tree
15798 # (if the path is not absolute). The absolute path cannot be DOS-style,
15799 # because $ac_f cannot contain `:'.
15800 test -f "$ac_f" ||
15801 case $ac_f in
15802 [\\/$]*) false;;
15803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15804 esac ||
15805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15806 esac
15807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15808 as_fn_append ac_file_inputs " '$ac_f'"
15809 done
15811 # Let's still pretend it is `configure' which instantiates (i.e., don't
15812 # use $as_me), people would be surprised to read:
15813 # /* config.h. Generated by config.status. */
15814 configure_input='Generated from '`
15815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15816 `' by configure.'
15817 if test x"$ac_file" != x-; then
15818 configure_input="$ac_file. $configure_input"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15820 $as_echo "$as_me: creating $ac_file" >&6;}
15822 # Neutralize special characters interpreted by sed in replacement strings.
15823 case $configure_input in #(
15824 *\&* | *\|* | *\\* )
15825 ac_sed_conf_input=`$as_echo "$configure_input" |
15826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15827 *) ac_sed_conf_input=$configure_input;;
15828 esac
15830 case $ac_tag in
15831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15833 esac
15835 esac
15837 ac_dir=`$as_dirname -- "$ac_file" ||
15838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839 X"$ac_file" : 'X\(//\)[^/]' \| \
15840 X"$ac_file" : 'X\(//\)$' \| \
15841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15842 $as_echo X"$ac_file" |
15843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15844 s//\1/
15847 /^X\(\/\/\)[^/].*/{
15848 s//\1/
15851 /^X\(\/\/\)$/{
15852 s//\1/
15855 /^X\(\/\).*/{
15856 s//\1/
15859 s/.*/./; q'`
15860 as_dir="$ac_dir"; as_fn_mkdir_p
15861 ac_builddir=.
15863 case "$ac_dir" in
15864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15867 # A ".." for each directory in $ac_dir_suffix.
15868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15869 case $ac_top_builddir_sub in
15870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15872 esac ;;
15873 esac
15874 ac_abs_top_builddir=$ac_pwd
15875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15876 # for backward compatibility:
15877 ac_top_builddir=$ac_top_build_prefix
15879 case $srcdir in
15880 .) # We are building in place.
15881 ac_srcdir=.
15882 ac_top_srcdir=$ac_top_builddir_sub
15883 ac_abs_top_srcdir=$ac_pwd ;;
15884 [\\/]* | ?:[\\/]* ) # Absolute name.
15885 ac_srcdir=$srcdir$ac_dir_suffix;
15886 ac_top_srcdir=$srcdir
15887 ac_abs_top_srcdir=$srcdir ;;
15888 *) # Relative name.
15889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15890 ac_top_srcdir=$ac_top_build_prefix$srcdir
15891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15892 esac
15893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15896 case $ac_mode in
15899 # CONFIG_FILE
15902 _ACEOF
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 # If the template does not know about datarootdir, expand it.
15906 # FIXME: This hack should be removed a few years after 2.60.
15907 ac_datarootdir_hack=; ac_datarootdir_seen=
15908 ac_sed_dataroot='
15909 /datarootdir/ {
15913 /@datadir@/p
15914 /@docdir@/p
15915 /@infodir@/p
15916 /@localedir@/p
15917 /@mandir@/p'
15918 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15919 *datarootdir*) ac_datarootdir_seen=yes;;
15920 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15922 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925 ac_datarootdir_hack='
15926 s&@datadir@&$datadir&g
15927 s&@docdir@&$docdir&g
15928 s&@infodir@&$infodir&g
15929 s&@localedir@&$localedir&g
15930 s&@mandir@&$mandir&g
15931 s&\\\${datarootdir}&$datarootdir&g' ;;
15932 esac
15933 _ACEOF
15935 # Neutralize VPATH when `$srcdir' = `.'.
15936 # Shell code in configure.ac might set extrasub.
15937 # FIXME: do we really want to maintain this feature?
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 ac_sed_extra="$ac_vpsub
15940 $extrasub
15941 _ACEOF
15942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15945 s|@configure_input@|$ac_sed_conf_input|;t t
15946 s&@top_builddir@&$ac_top_builddir_sub&;t t
15947 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15948 s&@srcdir@&$ac_srcdir&;t t
15949 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15950 s&@top_srcdir@&$ac_top_srcdir&;t t
15951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15952 s&@builddir@&$ac_builddir&;t t
15953 s&@abs_builddir@&$ac_abs_builddir&;t t
15954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15955 $ac_datarootdir_hack
15957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15965 which seems to be undefined. Please make sure it is defined" >&5
15966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15967 which seems to be undefined. Please make sure it is defined" >&2;}
15969 rm -f "$ac_tmp/stdin"
15970 case $ac_file in
15971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15973 esac \
15974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15978 # CONFIG_HEADER
15980 if test x"$ac_file" != x-; then
15982 $as_echo "/* $configure_input */" \
15983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15984 } >"$ac_tmp/config.h" \
15985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15989 else
15990 rm -f "$ac_file"
15991 mv "$ac_tmp/config.h" "$ac_file" \
15992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15994 else
15995 $as_echo "/* $configure_input */" \
15996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15997 || as_fn_error $? "could not create -" "$LINENO" 5
16001 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16002 $as_echo "$as_me: executing $ac_file commands" >&6;}
16004 esac
16007 case $ac_file$ac_mode in
16008 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16009 "binutils-support":C)
16010 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16011 mkdir -p $prefix
16012 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16014 chmod a+x ${prefix2}-ld
16016 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16017 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16018 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16019 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16020 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16021 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16022 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16024 "elf-compiler-support":C)
16025 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16026 mkdir -p $prefix
16027 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16029 chmod a+x ${prefix2}-gcc
16031 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16033 "host-compiler-wrapper-support":C)
16034 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16035 mkdir -p $prefix
16036 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16038 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16041 esac
16042 done # for ac_tag
16045 as_fn_exit 0
16046 _ACEOF
16047 ac_clean_files=$ac_clean_files_save
16049 test $ac_write_fail = 0 ||
16050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16053 # configure is writing to config.log, and then calls config.status.
16054 # config.status does its own redirection, appending to config.log.
16055 # Unfortunately, on DOS this fails, as config.log is still kept open
16056 # by configure, so config.status won't be able to write to it; its
16057 # output is simply discarded. So we exec the FD to /dev/null,
16058 # effectively closing config.log, so it can be properly (re)opened and
16059 # appended to by config.status. When coming back to configure, we
16060 # need to make the FD available again.
16061 if test "$no_create" != yes; then
16062 ac_cs_success=:
16063 ac_config_status_args=
16064 test "$silent" = yes &&
16065 ac_config_status_args="$ac_config_status_args --quiet"
16066 exec 5>/dev/null
16067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16068 exec 5>>config.log
16069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16070 # would make configure fail if this is the last instruction.
16071 $ac_cs_success || as_fn_exit 1
16073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16080 #XXX compatability...
16081 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16083 if test -n "$aros_shared_cflags" ; then
16084 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16085 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg